texlive[54378] Master/texmf-dist: pmhanguljamo (17mar20)

commits+karl at tug.org commits+karl at tug.org
Tue Mar 17 22:31:38 CET 2020


Revision: 54378
          http://tug.org/svn/texlive?view=revision&revision=54378
Author:   karl
Date:     2020-03-17 22:31:37 +0100 (Tue, 17 Mar 2020)
Log Message:
-----------
pmhanguljamo (17mar20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-doc.pdf
    trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-doc.tex
    trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-kdoc.pdf
    trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-kdoc.tex
    trunk/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo-rrk.sty
    trunk/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo.sty

Modified: trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-doc.tex	2020-03-17 21:31:23 UTC (rev 54377)
+++ trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-doc.tex	2020-03-17 21:31:37 UTC (rev 54378)
@@ -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 @@
 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{<space>}, 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 @@
 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 

Modified: trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-kdoc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-kdoc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-kdoc.tex	2020-03-17 21:31:23 UTC (rev 54377)
+++ trunk/Master/texmf-dist/doc/latex/pmhanguljamo/pmhanguljamo-kdoc.tex	2020-03-17 21:31:37 UTC (rev 54378)
@@ -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 @@
 \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,8 +795,10 @@
 
 \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
 \int_new:N \l_appsec_int
@@ -845,15 +848,14 @@
 
 우선 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} 속성을 가진 폰트로

Modified: trunk/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo-rrk.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo-rrk.sty	2020-03-17 21:31:23 UTC (rev 54377)
+++ trunk/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo-rrk.sty	2020-03-17 21:31:37 UTC (rev 54378)
@@ -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
 

Modified: trunk/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo.sty	2020-03-17 21:31:23 UTC (rev 54377)
+++ trunk/Master/texmf-dist/tex/latex/pmhanguljamo/pmhanguljamo.sty	2020-03-17 21:31:37 UTC (rev 54378)
@@ -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
 		}
 	}
 	



More information about the tex-live-commits mailing list.