Chat Archive for channel #xwiki
xwikibot - (18/05/2008 00:25): Main.InstallationInstructions was modified by xwiki:XWiki.LudovicDubost - http://curriki.xwiki.org/xwiki/bin/view/Main/InstallationInstructions xwikibot - (18/05/2008 00:28): Main.InstallationInstructions was modified by xwiki:XWiki.LudovicDubost - http://curriki.xwiki.org/xwiki/bin/view/Main/InstallationInstructions xwikibot - (18/05/2008 03:21): DevGuide.Tutorials was modified by xwiki:XWiki.LudovicDubost - http://platform.xwiki.org/xwiki/bin/view/DevGuide/Tutorials xwikibot - (18/05/2008 03:23): DevGuide.Creating a form with validation and tooltips was modified by xwiki:XWiki.LudovicDubost - http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+validation+and+tooltips xwikibot - (18/05/2008 03:23): DevGuide.Creating a form with validation and tooltips was modified by xwiki:XWiki.LudovicDubost - http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+validation+and+tooltips xwikibot - (18/05/2008 03:25): DevGuide.Creating a form with validation and tooltips was modified by xwiki:XWiki.LudovicDubost - http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+validation+and+tooltips xwikibot - (18/05/2008 03:55): DevGuide.Creating a form with validation and tooltips was modified by xwiki:XWiki.LudovicDubost - http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+validation+and+tooltips xwikibot - (18/05/2008 08:53): DevGuide.Creating a form with validation and tooltips was modified by xwiki:XWiki.VincentMassol - http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+validation+and+tooltips rrodriguez - (18/05/2008 11:08): vmassol: good morning; may I bother you with a question about CSS and rtf export? vmassol - (18/05/2008 11:36): rrodriguez: morning rrodriguez - (18/05/2008 11:37): hi! sorry for bothering you, but I am completely lost with the rtf export issue rrodriguez - (18/05/2008 11:37): It is far from being simple this stuff! At least for me… vmassol - (18/05/2008 11:38): well it either works or it doesn't vmassol - (18/05/2008 11:38): sounds simple vmassol - (18/05/2008 11:38): unless you want to do complex stuff of course :) rrodriguez - (18/05/2008 11:38): I think what I want to do is not complex at all, but I am not able to find the entry point to the issue rrodriguez - (18/05/2008 11:39): Something apparently simple as establishing the upper and lower margin for a give heading level vmassol - (18/05/2008 11:39): nice diagram btw rrodriguez - (18/05/2008 11:39): thanks! but is it util? rrodriguez - (18/05/2008 11:39): :-) rrodriguez - (18/05/2008 11:39): useful! vmassol - (18/05/2008 11:39): yes probably rrodriguez - (18/05/2008 11:39): I mean, is it usefel? rrodriguez - (18/05/2008 11:39): useful rrodriguez - (18/05/2008 11:39): sorry vmassol - (18/05/2008 11:39): would need to be validated and put on xwiki.org in the dev guide somewhere vmassol - (18/05/2008 11:40): honestly you know much more than I do about this topic now rrodriguez - (18/05/2008 11:40): I am ready to modify it/improve it as needed rrodriguez - (18/05/2008 11:40): oops! then, we are lost! rrodriguez - (18/05/2008 11:40): :-) vmassol - (18/05/2008 11:40): all I know is that the RTF or PDF export calls the ExportAction vmassol - (18/05/2008 11:40): then I would follow what's happening int he code vmassol - (18/05/2008 11:41): but I don't know it offhand vmassol - (18/05/2008 11:41): what it means probably is that we're currently not offering any margin hooks right now rrodriguez - (18/05/2008 11:41): the code keeps being a black hole for me! vmassol - (18/05/2008 11:41): hence the reason it looks complex rrodriguez - (18/05/2008 11:41): some simple css rules seem to work rrodriguez - (18/05/2008 11:41): but anything else rrodriguez - (18/05/2008 11:42): Well, I keep trying! rrodriguez - (18/05/2008 11:42): Thanks! rrodriguez - (18/05/2008 11:46): btw, by Googling I've found this http://dev.xwiki.org/xwiki/bin/view/IRC/xwikiArchive20080516 rrodriguez - (18/05/2008 11:46): Are all IRC conversations archived in xwiki.org site? vmassol - (18/05/2008 11:46): yes we're archiving the irc logs vmassol - (18/05/2008 11:46): yes whenever the bot is up rrodriguez - (18/05/2008 11:46): great! vmassol - (18/05/2008 11:46): it's called xwikirecbot rrodriguez - (18/05/2008 11:48): I see it now among the logged "users" vmassol - (18/05/2008 11:50): yep rrodriguez - (18/05/2008 11:50): Is there an entry to the whole archive anywhere in dev.xwiki.org? vmassol - (18/05/2008 11:50): yes vmassol - (18/05/2008 11:50): http://dev.xwiki.org/xwiki/bin/view/IRC/ rrodriguez - (18/05/2008 11:51): Thanks, I am there. Pretty new stuff! vmassol - (18/05/2008 11:52): re your diagram vmassol - (18/05/2008 11:53): I would add the different exports formats in the diagram: PDF/RTF vmassol - (18/05/2008 11:53): and I would mention that the request URL so that it shows it's a PDF or RTF export rrodriguez - (18/05/2008 11:53): Do they follow the same path? rrodriguez - (18/05/2008 11:54): As far as I understood to Sergiu, the whole process is common until Apache fo deals with the xsl-foo document rrodriguez - (18/05/2008 11:55): I will upload the original OmniGraffle file to the page holding the diagram. vmassol - (18/05/2008 11:55): yep rrodriguez - (18/05/2008 11:55): I will modify it following your advice vmassol - (18/05/2008 11:55): they're common till the FOP transformation vmassol - (18/05/2008 11:55): btw it's Apache FOP and not Apache Fo rrodriguez - (18/05/2008 11:56): Thanks! vmassol - (18/05/2008 11:56): you mixed it with xsl-fo ;)- rrodriguez - (18/05/2008 11:56): I am a complete mess! rrodriguez - (18/05/2008 11:56): :-) vmassol - (18/05/2008 11:57): the diagram could also add some comment to explain more rrodriguez - (18/05/2008 11:57): Do you know if I could follow any established standard for lines, arrows, boxes,… rrodriguez - (18/05/2008 11:57): Indeed! vmassol - (18/05/2008 11:57): for ex, next to the jtidy box you could explain that it's for cleaning the html so that it's xhtml compliant rrodriguez - (18/05/2008 11:57): but the problem is that rigth now I get almost nothing by following it! rrodriguez - (18/05/2008 11:57): OK vmassol - (18/05/2008 11:57): well it looks correct rrodriguez - (18/05/2008 11:58): green boxes represent files vmassol - (18/05/2008 11:58): hmmm vmassol - (18/05/2008 11:58): pdf.vlm is a file rrodriguez - (18/05/2008 11:58): :-) vmassol - (18/05/2008 11:58): pdf.vm vmassol - (18/05/2008 11:59): so is pdf.css rrodriguez - (18/05/2008 11:59): also pdf.css is a… rrodriguez - (18/05/2008 11:59): but pdf.css "injects" css rules rrodriguez - (18/05/2008 11:59): and this is the main goal: where an user could "inject" css rules to modify the output? rrodriguez - (18/05/2008 12:00): it seems to me that only pdf.css and PDFTemplate style properties are the entry points for rules vmassol - (18/05/2008 12:00): right now from sergiu's explanation I see only the pdftemplate parameter rrodriguez - (18/05/2008 12:00): yeap vmassol - (18/05/2008 12:00): pdf.css is not meant to be modified afaik vmassol - (18/05/2008 12:00): unless you override it in your skin maybe rrodriguez - (18/05/2008 12:01): I don't know if pdt.css exists anywhere rrodriguez - (18/05/2008 12:01): We have created it and put it in the skin vmassol - (18/05/2008 12:01): ah right vmassol - (18/05/2008 12:01): couldn't find it either rrodriguez - (18/05/2008 12:02): both pdf.css and style in the pdftemplate seems to accept a rather small set of css rules rrodriguez - (18/05/2008 12:02): that is my point now: I don't know why/what/how rules could be used there. vmassol - (18/05/2008 12:03): this is the place where pdf.css is used: vmassol - (18/05/2008 12:03): http://rafb.net/p/3tB32O21.html vmassol - (18/05/2008 12:03): sounds easy enough rrodriguez - (18/05/2008 12:04): Sorry, I am far from being a dev/programmer :-( rrodriguez - (18/05/2008 12:04): yeap rrodriguez - (18/05/2008 12:04): this seems clear vmassol - (18/05/2008 12:05): now I have no idea why it wouldn't work rrodriguez - (18/05/2008 12:05): well, at least "we" find the point :-) vmassol - (18/05/2008 12:05): I guess you could debug before and after applyCSS method vmassol - (18/05/2008 12:06): to see how the document is modified rrodriguez - (18/05/2008 12:06): from this point onwards it seems that no other "action" must modify the applied style rrodriguez - (18/05/2008 12:06): do you know how could I get intermediary XHMTL 1 and 2 rrodriguez - (18/05/2008 12:06): as per the proposed diagram? vmassol - (18/05/2008 12:07): ah something new for your diagral rrodriguez - (18/05/2008 12:07): It is urgent that I learn how to checkout, compile, debug XWiki code :-( rrodriguez - (18/05/2008 12:07): tell me, please rrodriguez - (18/05/2008 12:08): urgent for me! I mean vmassol - (18/05/2008 12:08): you can put a xhtmlxsl property in your XWiki.PDFClass vmassol - (18/05/2008 12:09): in that case it's applied before the XSL-FO transformation vmassol - (18/05/2008 12:10): actually no vmassol - (18/05/2008 12:10): it replaces the xhtml2fo.xsl file rrodriguez - (18/05/2008 12:10): ok vmassol - (18/05/2008 12:10): the same applies for fop.xsl (the xsl-fo tx) rrodriguez - (18/05/2008 12:10): So, we have a new "injection" for layout rules, haven't we? vmassol - (18/05/2008 12:10): you can have a fopxsl property too vmassol - (18/05/2008 12:10): which if defined, replaces the fop.xsl tx rrodriguez - (18/05/2008 12:11): OK, this contribute to document the template rrodriguez - (18/05/2008 12:11): but all this stuff is much complex than css rules vmassol - (18/05/2008 12:11): yes we have 2 new ways to provide user-specific stuff vmassol - (18/05/2008 12:11): it is vmassol - (18/05/2008 12:11): but it allows vmassol - (18/05/2008 12:11): full control rrodriguez - (18/05/2008 12:11): Indeed! vmassol - (18/05/2008 12:11): on the generated PDF or RTF rrodriguez - (18/05/2008 12:11): this is simply great rrodriguez - (18/05/2008 12:12): but, don't you think that "we" must to discover why css rules don't apply correctly? rrodriguez - (18/05/2008 12:12): rules coming with pdf.css and style property in pdftemplate vmassol - (18/05/2008 12:13): yes that's why I was suggesting debugging vmassol - (18/05/2008 12:13): before and after the applyCSS method rrodriguez - (18/05/2008 12:13): yeah, my only problem is that I don't know how to do that now :-( rrodriguez - (18/05/2008 12:14): moving to dec.xwiki.org inmediatly! :-) rrodriguez - (18/05/2008 12:14): dev vmassol - (18/05/2008 12:14): http://dev.xwiki.org vmassol - (18/05/2008 12:14): yep vmassol - (18/05/2008 12:14): :) vmassol - (18/05/2008 12:14): we'll make a xwiki developer out of you ! :) rrodriguez - (18/05/2008 12:14): Thank you so much! rrodriguez - (18/05/2008 12:14): :-) :-) rrodriguez - (18/05/2008 12:14): I am truly looking for this! But night is not long enough! :-) rrodriguez - (18/05/2008 12:16): OK, the problem is "clear" now. But I do need to find an alternative to the control of some simple characteristics in exported rtf files rrodriguez - (18/05/2008 12:17): I need to deliver a report within these coming two or three days, and export to rtf controlling images sizes,fonts style and space before and after headings are the keys. vmassol - (18/05/2008 12:19): that should be easy rrodriguez - (18/05/2008 12:19): Of course I can modify this characteristics by hand, but this won't be nice to try to justify this need :-( rrodriguez - (18/05/2008 12:19): it should! But I don't find how to do that. vmassol - (18/05/2008 12:19): injecting the right css should do the trick vmassol - (18/05/2008 12:20): barring any css4j bug since sergiu seemed to consider it was buggy or limited rrodriguez - (18/05/2008 12:20): It seems it doesn't. For instance, we can control image width, but length seems not affected rrodriguez - (18/05/2008 12:20): css4j seems to be the problem vmassol - (18/05/2008 12:20): actually I don't see any css4j in the applyCSS ethod vmassol - (18/05/2008 12:20): method vmassol - (18/05/2008 12:21): ah sorry vmassol - (18/05/2008 12:21): it's there rrodriguez - (18/05/2008 12:21): I've been trying to go deep into css4j, but once again is kind of Sanskrit for me right now! vmassol - (18/05/2008 12:23): did you check the xhtml doc before applying the css and after applying it? vmassol - (18/05/2008 12:23): that's what I would do vmassol - (18/05/2008 12:23): got to go now, lunch time rrodriguez - (18/05/2008 12:23): enjoy! rrodriguez - (18/05/2008 12:24): checking xhtml doc does imply debugging, doesn't it? vmassol - (18/05/2008 12:28): you could put debug logs in the source code but you'll need to rebuild from sources of course rrodriguez - (18/05/2008 12:29): ok, thanks. Clearly I've to face this build issue if I want to help here. rrodriguez - (18/05/2008 12:31): it will be great to solve these image size and margins issues before that occurs, but I can solve the urgent manually if we don't find any alternative. No nice, but possible. Thanks for your time! xwikibot - (18/05/2008 12:46): Applications.WatchApplication was modified by xwiki:XWiki.lucaa - http://code.xwiki.org/xwiki/bin/view/Applications/WatchApplication xwikibot - (18/05/2008 12:52): Applications.WatchApplication was modified by xwiki:XWiki.lucaa - http://code.xwiki.org/xwiki/bin/view/Applications/WatchApplication xwikibot - (18/05/2008 16:37): XWiki.HuageChen was modified by XWiki.HuageChen (Created user) - http://www.xwiki.org/xwiki/bin/view/XWiki/HuageChen xwikibot - (18/05/2008 16:38): XWiki.HuageChen was modified by XWiki.HuageChen - http://www.xwiki.org/xwiki/bin/view/XWiki/HuageChen
Comments: 0