summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo.sty35
1 files changed, 29 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo.sty b/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo.sty
index a491e5cdc75..b816fd90569 100644
--- a/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo.sty
+++ b/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo.sty
@@ -2,7 +2,7 @@
%%
%% Poorman's Hangul Jamo Input Method.
%%
-%% (C) 2020 Kangsoo Kim <modviv2k15 at gmail.com>
+%% (C) 2020 Nova de Hi
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -14,21 +14,37 @@
%%
%% This work has the LPPL maintenance status `maintained'.
%%
-%% The Current Maintainer of this work is Kangsoo Kim.
+%% The Current Maintainer of this work is Nova de Hi.
%%
%% This work consists of the file pmhanguljamo.sty
%% and the documentation files pmhanguljamo-doc.tex and pmhanguljamo-doc.pdf.
%%
-\RequirePackage{expl3,xparse}
+\RequirePackage{xparse}
\ProvidesExplPackage
{pmhanguljamo}
- {2020/01/20}
- {v0.2.1}
+ {2020/01/28}
+ {v0.3}
{Poorman's Hangul Jamo Input Method}
+\RequirePackage{l3keys2e}
+
+\keys_define:nn { pmhanguljamo }
+{
+ rrk .bool_set:N = \opt_rrkopt_bool,
+ RRK .bool_set:N = \opt_rrkopt_bool
+}
+
+\ProcessKeysOptions { pmhanguljamo }
+
+\bool_if:NT \opt_rrkopt_bool
+{
+ \file_input:n { pmhanguljamo-rrk.tex }
+ \endinput
+}
+
\NewDocumentCommand \jamotextcmd { m }
{
- \tl_set:Nn \l_tmpa_tl { #1 / }
+ \tl_set:Nn \l_tmpa_tl { #1 / }
\regex_replace_all:nnN { / } { |/ } \l_tmpa_tl
\regex_replace_all:nnN { ; } { ;/ } \l_tmpa_tl
\regex_replace_all:nnN { : } { :/ } \l_tmpa_tl
@@ -49,6 +65,13 @@
{
\seq_set_split:Nnn \l_inputpar_seq { \par } { #1 }
\seq_indexed_map_function:NN \l_inputpar_seq \jamo_word:nn
+% \seq_set_split:Nnn \l_inputword_seq { ~ } { #1 }
+% \seq_indexed_map_inline:Nn \l_inputword_seq
+% {
+% \jamotextcmd { ##2 }
+% \int_compare:nT { ##1 < \seq_count:N \l_inputword_seq }
+% { \space }
+% }
}{}
\cs_new:Npn \jamo_word:nn #1 #2