[NTG-context] Uppercase sharp s

Wolfgang Schuster schuster.wolfgang at gmail.com
Sun Apr 17 13:32:06 CEST 2016


> Hans Hagen <mailto:pragma at wxs.nl>
> 16. April 2016 um 12:38
>
> in the next beta (probably on ftp) there will be s-lingual-de for you 
> to play with
1. The name of the function to enable/disable the function has to change
    and I would use a directive as normal way to enable it.

\unexpanded\def\enableuppercasesharps {\overloaduppercase{0xDF}{0x1E9E}}
\unexpanded\def\disableuppercasesharps{\overloaduppercase{0xDF}{0x53,0x53}}

\installtexdirective{fonts.uppercasesharps}\enableuppercasesharps\disableuppercasesharps

\enabledirectives[fonts.uppercasesharps]
%\disabledirectives[fonts.uppercasesharps]

\setupbodyfont[libertine]

\starttext

Buße Busse

BUẞE BUSSE

\WORD{Buße Busse}

\word{BUẞE BUSSE}

\stoptext


2. Can the same function be added to Lua.

\overloaduppercase{0xDF}{0x1E9E}

\starttext

\cldcontext{utf.upper("Buße Busse")}

\cldcontext{utf.lower("Buße Busse")}

\blank

\cldcontext{characters.upper("Buße Busse")}

\cldcontext{characters.lower("BUẞE BUSSE")}

\stoptext


Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160417/9cd2a06a/attachment.html>


More information about the ntg-context mailing list