From 701be49cc7a592cc192c0f28e45a763a4c745282 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 18 Mar 2020 03:01:18 +0000 Subject: CTAN sync 202003180301 --- .../korean/pmhanguljamo/doc/pmhanguljamo-doc.pdf | Bin 135348 -> 135349 bytes .../korean/pmhanguljamo/doc/pmhanguljamo-doc.tex | 6 ++-- .../korean/pmhanguljamo/doc/pmhanguljamo-kdoc.pdf | Bin 532264 -> 531979 bytes .../korean/pmhanguljamo/doc/pmhanguljamo-kdoc.tex | 18 ++++++----- .../korean/pmhanguljamo/tex/pmhanguljamo-rrk.sty | 1 + language/korean/pmhanguljamo/tex/pmhanguljamo.sty | 35 ++++++++++++++++----- 6 files changed, 41 insertions(+), 19 deletions(-) (limited to 'language') diff --git a/language/korean/pmhanguljamo/doc/pmhanguljamo-doc.pdf b/language/korean/pmhanguljamo/doc/pmhanguljamo-doc.pdf index 5a7d035bd7..300318d574 100644 Binary files a/language/korean/pmhanguljamo/doc/pmhanguljamo-doc.pdf and b/language/korean/pmhanguljamo/doc/pmhanguljamo-doc.pdf differ diff --git a/language/korean/pmhanguljamo/doc/pmhanguljamo-doc.tex b/language/korean/pmhanguljamo/doc/pmhanguljamo-doc.tex index a727b33fe7..b83d5f688f 100644 --- a/language/korean/pmhanguljamo/doc/pmhanguljamo-doc.tex +++ b/language/korean/pmhanguljamo/doc/pmhanguljamo-doc.tex @@ -30,7 +30,7 @@ \title{Poorman's Hangul Jamo Input Method \\ \Large \texttt{pmhanguljamo.sty} } \author{Kangsoo Kim} -\date{09 Mar 2020\quad version 0.3.3} +\date{15 Mar 2020\quad version 0.3.4} \maketitle @@ -203,7 +203,7 @@ out of use. Nevertheless the \verb|/| mark in this package is also used in order the completion of composing a syllable --- i.e., syllable separator. So DO NOT miss it. However, it is possible to omit `\verb|/|' mark at the end of a word, i.e., just before \texttt{}, or at the end of the argument of \verb|\jamoword|. -Note that before the puctuation mark --- period , comma, etc., omitting \verb|/| is not permitted. +Note that before the puctuation mark --- period, comma, etc., omitting \verb|/| is not permitted. \subsection{Consonants} @@ -230,7 +230,7 @@ used in the leading and trailing position of a syllable. the same as Korean Romanization Method (RRK).\footnote{The \emph{Revised Romanization of Korean} 1995:2000 is the official Korean language romanization system in South Korea.} \item The letter for `\textkorean{\jmcc{R}}' is allocated to \texttt{r} not \texttt{l}. The latter is reserved for another purpose, cf. item \ref{itm:llr}. \item The letter `c' is for `\textkorean{\jmcc{C}}'. In the RRK, it is `\texttt{ch}' there. -\item Note that the letter for `\textkorean{\jmcc{X}}' is \texttt{x}, which is a bit strange, but commonly accepted `\texttt{ng}' was not to be chosen. It should be reserved for `\textkorean{\jamoword{@ng/}}' +\item The letter for `\textkorean{\jmcc{X}}' is \texttt{x}, which is a bit strange, but commonly accepted `\texttt{ng}' was not to be chosen. It is reserved for another consonant `\textkorean{\jamoword{@ng/}}' \item And the letters `q, z, f' are more freely selected. These letters are the lost ones in Modern Korean. \item The letter `w' is chosen to present \emph{Choseong Filler}. \item\label{itm:llr} The letters `l' and `lr' are diff --git a/language/korean/pmhanguljamo/doc/pmhanguljamo-kdoc.pdf b/language/korean/pmhanguljamo/doc/pmhanguljamo-kdoc.pdf index b32af2e4d4..13d65b069d 100644 Binary files a/language/korean/pmhanguljamo/doc/pmhanguljamo-kdoc.pdf and b/language/korean/pmhanguljamo/doc/pmhanguljamo-kdoc.pdf differ diff --git a/language/korean/pmhanguljamo/doc/pmhanguljamo-kdoc.tex b/language/korean/pmhanguljamo/doc/pmhanguljamo-kdoc.tex index f9b52506de..4de722b9e2 100644 --- a/language/korean/pmhanguljamo/doc/pmhanguljamo-kdoc.tex +++ b/language/korean/pmhanguljamo/doc/pmhanguljamo-kdoc.tex @@ -63,7 +63,8 @@ %\date{2020/01/28\quad v0.3} %\date{2020/01/30\quad v0.3.1} %\date{2020/02/05\quad v0.3.2} -\date{2020/03/09\quad v0.3.3} +%\date{2020/03/09\quad v0.3.3} +\date{2020/03/15\quad v0.3.4} \maketitle @@ -321,7 +322,7 @@ mun/jj@x;oa;ro; se/rv s@/m@s/di; a/ni;h@r/ss@i; \item \texttt{;}, \texttt{:}, \texttt{/} --- 이 세 개의 부호는 성조표지, 음절완성을 표시하기 위하여 예약되어 있다. \item \texttt{|} --- 이 한 개의 부호문자는 내부적으로 사용하도록 예약되어 있다. \end{itemize} -이를 제외한 문자는 입력한 대로 찍힌다. 즉 한글 완성형 음절 문자나 한자 및 숫자와 문장부호가 모두 그대로 출력된다. 예: \verb|\jamoword{``/u/ri/na/ra/"}| \jamoword{``/u/ri/na/ra/"}. 모둔 문장 부호는 모두 음절 분리 부호에 의하여 분리되어 있어야 한다는 점에 주의하라. +이를 제외한 문자는 입력한 대로 찍힌다. 즉 한글 완성형 음절 문자나 한자 및 숫자와 문장부호가 모두 그대로 출력된다. 예: \verb|\jamoword{``/u/ri/na/ra/"}| \jamoword{``/u/ri/na/ra/"}. 모든 문장 부호는 모두 음절 분리 부호에 의하여 분리되어 있어야 한다는 점에 주의하라. 콜론, 세미콜론, 슬래시는 각각 \cmda{\ColonMark}, \cmda{\SemiColonMark}, \cmda{\SlashMark} 명령을 사용할 수 있게 해두었다. @@ -794,7 +795,9 @@ Expl3는 내가 원하는 일을 너무나 간단하게 구현할 수 있게 해 \textbullet\ v0.3.2 (2020/02/05): RRK에서도 \verb|\jmcc|를 쓸 수 있게 하고 \verb|\jmcc|의 인자로 \verb|@@|를 허용함. -\textbullet\ v0.3.3 (2020/03/09): RRK에서 \verb|X-ss| 입력 처리의 버그 수정. +\textbullet\ v0.3.3 (2020/03/09): RRK에서 \verb|X-ss| 입력 처리의 버그 수정. + +\textbullet\ v0.3.4 (2020/03/15): PM방식 xetexko에서 단어 내 행나눔. %%% APPENDICES \ExplSyntaxOn @@ -845,15 +848,14 @@ Adobe사의 \href{https://source.typekit.com/source-han-serif/kr/}{본명조(Sou 우선 LuaHB\TeX 의 \LaTeX\ 포맷을 이용하는 것이 좋다. \pkg{harfbuzz} 라이브러리를 활용하므로 더 바람직한 결과를 얻을 수 있을 것으로 기대한다. -이 패키지는 LuaHB\TeX\ 1.11.2를 기준으로 테스트하였다. \TeX\,Live 2019에 있는 1.10에서의 -올바른 동작은 보장하지 않는다. 이 때에는 \hologo{XeTeX}을 쓰도록 하라. +이 패키지는 LuaHB\TeX\ 1.11.2를 기준으로 테스트하였다. +\TeX\,Live 2020에 있는 1.12에서 문제없이 실행될 것이다. -폰트 설정 시에 옵션으로 다음을 부여한다. 아래 \texttt{RawFeature} 부분은 LuaHB\TeX 이 -아니면 에러를 토할 것이다. +폰트 설정 시에 옵션으로 다음을 부여한다. \begin{verbatim} [Script=Hangul,Renderer=Harfbuzz] \end{verbatim} -\verb|Harfbuzz| 대신 \verb|Renderer=OpenType|으로 지정할 수 있다. +\verb|Harfbuzz| 대신 \verb|Renderer=OpenType|으로 할 수 있다. 이 설정은 \pkg{luatexko}와 함께 쓰는 경우든 아니든 필요하다. \hologo{LuaTeX}에서 이 패키지와 함께 사용할 수 있는 폰트는 \texttt{Script Hangul} 속성을 가진 폰트로 diff --git a/language/korean/pmhanguljamo/tex/pmhanguljamo-rrk.sty b/language/korean/pmhanguljamo/tex/pmhanguljamo-rrk.sty index 61dc428562..d269a626e4 100644 --- a/language/korean/pmhanguljamo/tex/pmhanguljamo-rrk.sty +++ b/language/korean/pmhanguljamo/tex/pmhanguljamo-rrk.sty @@ -2,6 +2,7 @@ % subroutine of pmhanguljamo.sty %. v0.3.2 (2020/02/05) %. v0.3.3 (2020/03/09) +%. v0.3.4 (2020/03/15) % \seq_new:N \l_textjm_seq diff --git a/language/korean/pmhanguljamo/tex/pmhanguljamo.sty b/language/korean/pmhanguljamo/tex/pmhanguljamo.sty index aa2a2b704b..0d0d8e01ff 100644 --- a/language/korean/pmhanguljamo/tex/pmhanguljamo.sty +++ b/language/korean/pmhanguljamo/tex/pmhanguljamo.sty @@ -22,8 +22,8 @@ \RequirePackage{xparse} \ProvidesExplPackage {pmhanguljamo} - {2020/02/05} - {v0.3.2} + {2020/03/15} + {v0.3.4} {Poorman's Hangul Jamo Input Method} \RequirePackage{l3keys2e} @@ -178,8 +178,8 @@ \regex_replace_all:nnN { : } { :/ } \l_tmpa_tl \exp_args:Nno \regex_split:nnN { / } { \l_tmpa_tl } \l_tmpa_seq - - \seq_map_function:NN \l_tmpa_seq \build_syl:n + + \seq_indexed_map_function:NN \l_tmpa_seq \build_syl:nn } \tl_new:N \l_cho_tl @@ -220,17 +220,26 @@ } } -\cs_new:Npn \build_syl:n #1 +%%% if xetexko loaded, +\bool_new:N \g_xetexko_bool +\@ifpackageloaded{xetexko-space}{ + \bool_gset_true:N \g_xetexko_bool +}{ + \bool_gset_false:N \g_xetexko_bool +} + +\cs_new:Npn \build_syl:nn #1 #2 { \bool_set_false:N \l_jj_bool \tl_clear:N \l_cho_tl \tl_clear:N \l_jun_tl \tl_clear:N \l_jon_tl - \build_syl_fn:n #1 \q_recursion_tail \q_recursion_stop + \int_set:Nn \l_tmpa_int { #1 } + \build_syl_fn:n #2 \q_recursion_tail \q_recursion_stop } \cs_new:Npn \build_syl_fn:n #1 -{ +{ \quark_if_recursion_tail_stop_do:nn { #1 } { \exp_args:Nnx \regex_match:nnTF { [A-Z] } { \l_cho_tl } @@ -246,10 +255,20 @@ \tl_set:Nx \l_tmpb_tl { \tl_tail:N \l_jon_tl } \tl_reverse:N \l_tmpb_tl + %%% force allowbreak'ing hangul syllables when xetexko loaded + %%% luatexko or polyglossia is of no problem. + \bool_if:NT \g_xetexko_bool { + \exp_args:Nnx \regex_match:nnT { [a-z] } { \l_cho_tl } + { + \int_compare:nF { \l_tmpa_int == 1 } + { \allowbreak } + } + } + %%% print out the syllable composed \exp_args:NNx \prop_item:Nn \c_cho_prop { \l_cho_tl } \exp_args:NNx \prop_item:Nn \c_jung_prop { \l_jun_tl } \exp_args:NNx \prop_item:Nn \c_jong_prop { \l_tmpb_tl } - \exp_args:NNx \prop_item:Nn \c_jong_prop { \l_tmpa_tl } + \exp_args:NNx \prop_item:Nn \c_jong_prop { \l_tmpa_tl } %% tone mark } } -- cgit v1.2.3