ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Li Yanrui (李延瑞)" <liyanrui.m2@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \setscript[hanzi] seems broken.
Date: Thu, 20 May 2021 18:45:16 +0800	[thread overview]
Message-ID: <CAFLdaXpmPKnF8EWcRnHvfnye3sA8qv4LCYz4JhwLKNZH7Bbr0Q@mail.gmail.com> (raw)
In-Reply-To: <TYZPR06MB393501AC4501E0D8DBE2C7B1D92A9@TYZPR06MB3935.apcprd06.prod.outlook.com>

Li Yanrui <lyr.m2@live.cn> 于2021年5月20日周四 下午3:15写道:
>
> Hi,
>
> After updating ConTeXt lmtx 2021.05.19 18:22, the line breaking with chinese characters does not work.
>
> The following is a simple example:
>
> ```
> % This font can be downloaded from
> % https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SourceHanSerifSC_EL-M.zip
> \definefontfamily[myfont][serif][sourcehanserifcn]
> \setscript[hanzi]
> \setupbodyfont[myfont,11pt]
> \setuppapersize[A6][A6]
> \starttext
> 北冥有鱼,其名为鲲。鲲之大,不知其几千里也;化而为鸟,其名为鹏。鹏之背,不知其几千里也;怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者,天池也。
> \stoptext
> ```
>
> The command `context` gives the following output:
>
> Overfull \hbox (633.72849pt too wide) in paragraph at lines 7--1
> <2: SourceHanSerifCN-Regular @ 11.0pt> 北冥有鱼,其名为鲲。鲲之大,不知其几千里也;化而为鸟,其名为鹏。鹏之背,不知其几千里也;怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者,天池也。
>

Works fine with the latest version 2021.05.20 11:08.

-- 
Best regards,

Li Yanrui
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2021-05-20 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20  7:14 Li Yanrui
2021-05-20 10:45 ` Li Yanrui (李延瑞) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFLdaXpmPKnF8EWcRnHvfnye3sA8qv4LCYz4JhwLKNZH7Bbr0Q@mail.gmail.com \
    --to=liyanrui.m2@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).