Pascal, Another good idea ! It's a really good alternative to use this special combined character №
here is an fo example font-family="ArialUnicodeMS">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA№AAAAAAAAAAAAAAAAA</fo:inline></fo:block> or font-family="ArialUnicodeMS">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA№AAAAAAAAAAAAAAAAA</fo:inline></fo:block> Do you know why degree character break the line ? Christian Pestel [email protected]-----Message d'origine----- From: Pascal Sancho
Sent: Thursday, October 25, 2012 4:53 PM To: [email protected] Subject: Re: Word secability on character #176 Note that there is an unicode for "numéro" sign: № But we improperly replace it with 'N' + degree symbol, witch is on keyboard.This mistake is probably the cause of the break opportunity between 'N' and '°'.
2012/10/25 Christian Pestel <[email protected]>:
Thank you Pascal, it's a good idea ! Here is my example with the 2 Pascal solutions :First solution : <fo:inline keep-together.within-line="always"> arround the° character <fo:block><fo:inline font-size="14pt" font-family="Helvetica">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN</fo:inline><fo:inline keep-together.within-line="always" font-size="14pt" font-family="Helvetica">°</fo:inline><fo:inline font-size="14pt" font-family="Helvetica">AAAAAAAAAAAAAAAAAA</fo:inline></fo:block> Second solution : Word joined / ⁠ before ° character <fo:block><fo:inline font-size="14pt" font-family="Helvetica">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN⁠°AAAAAAAAAAAAAAAAAA</fo:inline></fo:block> -----Message d'origine----- From: Pascal Sancho Sent: Thursday, October 25, 2012 9:33 AM Hi, I'm not familiar with hyphenation patterns. As a starting point, you can read [1]. That said, you can insert a WJ char (Word Joiner, ie: ⁠) where you want no break, in your case, just before the '°' character. FOP behaves as expected with it. [1] http://xmlgraphics.apache.org/fop/1.1/hyphenation.html#patterns 2012/10/24 Christian Pestel <[email protected]>:Hi Pascal, I clarify my request. We don't use fophyph.jar, so what is the list of characters which cut words ? Is this list configurable ? Thank -----Message d'origine----- From: Christian Pestel Sent: Wednesday, October 24, 2012 5:59 PM To: [email protected] Subject: Re: Word secability on character #176 Thank you Pascal.Is there a possibility to indicate in the config Fop to do not cut on thischaracter ? -----Message d'origine----- From: Pascal Sancho Sent: Wednesday, October 24, 2012 5:47 PM Hi, You should use the keep-together property (see [1]): <fo:inline keep-together.within-line="always">...</fo:inline> [1] http://www.w3.org/TR/2006/REC-xsl11-20061205/#keep-together 2012/10/24 Christian Pestel <[email protected]>:Hi, Fop don’t cut a long word like “AAAAAAAAAAAAAAAABBBBBBBBBBBB” The pdf result is AAAAAAAAAAAAAAAABBBBB the end of line is truncated. That’s ok. Fop cut a long word like “AAAAAAAAAAAAAAAA BBBBBBBBBBBB” on the space character. The pdf result is AAAAAAAAAAAAAAAA BBBBBBBBBBBB That’s ok. But on the word “AAAAAAAAAAAAAAAAN°BBBBBBBBBBBB” The pdf result is AAAAAAAAAAAAAAAAN °BBBBBBBBBBBB I would like this result AAAAAAAAAAAAAAAAN°BBBBBBBBBBBB Have you a solution to not cut on the ° (#176) character ? Thanks.
-- pascal --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected]For additional commands, e-mail: [email protected]
Degree_or_Number.pdf
Description: Adobe PDF document
<?xml version="1.0" encoding="utf-8"?><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:bd="http://www.bdoc.com/2001/XBD/Format"><fo:layout-master-set><fo:sim ple-page-master master-name="Section_1-Iteration_1" page-width="21cm" page-height="29.7cm" margin-top="0.5cm" margin-bottom="1cm" margin-right="2.5cm" margin-left="2.5cm"> <fo:region-body margin-top="2cm" margin-bottom="1.5cm"/> <fo:region-before region-name="Section_1-Iteration_1-Head" extent="2cm"/> <fo:region-after region-name="Section_1-Iteration_1-Foot" extent="1.5cm"/> </fo:simple-page-master></fo:layout-master-set><fo:declarations> <x:xmpmeta xmlns:x="adobe:ns:meta/"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/"> <!-- XMP Rights properties go here --> <xmpRights:Owner></xmpRights:Owner> </rdf:Description> <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> <!-- Dublin Core properties go here --> <dc:title></dc:title> <dc:creator></dc:creator> <dc:description></dc:description> </rdf:Description> <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/"> <!-- Adobe PDF Schema properties go here --> <pdf:Keywords></pdf:Keywords> </rdf:Description> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"> <!-- XMP properties go here --> <xmp:CreatorTool>BdocPDF V5.0</xmp:CreatorTool> </rdf:Description> </rdf:RDF> </x:xmpmeta> </fo:declarations><fo:page-sequence initial-page-number="1" master-reference="Section_1-Iteration_1" force-page-count="no-force" white-space-collapse="false"><fo:static-content flow-name="Section_1-Iteration_1-Head"><fo:block font-family="Helvetica" font-size="1pt" color="white" >^{PSTOCK=paper_0}</fo:block></fo:static-content><fo:flow flow-name="xsl-region-body" widows="2" orphans="2" font-size="10" font-family="Helvetica"><fo:block color="#000000" line-height="1.2"><fo:inline font-family="Helvetica" font-size="12pt"><fo:leader leader-length="0pt"></fo:leader>Caractère Degr ° </fo:inline><fo:inline font-family="Helvetica font-size="12pt"><fo:leader leader-length="0pt"></fo:leader>Hexa B0</fo:inline></fo:block><fo:block color="#000000" line-height="1.2"><fo:inline font-family="Helvetica" font-size="12pt"><fo:leader leader-length="0pt"></fo:leader>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN°AA AAAAAAAAAAAAAAAAAAAAA</fo:inline><fo:inline font-family="Helvetica" font-size="12pt"><fo:leader leader-length="0pt"></fo:leader>AAAAAAAAAA</fo:inline><fo:inline font-family="Helvetica" font-size="12pt"><fo:leader leader-length="0pt"></fo:leader> </fo:inline></fo:block><fo:block color="#000000" line-height="1.38"><fo:leader></fo:leader></fo:block><fo:block color="#000000" line-height="1.2"><fo:inline font-size="12pt" font-family="Helvetica"><fo:leader leader-length="0pt"></fo:leader>Caractèr Numéro </fo:inline><fo:inline font-size="12pt font-family="ArialUnicodeMS"><fo:leader leader-length="0pt"></fo:leader>â</fo:inline><fo:inline font-size="12p " font-family="Helvetica"><fo:leader leader-length="0pt"></fo:leader> </fo:inline><fo:inline font-size="12pt" font-family="Helvetica"><fo:leader leader-length="0pt"></fo:leader>Hexa </fo:inline><fo:inline font-size="12pt" font-family="Helvetica"><fo:leader leader-length="0pt"></fo:leader>2116;</fo:inline></fo:block><fo:block color="#000000" line-height="1.2"><fo:inline font-size="12pt" font-family="Helvetica"><fo:leader leader-length="0pt"></fo:leader>AAAAAAAAAAAAAAAAAAAAAAAAAAAA</fo:inline><fo: inline font-size="12pt" font-family="Helvetica"><fo:leader leader-length="0pt"></fo:leader>AAAAAAAAAA</fo:inline><fo:inline font-size="12pt" font-family="Helvetica"><fo:leader leader-length="0pt"></fo:leader>A</fo:inline><fo:inline font-size="12pt" font-family="ArialUnicodeMS"><fo:leader leader-length="0pt"></fo:leader>â</fo:inline><fo:inline font-size="12p " font-family="Helvetica"><fo:leader leader-length="0pt"></fo:leader>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA </fo:inline></fo:block><fo:block color="#000000" line-height="1.38"><fo:leader></fo:leader></fo:block><fo:block id="bd-last-page-Section_1-Iteration_1"></fo:block></fo:flow></fo:page-seque nce></fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
