I'm trying to use FOP 2.0 to render Thai language. FOP doesn't really support Thai script, so I'm using an external program (libthai) to do glyph composition and word breaking. Thai doesn't use spaces to separate words, so I was just inserting zero width spaces to separate words. This works fine. However, for justified text, these zero width spaces don't stretch, so nothing happens, I get no justified text. So, I tried to use fo:character with character set to zero width space, and setting the letter-spacing.maximum to allow some stretching. But now FOP doesn't seem to treat the zero width space as such this way, it doesn't break anymore at all!

Note that Thai does make use of regular spaces to separate sentences and for other purposes but there's no guarantee that you have spaces in a given paragraph or in case of long sentences.

Is there a way to insert a breakable space with minimum and optimum to zero width and some small value for maximum?

Carlos


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to