ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "黄复雄 via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: 黄复雄 <aahuaang@gmail.com>
Subject: Re: Can't no break between a close punctuation and a open punctuation
Date: Sat, 3 Sep 2022 08:31:44 +0800	[thread overview]
Message-ID: <CAHN0TNgZtDAAQ8hxsmoVtYnMHEOzMhFKw46bNypKAKG11AkjeA@mail.gmail.com> (raw)
In-Reply-To: <2fd0db42-28aa-4036-545c-85376c3132e8@freedom.nl>

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]

> > doc for example:
> >
> > ```lmtx
> > \setscript[hanzi]
> > \usetypescriptfile[mscore]
> > \usebodyfont   [mschinese,20pt]
>
> can you upgrade the chiese section in that file for windows 10+ as the
> old fonts are gone
>
> (i tested with \definedfont[file:mingliu.ttc*chinese @ 10pt])

I adapted type-imp-mscore.mkiv to the situation of the fonts in Win10,
and made type-imp-notocjksc.mkiv  according to the Notocjksc fonts.

I refer to type-imp-ipaex.mkiv, and I don't know if the method in it
is outdated. At least, the test results are fine,
though the resulting PDF is a bit too large to be included in this email.
 ___________________________________________________________________________________
 If your question is of interest to others as well, please add an
entry to the Wiki!

 maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
 archive  : https://bitbucket.org/phg/context-mirror/commits/
 wiki     : https://contextgarden.net
 ___________________________________________________________________________________

[-- Attachment #2: font_testing.lmtx --]
[-- Type: application/octet-stream, Size: 2372 bytes --]

\setupinterlinespace[line=2.5em]
\setscript[hanzi]

\usetypescriptfile[mscore]
\setupbodyfont[mschinese,rm,10.5pt]
% \setupbodyfont[mschinese,ss,10.5pt]
% \setupbodyfont[mschinese,tt,10.5pt]
% \setupbodyfont[mschineseliterate,16pt]

\usetypescriptfile[notocjksc]
% \setupbodyfont[noto,rm,10.5pt]
% \setupbodyfont[noto,ss,10.5pt]
% \setupbodyfont[noto,tt,10.5pt]

\starttext


\chapter{五种字体族 five font styles}


\section {defined 已经定义}


{\rm 中文:“字体测试!” rm, Roman font family}

{\ss 中文:“字体测试!” ss, Sans serif font family}

{\tt 中文:“字体测试!” tt, teletype font family}

$$y = x^2 + 100$$ (mm, cambria 数学字体)


\section {not defined 未定义}


{\hw 中文:“字体测试!” hw, handwritten font family}

{\cg 中文:“字体测试!” cg, calligraphic font family}


\chapter{字体族变形 alternative forms}


\section {defined 已经定义}


{\tf 中文:“字体测试!” tf, typeface}

{\it 中文:“字体测试!” it, italic alternative}

{\bf 中文:“字体测试!” bf, boldface alternative}

{\bi 中文:“字体测试!” bi, bold italic alternative}

{\sl 中文:“字体测试!” sl, slanted alternative}

{\bs 中文:“字体测试!” bs, bold slanted alternative}

{\sc 中文:“字体测试!” sc, small caps alternative}

\section {not defined 未定义}

{\os 中文:“字体测试!” os, old style alternative}

\chapter{繁體字 traditional Chinese}

《大學》之道,在明明德,在親民,在止於至善。\endnote{
程子曰:「親,當作新。」○大學者,大人之學也。明,明之也。明德者,人之所得乎天,而虚靈不昧,以具衆理而應萬事者也。但爲氣禀所拘,人欲所蔽,則有時而昏;然其本體之明,則有未嘗息者。故學者當因其所發而遂明之,以復其初也。新者,革其舊之謂也,言既自明其明德,又當推以及人,使之亦有以去其舊染之污也。止者,必至於是而不遷之意。至善,則事理當然之極也。言明明德、新民,皆當至於至善之地而不遷。蓋必其有以盡夫天理之極,而無一毫人欲之私也。此三者,大學之綱領也。}

\placenotes[endnote]


\stoptext

[-- Attachment #3: type-imp-notocjksc.mkiv --]
[-- Type: application/octet-stream, Size: 7264 bytes --]

%D \module
%D   [       file=type-imp-notocjksc,
%D        version=2022.09.03,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=NotoCJKsc Fonts,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.


% usage:
% \usetypescriptfile[notocjksc]
% \setupbodyfont[noto, rm, 10.5pt]
% https://github.com/googlefonts/noto-cjk
% https://fonts.google.com/noto/fonts
% TODO use NotoSansMonoCJKsc-Bold.otf and NotoSansMath-Regular.ttf
% This typescript references type-imp-mscore.mkiv and type-imp-ipaex.mkiv

\starttypescriptcollection[NotoCJKsc]

    \definefontfeature  [zh-default]            [script=default,lang=chinese]
    \definefontfeature  [zh-latin-default]      [zh-default]
    \definefontfeature  [zh-latin-slanted]      [zh-latin-default]            [slant=.2]
    \definefontfeature  [zh-latin-slanted-mono]                               [slant=.2]
    \definefontfeature  [zh-latin-smallcaps]    [zh-latin-default]            [smcp=yes]
    \definefontfeature  [zh-latin-smallcaps-mono]                             [cmcp=yes]

    % .ttf not really needed but we want to force the originals

    \definefontfallback[zh-serifitalic]     [\s!file:NotoSerif-Italic.ttf*zh-latin-default]     [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifbolditalic] [\s!file:NotoSerif-BoldItalic.ttf*zh-latin-default] [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifslanted]    [\s!file:Amiri-Slanted.ttf*zh-latin-slanted]        [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifboldslanted][\s!file:Amiri-BoldSlanted.ttf*zh-latin-slanted]    [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifcaps]       [\s!file:NotoSerif-Regular.ttf*zh-latin-smallcaps]  [0x0000-0x0400][force=yes,rscale=1.0406]

    \definefontfallback[zh-sansitalic]      [\s!file:NotoSans-Italic.ttf*zh-latin-default]      [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sansbolditalic]  [\s!file:NotoSans-BoldItalic.ttf*zh-latin-default]  [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sansslanted]     [\s!file:Amiri-Slanted.ttf*zh-latin-slanted]        [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sansboldslanted] [\s!file:Amiri-BoldSlanted.ttf*zh-latin-slanted]    [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sanscaps]        [\s!file:NotoSans-Regular.ttf*zh-latin-smallcaps]   [0x0000-0x0400][force=yes,rscale=1.0406]

    \definefontfallback[zh-monobold]        [\s!file:courbd.ttf]                                        [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monoitalic]      [\s!file:couri.ttf]                                         [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monobolditalic]  [\s!file:courbi.ttf]                                        [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monoslanted]     [\s!file:Amiri-Slanted.ttf*zh-latin-slanted]                [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monoboldslanted] [\s!file:Amiri-BoldSlanted.ttf*zh-latin-slanted]            [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monocaps]        [\s!file:NotoSansMono-Regular.ttf*zh-latin-smallcaps-mono]  [0x0000-0x0400][force=yes,rscale=1.0406]

    \starttypescript [\s!serif] [noto]
        \setups[\s!font:\s!fallback:\s!serif]
        \definefontsynonym [\s!Serif]           [\s!file:NotoSerifCJKsc-Regular.otf]   [\s!features=zh-default] % use [notoserifcjksc] for first time loading
        \definefontsynonym [\s!SerifItalic]     [\s!file:NotoSansCJKsc-Regular.otf][\s!features=zh-default,\s!fallbacks=zh-serifitalic]
        \definefontsynonym [\s!SerifBold]       [\s!file:NotoSerifCJKsc-Bold.otf]      [\s!features=zh-default] %
        \definefontsynonym [\s!SerifBoldItalic] [\s!file:NotoSansCJKsc-Bold.otf]     [\s!features=zh-default,\s!fallbacks=zh-serifbolditalic]
        \definefontsynonym [\s!SerifSlanted]    [\s!file:NotoSansCJKsc-Regular.otf][\s!features=zh-default,\s!fallbacks=zh-serifslanted]
        \definefontsynonym [\s!SerifBoldSlanted][\s!file:NotoSansCJKsc-Bold.otf]     [\s!features=zh-default,\s!fallbacks=zh-serifboldslanted]
        \definefontsynonym [\s!SerifCaps]       [\s!file:NotoSansCJKsc-Regular.otf][\s!features=zh-default,\s!fallbacks=zh-serifcaps]
    \stoptypescript

    \starttypescript [\s!sans] [noto]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym[\s!Sans]            [\s!file:NotoSansCJKsc-Regular.otf][\s!features=zh-default]
        \definefontsynonym[\s!SansItalic]      [\s!file:NotoSerifCJKsc-Regular.otf]   [\s!features=zh-default,\s!fallbacks=zh-sansitalic]
        \definefontsynonym[\s!SansBold]        [\s!file:NotoSansCJKsc-Bold.otf]   [\s!features=zh-default]
        \definefontsynonym[\s!SansBoldItalic]  [\s!file:NotoSerifCJKsc-Bold.otf]  [\s!features=zh-default,\s!fallbacks=zh-sansbolditalic]
        \definefontsynonym[\s!SansSlanted]     [\s!file:NotoSerifCJKsc-Regular.otf]   [\s!features=zh-default,\s!fallbacks=zh-sansslanted]
        \definefontsynonym[\s!SansBoldSlanted] [\s!file:NotoSerifCJKsc-Bold.otf]  [\s!features=zh-default,\s!fallbacks=zh-sansboldslanted]
        \definefontsynonym[\s!SansCaps]        [\s!file:NotoSerifCJKsc-Medium.otf]   [\s!features=zh-default,\s!fallbacks=zh-sanscaps]
    \stoptypescript

    \starttypescript [\s!mono] [noto]
        \setups[\s!font:\s!fallback:\s!mono]
        \definefontsynonym[\s!Mono]            [\s!file:NotoSansMonoCJKsc-Regular.otf]  [\s!features=zh-default]
        \definefontsynonym[\s!MonoItalic]      [\s!file:NotoSerifCJKsc-Regular.otf  ]       [\s!features=zh-slanted,\s!fallbacks=zh-monoitalic]
        \definefontsynonym[\s!MonoBold]        [\s!file:NotoSansCJKsc-Bold.otf  ]       [\s!features=zh-default,\s!fallbacks=zh-monobold] % NotoSansMonoCJKsc-Bold.otf don't work
        \definefontsynonym[\s!MonoBoldItalic]  [\s!file:NotoSerifCJKsc-Bold.otf]        [\s!features=zh-slanted,\s!fallbacks=zh-monobolditalic]
        \definefontsynonym[\s!MonoSlanted]     [\s!file:NotoSerifCJKsc-Regular.otf  ]       [\s!features=zh-slanted,\s!fallbacks=zh-monoslanted]
        \definefontsynonym[\s!MonoBoldSlanted] [\s!file:NotoSerifCJKsc-Bold.otf]        [\s!features=zh-slanted,\s!fallbacks=zh-monoboldslanted]
        \definefontsynonym[\s!MonoCaps]        [\s!file:NotoSerifCJKsc-Medium.otf  ]       [\s!features=zh-default,\s!fallbacks=zh-monocaps]
    \stoptypescript

    \starttypescript[noto]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [noto] [\s!default]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [noto] [\s!default]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [noto] 
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [cambria] % cambria.ttc. or NotoSansMath-Regular.ttf?
    \stoptypescript

\stoptypescriptcollection


[-- Attachment #4: type-imp-mscore.mkiv --]
[-- Type: application/octet-stream, Size: 12950 bytes --]

%D \module
%D   [       file=type-imp-mscore,
%D        version=2022.09.03,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Microsoft Core Fonts,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.


% usage:
% \usetypescriptfile[mscore]
% \setupbodyfont[mschinese, rm, 10.5pt]

\starttypescriptcollection[mscore]

    % .ttf not really needed but we want to force the originals

    \starttypescript [\s!serif] [mscoretimes] [\s!name]
        \setups[\s!font:\s!fallback:\s!serif]
        \definefontsynonym [\s!Serif]           [\s!file:times.ttf]   [\s!features=\s!default]
        \definefontsynonym [\s!SerifBold]       [\s!file:timesbd.ttf] [\s!features=\s!default]
        \definefontsynonym [\s!SerifItalic]     [\s!file:timesi.ttf]  [\s!features=\s!default]
        \definefontsynonym [\s!SerifBoldItalic] [\s!file:timesbi.ttf] [\s!features=\s!default]
    \stoptypescript

    \starttypescript [\s!sans] [mscorearial] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]           [\s!file:arial.ttf]   [\s!features=\s!default]
        \definefontsynonym [\s!SansBold]       [\s!file:arialbd.ttf] [\s!features=\s!default]
        \definefontsynonym [\s!SansItalic]     [\s!file:ariali.ttf]  [\s!features=\s!default]
        \definefontsynonym [\s!SansBoldItalic] [\s!file:arialbi.ttf] [\s!features=\s!default]
    \stoptypescript

    \starttypescript [\s!sans] [mscorearialnarrow] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]           [\s!file:arialn.ttf]   [\s!features=\s!default]
        \definefontsynonym [\s!SansBold]       [\s!file:arialnb.ttf]  [\s!features=\s!default]
        \definefontsynonym [\s!SansItalic]     [\s!file:arialni.ttf]  [\s!features=\s!default]
        \definefontsynonym [\s!SansBoldItalic] [\s!file:arialnbi.ttf] [\s!features=\s!default]
    \stoptypescript

    \starttypescript [\s!mono] [mscorecourier] [\s!name]
        \setups[\s!font:\s!fallback:\s!mono]
        \definefontsynonym [\s!Mono]           [\s!file:cour.ttf]   [\s!features=\s!none]
        \definefontsynonym [\s!MonoBold]       [\s!file:courbd.ttf] [\s!features=\s!none]
        \definefontsynonym [\s!MonoItalic]     [\s!file:couri.ttf]  [\s!features=\s!none]
        \definefontsynonym [\s!MonoBoldItalic] [\s!file:courbi.ttf] [\s!features=\s!none]
    \stoptypescript

    \starttypescript [\s!sans] [mscoreverdana] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]           [\s!file:verdana.ttf]  [\s!features=\s!default]
        \definefontsynonym [\s!SansBold]       [\s!file:verdanab.ttf] [\s!features=\s!default]
        \definefontsynonym [\s!SansItalic]     [\s!file:verdanai.ttf] [\s!features=\s!default]
        \definefontsynonym [\s!SansBoldItalic] [\s!file:verdanaz.ttf] [\s!features=\s!default]
    \stoptypescript

    \starttypescript[mscore]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [mscoretimes]   [\s!default]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [mscorearial]   [\s!default] [\s!rscale=0.860]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [mscorecourier] [\s!default] [\s!rscale=1.065]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [times]         [\s!default] [\s!rscale=1.020]
    \stoptypescript

    \starttypescript[mscorenarrow,mscore-narrow]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [mscoretimes]       [\s!default]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [mscorearialnarrow] [\s!default] [\s!rscale=0.860]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [mscorecourier]     [\s!default] [\s!rscale=1.065]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [times]             [\s!default] [\s!rscale=1.020]
    \stoptypescript

  % \starttypescript[mscoress]
  %     \definetypeface [mscoress] [\s!ss] [\s!sans]  [mscorearial]   [\s!default]
  %     \definetypeface [mscoress] [\s!rm] [\s!serif] [mscoretimes]   [\s!default] [rscale=1.160]
  %     \definetypeface [mscoress] [\s!tt] [\s!mono]  [mscorecourier] [\s!default] [rscale=1.240]
  %     \definetypeface [mscoress] [\s!mm] [\s!math]  [times]         [\s!default] [rscale=1.185]
  % \stoptypescript

\stoptypescriptcollection

\starttypescriptcollection[microsoft-chinese-old]
    % http://archive1.village.virginia.edu/spw4s/fonts/
    % https://docs.microsoft.com/en-us/typography/fonts/windows_10_font_list
    % This typescript references type-imp-ipaex.mkiv
    % TODO:
    % use simsunb.ttf or mingliub.ttc as fallback for Chinese in ExtB
    % Why Deng.ttf, Dengb.ttf, msyhl.ttc, msyh.ttc, msyhbd.ttc and Dengl.ttf do not work?

    \definefontfeature  [zh-default]            [script=default,lang=chinese]
    \definefontfeature  [zh-latin-default]      [zh-default]
    \definefontfeature  [zh-latin-slanted]      [zh-latin-default]              [slant=.2]
    \definefontfeature  [zh-latin-slanted-mono]                                 [slant=.2]
    \definefontfeature  [zh-latin-smallcaps]    [zh-latin-default]              [smcp=yes]
    \definefontfeature  [zh-latin-smallcaps-mono]                               [cmcp=yes]

    % .ttf not really needed but we want to force the originals

    \definefontfallback[zh-serif]           [\s!file:times.ttf*zh-latin-default]            [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifbold]       [\s!file:timesbd.ttf*zh-latin-default]          [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifitalic]     [\s!file:timesi.ttf*zh-latin-default]           [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifbolditalic] [\s!file:timesbi.ttf*zh-latin-default]          [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifslanted]    [\s!file:Amiri-Slanted.ttf*zh-latin-slanted]    [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifboldslanted][\s!file:Amiri-BoldSlanted.ttf*zh-latin-slanted][0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-serifcaps]       [\s!file:times.ttf*zh-latin-smallcaps]          [0x0000-0x0400][force=yes,rscale=1.0406]

    \definefontfallback[zh-sans]            [\s!file:arial.ttf*zh-latin-default]            [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sansbold]        [\s!file:arialbd.ttf*zh-latin-default]          [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sansitalic]      [\s!file:ariali.ttf*zh-latin-default]           [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sansbolditalic]  [\s!file:arialbi.ttf*zh-latin-default]          [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sansslanted]     [\s!file:Amiri-Slanted.ttf*zh-latin-slanted]    [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sansboldslanted] [\s!file:Amiri-BoldSlanted.ttf*zh-latin-slanted][0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-sanscaps]        [\s!file:arial.ttf*zh-latin-smallcaps]          [0x0000-0x0400][force=yes,rscale=1.0406]

    \definefontfallback[zh-mono]            [\s!file:cour.ttf]                              [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monobold]        [\s!file:courbd.ttf]                            [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monoitalic]      [\s!file:couri.ttf]                             [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monobolditalic]  [\s!file:courbi.ttf]                            [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monoslanted]     [\s!file:Amiri-Slanted.ttf*zh-latin-slanted]    [0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monoboldslanted] [\s!file:Amiri-BoldSlanted.ttf*zh-latin-slanted][0x0000-0x0400][force=yes,rscale=1.0406]
    \definefontfallback[zh-monocaps]        [\s!file:cour.ttf*zh-latin-smallcaps-mono]      [0x0000-0x0400][force=yes,rscale=1.0406]

    \starttypescript [\s!serif] [mschinese]
        \setups[\s!font:\s!fallback:\s!serif]
        \definefontsynonym [\s!Serif]           [\s!file:simsun.ttc]    [\s!features=zh-default,\s!fallbacks=zh-serif]
        \definefontsynonym [\s!SerifItalic]     [\s!file:simkai.ttf]    [\s!features=zh-default,\s!fallbacks=zh-serifitalic]
        \definefontsynonym [\s!SerifBold]       [\s!file:simhei.ttf]    [\s!features=zh-default,\s!fallbacks=zh-serifbold]
        \definefontsynonym [\s!SerifBoldItalic] [\s!file:simhei.ttf]    [\s!features=zh-default,\s!fallbacks=zh-serifbolditalic]
        \definefontsynonym [\s!SerifSlanted]    [\s!file:simfang.ttf]   [\s!features=zh-default,\s!fallbacks=zh-serifslanted]
        \definefontsynonym [\s!SerifBoldSlanted][\s!file:simhei.ttf]    [\s!features=zh-default,\s!fallbacks=zh-serifboldslanted]
        \definefontsynonym [\s!SerifCaps]       [\s!file:STXIHEI.TTF]   [\s!features=zh-default,\s!fallbacks=zh-serifcaps]
    \stoptypescript

    \starttypescript [\s!sans] [mschinese]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym[\s!Sans]            [\s!file:STXIHEI.TTF ]   [\s!features=zh-default,\s!fallbacks=zh-sans]
        \definefontsynonym[\s!SansItalic]      [\s!file:simkai.ttf  ]   [\s!features=zh-default,\s!fallbacks=zh-sansitalic]
        \definefontsynonym[\s!SansBold]        [\s!file:simhei.ttf  ]   [\s!features=zh-default,\s!fallbacks=zh-sansbold]
        \definefontsynonym[\s!SansBoldItalic]  [\s!file:simhei.ttf]     [\s!features=zh-default,\s!fallbacks=zh-sansbolditalic]
        \definefontsynonym[\s!SansSlanted]     [\s!file:simfang.ttf  ]  [\s!features=zh-default,\s!fallbacks=zh-sansslanted]
        \definefontsynonym[\s!SansBoldSlanted] [\s!file:simhei.ttf]     [\s!features=zh-default,\s!fallbacks=zh-sansboldslanted]
        \definefontsynonym[\s!SansCaps]        [\s!file:simhei.ttf   ]  [\s!features=zh-default,\s!fallbacks=zh-sanscaps]
    \stoptypescript

    \starttypescript [\s!mono] [mschinese] % for the previous mschinese-light
        \setups[\s!font:\s!fallback:\s!mono]
        \definefontsynonym[\s!Mono]            [\s!file:simfang.ttf ]   [\s!features=zh-default,\s!fallbacks=zh-mono]
        \definefontsynonym[\s!MonoItalic]      [\s!file:simkai.ttf  ]   [\s!features=zh-slanted,\s!fallbacks=zh-monoitalic]
        \definefontsynonym[\s!MonoBold]        [\s!file:simhei.ttf  ]   [\s!features=zh-default,\s!fallbacks=zh-monobold]
        \definefontsynonym[\s!MonoBoldItalic]  [\s!file:simhei.ttf]     [\s!features=zh-slanted,\s!fallbacks=zh-monobolditalic]
        \definefontsynonym[\s!MonoSlanted]     [\s!file:simkai.ttf  ]   [\s!features=zh-slanted,\s!fallbacks=zh-monoslanted]
        \definefontsynonym[\s!MonoBoldSlanted] [\s!file:simhei.ttf]     [\s!features=zh-slanted,\s!fallbacks=zh-monoboldslanted]
        \definefontsynonym[\s!MonoCaps]        [\s!file:STXIHEI.TTF  ]  [\s!features=zh-default,\s!fallbacks=zh-monocaps]
    \stoptypescript

    \starttypescript[mschinese]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [mschinese] [\s!default]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [mschinese] [\s!default]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [mschinese]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [cambria] % cambria.ttc
    \stoptypescript

    \starttypescript [\s!serif] [mschinese-literate] % for Children's reading material
        \setups[\s!font:\s!fallback:\s!serif]
        \definefontsynonym [\s!Serif]           [\s!file:simkai.ttf ]   [\s!features=zh-default,\s!fallbacks=zh-serif]
        \definefontsynonym [\s!SerifItalic]     [\s!file:simfang.ttf]   [\s!features=zh-default,\s!fallbacks=zh-serifitalic]
        \definefontsynonym [\s!SerifBold]       [\s!file:simhei.ttf ]   [\s!features=zh-default,\s!fallbacks=zh-serifbold]
        \definefontsynonym [\s!SerifBoldItalic] [\s!file:simhei.ttf ]   [\s!features=zh-default,\s!fallbacks=zh-serifbolditalic]
        \definefontsynonym [\s!SerifSlanted]    [\s!file:simfang.ttf]   [\s!features=zh-default,\s!fallbacks=zh-serifslanted]
        \definefontsynonym [\s!SerifBoldSlanted][\s!file:simhei.ttf ]   [\s!features=zh-default,\s!fallbacks=zh-serifboldslanted]
        \definefontsynonym [\s!SerifCaps]       [\s!file:STXIHEI.TTF]   [\s!features=zh-default,\s!fallbacks=zh-serifcaps]
    \stoptypescript

    \starttypescript[mschineseliterate, mschinese-literate]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [mschinese-literate] [\s!default]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [cambria] % cambria.ttc
    \stoptypescript

\stoptypescriptcollection

[-- Attachment #5: Type: text/plain, Size: 496 bytes --]

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2022-09-03  0:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-02  7:06 黄复雄 via ntg-context
2022-08-02  8:36 ` Hans Hagen via ntg-context
2022-08-02 14:08   ` 黄复雄 via ntg-context
2022-08-02 16:25     ` Hans Hagen via ntg-context
2022-09-03  0:31   ` 黄复雄 via ntg-context [this message]
2022-09-03  7:27   ` 黄复雄 via ntg-context
  -- strict thread matches above, loose matches on Subject: below --
2022-07-29 13:41 黄复雄 via ntg-context

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=CAHN0TNgZtDAAQ8hxsmoVtYnMHEOzMhFKw46bNypKAKG11AkjeA@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=aahuaang@gmail.com \
    /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).