summaryrefslogtreecommitdiff
path: root/tests/pln-aux-1.tex
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-03 05:43:22 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-03 05:43:22 -0700
commit8c5fb4b380191aefd6ddc0fcb738b24f740f4496 (patch)
tree27df2d2f1bee98c36731d219bf7e3535aef218f8 /tests/pln-aux-1.tex
parent225c63363a259867bad8848e9e9880e43cbf4ad5 (diff)
parent778267979a304bd83228fd0077c453a953d35fd0 (diff)
downloadluaotfload-8c5fb4b380191aefd6ddc0fcb738b24f740f4496.tar.gz
Merge pull request #35 from eroux/master
Proposal for minor changes in the aux library
Diffstat (limited to 'tests/pln-aux-1.tex')
-rw-r--r--tests/pln-aux-1.tex8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/pln-aux-1.tex b/tests/pln-aux-1.tex
index a504850..a228be0 100644
--- a/tests/pln-aux-1.tex
+++ b/tests/pln-aux-1.tex
@@ -12,7 +12,13 @@
%% wrap tests in macros (could move to style file)
\def\doifglyphelse#1#2#3{%
\directlua{
- luaotfload.aux.do_if_glyph_else([[#1]], [[#2]], [[#3]])
+ local codepoint = tonumber('\string#1')
+ if not codepoint then codepoint = unicode.utf8.byte('\string#1') end
+ if luaotfload.aux.font_has_glyph(font.current(), codepoint) then
+ tex.sprint('\string#2')
+ else
+ tex.sprint('\string#3')
+ end
}%
}