From 6ccc6b33050a4f574e99d113e8860859bae62aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 11 Mar 2010 18:11:26 +0100 Subject: attr: improve check file and bump version number. --- Changes | 8 +++++--- luatexbase-attr.dtx | 11 ++++++----- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Changes b/Changes index e1be3a1..c970991 100644 --- a/Changes +++ b/Changes @@ -1,8 +1,10 @@ Changes in the luatexbase package/bundle -[on-going] - luatexbase-attrs - - newly allocated attributes are now unset +2010/03/11 + luatexbase-attrs 0.1 + - add minimal test files for luatex and lualatex + - make sure newly allocated attributes are unset + - fix sensitivity to the current value of \escapechar 2010/01/21 luatexbase-regs 0.1 diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index 341feb2..511861c 100644 --- a/luatexbase-attr.dtx +++ b/luatexbase-attr.dtx @@ -1,8 +1,5 @@ % \iffalse meta-comment % -% Template : look for attr DATE DESC VERSION !!! -% and 'derived files' !!! -% % Written in 2009, 2010 by Manuel Pégourié-Gonnard and Élie Roux. % % @@ -123,7 +120,7 @@ and the derived files % Right brace \} Tilde \~} % % \title{The \pk{luatexbase-attr} package} -% \date{DATE} +% \date{v0.1 2010-03-11} % \author{% % Manuel P\'egouri\'e-Gonnard \\ \email{mpg@elzevir.fr} \and % \'Elie Roux \\ \email{elie.roux@telecom-bretagne.eu}} @@ -308,7 +305,8 @@ end % % The tests done are very basic: we just make sure that the package loads % correctly and the macros don't generate any error, under both LaTeX en -% Plain TeX. +% Plain TeX. We also check that the attribute's number is remembered well, +% independantly of the current value of |\escapechar|. % % \begin{macrocode} %\input luatexbase-attr.sty @@ -317,10 +315,13 @@ end \newluatexattribute\testattr \setluatexattribute\testattr{1} \unsetluatexattribute\testattr +\directlua{assert(luatextra.attributes.testattr)} \begingroup +\escapechar64 \newluatexattribute\anotherattr \endgroup \setluatexattribute\anotherattr{1} +\directlua{assert(luatextra.attributes.anotherattr)} % %\bye %\stop -- cgit v1.2.3