[NTG-context] active characters in mkiv (and mkii)

Hans Hagen pragma at wxs.nl
Mon Jul 7 13:20:10 CEST 2008


Thomas A. Schmitz wrote:
> Hi all,
> 
> I would like to make the exclamation mark active within my Greek  
> environment; it should remain a normal letter outside of these  
> commands and environments. (Why? Exclamation marks aren't used in  
> Greek, and in mkii, I had mapped it to the sublinear dot which is used  
> for epigraphical and papyrological texts.)
> 
> In pdf(e)tex, Hans wrote this macro for me:
> 
> \long\def\rescanwithsetup#1#2%
>     {{\directsetup{#1}\scantokens{#2\ignorespaces}}}
> 
> but I'm not sure how to have a similar thing for mkiv (and ! is  
> special anyway, so I'm running into trouble here...). Any pointers? Or  
> is this a bad idea, and I should look for other solutions?

forget about the past, think about what kind of functionality you want

for instance,

"we need a language dependent feature that remaps characters"

so, what are the specs; maybe other languages need similar things

(there is already something available which we can easily extend)

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