Re: [NTG-context] Problem with the 'scrp-cjk.lua'
![](https://secure.gravatar.com/avatar/2259586bbe3f45ed8564afe9bd7a8439.jpg?s=120&d=mm&r=g)
2009/11/29 Yanrui Li
2009/11/29 Hans Hagen
Yanrui Li wrote:
Hi Hans,
In the *hanzi* part of scrp-cjk.lua, there is:
local injectors = { -- [previous] [current] ... ... ... full_width_close = { ... ... ... chinese = nobreak_shrink_break_stretch, ... ... ...
This causes that lines can not be broken after some Chinese punctuations in 'full_width_close' category. I think it should be:
local injectors = { -- [previous] [current] ... ... ... full_width_close = { ... ... ... chinese = stretch_break, ... ... ...
The same problem also arises here:
local injectors = { -- [previous] [current] ... ... ... half_width_close = { ... ... ... chinese = nobreak_shrink_break_stretch, ... ... ...
It seems like it should be:
local injectors = { -- [previous] [current] ... ... ... full_width_close = { ... ... ... chinese = stretch_break, ... ... ...
i have no problem patching that but can you also make a test file then so that we have some benchmark / reference?
Please see the attachment file which includes a test.tex and two pdf files. One is 'patched-test.pdf' shows some line-break after some Chinese punctations. The other is 'no-patched-test.pdf' which seems like there is no line-break after any punctation forever.
Oh, sorry for my attachment file is too big. I deleted the 'no-patched-test.pdf'. Please see this attachment. -- Best regards, Li Yanrui
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Yanrui Li wrote:
Oh, sorry for my attachment file is too big. I deleted the 'no-patched-test.pdf'. Please see this attachment.
ok. patched in next beta ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Yanrui Li