[NTG-context] switching font encodings

Hans Hagen pragma at wxs.nl
Mon Jul 17 11:56:43 CEST 2006


Mojca Miklavec wrote:
> Hello,
>
> I have to print plenty of utf-8-encoded entries from a database. I
> will probably output entries as
>     \contestant{name}{country}{code},
> for example
>     \contestant{Đức Đặng}{VNM}{1}
>
> I have defined
>     \def\contestant#1#2#3{...#1...}
>
> But what's the easiest way to change the encoding to t5 if the country
> code is VNM and to some other encoding if country code is RUS, SER (or
> one of other countries using Cyrillic)?
> I'll probably use
>   
you can try to define multiple typefaces, say mainfont-ec, mainfont-qx, mainfont-t5 and then switch to them using languagespecifics related definitions 

Hans  

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list