[latex3-commits] [git/LaTeX3-latex3-latex3] text-map: Use common codepoint approach for Hangul (f72a716b3)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Aug 8 14:31:28 CEST 2022
Repository : https://github.com/latex3/latex3
On branch : text-map
Link : https://github.com/latex3/latex3/commit/f72a716b3b2d913309ac0e858936e5e3c6439c32
>---------------------------------------------------------------
commit f72a716b3b2d913309ac0e858936e5e3c6439c32
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Aug 8 13:31:28 2022 +0100
Use common codepoint approach for Hangul
>---------------------------------------------------------------
f72a716b3b2d913309ac0e858936e5e3c6439c32
l3kernel/l3text-map.dtx | 42 ++++--------------------------------------
1 file changed, 4 insertions(+), 38 deletions(-)
diff --git a/l3kernel/l3text-map.dtx b/l3kernel/l3text-map.dtx
index c461568f4..3054dae55 100644
--- a/l3kernel/l3text-map.dtx
+++ b/l3kernel/l3text-map.dtx
@@ -103,10 +103,7 @@
% }
% \begin{macro}[EXP]{\@@_map_hangul:Nnnw}
% \begin{macro}[EXP]{\@@_map_hangul:NnnN}
-% \begin{macro}[EXP]{\@@_map_hangul_char:NnnN}
-% \begin{macro}[EXP]{\@@_map_hangul_char:NnnNN}
-% \begin{macro}[EXP]{\@@_map_hangul_char:NnnNNN}
-% \begin{macro}[EXP]{\@@_map_hangul_char:NnnNNNN}
+% \begin{macro}[EXP]{\@@_map_hangul:Nnnnn}
% \begin{macro}[EXP]{\@@_map_hangul:Nnnnw}
% \begin{macro}[EXP]{\@@_map_hangul:nNnnnn}
% \begin{macro}[EXP]{\@@_map_hangul_loop:Nnnnnw}
@@ -361,38 +358,10 @@
#1 {#2}
\@@_map_loop:Nnw #1 { }
}
- { \@@_map_hangul_char:NnnN #1 {#2} {#3} #4 }
- }
-\bool_lazy_or:nnTF
- { \sys_if_engine_luatex_p: }
- { \sys_if_engine_xetex_p: }
- {
- \cs_new:Npn \@@_map_hangul_char:NnnN #1#2#3#4
- { \@@_map_hangul:Nnnnw #1 {#2} {#4} #3 ; }
- }
- {
- \cs_new:Npn \@@_map_hangul_char:NnnN #1#2#3#4
- {
- \int_compare:nNnTF { `#4 } > { "80 }
- {
- \int_compare:nNnTF { `#4 } < { "E0 }
- { \@@_map_hangul_char:NnnNN }
- {
- \int_compare:nNnTF { `#4 } < { "F0 }
- { \@@_map_hangul_char:NnnNNN }
- { \@@_map_hangul_char:NnnNNNN }
- }
- #1 {#2} {#3} #4
- }
- { \@@_map_hangul:Nnnnw #1 {#2} #4 #3 ; }
- }
- \cs_new:Npn \@@_map_hangul_char:NnnNN #1#2#3#4#5
- { \@@_map_hangul:Nnnnw #1 {#2} {#4#5} #3 ; }
- \cs_new:Npn \@@_map_hangul_char:NnnNNN #1#2#3#4#5#6
- { \@@_map_hangul:Nnnnw #1 {#2} {#4#5#6} #3 ; }
- \cs_new:Npn \@@_map_hangul_char:NnnNNNN #1#2#3#4#5#6#7
- { \@@_map_hangul:Nnnnw #1 {#2} {#4#5#6#7} #3 ; }
+ { \@@_codepoint_process:nN { \@@_map_hangul:Nnnnn #1 {#2} {#3} } #4 }
}
+\cs_new:Npn \@@_map_hangul:Nnnnn #1#2#3#4
+ { \@@_map_hangul:Nnnnw #1 {#2} {#4} #3 ; }
\cs_new:Npn \@@_map_hangul:Nnnnw #1#2#3#4#5 ;
{
\exp_args:Nv \@@_map_hangul:nNnnnn { c_@@_grapheme_ #4 _clist }
@@ -480,9 +449,6 @@
% \end{macro}
% \end{macro}
% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
%
% \begin{macro}{\text_map_inline:nn}
% The standard non-expandable inline version.
More information about the latex3-commits
mailing list.