Re: Table cell, vertical alignment with text and Instream
Thanks a lot Pascal for your comments and help. Jean Message du 18/02/10 15:52 De : Pascal Sancho A : fop-users@xmlgraphics.apache.org Copie à : Objet : Re: Table cell, vertical alignment with text and Instream Readind back your request, you probably want to align the 1st line of each cell of the same row on the same baseline. This is exactly the purpose of the relative-align property, witch unfortunately is not yet supported by FOP. Pascal Pascal Sancho a écrit : Jean, If you want to center each graphic on its own line, you have to adjust its vertical position regarding its vertical size. So this is a graphic-by-graphic treatment, witch cannot be done at cells level. Pascal jean.duracel a écrit : Thanks Pascal for your answer. You are right I'm speaking about the vertical alignment of the image within its line. Putting a vertical-align on the instream does the work. To get this behavior we will have to analyze the cell content, before its xslt transformation to xsl-fo, to have the possibility to put the vertical-align in place ... Any chance to get this behavior from attributes put on the cell only ? Jean Message du 18/02/10 14:52 De : Pascal Sancho Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net
Table cell, vertical alignment with text and Instream
Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : !-- [..] -- fo:table-body fo:table-row fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block Some text vertical centered/fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:blockSome text with instream centered ?fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body !-- [...]-- This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean -- View this message in context: http://old.nabble.com/Table-cell%2C-vertical-alignment-with-text-and-Instream-tp27637607p27637607.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : !-- [..] -- fo:table-body fo:table-row fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block Some text vertical centered/fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:blockSome text with instream centered ?fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body !-- [...]-- This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Hi, If you keep the third cell elements in another table, then it should work. Third cell should be fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:table fo:table-body fo:table-row fo:table-cell display-align=center fo:blockSome text with instream centered/fo:block /fo:table-cell fo:table-cell display-align=center fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /fo:table-cell If you replace the above xsl:fo script with your third cell, it should work as you expected. Venkat. Jeandur wrote: Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : !-- [..] -- fo:table-body fo:table-row fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block Some text vertical centered/fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:blockSome text with instream centered ?fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body !-- [...]-- This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Hi, you can also uses a text-align attribute on the block element. Philippe 2010/2/18 Venkat Reddy vanukuri.ven...@googlemail.com Hi, If you keep the third cell elements in another table, then it should work. Third cell should be fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:table fo:table-body fo:table-row fo:table-cell display-align=center fo:blockSome text with instream centered/fo:block /fo:table-cell fo:table-cell display-align=center fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /fo:table-cell If you replace the above xsl:fo script with your third cell, it should work as you expected. Venkat. Jeandur wrote: Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : !-- [..] -- fo:table-body fo:table-row fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block Some text vertical centered/fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:block fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell fo:table-cell display-align=center border-width=0.5mm border-style=solid fo:blockSome text with instream centered ?fo:instream-foreign-object svg height=20pt width=20pt g style=fill:red; stroke:#00 rect height=20 width=20 x=0 y=0 / /g /svg /fo:instream-foreign-object /fo:block /fo:table-cell /fo:table-row /fo:table-body !-- [...]-- This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Thanks for your answer, but text-align works for horizontal alignment not vertical one Jean Message du 18/02/10 15:22 De : philippe voncken A : fop-users@xmlgraphics.apache.org Copie à : Objet : Re: Table cell, vertical alignment with text and Instream Hi, you can also uses a text-align attribute on the block element. Philippe 2010/2/18 Venkat Reddy Hi, If you keep the third cell elements in another table, then it should work. Third cell should be Some text with instream centered If you replace the above xsl:fo script with your third cell, it should work as you expected. Venkat. Jeandur wrote: Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net attachment: smiley-wink.gif - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Thanks Venkat for your answer, It seems a little bit difficult for us to get this solution working because the xsl-fo is produced automaticaly and the content of the cell could be very difficult to be split in a new table. Jean. Message du 18/02/10 14:57 De : Venkat Reddy A : fop-users@xmlgraphics.apache.org Copie à : Objet : Re: Table cell, vertical alignment with text and Instream Hi, If you keep the third cell elements in another table, then it should work. Third cell should be border-style=solid Some text with instream centered If you replace the above xsl:fo script with your third cell, it should work as you expected. Venkat. Jeandur wrote: Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net
Re: Table cell, vertical alignment with text and Instream
Thanks Pascal for your answer. You are right I'm speaking about the vertical alignment of the image within its line. Putting a vertical-align on the instream does the work. To get this behavior we will have to analyze the cell content, before its xslt transformation to xsl-fo, to have the possibility to put the vertical-align in place ... Any chance to get this behavior from attributes put on the cell only ? Jean Message du 18/02/10 14:52 De : Pascal Sancho A : fop-users@xmlgraphics.apache.org Copie à : Objet : Re: Table cell, vertical alignment with text and Instream Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ? Je crée ma boîte mail www.laposte.net
Re: Table cell, vertical alignment with text and Instream
Jean, If you want to center each graphic on its own line, you have to adjust its vertical position regarding its vertical size. So this is a graphic-by-graphic treatment, witch cannot be done at cells level. Pascal jean.duracel a écrit : Thanks Pascal for your answer. You are right I'm speaking about the vertical alignment of the image within its line. Putting a vertical-align on the instream does the work. To get this behavior we will have to analyze the cell content, before its xslt transformation to xsl-fo, to have the possibility to put the vertical-align in place ... Any chance to get this behavior from attributes put on the cell only ? Jean Message du 18/02/10 14:52 De : Pascal Sancho Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Table cell, vertical alignment with text and Instream
Readind back your request, you probably want to align the 1st line of each cell of the same row on the same baseline. This is exactly the purpose of the relative-align property, witch unfortunately is not yet supported by FOP. Pascal Pascal Sancho a écrit : Jean, If you want to center each graphic on its own line, you have to adjust its vertical position regarding its vertical size. So this is a graphic-by-graphic treatment, witch cannot be done at cells level. Pascal jean.duracel a écrit : Thanks Pascal for your answer. You are right I'm speaking about the vertical alignment of the image within its line. Putting a vertical-align on the instream does the work. To get this behavior we will have to analyze the cell content, before its xslt transformation to xsl-fo, to have the possibility to put the vertical-align in place ... Any chance to get this behavior from attributes put on the cell only ? Jean Message du 18/02/10 14:52 De : Pascal Sancho Jeandur, I don't see anything wrong. In the 3rd cell, since the height of the cell equals to its content, display-align cannot affect it. If you are speaking about the vertical alignment of the image within its line, this is another topic. You can change the vertical alignment of a graphic object (the fo:instream-object in your case) with appropriate properties: either alignment-adjust or the shorthand vertical-align. HTH, Pascal Jeandur a écrit : Dear Fop Users, I'm facing a very strange behavior with fop095/jdk1.6 and mixed content (Instream and text) inside a table cell : . If the text is alone inside the cell, it is centered. . If the instream object is alone inside the cell, it is centered too. . But with booth inside the same cell, it doesn't work. Only the Instream object is centered and the text is bottom aligned. Following the code I'm using : border-style=solid Some text vertical centered border-style=solid border-style=solid Some text with instream centered ? This is very annoying for us, because it seemed to work with fop025 :-( Any suggestions or advice will be armed welcome ! Thanks in advance. Jean - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Horizontal and Vertical Alignment with region-start
Hi, I'm new to XSL-FO and I try to center a rotated text horizontally and vertically in the region-start area. This is the FO-file: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master margin=0mm page-width=70.0mm page-height=38.0mm master-name=kanban fo:region-body background-color=#EE margin-left=8mm/ fo:region-start reference-orientation=270 background-color=#DD extent=8mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=kanban fo:static-content flow-name=xsl-region-start fo:block text-align=centerHello/fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockWorld/fo:block /fo:flow /fo:page-sequence /fo:root The rotated text is centered horizontally (from text view) but not vertically. What do I need to add to center vertically and horizontally? Thanks, Frank -- View this message in context: http://www.nabble.com/Horizontal-and-Vertical-Alignment-with-region-start-tp20340905p20340905.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Horizontal and Vertical Alignment with region-start
Wrap the block(s) in a block-container and use the display-align property: fo:block-container display-align=center fo:block text-align=centerHello/fo:block /fo:block-container Eric Amick Legislative Computer Systems Office of the Clerk -Original Message- From: Frank Niedermann [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 5, 2008 7:36 To: fop-users@xmlgraphics.apache.org Subject: Horizontal and Vertical Alignment with region-start Hi, I'm new to XSL-FO and I try to center a rotated text horizontally and vertically in the region-start area. This is the FO-file: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master margin=0mm page-width=70.0mm page-height=38.0mm master-name=kanban fo:region-body background-color=#EE margin-left=8mm/ fo:region-start reference-orientation=270 background-color=#DD extent=8mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=kanban fo:static-content flow-name=xsl-region-start fo:block text-align=centerHello/fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockWorld/fo:block /fo:flow /fo:page-sequence /fo:root The rotated text is centered horizontally (from text view) but not vertically. What do I need to add to center vertically and horizontally? Thanks, Frank -- View this message in context: http://www.nabble.com/Horizontal-and-Vertical-Alignment-with-region-star t-tp20340905p20340905.html Sent from the FOP - Users mailing list archive at Nabble.com. - 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]
Re: Horizontal and Vertical Alignment with region-start
Frank Niedermann wrote: Hi, I'm new to XSL-FO and I try to center a rotated text horizontally and vertically in the region-start area. This is the FO-file: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master margin=0mm page-width=70.0mm page-height=38.0mm master-name=kanban fo:region-body background-color=#EE margin-left=8mm/ fo:region-start reference-orientation=270 background-color=#DD extent=8mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=kanban fo:static-content flow-name=xsl-region-start fo:block text-align=centerHello/fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockWorld/fo:block /fo:flow /fo:page-sequence /fo:root The rotated text is centered horizontally (from text view) but not vertically. What do I need to add to center vertically and horizontally? You can specify display-align=center on region-start element. Regards, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Horizontal and Vertical Alignment with region-start
Hi Chris, cbowditch wrote: You can specify display-align=center on region-start element. that did the trick - thanks! Frank -- View this message in context: http://www.nabble.com/Horizontal-and-Vertical-Alignment-with-region-start-tp20340905p20356109.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How could I change vertical alignment of list item bullet?
Andrejus, try to remove the whole fo:inline ... and just leave the bullet in the fo:block, like fo:list-item-label end-indent=label-end() fo:block#x2022;/fo:block /fo:list-item-label It seems to do the trick for me. Manuel Manuel, Yes, I've tried that and it really works with latest fop trunk build. Ok, I could stay with this workaround(?) while someone will tell it's totally wrong :). Thanks a lot for your prompt help! Andrejus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How could I change vertical alignment of list item bullet?
Hi, I'm trying to use FOP 0.93 and while using similar to this syntax: fo:list-item-label end-indent=label-end() fo:block fo:inline font-family=Symbol #x2022; /fo:inline /fo:block /fo:list-item-label I get very low vertical alignment of that bullet symbol (actually it's almost below baseline of following list item text). I've tried to use display-align=before (both for inline and block), but that didn't help. Is there any other possibility? Thanks in advance. Andrejus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How could I change vertical alignment of list item bullet?
On Monday 12 March 2007 20:27, Andrejus Chaliapinas wrote: Hi, I'm trying to use FOP 0.93 and while using similar to this syntax: fo:list-item-label end-indent=label-end() fo:block fo:inline font-family=Symbol #x2022; /fo:inline /fo:block /fo:list-item-label I get very low vertical alignment of that bullet symbol (actually it's almost below baseline of following list item text). I've tried to use display-align=before (both for inline and block), but that didn't help. Is there any other possibility? I don't think display-align will work. Try alignment-baseline=middle or alignment-baseline=central or try an explicit baseline-shift=... Thanks in advance. Andrejus Manuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How could I change vertical alignment of list item bullet?
Hi, I'm trying to use FOP 0.93 and while using similar to this syntax: fo:list-item-label end-indent=label-end() fo:block fo:inline font-family=Symbol #x2022; /fo:inline /fo:block /fo:list-item-label I get very low vertical alignment of that bullet symbol (actually it's almost below baseline of following list item text). I've tried to use display-align=before (both for inline and block), but that didn't help. Is there any other possibility? I don't think display-align will work. Try alignment-baseline=middle or alignment-baseline=central or try an explicit baseline-shift=... Thanks in advance. Andrejus Manuel I've tried this: fo:list-item-label end-indent=label-end() fo:block alignment-baseline=middle fo:inline font-family=Symbol alignment-baseline=middle #x2022; /fo:inline /fo:block /fo:list-item-label then this: fo:list-item-label end-indent=label-end() fo:block alignment-baseline=central fo:inline font-family=Symbol alignment-baseline=central #x2022; /fo:inline /fo:block /fo:list-item-label then this: fo:list-item-label end-indent=label-end() fo:block fo:inline font-family=Symbol baseline-shift=super #x2022; /fo:inline /fo:block /fo:list-item-label but my bullet symbol still stays at the same low vertical alignment position. The most interesting another fact for me - today's full checkout from trunk and build over examples gets me wrong (i.e. very low vertical alignment) bullets for list.pdf file and correct (at least in the vertical middle of following text) for extensive.pdf. And I can't find what is the difference in blocks properties. Andrejus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How could I change vertical alignment of list item bullet?
On Monday 12 March 2007 22:50, Andrejus Chaliapinas wrote: Hmm, can you post a short sample fo exhibiting the issue? Manuel Could you take a look at first page of \examples\fo\basic\list.fo file from trunk and at generated pdf (list text items with text here is text in the list item body)? If I get that incorrect situation there already - I think we should try to fix it in examples first. Should I post that file's content here? Andrejus, you are correct in that this looks certainly wrong. Wonder in which release this problem was introduced. Any way, this needs some checking / debugging. Thanks for reporting the issue. Any chance of raising a BugZilla for this so we can track it? Andrejus Manuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How could I change vertical alignment of list item bullet?
Andrejus, you are correct in that this looks certainly wrong. Wonder in which release this problem was introduced. Any way, this needs some checking / debugging. Thanks for reporting the issue. Any chance of raising a BugZilla for this so we can track it? I'm not sure when - but I had that problem (sorry for not reporting earlier, just thought it in process for v0.93 release) with checked out trunk and compiled code since the middle of this January already. Also, check this file (which I don't know was built with which version, but looks correctly instead of last one from trunk): http://www.w3.org/Style/XSL/TestSuite/contrib/FOP/list.pdf I'll try to submit Bugzilla entry as well soon. Hope someone could take a prompt look at that (hopefully not that hard to patch) issue. Andrejus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How could I change vertical alignment of list item bullet?
On 12.03.2007 15:29:29 Manuel Mall wrote: On Monday 12 March 2007 22:50, Andrejus Chaliapinas wrote: Hmm, can you post a short sample fo exhibiting the issue? Manuel Could you take a look at first page of \examples\fo\basic\list.fo file from trunk and at generated pdf (list text items with text here is text in the list item body)? If I get that incorrect situation there already - I think we should try to fix it in examples first. Should I post that file's content here? Andrejus, you are correct in that this looks certainly wrong. Wonder in which release this problem was introduced. I've just checked since I was curious. It's already in 0.90. Seems to have to do with font metrics. Take a look at the Area Tree XML. The label has a BPD of 18936 while the body has 14400. Symbol has an ascender of 1010 while Helvetica has 718. Smells like a need for implementing relative-align=baseline to me. Any way, this needs some checking / debugging. Thanks for reporting the issue. Any chance of raising a BugZilla for this so we can track it? Andrejus Manuel Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How could I change vertical alignment of list item bullet?
Hi Jeremias, I've just checked since I was curious. It's already in 0.90. Seems to have to do with font metrics. Take a look at the Area Tree XML. The label has a BPD of 18936 while the body has 14400. Symbol has an ascender of 1010 while Helvetica has 718. Smells like a need for implementing relative-align=baseline to me. Jeremias Maerki Would it be hard to fix? Should I try that myself (hmm, not so easy) or someone else could take a look on that? Thank you, Andrejus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Vertical alignment on one page
Hi Jeremias, I tried that out. There are no keep-with properties. But the first rendered page has no content. Are the tabels coupled? Regards, Joachim -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 3. Februar 2006 15:42 An: fop-users@xmlgraphics.apache.org Betreff: Re: Vertical alignment on one page Joachim, please don't put me in the Cc. I'm always listening into fop-users when I'm available. With FOP 0.91beta you can use space-before.minimum=0cm space-before.optimum=10cm on the second table. The breaking algorithm should (in theory) automatically try to reduce the number of breaks by collapsing the space between the tables like that. No guarantees, though. I haven't tried it in this particular situation. With 0.20.5 you won't have a chance to achive that. On 03.02.2006 15:19:51 Unger, Joachim wrote: Hi Fop-Experts, I have a problem with vertical alignment of tables: If the conent fits in the first page, I want to use the bottom of a page for a second table. This table should be placed as low as possible. if table 1 and 2 fit in first page #---# | TABLE 1 RoW 1 | | TABLE 1 RoW 2 | | TABLE 1 RoW 3 | | | | TABLE 1 RoW n-1 | | TABLE 1 RoW n | | as much space as| | possible| | TABLE 2 RoW 1 | | | | TABLE RoW n-1 | | TABLE RoW n | #---# If the content doesn't fit into the first page, the second table should append top aligned to (directly after) table 1. #---##---# | TABLE 1 RoW 1 || TABLE 2 RoW 4 | | TABLE 1 RoW 2 || ... | | TABLE 1 RoW 3 || TABLE RoW n-1 | | || TABLE RoW n | | TABLE 1 RoW n-1 || | | TABLE 1 RoW n || | | no space|| | | TABLE 2 RoW 1 || | | TABLE 2 RoW 2 || | | TABLE 2 RoW 3 || | #---##---# How can I achieve it? Regards, Jo Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] addresses address companyString/company name title=1 surnameJoachim/surname lastnameUnger/lastname /name streetString/street cityString/city stateString/state zipString/zip phone local=StringString/phone phone local=StringString/phone /address /addresses output0.91.pdf Description: output0.91.pdf stylesheet.xsl Description: stylesheet.xsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Vertical alignment on one page
Hi Fop-Experts, I have a problem with vertical alignment of tables: If the conent fits in the first page, I want to use the bottom of a page for a second table. This table should be placed as low as possible. if table 1 and 2 fit in first page #---# | TABLE 1 RoW 1 | | TABLE 1 RoW 2 | | TABLE 1 RoW 3 | | | | TABLE 1 RoW n-1 | | TABLE 1 RoW n | | as much space as| | possible| | TABLE 2 RoW 1 | | | | TABLE RoW n-1 | | TABLE RoW n | #---# If the content doesn't fit into the first page, the second table should append top aligned to (directly after) table 1. #---##---# | TABLE 1 RoW 1 || TABLE 2 RoW 4 | | TABLE 1 RoW 2 || ... | | TABLE 1 RoW 3 || TABLE RoW n-1 | | || TABLE RoW n | | TABLE 1 RoW n-1 || | | TABLE 1 RoW n || | | no space|| | | TABLE 2 RoW 1 || | | TABLE 2 RoW 2 || | | TABLE 2 RoW 3 || | #---##---# How can I achieve it? Regards, Jo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Vertical alignment on one page
Joachim, please don't put me in the Cc. I'm always listening into fop-users when I'm available. With FOP 0.91beta you can use space-before.minimum=0cm space-before.optimum=10cm on the second table. The breaking algorithm should (in theory) automatically try to reduce the number of breaks by collapsing the space between the tables like that. No guarantees, though. I haven't tried it in this particular situation. With 0.20.5 you won't have a chance to achive that. On 03.02.2006 15:19:51 Unger, Joachim wrote: Hi Fop-Experts, I have a problem with vertical alignment of tables: If the conent fits in the first page, I want to use the bottom of a page for a second table. This table should be placed as low as possible. if table 1 and 2 fit in first page #---# | TABLE 1 RoW 1 | | TABLE 1 RoW 2 | | TABLE 1 RoW 3 | | | | TABLE 1 RoW n-1 | | TABLE 1 RoW n | | as much space as| | possible| | TABLE 2 RoW 1 | | | | TABLE RoW n-1 | | TABLE RoW n | #---# If the content doesn't fit into the first page, the second table should append top aligned to (directly after) table 1. #---##---# | TABLE 1 RoW 1 || TABLE 2 RoW 4 | | TABLE 1 RoW 2 || ... | | TABLE 1 RoW 3 || TABLE RoW n-1 | | || TABLE RoW n | | TABLE 1 RoW n-1 || | | TABLE 1 RoW n || | | no space|| | | TABLE 2 RoW 1 || | | TABLE 2 RoW 2 || | | TABLE 2 RoW 3 || | #---##---# How can I achieve it? Regards, Jo Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Vertical alignment on one page
Oh, a shot from the hip that went wild. Sorry. It doesn't work. In theory, yes, but FOP does not seem to want to minimize the number of pages. On 03.02.2006 15:42:29 Jeremias Maerki wrote: Joachim, please don't put me in the Cc. I'm always listening into fop-users when I'm available. With FOP 0.91beta you can use space-before.minimum=0cm space-before.optimum=10cm on the second table. The breaking algorithm should (in theory) automatically try to reduce the number of breaks by collapsing the space between the tables like that. No guarantees, though. I haven't tried it in this particular situation. With 0.20.5 you won't have a chance to achive that. On 03.02.2006 15:19:51 Unger, Joachim wrote: Hi Fop-Experts, I have a problem with vertical alignment of tables: If the conent fits in the first page, I want to use the bottom of a page for a second table. This table should be placed as low as possible. if table 1 and 2 fit in first page #---# | TABLE 1 RoW 1 | | TABLE 1 RoW 2 | | TABLE 1 RoW 3 | | | | TABLE 1 RoW n-1 | | TABLE 1 RoW n | | as much space as| | possible| | TABLE 2 RoW 1 | | | | TABLE RoW n-1 | | TABLE RoW n | #---# If the content doesn't fit into the first page, the second table should append top aligned to (directly after) table 1. #---##---# | TABLE 1 RoW 1 || TABLE 2 RoW 4 | | TABLE 1 RoW 2 || ... | | TABLE 1 RoW 3 || TABLE RoW n-1 | | || TABLE RoW n | | TABLE 1 RoW n-1 || | | TABLE 1 RoW n || | | no space|| | | TABLE 2 RoW 1 || | | TABLE 2 RoW 2 || | | TABLE 2 RoW 3 || | #---##---# How can I achieve it? Regards, Jo Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Vertical alignment
Hi, display-align=center at the cell works! fo:table-cell display-align=center padding-start=1pt border-style=solid fo:block color=#38528D font-family={$font.family} font-size=14pt Text1 /fo:block /fo:table-cell Dirk Renan Collin wrote: Hello, It seems this functionnality is not implemented yet on fop 0.20.5. Renan Samuel Remacle a écrit: Hello, My problem is the following, I'd like to align vertically a text inside a table-cell but after searching the web I couldn't find the property to do that. So I would be glad if you could help me, how do I put the text in a table-cell, at the middle of that table-cell? Thanks Samuel - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]