summaryrefslogtreecommitdiff
path: root/tests/pln-aux-4.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pln-aux-4.tex')
-rw-r--r--tests/pln-aux-4.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/pln-aux-4.tex b/tests/pln-aux-4.tex
index b025561..80ffc0b 100644
--- a/tests/pln-aux-4.tex
+++ b/tests/pln-aux-4.tex
@@ -6,9 +6,10 @@
\font\ptserifregular = file:PTF55F.ttf \ptserifregular
-%% here we map the function luaotfload.aux.name_of_codepoint
-%% on a short text, printing a list of letters, their codepoints
-%% and names (as specified in the Adobe Glyph List).
+%% here we map the function luaotfload.aux.name_of_slot
+%% on a short text, printing a list of letters, their
+%% code points and names (as specified in the Adobe
+%% Glyph List).
\directlua{
local aux = luaotfload.aux
@@ -21,7 +22,7 @@
for chr in string.utfcharacters(str) do
local val = unicode.utf8.byte(chr)
local line = chr .. " <> " .. tostring(val)
- line = line .. " <> " .. (aux.name_of_codepoint(val) or "")
+ line = line .. " <> " .. (aux.name_of_slot(val) or "")
res[\string#res+1] = line
end
return table.concat(res, [[\endgraf]])