ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with the 'scrp-cjk.lua'
@ 2009-11-29  8:14 Yanrui Li
  2009-11-29 12:20 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Yanrui Li @ 2009-11-29  8:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 983 bytes --]

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,
        ... ... ...

-- 
Best regards,

Li Yanrui

[-- Attachment #1.2: Type: text/html, Size: 1300 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with the 'scrp-cjk.lua'
  2009-11-29  8:14 Problem with the 'scrp-cjk.lua' Yanrui Li
@ 2009-11-29 12:20 ` Hans Hagen
       [not found]   ` <c3f901470911290453n7275fe68o7cb4277a23b85293@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2009-11-29 12:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with the 'scrp-cjk.lua'
       [not found]   ` <c3f901470911290453n7275fe68o7cb4277a23b85293@mail.gmail.com>
@ 2009-11-29 13:02     ` Yanrui Li
  2009-11-29 14:49       ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Yanrui Li @ 2009-11-29 13:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1744 bytes --]

2009/11/29 Yanrui Li <liyanrui.m2@gmail.com>

>
>
> 2009/11/29 Hans Hagen <pragma@wxs.nl>
>
> 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

[-- Attachment #1.2: Type: text/html, Size: 2715 bytes --]

[-- Attachment #2: test.tar.gz --]
[-- Type: application/x-gzip, Size: 41352 bytes --]

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with the 'scrp-cjk.lua'
  2009-11-29 13:02     ` Yanrui Li
@ 2009-11-29 14:49       ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2009-11-29 14:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-29 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-29  8:14 Problem with the 'scrp-cjk.lua' Yanrui Li
2009-11-29 12:20 ` Hans Hagen
     [not found]   ` <c3f901470911290453n7275fe68o7cb4277a23b85293@mail.gmail.com>
2009-11-29 13:02     ` Yanrui Li
2009-11-29 14:49       ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).