You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Fabrizio Caldas <fa...@gmail.com> on 2006/03/21 17:57:41 UTC

"zero width space" and FOP

Hi,

I'm using the embedded FOP version 0.20.5 to create PDFs.
The text of the PDF comes from properties files.
These properties files are in many different languages.
Only Chinese and Japanese have overflowing characters.

I've asked the translators to insert "zero width spaces" in Unicode.
All the properties file are UTF-8 encoded.
They tried inserting zero width spaces as they know how, but up to now
it doesn't seem to work.

Has any one ever tried to insert zero width spaces into a properties
file and use it to create a PDFs?

I'm trying to find a way to recognize the zero width space that they
insert in the properties file or maybe replace whichever characters
they insert as a &200B.

Thanks in advance,

Fabrizio.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: "zero width space" and FOP

Posted by Fabrizio Caldas <fa...@gmail.com>.
All,

Thanks for the help.

I the end my solution was to download a Unicode editor (http://www.unipad.org/).

With it I was able to insert the zero width spaces to the resource
bundle (.properties) and the PDF no longer had overflowing characters.

Thanks again,

Fabrizio.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: "zero width space" and FOP

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
FYI, this does not happen anymore in FOP Trunk (i.e. in the next release).

On 22.03.2006 01:39:33 Paul Vinkenoog wrote:
<snip/>
> The only thing I dislike is that it also uses the ZWSPs to insert
> whitespace for line justification. I know the standard allows this,
> but I wish there was an option to turn that behaviour off, because it
> pulls apart path elements, URL components etc.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: "zero width space" and FOP

Posted by Paul Vinkenoog <pa...@vinkenoog.nl>.
Hello Fabrizio,

> I've asked the translators to insert "zero width spaces" in Unicode.
> All the properties file are UTF-8 encoded.
> They tried inserting zero width spaces as they know how, but up to
> now it doesn't seem to work.
>
> Has any one ever tried to insert zero width spaces into a properties
> file and use it to create a PDFs?

I'm not sure what you mean with "properties files" but I have written
XSLT templates that insert zero-width spaces which I specify as:
  &#x200B;

After transformation, they wind up as UTF-8 encoded zero-width spaces
(Unicode 200B hex) in the .fo file.

FOP 0.20.5 handles them correctly, breaking lines at such spots if and
where appropriate.

The only thing I dislike is that it also uses the ZWSPs to insert
whitespace for line justification. I know the standard allows this,
but I wish there was an option to turn that behaviour off, because it
pulls apart path elements, URL components etc.


Greetings,
Paul Vinkenoog

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: "zero width space" and FOP

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
As far as I know, zero-width spaces are widely used with 0.20.5. The
next FOP release will also support zero-width spaces (0.91beta doesn't).

That said, I think you should have a look at the XSL-FO files you
generate from your properties files. You can then backtrack from there
to find out why the zero-width spaces don't work, or rather why not the
right characters are generated/used. The problem is either the character
used by your translators or by your converter.

Good luck.

On 21.03.2006 17:57:41 Fabrizio Caldas wrote:
> I'm using the embedded FOP version 0.20.5 to create PDFs.
> The text of the PDF comes from properties files.
> These properties files are in many different languages.
> Only Chinese and Japanese have overflowing characters.
> 
> I've asked the translators to insert "zero width spaces" in Unicode.
> All the properties file are UTF-8 encoded.
> They tried inserting zero width spaces as they know how, but up to now
> it doesn't seem to work.
> 
> Has any one ever tried to insert zero width spaces into a properties
> file and use it to create a PDFs?
> 
> I'm trying to find a way to recognize the zero width space that they
> insert in the properties file or maybe replace whichever characters
> they insert as a &200B.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org