Re: Fw: RE: [xsl] FO: center a table
"J.Pietschmann" wrote: > This is a FAQ: > http://xmlgraphics.apache.org/fop/faq.html#fo-center-table-horizon Oh, sorry for the noise. Thanks for pointing this out. Regards, --drkm ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fw: RE: [xsl] FO: center a table
Florent Georges wrote: Below is the response I got on XSL-List regarding how to center an 'fo:table' on the page. The described example doesn't work with FOP (neither 0.20.5, 0.90 nor 0.91). I don't know if this is known (as unsupported yet) or not. The table-and-caption FO isn't supported by either version. If it is not supported yet, is there an other way to center a table on the page (on an 'fo:flow') with FOP 0.91? This is a FAQ: http://xmlgraphics.apache.org/fop/faq.html#fo-center-table-horizon J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MathML-Extension - warning at compile time, errors in runtime
Klaus Liebler wrote: This day I played aroud with fop, v 0.91 beta and the included MathML-Extension. ... [javac] Note: ...\org\apache\fop\mathml\MathMLElementMapping.java > uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. You can safely ignore this warning. Google for "-Xlint:unchecked" to get some explanations. The resulting file mathml-fop.jar is only 7kByte. There isn't all that much code in either jeuclid or the FOP MathML extension. docbook>fop\fop.bat mathml.fo mathml.pdf Unknown formatting object http://www.w3.org/1998/Math/MathML^math ... Can anybody please help me! What did I wrong? FOP didn't find the MathML element mapping. It seems fop.bat doesn't use the global CLASSPATH in its overriding class path settings. I'd say you have to edit fop.bat, adding the mathml-fop.jar to the LOCALCLASSPATH. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: RE: [xsl] FO: center a table
Hi Below is the response I got on XSL-List regarding how to center an 'fo:table' on the page. The described example doesn't work with FOP (neither 0.20.5, 0.90 nor 0.91). I don't know if this is known (as unsupported yet) or not. If it is not supported yet, is there an other way to center a table on the page (on an 'fo:flow') with FOP 0.91? Thanks for your help. Regards, --drkm drkm wrote: > From Florent Georges Tue Dec 27 17:50:26 2005 > Date: Tue, 27 Dec 2005 17:50:26 +0100 (CET) > From: Florent Georges <[EMAIL PROTECTED]> > Subject: RE: [xsl] FO: center a table > To: [EMAIL PROTECTED] > MIME-Version: 1.0 > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > "G. Ken Holman" wrote: > [ I let the complete quotation, to can easily forward it > to the FOP ML. Response below. ] > > The way to centre a table is to use table-and-caption and > > use the "centre contents in inline-progression direction" > > directive which happens to be named "text-align=" (don't > > be distracted by the name of > > the property, that name applies even when aligning graphic > > content inside of a content window). > > There is an explicit paragraph in 6.7.2 that states the > > presence of this inheritable attribute are "placed > > relative to the context-rectangle...as specified by the > > text-align trait". That gives credence to the > > interpretation of "text-align" to be "centre contents in > > the inline-progression direction". > > So, in the absence of table-and-caption, the table is not > > centred, but when present, the table-and-caption centres > > the table. I believe > > the XSL-FO 1.0 specification is quite explicit on this. > > The instance below works just as expected in Antenna House > > and Ibex, though I do not get the expected results from > > XEP. The first test doesn't use table-and-caption, while > > the other two do, the first with > > an explicit specification of text-align= and the second > > with an inherited specification of text-align=. Thus, the > > second and third tables should be centred. > > > > http://www.w3.org/1999/XSL/Format"; > >font-family="Times" font-size="20pt"> > > > > > page-height="297mm" page-width="210mm" > > margin-top="15mm" margin-bottom="15mm" > > margin-left="15mm" margin-right="15mm"> > > > > > > > > > > > xmlns="http://www.w3.org/1999/XSL/Format";> > > > > Test 1 > > > > > > > >Hello > > > > > > > > > >Test 2 > > > > > > > > > >Hello > > > > > > > > > > > > Test 3 > > > > text-align="start"> > > > > > > Hello > > > > > > > > > > > > > > > > > Thanks for this interesting explanatin, and for the > example. Unfortunately, FOP 0.91 beta, the FO processor I > use, seems to not support 'fo:table-and-caption'. Below the > output from FOP (stable, alpha and beta). The PDF output is > available at: > http://www.fgeorges.org/tmp/center-table-0.90.pdf > http://www.fgeorges.org/tmp/center-table-0.91.pdf > Diagnostics: > ~/drafts/fo> fop-0.20.5 center-table.fo center-table.pdf > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > [INFO] FOP 0.20.5 > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > [INFO] building formatting object tree > [INFO] setting up fonts > [ERROR] file:/x:/eclipse3_workspace/drkm/fo/center-table.fo:19:25 > A table cell must be child of fo:table-row, not > fo:table-body > ~/drafts/fo> fop-0.90 center-table.fo center-table.pdf > Initializing User Agent Configuration > Warning(17/47): fo:table, The collapsing border model on > an fo:table is currently not supported by FOP > Warning(17/47): fo:table, table-layout="auto" is > currently not supported by FOP > fo:table-and-caption is not yet implemented. > Warning(27/66): fo:table, The collapsing border model on > an fo:table is currently not supported by FOP > Warning(27/66): fo:table, table-layout="auto" is > currently not supported by FOP > Warning(38/68): fo:table, The collapsing border model on > an fo:table is currently not supported by FOP > Warning(38/68): fo:table, table-layout="auto" is > currently not supported by FOP > No LayoutManager maker for class class > org.apache.fop.fo.flow.TableAndCaption > No LayoutManager maker for class class > org.apache.fop.fo.flow.TableAndCaption > ~/drafts/fo> fo
MathML-Extension - warning at compile time, errors in runtime
Hello, This day I played aroud with fop, v 0.91 beta and the included MathML-Extension. I downloaded and compiled jeuclid with no errors, copied the jeuclid-2.0.jar file in the lib-directory [..]\docbook\fop\examples\mathml\lib and renamed it there into jeuclid.jar. It`s only 72kByte. Then I started the build.bat in docbook\fop\examples\mathml. The following messages have been displayed: Apache FOP: Build System for MathML extension --- Buildfile: build.xml init: [echo] --- MathML-FOP 0.1-CVS [2002-2004] jeuclid-check: prepare: [echo] Preparing the build directories [mkdir] Created dir: D:\Dokumente und Einstellungen\keyel\Eigene Dateien\Dip lomarbeit\docbook\fop\examples\mathml\build [mkdir] Created dir: D:\Dokumente und Einstellungen\keyel\Eigene Dateien\Dip lomarbeit\docbook\fop\examples\mathml\build\src [mkdir] Created dir: D:\Dokumente und Einstellungen\keyel\Eigene Dateien\Dip lomarbeit\docbook\fop\examples\mathml\build\src\org\apache\fop\mathml prepare-src: [copy] Copying 3 files to D:\Dokumente und Einstellungen\keyel\Eigene Datei en\Diplomarbeit\docbook\fop\examples\mathml\build\src [copy] Copying 1 file to D:\Dokumente und Einstellungen\keyel\Eigene Dateie n\Diplomarbeit\docbook\fop\examples\mathml\build\classes compile: [echo] Compiling the sources [javac] Compiling 3 source files to D:\Dokumente und Einstellungen\keyel\Eig ene Dateien\Diplomarbeit\docbook\fop\examples\mathml\build\classes [javac] This version of java does not support the classic compiler; upgradin g to modern [javac] Note: D:\Dokumente und Einstellungen\keyel\Eigene Dateien\Diplomarbe it\docbook\fop\examples\mathml\build\src\org\apache\fop\mathml\MathMLElement Mapp ing.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. package: [echo] Creating the jar file ./build/mathml-fop.jar [jar] Building jar: D:\Dokumente und Einstellungen\keyel\Eigene Dateien\Di plomarbeit\docbook\fop\examples\mathml\build\mathml-fop.jar BUILD SUCCESSFUL Total time: 3 seconds Shure, Build was succesful, but I'm unsure about the warnings. The resulting file mathml-fop.jar is only 7kByte. I added this file to my classpath and tried to convert the two files example.mml and mathml.fo in [...]docbook\fop\examples\mathml\docs into a pdf-document (after I copied them in the root-directory of my project). The following error messages have been displayed: docbook>fop\fop .bat mathml.fo mathml.pdf Unknown formatting object http://www.w3.org/1998/Math/MathML^math Unknown formatting object http://www.w3.org/1998/Math/MathML^mrow [...] Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Unknown formatting object http://www.w3.org/1998/Math/MathML^mo Intrinsic dimensions of instream-foreign-object could not be determined Intrinsic dimensions of instream-foreign-object could not be determined Intrinsic dimensions of instream-foreign-object could not be determined Intrinsic dimensions of instream-foreign-object could not be determined Can anybody please help me! What did I wrong? Thx in advance, regards Klaus -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.2/208 - Release Date: 20.12.2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSL-FO Question
Ok i figured it out for myself. the break-before property works great for this, just use it with the "column"-value! -Original Message- From: Christian Loock [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005 1:08 PM To: fop-users@xmlgraphics.apache.org Subject: FW: XSL-FO Question >>> Sorry, i wasn't finished with the mail and hit the send button unluckily ;) Hi everybody, i am using the column-count property with the value two on my region body to have a layout like in a newspaper etc. What i'd like to know is if it is possible to force my content to begin in the second column that it looks like the following illustration: - | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | | | Text | | | Text | | | Text | | | | | | | | | | | | | | - Thanks a lot, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: XSL-FO Question
>>> Sorry, i wasn't finished with the mail and hit the send button unluckily ;) Hi everybody, i am using the column-count property with the value two on my region body to have a layout like in a newspaper etc. What i'd like to know is if it is possible to force my content to begin in the second column that it looks like the following illustration: - | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | | | Text | | | Text | | | Text | | | | | | | | | | | | | | - Thanks a lot, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSL-FO Question
Hi everybody, i am using the column-count property with the value two on my region body to have a layout like in a newspaper etc. What i'd like to know is if it is possible to force my content to begin in the second column that it looks like the following illustration: - | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | | Text | text2 | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: # character for some characters of the font
On Dec 27, 2005, at 12:19, Sheraz Bashir wrote: Hi Everyone, I have embedded the Tahoma font in FOP but it gives me the # character for some characters of the font. Like this one: √ (square root sign) Is there a way in which such unrecognized symbols can be added into the character map such that they do not come out as #? You need to embed a font that does have a glyph for the square root sign, in the same way you added the Tahoma font (which seems not to contain such a glyph?) HTH! Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
# character for some characters of the font
Hi Everyone, I have embedded the Tahoma font in FOP but it gives me the # character for some characters of the font. Like this one: √ (square root sign) Is there a way in which such unrecognized symbols can be added into the character map such that they do not come out as #? Thanks, babz
RE: when apache FOP will full support font-family lists and font-selection-strategy ?
Hi Guangxian Zou, You can try to modify this following snippet (full xslt 1.0) to use it with chinese characters. This works fine with Greek charaters that are in the symbol charset but not in the standard charsets (serif/sans serif/courrier). You just need to replace $expression with chinese characters and choose appropriate fo:inline/@font-family... Note: the 1st $expression character is used to replace non latin characters in the translate() function. Hope that helps you Pascal ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψωϑϒϕϖ > -Message d'origine- > De : Jeremias Maerki [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 22 décembre 2005 08:01 > > Both properties are not fully implemented even in the latest > release FOP 0.90alpha1. Either you have to place either the > Chinese or the English text in fo:inlines and specify the > different fonts on the inlines or if you have a TrueType font > that supports both Chinese and English characters you can > have them mixed. The other option is to help us implement > font-selection-strategy and font-family lists. > > On 21.12.2005 14:24:05 Guangxian Zou wrote: > > thanks fop developers. :) i am using fop to translate xml to fo and > > then to pdf. :) I want to mixing chinese and english font, when > > print/render english use english font, and when print/render chinese > > character use chinese font. :) but I don't know how to do that in the > > current fop version (0.20.5). > >can you give me some advice ? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]