-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, thanks for the anwers.
Manuel your advice works. Inserting zero-width spaces doesn't help. But to making the paragraphs left-justified helps for the Chinese document. Anyway, for Chinese texts it seems not necessary to use justified paragraphs, because usually they don't use spaces between their characters. But I'm not a Chinese and I don't know anything about other Asian languages like Japanese or Korean. But so now I need different adjustments for European and Chinese documents. Is there a way to take influence to the Knuth algorithm? At least to switch on or of? Stefan Manuel Mall schrieb: > On Friday 13 April 2007 18:39, Jeremias Maerki wrote: >> The most probably reason is that the whole line-breaking is different >> from 0.20.5 (the code has been rewritten) and FOP still doesn't >> implement all of UAX#14. I can't even tell if 0.20.5 did it right. >> Anyway, we mostly lack the knowledge of non-western scripts and have >> an incomplete implementation, so effects like this are to be >> expected. >> >> As a work-around you can try inserting zero-width spaces to give FOP >> the chance to add more spacing/break possibilities. From the Unicode >> docs: ZWSP: "this character is intended for line break control: it >> has no width, but its presence between two characters does not >> prevent increased letter spacing in justification." >> >> HTH > > Not sure its a UAX#14 line breaking issue. It seems every Chinese > character is correctly handled as a line break opportunity. My sense is > that it is simply the behaviour of the Knuth algorithm which decided > that the FOP 0.93 solution is more aesthetically pleasing. If you look > at the text there are very few elastic spaces in there for > justification and if I remember correctly Knuth doesn't 'like' > (penalises) short last lines in justified paragraphs so it will give > some preferences to the solution with the longer line. > > I am not sure that there are any workarounds apart from making the > paragraph not justified. > > May be adding some ideographic spaces in the right places may help? > > Manuel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGJdaWirQ0Ts08AdMRAgUKAJ9lQCT2sYohQyopgJ5UjXMBZ+VmsQCggbrJ Gii7kJfdHC2DM/TEQjmXBtI= =db8k -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
