Yue Wang wrote:
- It is ugly to produce a paragraph whose last line only consists one Chinese character. In order to avoid that, tex82 programmers should write very complicated macros. So many developers here tend to ignore this problem. However, in LuaTeX, this is quite easy. It is simple to scan the position before the punctuation and \par in lua, and insert a line break penalty there.
ok, but it might even be more clever, like minimum number of glyphs on last line or so (and words in case of other scripts)
- Punctuation compression. In the past this is not easy to do (a lot of macros should be defined), and because each Chinese fonts are so distinctly designed, their punctuations' positions in the character box are different. So different parameters should be applied when different fonts are involved in typesetting. However, LuaTeX make it possible to calculate character bounding box information, so punctuation compression is as easy as re-setting the punctuation width.
i had code for that but removes it as fonts are pretty inconsistent; i will look into that again when we have (1) a couple of reference fonts without bugs in the tex distribution and (2) wiki pages with info about the quality of fonts (can later become a database); otherwise we end up in messy support situations
But we (me, Li Yanrui, Chen Zhichu) as the board members of the Chinese TeX Society, will try our best to organized the typesetting discussion on local forums, taking different opinions into consideration, and later provide a complete specification as long as we can.
that would be very helpful
pace, we will have a very prospective solution near luatex 1.0:)
sure ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------