summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-03-11 18:11:26 +0100
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-03-11 18:12:16 +0100
commit6ccc6b33050a4f574e99d113e8860859bae62aec (patch)
tree12308b2ef93a8cadf4459f7ad17113a9e12c1807
parentee83d4bfaba2cdc85b8cdbdc35341881fed7ca0f (diff)
downloadluatexbase-6ccc6b33050a4f574e99d113e8860859bae62aec.tar.gz
attr: improve check file and bump version number.
-rw-r--r--Changes8
-rw-r--r--luatexbase-attr.dtx11
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.
% <mpg@elzevir.fr>
% <elie.roux@telecom-bretagne.eu>
@@ -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}
%<testplain>\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)}
%</testplain,testlatex>
%<testplain>\bye
%<testlatex>\stop