Re: [xsl] keeping text together in PDF

Subject: Re: [xsl] keeping text together in PDF
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 16 Jan 2006 15:27:21 -0500
At 2006-01-16 11:36 -0500, Nadia.Swaby@xxxxxx wrote:
As far as I can tell, there is no "separation" being produced.  The FO
document does not have any whitespace between the period and the 125".  I
am starting to think it is a bug with AntennaHouse, as this doesn't happen
with any of the other measurements in the document.

And, it doesn't happen with other formatters, either. Below is a test flow that illustrates how Antenna House treats "." as a word-space character, while XEP and Ibex keep the "." with the following digits.


Interestingly, I tried the second test below in all three engines where I'm declaring that the "W" is a word-space character, and only Ibex seems to respect this. Drop this flow into any page sequence you have in your FO file and it should illustrate the test.

XSL-FO 1.0 sections 4.7.2, 6.6.3 and 7.16.7/8 discuss the treat-as-word-space trait on a character triggering the end of the line. But nowhere do I see that the default trait for this is "true" for the decimal point character, so I'm quite confident this is an AX bug.

I there a way to fix this via XSL, or should I just send a bug report to
AntennaHouse?

Send a report. By the look of your code you are well-versed in recursive templates (though I would have parameterized the substitutions a bit) and you probably could work your way around it, but then you'd be accommodating the tool rather than getting the tool fixed.


In my experience, vendors are very interested to receive bug reports.

I hope this helps.

. . . . . . . . . . . . Ken

<flow xmlns="http://www.w3.org/1999/XSL/Format"; flow-name="frame-body"
      font-family="Times" font-size="20pt">

  <block>This is a test of line breaks:</block>
  <block>XXXXXXXXXXXXXXXWXXXXXXXXXXXXXX .125</block>
  <block>XXXXXXXXXXXXXXXWXXXXXXXXXXXXXXX .125</block>
  <block>XXXXXXXXXXXXXXXWXXXXXXXXXXXXXXXX .125</block>
  <block>XXXXXXXXXXXXXXXWXXXXXXXXXXXXXXXXX .125</block>
  <block>XXXXXXXXXXXXXXXWXXXXXXXXXXXXXXXXXX .125</block>
  <block>XXXXXXXXXXXXXXXWXXXXXXXXXXXXXXXXXXX .125</block>
  <block>XXXXXXXXXXXXXXXWXXXXXXXXXXXXXXXXXXXX .125</block>
  <block>XXXXXXXXXXXXXXXWXXXXXXXXXXXXXXXXXXXXX .125</block>

<block>This is a test of treat-as-word-space:</block>
<block>XXXXXXXXXXXXXXX<character character="W" treat-as-word-space="true"/>XXXXXXXXXXXXXX .125</block>
<block>XXXXXXXXXXXXXXX<character character="W" treat-as-word-space="true"/>XXXXXXXXXXXXXXX .125</block>
<block>XXXXXXXXXXXXXXX<character character="W" treat-as-word-space="true"/>XXXXXXXXXXXXXXXX .125</block>
<block>XXXXXXXXXXXXXXX<character character="W" treat-as-word-space="true"/>XXXXXXXXXXXXXXXXX .125</block>
<block>XXXXXXXXXXXXXXX<character character="W" treat-as-word-space="true"/>XXXXXXXXXXXXXXXXXX .125</block>
<block>XXXXXXXXXXXXXXX<character character="W" treat-as-word-space="true"/>XXXXXXXXXXXXXXXXXXX .125</block>
<block>XXXXXXXXXXXXXXX<character character="W" treat-as-word-space="true"/>XXXXXXXXXXXXXXXXXXXX .125</block>
<block>XXXXXXXXXXXXXXX<character character="W" treat-as-word-space="true"/>XXXXXXXXXXXXXXXXXXXXX .125</block>


</flow>

--
Upcoming XSLT/XSL-FO hands-on courses:  Denver,CO March 13-17,2006
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread