Changes

Jump to navigation Jump to search
add Japanese example
=Setup for Japanese= <texcode>% 2024-02 Otared Kavian, Jeong Dal et al.\mainlanguage[jp] \definefontfamily[JapaneseFont][rm][Noto Serif JP] [ it={style:regular,features:{*,slanted}}, sl={style:regular,features:{*,slanted}}, bi={style:bold,features:{* old introduction ,slanted}},force=yes] \definefontfamily[JapaneseFont][Uptodatess][Noto Serif JP] by Pragma [ it={style:regular,features:{*,slanted}}, sl={style:regular,features:{*,slanted}}, bi={style:bold,features: {*,slanted}},force=yes] \definefontfamily[JapaneseFont][tt][http://www.pragma-ade.nl/general/uptodate/up-007-s.pdf screenNoto Serif JP] and [http it={style:regular,features://www.pragma-ade.nl/general/uptodate/up-007-p.pdf paper] version{*,slanted}}, sl={style:regular,features:{* manual by Pragma,slanted}}, bi={style:bold,features: {*,slanted}},force=yes] \definefontfamily[JapaneseFont][math][Tex Gyre Termes Math]%\definefontfamily[JapaneseFont][math][Tex Gyre Pagella Math]%\definefontfamily[JapaneseFont][math][Tex Gyre Aventor] %%%% \setupbodyfont[JapaneseFont,12pt]\setupruby[location=top,voffset=-2ex]\setupwhitespace[manual:mchinese.pdf|Chinese in ConTeXtbig]\setscript[nihongo] (Old 2001) \starttext\ruby{早}{はや}く。いきましょう。\stoptext</texcode>
=Setup for Chinese in ConTeXt=
Get inspirated with importing Chinese fonts with this [https://github.com/BruXy/ConTeXt-Chinese script].
\mainlanguage[cn]
\language[cn]
\enableregime[utf]
\setscript[hanzi] % hyphenation
\setuphead[chapter][command=\ChineseChapter,style={\bf\switchtobodyfont[24pt]}]
\setuphead[section][style={\bf\switchtobodyfont[18pt]}]
 
\setuppagenumbering[state=start,
</texcode>
=Font setup Setup for Korean= Example by Wolfgang (2017-12-06):
You need fonts which contain hangul characters (don’t forget to set a math font because it is used for the symbols in enumerations) and you have to enable linebreaking for Korean with the {{cmd|setscript}} command.
<texcode>
% Wolfgang Schuster 2017-12-06
 
\definefallbackfamily [mainface] [rm] [Nanum Myeongjo] [preset=range:korean]
\definefontfamily [mainface] [rm] [DejaVu Serif]
\stoptext
</texcode>
 
=Outdated=
 
* old introduction [[Uptodate]] by Pragma: [http://www.pragma-ade.nl/general/uptodate/up-007-s.pdf screen] and [http://www.pragma-ade.nl/general/uptodate/up-007-p.pdf paper] version
* manual by Pragma: [[manual:mchinese.pdf|Chinese in ConTeXt]] (Old 2001)
== See also ==

Navigation menu