[latex3-commits] [l3svn] branch master updated: REmove \tl_to_lowercase:n from l3trial
noreply at latex-project.org
noreply at latex-project.org
Fri Sep 25 10:41:08 CEST 2015
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
The following commit(s) were added to refs/heads/master by this push:
new 1d2912c REmove \tl_to_lowercase:n from l3trial
1d2912c is described below
commit 1d2912ce150e1c06dd33a120d1b0b96a76bccbb2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Sep 25 09:40:19 2015 +0100
REmove \tl_to_lowercase:n from l3trial
The htoks case probably does need the primitive, but for the font
part using \char_generate:nn is hopefully safe. (It would help if
the font tests were working!)
---
l3trial/l3htoks/l3htoks.dtx | 4 ++--
l3trial/xfont/xfss.dtx | 16 +++++-----------
2 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/l3trial/l3htoks/l3htoks.dtx b/l3trial/l3htoks/l3htoks.dtx
index c0c73c9..7fbcbcc 100644
--- a/l3trial/l3htoks/l3htoks.dtx
+++ b/l3trial/l3htoks/l3htoks.dtx
@@ -635,7 +635,7 @@
#1
\group_begin:
\char_set_lccode:nn { 0 } { \@@_token_to_charcode:N #1 }
- \tl_to_lowercase:n { \tl_gput_right:Nn \g_@@_result_tl { ^^@ } }
+ \tex_lowercase:D { \tl_gput_right:Nn \g_@@_result_tl { ^^@ } }
\group_end:
\@@_parse:w
}
@@ -645,7 +645,7 @@
#1
\group_begin:
\char_set_lccode:nn { 0 } { \@@_token_to_charcode:N #1 }
- \tl_to_lowercase:n { \tl_gput_right:Nn \g_@@_result_tl { ^^@ } }
+ \tex_lowercase:D { \tl_gput_right:Nn \g_@@_result_tl { ^^@ } }
\group_end:
\@@_parse:w
}
diff --git a/l3trial/xfont/xfss.dtx b/l3trial/xfont/xfss.dtx
index 2f31c7e..fac856f 100644
--- a/l3trial/xfont/xfss.dtx
+++ b/l3trial/xfont/xfss.dtx
@@ -2294,20 +2294,14 @@
%
% \begin{macro}{\DeclareTextComposite}
% \begin{macrocode}
-\tl_set:Nx \l_xfss_tmpa_tl
- { \tex_catcode:D \c_zero=\tex_the:D\tex_catcode:D \c_zero\scan_stop: }
-\char_set_catcode_letter:n {\c_zero} % which is "^^@" below
\DeclareDocumentCommand \DeclareTextComposite {mmmm}
{
- \tl_set:Nn \l_xfss_tmpa_tl
- { \DeclareTextCompositeCommand #1 {#2} {#3} }
- \group_begin:
- \tex_lccode:D \c_zero #4
- \tl_to_lowercase:n {
- \group_end:
- \l_xfss_tmpa_tl ^^@ }
+ \use:x
+ {
+ \exp_not:n { \DeclareTextCompositeCommand #1 {#2} {#3} }
+ \char_generate:nn {#4} { 12 }
+ }
}
-\l_xfss_tmpa_tl
% \end{macrocode}
% \end{macro}
%
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list