Difference between revisions of "Vietnamese"

From Wiki
Jump to navigation Jump to search
m (Link back to Fonts)
m (Reverted edit of !!!!!!!!!!!!TROLL!!!!!!!!!!!!!!!!!!!!!, changed back to last version by Mojca Miklavec)
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
< [[Fonts]]
+
< [[Fonts]] | [[Encodings and Regimes]] >
  
 
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 [http://sourceforge.net/projects/vntex/ that site] (unzipping into texmf-local or the equivalent should suffice).
 
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 [http://sourceforge.net/projects/vntex/ that site] (unzipping into texmf-local or the equivalent should suffice).
 +
 +
Here you can find a Vietnamese version of [http://vnoss.org/docs/LaTeX2ConTeXt-vi.pdf LaTeX in proper ConTeXt].
 +
 +
{{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):
 
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:
 
Assuming you want to input UTF-8 documents by default:
\enableregime[utf]
+
<texcode>
 +
\enableregime[utf]
 +
</texcode>
 
Set the default encoding to the Vietnamese encoding:
 
Set the default encoding to the Vietnamese encoding:
\setupencoding[default=t5]
+
<texcode>
 +
\setupencoding[default=t5]
 +
</texcode>
 
Load the map files for the t5 files in pdfTeX:
 
Load the map files for the t5 files in pdfTeX:
\loadmapfile[vnr]
+
<texcode>
\loadmapfile[urwvn]
+
\loadmapfile[vnr]
 +
\loadmapfile[urwvn]
 +
</texcode>
 
Unload the default CMR fonts:
 
Unload the default CMR fonts:
\usetypescript[all][computer-modern][t5]
+
<texcode>
\setupbodyfont[reset]
+
\usetypescript[all][computer-modern][t5]
 +
\setupbodyfont[reset]
 +
</texcode>
  
 
With that setup, you can use one of the following preset typescripts:
 
With that setup, you can use one of the following preset typescripts:
\usetypescript[modern-base][t5]
+
<texcode>
\setupbodyfont[modern]
+
\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[modernvariable][t5]
+
(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. --[[User: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 :)
\usetypescript[palatino][t5]
+
Maybe I'll try TeXLive later. Thanks. -- [[User:NguyenDaiQuy|Quy]]
\setupbodyfont[palatino]
 
  
\usetypescript[berry][t5]
+
Ok! Just installed teTeX-beta-20041128 and ConTeXt works well now :-) --[[User:NguyenDaiQuy|Quy]]
\usetypescript[times][t5]
 
\setupbodyfont[times]
 
  
\usetypescript[berry][t5]
+
[[Category:Fonts]]
\usetypescript[postscript][t5]
+
[[Category:International]]
\setupbodyfont[postscript]
 

Revision as of 19:57, 18 March 2006

< Fonts | Encodings and Regimes >

Here are a couple hints on typesetting Vietnamese in ConTeXt, using the fonts from vnTeX. Download and install the vntex, vnr (type1), and vnurw packages from that site (unzipping into texmf-local or the equivalent should suffice).

Here you can find a Vietnamese version of LaTeX in proper ConTeXt.


TODO: where is ConTeXt, an Excursion in Vietnamese? (See: To-Do List)


Add the following lines to your source code (or better, to your local cont-sys.tex file): Assuming you want to input UTF-8 documents by default:

\enableregime[utf]

Set the default encoding to the Vietnamese encoding:

\setupencoding[default=t5]

Load the map files for the t5 files in pdfTeX:

\loadmapfile[vnr]
\loadmapfile[urwvn]

Unload the default CMR fonts:

\usetypescript[all][computer-modern][t5]
\setupbodyfont[reset]

With that setup, you can use one of the following preset typescripts:

\usetypescript[modern-base][t5]
\setupbodyfont[modern]
\usetypescript[modernvariable][t5]
\setupbodyfont[modernvariable]
\usetypescript[berry][t5]
\usetypescript[palatino][t5]
\setupbodyfont[palatino]
\usetypescript[berry][t5]
\usetypescript[times][t5]
\setupbodyfont[times]
\usetypescript[berry][t5]
\usetypescript[postscript][t5]
\setupbodyfont[postscript]


Vietnamese guide is available at: VnOSS Forum

(Quy, all, I strongly recommend not following or propagating the instructions regarding the reorganisation of the directory structure of the cont-tmf.zip 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. --Adam)

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 :) Maybe I'll try TeXLive later. Thanks. -- Quy

Ok! Just installed teTeX-beta-20041128 and ConTeXt works well now :-) --Quy