![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Dohyun Kim wrote:
2009/2/18 Hans Hagen
: Hi,
There is a new beta: a few additions to math as well as a prelude to new cjk support, now to be triggered explicitly (since the methods differ too much we cannot share them)
\setscript[hangul]
Now the Korean typesetting has become almost perfect. Thanks a lot, Hans. I really appreciate it.
We have three more things to do, however.
1. inter_char_stretch_factor = 2.00 seems to be too large value. I do not think that even Chinese or Japanese would allow that big value. I suggest 0.50 instead. Mr Wang, how do you think about that?
ok
2. Upon tracing output, I get :
..............\*unbatang12ptrmtfrm* 居 ..............\penalty 10000 ..............\*unbatang12ptrmtfrm* ) ..............\penalty 10000 %% this should be deleted. ..............\glue 0.0 plus 6.0 ..............\*unbatang12ptrmtfrm* 하
\panalty10000 after closing parenthesis should be deleted, so that line-breaking can occur at this point.
so ... ..._close = { jamo_initial = stretch_break, korean = stretch_break, chinese = stretch_break, half_width_open = stretch_break, half_width_close = nobreak_stretch, full_width_open = stretch_break, full_width_close = nobreak_stretch, hyphen = nobreak_stretch, non_starter = nobreak_stretch, other = stretch_break, },
3. Line-breaking rule for medieval Korean is a little imperfect. When input string is "가나", all from Hangul Jamo area, I get :
..............\*unbatang12ptrmtfrm* % U+1100 ..............\*unbatang12ptrmtfrm* % U+1161 %% \penalty50 should be inserted here ..............\*unbatang12ptrmtfrm* % U+1102 ..............\*unbatang12ptrmtfrm* % U+1161
As I said in a private email with Hans, ^(OP | LC) allowbreak (LC) is another typesetting rule for Korean, where OP stands for Openings and LC for Leading Consonants (U+1100 .. U+115F). In the above output, as U+1161 is non-LC character, line-breaking should be allowed between U+1161 and U+1102.
ok, but that's the chinese (hanzi) rule set, i added it it, but the chinese ruleset probably needs some more checking btw, there is not much halfwidth correction code enabled yet but first we need to decide on a reference font for chinese (or korean we have the unbatang) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------