From bff41b24741eabf59aae3f967fa7569a69c400b0 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 21 May 2010 16:31:38 +0300 Subject: Fix issue with first allocated attribute being 0 See http://tug.org/pipermail/lualatex-dev/2010-May/000525.html. --- luaotfload.dtx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/luaotfload.dtx b/luaotfload.dtx index a1e5778..ff156c2 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -624,10 +624,13 @@ end % \end{macrocode} % % The attributes are allocated here. The |otfl@| prefix is added to prevent -% name collision. +% name collision. The first attribute, |otfl@dummy|, is a dummy attribute +% because \ConTeXt\ code expects attribute |0| not to be used, but +% |\newluatexattribute| starts counting from zero. % % \begin{macrocode} +\newluatexattribute\otfl@dummy \newluatexattribute\otfl@state \newluatexattribute\otfl@markbase \newluatexattribute\otfl@markdone -- cgit v1.2.3