blob: f01afa468ba7bd3dcb521bb544a0365f9602f1b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
% Some experimental code for Wolfgang to play with:
\startluacode
fonts.handlers.otf.addfeature {
name = "sz",
type = "multiple",
data = {
["ẞ"] = { "S", "S" }
}
}
\stopluacode
\definefontfeature[sz][sz=yes]
\unexpanded\def\composedSZ {\overloaduppercase{0xDF}{0x1E9E}}
\unexpanded\def\decomposedSZ{\overloaduppercase{0xDF}{0x53,0x53}}
\continueifinputfile{s-lingual-de.mkiv}
\setupbodyfont[libertine]
\starttext
%\definefontfeature[default][default][sz=yes]
\dorecurse{10} {
\decomposedSZ \WORD{Gruß}\par
\composedSZ \WORD{Gruß}\par
}
\composedSZ
{\addfeature{sz}Straße \WORD{Straße} STRAẞE}\par
{Straße \WORD{Straße} STRAẞE}\par
\stoptext
|