* \setscript[hanzi] and kana
@ 2011-06-22 18:09 Wolfgang Schuster
2011-06-22 22:01 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2011-06-22 18:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
with \setscript[hanzi] kanji are broken at the end of the line but no kana.
\setuplayout[width=4cm]\showframe
\setscript[hanzi]
\enabletrackers[scripts.analyzing]
\starttext \definedfont[file:kozminpr6nregular]
にほんにほんにほんにほん
日本日本日本日本日本日本
\stoptext
Wolfgang
___________________________________________________________________________________
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: \setscript[hanzi] and kana
2011-06-22 18:09 \setscript[hanzi] and kana Wolfgang Schuster
@ 2011-06-22 22:01 ` Hans Hagen
2011-06-23 15:39 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2011-06-22 22:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 22-6-2011 8:09, Wolfgang Schuster wrote:
> Hi,
>
> with \setscript[hanzi] kanji are broken at the end of the line but no kana.
>
> \setuplayout[width=4cm]\showframe
>
> \setscript[hanzi]
>
> \enabletrackers[scripts.analyzing]
>
> \starttext \definedfont[file:kozminpr6nregular]
>
> にほんにほんにほんにほん
>
> 日本日本日本日本日本日本
>
> \stoptext
japanese is not yet defined; we need entries in scrp-ini and scrp-cjk
for that, character categories and initializations and we need japanese
expertise for that
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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: \setscript[hanzi] and kana
2011-06-22 22:01 ` Hans Hagen
@ 2011-06-23 15:39 ` Wolfgang Schuster
2011-06-23 21:59 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2011-06-23 15:39 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
Am 23.06.2011 um 00:01 schrieb Hans Hagen:
> japanese is not yet defined; we need entries in scrp-ini and scrp-cjk for that, character categories and initializations and we need japanese expertise for that
Japanese is supported (it’s only a few extra chars for the chinese code) and worked till February 2011 and I was no able to narrow it down.
The function scripts.preprocess in scrp-ini.lua has at line 381
if originals then c = originals[c] or c end
which change the real character value to 65533 (REPLACEMENT CHARACTER), when i comment the line there is a line break (see attachment).
Wolfgang
[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 7694 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 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: \setscript[hanzi] and kana
2011-06-23 15:39 ` Wolfgang Schuster
@ 2011-06-23 21:59 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2011-06-23 21:59 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users
On 23-6-2011 5:39, Wolfgang Schuster wrote:
>
> Am 23.06.2011 um 00:01 schrieb Hans Hagen:
>
>> japanese is not yet defined; we need entries in scrp-ini and scrp-cjk for that, character categories and initializations and we need japanese expertise for that
>
> Japanese is supported (it’s only a few extra chars for the chinese code) and worked till February 2011 and I was no able to narrow it down.
>
> The function scripts.preprocess in scrp-ini.lua has at line 381
>
> if originals then c = originals[c] or c end
>
> which change the real character value to 65533 (REPLACEMENT CHARACTER), when i comment the line there is a line break (see attachment).
you can comment
-- if not unicode then
-- originals[index], tounicode[index] = 0xFFFD, "FFFD"
-- end
in font-map.lua (delete the cache of jump the otf version number)
but nevertheless we probably need to add some mappings if we want to
treat japanese, like
-- for i=0x03041,0x030FF do if not hash[i] then hash[i] = "japanese"
end end
etc
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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:[~2011-06-23 21:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-22 18:09 \setscript[hanzi] and kana Wolfgang Schuster
2011-06-22 22:01 ` Hans Hagen
2011-06-23 15:39 ` Wolfgang Schuster
2011-06-23 21:59 ` 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).