diff options
Diffstat (limited to 'luatexbase-attr.dtx')
| -rw-r--r-- | luatexbase-attr.dtx | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index 923ad97..a3b2e46 100644 --- a/luatexbase-attr.dtx +++ b/luatexbase-attr.dtx @@ -351,13 +351,14 @@ module('luatexbase', package.seeall)  attributes = {}  %    \end{macrocode}  % -%    The allocaton function. Unlike other registers, allocate starting from 1. -%    Some code (eg, font handling coming from Con\tex{}t) behaves strangely -%    with \verb+\attribute0+ and since there is plenty of room here, it -%    doesn't seem bad to ``loose'' one item in order to avoid this problem. +%    The allocation function. Unlike other registers, allocate starting from 255. +%    Some code (e.g., font handling coming from Con\tex{}t) behaves strangely +%    with \verb+\attribute0+. What is more the font loader allocates its own +%    attributes in the range from 127 to 254. Since there is plenty of room +%    here, it doesn't seem bad to skep a few items in order to avoid clashes.  %  %    \begin{macrocode} -local last_alloc = 0 +local last_alloc = 255  function new_attribute(name, silent)      if last_alloc >= 65535 then          if silent then | 
