ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Chinese hyphenation / line splitting
@ 2012-04-16  8:52 John Devereux
  2012-04-16  8:54 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: John Devereux @ 2012-04-16  8:52 UTC (permalink / raw)
  To: ntg-context


Hi All,

We are having a go at typesetting one of our manuals in Chinese
(gulp). Is there some trick to getting hyphenation working? (Or perhaps
"line-splitting" is a better term, I don't even know if hyphens are used
in Chinese).

What I see in the PDF are unbroken lines running off the edge of the
page. If I manually insert spaces, then the lines do break but seem to
go slightly past the right-hand edge of the paper (so parts of the
characters are lost).

Sample text is from what I think is the Chinese section of Wikipedia,
hopefully is not offensive...

======================================================================

\usemodule[simplefonts]
\setmainfont[Adobe Heiti Std]
%\setmainfont[Arial Unicode MS]

\starttext
\mainlanguage[zh]

阿梅莉亚·埃尔哈特(1897年-1937年)是一位著名的美國女性飛行員和女权运动者。埃爾哈特是第一位获得飞行优异十字勋章、第一位独自飞越大西洋的女飞行员。她还创了许多其他纪录,将自身的飞行经历編寫成非常畅销的書籍,並協助建立了一个女飞行员组织。1937年,當她嘗試全球首次環球飛行時,在飛越太平洋期間神秘失蹤。至今为止她的生活、生涯和消失一直使人神往。阿梅莉亚·埃尔哈特在她生前就已经是一名国际名人了。她腼腆感人的外貌、独立性、持久性、在压力下保持安静、勇气、有目标的生涯以及年轻时就失踪使得她在流行文化中成为一个持久的名人。关于她的生平出版过数百文章和许多书,这些书往往作为尤其是对女孩子的勉励的读物。

\stoptext

======================================================================

Thanks,

John


-- 

John Devereux
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Chinese hyphenation / line splitting
  2012-04-16  8:52 Chinese hyphenation / line splitting John Devereux
@ 2012-04-16  8:54 ` Wolfgang Schuster
  2012-04-16 11:01   ` John Devereux
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2012-04-16  8:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 16.04.2012 um 10:52 schrieb John Devereux:

> 
> Hi All,
> 
> We are having a go at typesetting one of our manuals in Chinese
> (gulp). Is there some trick to getting hyphenation working? (Or perhaps
> "line-splitting" is a better term, I don't even know if hyphens are used
> in Chinese).
> 
> What I see in the PDF are unbroken lines running off the edge of the
> page. If I manually insert spaces, then the lines do break but seem to
> go slightly past the right-hand edge of the paper (so parts of the
> characters are lost).
> 
> Sample text is from what I think is the Chinese section of Wikipedia,
> hopefully is not offensive...
> 
> ======================================================================
> 
> \usemodule[simplefonts]
> \setmainfont[Adobe Heiti Std]
> %\setmainfont[Arial Unicode MS]

Add \setscript[hanzi].

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] 3+ messages in thread

* Re: Chinese hyphenation / line splitting
  2012-04-16  8:54 ` Wolfgang Schuster
@ 2012-04-16 11:01   ` John Devereux
  0 siblings, 0 replies; 3+ messages in thread
From: John Devereux @ 2012-04-16 11:01 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:

> Am 16.04.2012 um 10:52 schrieb John Devereux:
>
>> 
>> Hi All,
>> 
>> We are having a go at typesetting one of our manuals in Chinese
>> (gulp). Is there some trick to getting hyphenation working? (Or perhaps
>> "line-splitting" is a better term, I don't even know if hyphens are used
>> in Chinese).
>> 
>> What I see in the PDF are unbroken lines running off the edge of the
>> page. If I manually insert spaces, then the lines do break but seem to
>> go slightly past the right-hand edge of the paper (so parts of the
>> characters are lost).
>> 
>> Sample text is from what I think is the Chinese section of Wikipedia,
>> hopefully is not offensive...
>> 
>> ======================================================================
>> 
>> \usemodule[simplefonts]
>> \setmainfont[Adobe Heiti Std]
>> %\setmainfont[Arial Unicode MS]
>
> Add \setscript[hanzi].

Fantastic, that worked. Thanks Wolfgang.


-- 

John Devereux
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2012-04-16 11:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-16  8:52 Chinese hyphenation / line splitting John Devereux
2012-04-16  8:54 ` Wolfgang Schuster
2012-04-16 11:01   ` John Devereux

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