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 Johannes Stuermer <js...@lrn.com> on 2003/12/31 03:26:30 UTC

Asian language problem

When I'm rendering chinese text with FOP, text does not wrap at the end of a
line. What can cause this?

I'm using tables to control the layout; chinese characters appear correctly,
but text does not wrap; Font: simsun.ttf (embedded); interestingly, word
wrap works as expected when I use English text in the same FO file.

I appreciate any suggestions,
Thanks



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


Re: Asian language problem

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Johannes Stuermer wrote:
> When I'm rendering chinese text with FOP, text does not wrap at the end of a
> line. What can cause this?

FOP breaks lines at breaking spaces and if a word is hyphenated. There
are special provisions for asian languages, but you have to tell that
are you using one, FOP wont detect this from the characters. Try
adding
  language="zh"
or
  language="ja"
if the first doesn't work.

J.Pietschmann

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