diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/luat-uni.tex')
-rw-r--r-- | Master/texmf-dist/tex/context/base/luat-uni.tex | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/luat-uni.tex b/Master/texmf-dist/tex/context/base/luat-uni.tex new file mode 100644 index 00000000000..453c8e0d879 --- /dev/null +++ b/Master/texmf-dist/tex/context/base/luat-uni.tex @@ -0,0 +1,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 |