Changes

Jump to navigation Jump to search
1,268 bytes added ,  12:23, 8 June 2020
m
no edit summary
< Here are a couple hints on typesetting Vietnamese in ConTeXt, using the fonts from [http://vntex.sf.net/ vnTeX]. Download and install the vntex, vnr (type1), and vnurw packages from [Fonts]http://sourceforge.net/projects/vntex/ that site](unzipping into texmf-local or the equivalent should suffice).
Here are you can find a couple hints on typesetting Vietnamese in ConTeXt, using the fonts from version of [http://vntex.sfvnoss.netorg/ vnTeX]. Download and install the vntex, vnr (type1), and vnurw packages from [http:docs//sourceforgeLaTeX2ConTeXt-vi.net/projects/vntex/ that sitepdf LaTeX in proper ConTeXt] (unzipping into texmf-local or the equivalent should suffice){{todo|where is ''ConTeXt, an Excursion'' in Vietnamese?}}
Add the following lines to your source code (or better, to your local <tt>cont-sys.tex</tt> file):
Assuming you want to input UTF-8 documents by default:
<texcode>\enableregime[utf]</texcode>
Set the default encoding to the Vietnamese encoding:
<texcode>\setupencoding[default=t5]</texcode>
Load the map files for the t5 files in pdfTeX:
<texcode>\loadmapfile[vnr] \loadmapfile[urwvn]</texcode>
Unload the default CMR fonts:
<texcode>\usetypescript[all][computer-modern][t5] \setupbodyfont[reset]</texcode>
With that setup, you can use one of the following preset typescripts:
<texcode>\usetypescript[modern-base][t5] \setupbodyfont[modern]</texcode> <texcode>\usetypescript[modernvariable][t5]\setupbodyfont[modernvariable]</texcode> <texcode>\usetypescript[berry][t5]\usetypescript[palatino][t5]\setupbodyfont[palatino]</texcode> <texcode>\usetypescript[berry][t5]\usetypescript[times][t5]\setupbodyfont[times]</texcode> <texcode>\usetypescript[berry][t5]\usetypescript[postscript][t5]\setupbodyfont[postscript]</texcode>  Vietnamese guide is available at: [http://forum.vnoss.org/viewtopic.php?id=506 VnOSS Forum]
\usetypescript(Quy, all, I strongly recommend not following or propagating the instructions regarding the reorganisation of the directory structure of the <tt>cont-tmf.zip</tt> file as shown on the above linked page: the Linux directory structure is old, and is superseded by current ConTeXt releases. ConTeXt tracks current changes in tetex and TeXLive, which are more definitive than found in, say, Fedora. --[modernvariable][t5User:Adam|Adam] \setupbodyfont[modernvariable])
\usetypescript[berry][t5]Yes, I see. But I can't have the latest tetex now in Fedora distribution, and I haven't time to compile tetex-beta from the source :( So it's the only solution which allows me to have a working system for ConTeXt :) \usetypescriptMaybe I'll try TeXLive later. Thanks. -- [palatino][t5User:NguyenDaiQuy|Quy] \setupbodyfont[palatino]
\usetypescriptOk! Just installed teTeX-beta-20041128 and ConTeXt works well now :-) --[berry][t5] \usetypescript[times][t5User:NguyenDaiQuy|Quy] \setupbodyfont[times]
\usetypescript[berry[Category:Fonts][t5] \usetypescript[postscript][t5Category:Languages] \setupbodyfont[postscript]

Navigation menu