Re: encoding space in xsl:fo
Andreas L. Delmelle wrote: -Original Message- From: Peter B. West [mailto:[EMAIL PROTECTED] Hi Peter, #160; is A0 in hex; 1100 in binary. Slight adjustment... 160 = 2^7 + 2^5, so 1010 ? (Fresh out of bed, ay? ;-)) Precisely. And I'm not good in the morning. I was thinking along the same lines, but haven't discovered the mapping yet... When this value is represented in UTF-8, it becomes the two-byte sequence How exactly? If you are on a linux system, man utf-8 explains it well. The Unicode manual has an appendix on transformations, which is probably available online. This is from the man page. ENCODING The following byte sequences are used to represent a character. The sequence to be used depends on the UCS code number of the character: 0x - 0x007F: 0xxx 0x0080 - 0x07FF: 110x 10xx 0x0800 - 0x: 1110 10xx 10xx 0x0001 - 0x001F: 0xxx 10xx 10xx 10xx 0x0020 - 0x03FF: 10xx 10xx 10xx 10xx 10xx 0x0400 - 0x7FFF: 110x 10xx 10xx 10xx 10xx 10xx It's a beautiful encoding. A0 (0101 ) uses the two byte form. So, 110x 10xx where the first 5 bits are 000 + the top two bits of the original, i.e. 10, and the remaining 6 bits are the lower 6 bits of the original, i.e. 10 , becomes 110.000.10 10.10 1100 0010 1010 C2 A0 So the result in iso 8859-1 is Â+#xA0; where the fllowing A0 will be interpreted as an ordinary space, I believe. Peter -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ http://folio.bkbits.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svg text and spacing
Hi All I have a little problem. I need to draw a barchart in svg, imbedded in fo which is produced in xsl. The problem is, how do i know where to draw the y axis? What i mean is, If i want numbers on the left side of the axis thus : | 15 | 10 | 5 | 0 |___ | How do i know at what x position to draw the y axis? The scale could be 0 -5, 0 -100 etc... Is there a way to find out how wide/long a particular bit of text will be? Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JFOR for fo:external-graphic
I use jfor but does not suppport content-height and content-width for external image. My problem is the on linux the image rendered are bigger than normal...on window that 's not happen... U know any alternative way for setting size for fo:external-graphic? 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svg text and spacing
Hi Jake, This seems to be a specific svg question. You should ask it in a svg list. However, You can use this: svg:text x=... y=... text-anchor=end.../svg:text In a left-to-right context, your x coordinate corresponds to the right edge of the text box. You can then easily locate your chart. Pascal -Message d'origine- De : Jake Briggs [mailto:[EMAIL PROTECTED] I have a little problem. I need to draw a barchart in svg, imbedded in fo which is produced in xsl. The problem is, how do i know where to draw the y axis? What i mean is, If i want numbers on the left side of the axis thus : | 15 | 10 | 5 | 0 |___ | How do i know at what x position to draw the y axis? The scale could be 0 -5, 0 -100 etc... Is there a way to find out how wide/long a particular bit of text will be? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JFOR for fo:external-graphic
Hi, FOP 0.20.5 doesn't support content-xxx. Use 'height' and 'width' attributes instead. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I use jfor but does not suppport content-height and content-width for external image. My problem is the on linux the image rendered are bigger than normal...on window that 's not happen... U know any alternative way for setting size for fo:external-graphic? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with TTFReader FileNotFoundException
Klearchou Klearchos wrote: Hello all, I am trying to generate the xml file from a ttf file in order to use it with my FOP Engine. I run win2k. I run it exactly as the instructions write but I always take a FileNotFoundException. java -cp fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl.jar;xalan.jar org.apache.fop.fonts.apps.TTFReader -enc ansi f/pala.ttf f/palattf.xml Here I use relative paths. I tried absolute as wellusing the syntax file:/// as the FAQ page instructs. When the website is talking about URIs and URLs, it means as metric file reference inside user-config.xml, not when running TTFReader. When calling the TTFReader from the command line you should always use file paths and *not* URLs, or URIs. Relative paths work for me provided the shell is in the right directory, but if you are having trouble getting relative paths working use absolute paths, e.g. java -cp fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl.jar;xalan.jar org.apache.fop.fonts.apps.TTFReader -enc ansi C:\downloads\FADO\PDFBox\fonts\f\pala.ttf C:\downloads\FADO\PDFBox\fonts\f\pala.xml snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svg text and spacing
Quoting Pascal Sancho [EMAIL PROTECTED]: Hi Jake, This seems to be a specific svg question. You should ask it in a svg list. Oh, yeah, of course. That would be the batik mailing list. Sorry, I didnt even think :) However, You can use this: svg:text x=... y=... text-anchor=end.../svg:text In a left-to-right context, your x coordinate corresponds to the right edge of the text box. You can then easily locate your chart. Pascal I will have a play with this, thanks :) Jake -Message d'origine- De : Jake Briggs [mailto:[EMAIL PROTECTED] I have a little problem. I need to draw a barchart in svg, imbedded in fo which is produced in xsl. The problem is, how do i know where to draw the y axis? What i mean is, If i want numbers on the left side of the axis thus : | 15 | 10 | 5 | 0 |___ | How do i know at what x position to draw the y axis? The scale could be 0 -5, 0 -100 etc... Is there a way to find out how wide/long a particular bit of text will be? - 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: JFOR for fo:external-graphic
We're not really JFOR support although JFOR has been integrated into FOP and RTF support will be part of the next release. Anyway, the fact that you're talking about Linux brings some warning lights up. JFOR is optimized for MS Word which is not available for Linux. What application do you use to open the generated RTF file? OpenOffice, for example, is horrible when it comes to RTF import. So we first have to find out whether the generated RTF is different between Windows and Linux or if the generated RTF displays differently in different applications. It may not be a JFOR problem after all. On 23.03.2005 09:46:26 [EMAIL PROTECTED] wrote: I use jfor but does not suppport content-height and content-width for external image. My problem is the on linux the image rendered are bigger than normal...on window that 's not happen... U know any alternative way for setting size for fo:external-graphic? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedding texts with different font size in a block...
Hi, I am trying to achieve something that looks like a basic thing to do but I can't find a way to do it. I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! I added a solid border to the block to see the problem. ?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-bottom=2cm margin-left=2.5cm margin-right=2.5cm margin-top=2cm master-name=simple page-height=29.7cm page-width=21cm fo:region-body margin-bottom=1.5cm margin-top=2cm/ fo:region-before extent=2cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block font-family=Helvetica line-height=60pt border-style=solid fo:inline font-size=60pt font-weight=bold BIG /fo:inline fo:inline font-size=40pt font-weight=bold SMALL /fo:inline /fo:block /fo:flow /fo:page-sequence /fo:root Many thanks for any ideas to solve this problem! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedding texts with different font size in a block...
Hi, I am trying to achieve something that looks like a basic thing to do but I can't find a way to do it. I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! I added a solid border to the block to see the problem. ?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-bottom=2cm margin-left=2.5cm margin-right=2.5cm margin-top=2cm master-name=simple page-height=29.7cm page-width=21cm fo:region-body margin-bottom=1.5cm margin-top=2cm/ fo:region-before extent=2cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block font-family=Helvetica line-height=60pt border-style=solid fo:inline font-size=60pt font-weight=bold BIG /fo:inline fo:inline font-size=40pt font-weight=bold SMALL /fo:inline /fo:block /fo:flow /fo:page-sequence /fo:root Many thanks for any ideas to solve this problem! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: encoding space in xsl:fo
-Original Message- From: Peter B. West [mailto:[EMAIL PROTECTED] If you are on a linux system, man utf-8 explains it well. The Unicode manual has an appendix on transformations, which is probably available online. snip / Big 'THANKS' for the clarification! (Although I should've been able to come up with that myself... Well, too early for you, way past midnight for me :-) Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Embedding texts with different font size in a block...
-Original Message- From: Patrick JUSSEAU [mailto:[EMAIL PROTECTED] Hi, I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! If I get the problem correctly, the 'display-align' property[1] would solve a lot of your problems, but... in FOP 0.20.5 it was only partially implemented, and works only on table-cells and block-containers (not regular blocks). Should be enough to offer you a quite straightforward workaround though... HTH! Greetz, Andreas [1] http://www.w3.org/TR/xsl/slice7.html#display-align - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding texts with different font size in a block...
Andreas L. Delmelle a écrit : I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! If I get the problem correctly, the 'display-align' property[1] would solve a lot of your problems, but... in FOP 0.20.5 it was only partially implemented, and works only on table-cells and block-containers (not regular blocks). I'm not quite sure about that. I would say that this is somehow related to the line-stacking-strategy property. It is not implemented in Fop 0.20.5 [1] and I don't know which is the fallback behaviour. I guess that setting this property to 'max-height' would solve the problem. But this part of the XSL spec still is unclear to me. As a workaround, you can also set the font-size for the surrounding fo:block to the max size of its inline children (60pt here). Hope this helps, Vincent [1] http://xml.apache.org/fop/compliance.html#fo-property-line-stacking-strategy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding texts with different font size in a block...
On 23 Mar 2005, at 19:20, Vincent Hennebert wrote: Andreas L. Delmelle a écrit : I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! If I get the problem correctly, the 'display-align' property[1] would solve a lot of your problems, but... in FOP 0.20.5 it was only partially implemented, and works only on table-cells and block-containers (not regular blocks). I'm not quite sure about that. I would say that this is somehow related to the line-stacking-strategy property. It is not implemented in Fop 0.20.5 [1] and I don't know which is the fallback behaviour. I guess that setting this property to 'max-height' would solve the problem. But this part of the XSL spec still is unclear to me. As a workaround, you can also set the font-size for the surrounding fo:block to the max size of its inline children (60pt here). Setting the font-size for the surrounding fo:block to the max size of its inline children (60pt here) does produce a better result but the text is still not completely vertically center aligned (There seems to be more space below the text than above it). I wonder if anyone else faced himself with this very same problem and found a good solution for it. This is quite frustrating that this takes so much effort to achieve such a simple thing! Thanks again, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding texts with different font size in a block...
Patrick JUSSEAU a écrit : Setting the font-size for the surrounding fo:block to the max size of its inline children (60pt here) does produce a better result but the text is still not completely vertically center aligned (There seems to be more space below the text than above it). Actually not: if you put letters with non-null descent values (lowercase letters like 'j', 'g', 'p'...) you will have as much white space before as after the letter. If your text only has uppercase letters this will indeed give the feeling that there is more space after. Right now I have no other solution than setting a non-null before space for the block. You will have to hand-tune the space that will depend on the chosen font and size. But there probably are better solutions... It's late for me and I'm a bit tired ;-/ Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]