Re: Sourcecode Indentation Using OpenOffice
Thank you Ross for your comment, I have a similar problem - using the plug in - with the forrest:source style, the plug in generally ignore the return carriage (not the Paragraph!). I have to retype it or to take a sample which works, but I don't know what's the problem. Can I do the same and ask for a file filename.xml to see the XDoc ? And where can I find this file ? Regards, Cyriaque, Ross Gardler a écrit : Jan Ortmann wrote: Hello, I'm writing documents for my project site using OpenOffice (1.1.4) and the provided Forrest styles from the OpenOffice template, e.g. Forrest:Source for sourcecode. However I couldn't get a proper identation in the generated HTML and PDFs. I've tried to indent the code with tabs and with spaces. There is also no box around the sourcecode. I'm using Forrest 0.6. Any ideas? The OOo support needs work. Can you help? Yes you can, by helping us diagnose the problem and, if you have the skills and time providing a patch once we've found the issue. First, lets diagnose the problem. If you request filename.xml rather than filename.html you will be shown the XDoc that Forrest generates from your document. Can you do that and fee what your Forrest:source content looks like. Post a snippet of the resulting code here if you can. Note, in 0.7 the OOo stuff is migrating out to a plugin. This will make it much easier to work with. Ross
Re: Sourcecode Indentation Using OpenOffice
Cyriaque Dupoirieux wrote: Thank you Ross for your comment, I have a similar problem - using the plug in - with the forrest:source style, the plug in generally ignore the return carriage (not the Paragraph!). I have to retype it or to take a sample which works, but I don't know what's the problem. Can I do the same and ask for a file filename.xml to see the XDoc ? Yes, you can do this with any document to see the intermediate processing of the file. And where can I find this file ? 'forrest run' http://localhost:/filename.xml Ross Regards, Cyriaque, Ross Gardler a écrit : Jan Ortmann wrote: Hello, I'm writing documents for my project site using OpenOffice (1.1.4) and the provided Forrest styles from the OpenOffice template, e.g. Forrest:Source for sourcecode. However I couldn't get a proper identation in the generated HTML and PDFs. I've tried to indent the code with tabs and with spaces. There is also no box around the sourcecode. I'm using Forrest 0.6. Any ideas? The OOo support needs work. Can you help? Yes you can, by helping us diagnose the problem and, if you have the skills and time providing a patch once we've found the issue. First, lets diagnose the problem. If you request filename.xml rather than filename.html you will be shown the XDoc that Forrest generates from your document. Can you do that and fee what your Forrest:source content looks like. Post a snippet of the resulting code here if you can. Note, in 0.7 the OOo stuff is migrating out to a plugin. This will make it much easier to work with. Ross
Forrest Example Sites
Dear project-team, we would like to announce that our website at http://www.verit.de is now running on Forrest 0.6 (eagerly awaiting the 0.7 release). Please feel free to add it to your growing list of example sites. Thank you all for that wonderful piece of software! Regards, Claudia Könnecke
i18n: menu or doc, but not both! (and no language override menu)
Hello, I've been silent for a long time - sorry for not giving any feedback sooner! We have now tested the i18n features with the latest svn version (of today), and the behaviour we find is a little strange. Here's what we've done, and the result: - made a new dir - fresh forrest seed - turned forrest.i18n on - added index.sme.xml and index.no.xml to .../xdocs/ - added menu_sme.xml (menu_no.xml is part of the distro) The outcome: $ forrest run In the browser: localhost:/index.html -> Norwegian menu, default (English) page (Norwegian locale from the browser) localhost:/index.html?locale=sme -> English menu, North Sámi (sme) page localhost:/index.html?locale=no -> English menu, Norwegian page That is, it is not possible to override the menu locale, only the document locale. When the menu locale is not taken from the browser (because of a URL override), it falls back to the default. That is, it is almost impossible to get the document and menu locales to match:-( On the *very* positive side, Forrest does not any more (=since last time we tested) return a 404 when it can't find a specified locale. Also, when i18n is turned on, we would expect a language override menu to be generated, but see none. What is needed to get one? Thanks for the great work on Forrest, we're looking forward to the 0.7 release:-) Best regards, Sjur
Re: TOC in FAQ
The Web Maestro wrote: > I'm having a problem generating the table of Contents for our FAQs... [snip] > > I thought, perhaps the problem was related to the DOCTYPE for our > faq.xml: > > > "http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/core/ > context/resources/schema/dtd/faq-v12.dtd"> > > But again, the Forrest faq.xml file appears to have the same DOCTYPE. > faq.xml also appears to have the same structure. I'd rather not move to > the v20 DTD if possible. [snip] No it doesn't. Our faq.xml for both 0.6 and 0.7 uses FAQ 1.2 DTD. I don't know if that makes any difference for you. I will try to add your FAQ to another site and see what your problems are. However, i am not sure if i have the correct file. Is this it? ... http://cvs.apache.org/viewcvs.cgi/xml-fop/src/documentation/content/xdocs/faq.xml Also, please do not point directly to the specific URLs on the website for the DTDs. It will actually have no effect, because the entity resolver will use the PUBLIC Identifer anyway. But we don't want to confuse other people. --David
Re: Forrest Example Sites
Claudia K?nnecke wrote: > Dear project-team, > > we would like to announce that our website at http://www.verit.de is now > running on Forrest 0.6 (eagerly awaiting the 0.7 release). Please feel > free to add it to your growing list of example sites. > > Thank you all for that wonderful piece of software! Thanks, and your site is now added. --David
Re: TOC in FAQ
David Crossley wrote: > I will try to add your FAQ to another site and see what > your problems are. However, i am not sure if i have the > correct file. Is this it? ... Forget that - you already told us the URL in your original message, sorry. Also you proved that your faq.xml is okay by adding it to a fresh 'forrest seed'. At one stage you were using a project-specific sitemap for your FOP website, IIRC. If you are still, i wonder if that has an extraneous match that is interfering with the faq pipeline. --David
Some feedback on using Forrest
Hello, I created a web site which is on-line at http://www.sello-propio.com since a few days ago. It is pretty simple and uses the default skin. But my customer is really happy, both with the quality, and with the speed at which changes can be introduced. I've worked with the svn version of Forrest and I'd like to share some comments on my experience so far. 1. The web site is in Spanish. I had to manually modify the default skin to get rid of English messages, i.e., "Published", "Search", etc. It would be great if the skins would refer to some file which actually holds the translations for these messages. 2. My site.xml file has the following: ... However, is rendered as the link http://sello-propio.com/eventos/ which you can see in the front page. Where did the "index.html" part go? This is annoying because while testing the site in my local hard drive (with URLs like file:///path/to/build/site) these links give me the list of files in the directory instead of the "index.html" file I am expecting. Basically, there seems to be the implicit assumption that the web server will always figure out that index.html is the file that has to be rendered. This is not always the case. In particular several "embedded" web server don't have this logic built in and require a explicit mention of the target file. 3. Why do I get "2005 2005" in the copyright label? I have this in skinconf.xml 2005 Sello Propio. I'd like this to read "2004-2005" but if I put 2004-2005 I get "2004-2005 2004-2005". The skin always doubles up the content of the :( 4. You will notice that the date in the top right of the pages is the current date/time as of the moment you click to see each page. This is supposed to be the "Published" date instead! (I removed the "Publicado", in Spanish, because it is simply not working). The server serving the pages doesn't have Java available. Could this be the reason why I get this weird behaviour? Despite these problems, I'm really happy with Forrest and I want to say thank you to the development team. And if you feel is worth it, I'd be delighted to see this new web site in the list of samples in the Forrest's web site. Thank you, -- Pedro
Re: Some feedback on using Forrest
Pedro I. Sanchez wrote: > Hello, > > I created a web site which is on-line at http://www.sello-propio.com > since a few days ago. It is pretty simple and uses the default skin. > But my customer is really happy, both with the quality, and with the > speed at which changes can be introduced. > > I've worked with the svn version of Forrest and I'd like to share some > comments on my experience so far. Oh thank you. That is exactly what we need - feedback. Also people testing 0.7-dev is helping to create a better release. > 1. The web site is in Spanish. I had to manually modify the default > skin to get rid of English messages, i.e., "Published", "Search", etc. > It would be great if the skins would refer to some file which actually > holds the translations for these messages. This could be quite easily added to the skinconf.xml configuration, rather than a separate file. The skinconf DTD would need a tweak. Would you please add an Issue to our tracker. See the left-hand menu of our Project tab. > 2. My site.xml file has the following: > > > ... > > > > However, is rendered as the link > http://sello-propio.com/eventos/ which you can see in the front > page. Where did the "index.html" part go? This is annoying > because while testing the site in my local hard drive (with > URLs like file:///path/to/build/site) these links give me > the list of files in the directory instead of the "index.html" > file I am expecting. > > Basically, there seems to be the implicit assumption that the > web server will always figure out that index.html is the file > that has to be rendered. This is not always the case. In particular > several "embedded" web server don't have this logic built in > and require a explicit mention of the target file. I wonder if this FAQ would address that issue: http://forrest.apache.org/0.7/docs/faq.html#defaultStartPage > 3. Why do I get "2005 2005" in the copyright label? I have this > in skinconf.xml > > 2005 > Sello Propio. > > I'd like this to read "2004-2005" but if I put 2004-2005 I > get "2004-2005 2004-2005". The skin always doubles up the content of the > :( Strange. That configuration does not seem to be any different to what we have for forrest.apache.org and it works for us. You said that you copied the pelt skin and changed some things. Perhaps you accidently added something to the stylesheets when you were experimenting with changing the English terms. Doing 'diff -r skins/sello-propio skins/pelt' will reveal your changes. > 4. You will notice that the date in the top right of the pages is > the current date/time as of the moment you click to see each page. > This is supposed to be the "Published" date instead! (I removed > the "Publicado", in Spanish, because it is simply not working). > > The server serving the pages doesn't have Java available. Could this > be the reason why I get this weird behaviour? Perhaps there is a problem with your web server. When i request HEAD of that document, it shows that there is no "Last-Modified" header in the response. > Despite these problems, I'm really happy with Forrest and I want to > say thank you to the development team. Thanks to you. If you have any general changes that you needed to make to the pelt skin, then send them in. That would make it easier for you to keep your code synchronised. > And if you feel is worth it, > I'd be delighted to see this new web site in the list of samples > in the Forrest's web site. Of course it is. Done. If you want to change the entry, then send us the output of svn diff site-author/content/xdocs/live-sites.xml --David