blob: 453c8e0d8796526ac335f8c3d87d4879622ed3a6 (
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
33
|
%D \module
%D [ file=luat-uni,
%D version=2006.04.25,
%D title=\CONTEXT\ Lua Macros,
%D subtitle=Unicode Support,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright=PRAGMA]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\writestatus{loading}{Lua Support Macros (unicode)}
\registerctxluafile{luat-uni}{1.001}
% \defconvertedargument\ascii{ÀÁÂÃÄÅàáâãäå}
%
% \lua{ tex.print ("\ascii")}
% \lua{ tex.print(unicode.utf8.reverse ("\ascii"))}
% \lua{ tex.print(unicode.utf8.lower ("\ascii"))}
% \lua{ tex.print(unicode.utf8.upper ("\ascii"))}
% \lua{ tex.print(unicode.utf8.len ("\ascii"))}
% \lua{ tex.print(table.getn(unicode.utf8.split("\ascii"))}}
%
% \lua{unicode.utf8.each("\ascii", function(chr) tex.print("["..chr.."]") end)}
\let\UnicodeOne \gobbleoneargument
\let\UnicodeTwo \gobbleoneargument
\let\UnicodeThree\gobbleoneargument
\endinput
|