Gee ... Tacos fix (see thread) worked just fine ... when would I need this?

Joh

Hans Hagen wrote:

> Johannes Graumann wrote:
> 
>>Hello,
>>
>>I just started to experiment with typesetting XML using ConTeXt ...
>>I ran into this problem which I'm unable to solve:
>>1) I added the following rule to my xml map file:
>>        \defineXMLentity        [en]            --
>>2) yet calling &en; in my document results in the TeX equivalent of "-"
>>rather than "--" being typeset.
>>
>>Any pointers?
>>  
>>
> add this to type-exa.tex (or to your doc file)
> 
> \starttypescript [serif,sans,mono] [handling] [noligs]
> 
>   \setupfontsynonym [\typescriptprefix\typescriptone ]
> [handling=\typescriptthree]
>   \setupfontsynonym [\typescriptprefix\typescriptone Bold]
> [handling=\typescriptthree]
>   \setupfontsynonym [\typescriptprefix\typescriptone Slanted]
> [handling=\typescriptthree]
>   \setupfontsynonym [\typescriptprefix\typescriptone Italic]
> [handling=\typescriptthree]
>   \setupfontsynonym [\typescriptprefix\typescriptone BoldSlanted]
> [handling=\typescriptthree]
>   \setupfontsynonym [\typescriptprefix\typescriptone BoldItalic]
> [handling=\typescriptthree]
> 
> \stoptypescript
> 
> explanation for David Arnold (who is eager to know the obscure
> typescript features -): the macro \typescriptprefix{serif} will expand
> to Serif, because in type-def we have the definition:
> 
> \definetypescriptprefix [serif] [Serif]
> \definetypescriptprefix [sans]  [Sans]
> \definetypescriptprefix [mono]  [Mono]
> 
> so, instead of defining 3 times n_of_encodings we can stick to one
> typescriptdefinition which is much more efficient.
> 
> ok, after this is done, you need to define a typeface using this
> handling; because of the nature of the underlying tex font mechanism
> (global optimizations in tex itself) we need to do it this way:
> 
> \usetypescript[serif][handling][noligs]
> 
> \definetypeface[mine][rm][serif][latin-modern][default][encoding=texnansi]
> \definetypeface[mine][rm][serif][latin-modern][default][encoding=texnansi]
> 
> \setupbodyfont[mine,10pt]
> 
> \starttext
> 
> asjemenou-het--lijkt---te----werken
> 
> \stoptext
> 
> The noligs handling is selective (only ? ! - -- --- are taken care of,
> so you keep the fi ligatures)
> 
> Hans

-- 
+----------------------------------------------------------------------+
| Johannes Graumann, Dipl. Biol.                                       |
|                                                                      |
|      Graduate Student                Tel.: ++1 (626) 395 6602        |
|      Deshaies Lab                    Fax.: ++1 (626) 395 5739        |
|      Department of Biology                                           |
|      CALTECH, M/C 156-29                                             |
|      1200 E. California Blvd.                                        |
|      Pasadena, CA 91125                                              |
|      USA                                                             |
+----------------------------------------------------------------------+

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to