From b2d6b6ee55083fba2aa66ac9f7c8a56eb181ae8c Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 5 Oct 2015 20:58:39 +0000
Subject: kotex-oblivoir (5oct15)

git-svn-id: svn://tug.org/texlive/trunk@38557 c570f23f-e606-0410-a88d-b1316a301751
---
 .../kotex-oblivoir/memhangul-x/memhangul-x.sty     | 29 +++++++++++++++-------
 1 file changed, 20 insertions(+), 9 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty')

diff --git a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty
index 7a5b74ae1d0..787df1d0dbf 100644
--- a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty
+++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty
@@ -1,6 +1,6 @@
 %% File `memhangul-x.sty`
 %%
-%% (C) Copyright 2006-2013 Kangsoo Kim <karnes at ktug org>
+%% (C) Copyright 2006-2015 Kangsoo Kim <karnes at ktug org>
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -14,8 +14,8 @@
 %%    part of oblivoir v2
 %%
 \NeedsTeXFormat{LaTeX2e}
-\def\filedate{2015/07/27}
-\def\fileversion{11.9}
+\def\filedate{2015/10/05}
+\def\fileversion{11.10}
 \ProvidesPackage{memhangul-x}[\filedate Hangul Typography for (x)oblivoir]
 %\typeout{Hangul Typography for (x)oblivoir}
 
@@ -124,13 +124,23 @@
 \if@polyglos
   \RequirePackage{polyglossia}
   \RequirePackage{xparse}
-  \NewDocumentCommand\sethangulfont{mo}{%
-    \IfValueTF{#2}{%
-      \newfontfamily\hangulfont{#1}[#2]%
-    }{%
-      \newfontfamily\hangulfont{#1}%
+%%% \sethangulfont{FONTNAME} or \sethangulfont[tt]{FONTNAME}[FEATURES]
+  \NewDocumentCommand\sethangulfont{omo}{%
+    \IfValueTF{#1}{%
+      \IfValueTF{#3}{%
+      	\expandafter\newfontfamily\csname hangulfont#1\endcsname
+		{#2}[#3]}{%
+		\expandafter\newfontfamily\csname hangulfont#1\endcsname
+		{#2}}%
+	}%
+	{%
+      \IfValueTF{#3}{%
+      	\newfontfamily\hangulfont{#2}[#3]%
+    	}{%
+	    \newfontfamily\hangulfont{#2}%
+    	}%
+  	}%
     }
-  }
 \else
 \ifluatex
   \RequirePackage{luatexko}
@@ -358,6 +368,7 @@
 \endinput
 
 % CHANGE LOG
+% 2015/10/05 : change \sethangulfont command for polyglossia
 % 2014/04/29 : fix a bug reported by Progress
 % 2013/10/22 : introduce memhangul-common.sty
 % 2013/10/16 : \kscntformat and [kosection] bug fix.
-- 
cgit v1.2.3