%% xetexko-var.sty
%%
%% Copyright (c) 2007-2014 Kangsoo Kim <karnes at ktug org>
%% Copyright (c) 2013      Kihwang Lee <leekh at ktug org>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%  http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2006/05/20 or later.
%%
%% A variant of xetexko.sty
%%
%% Updated for xetexko v2.1
%% 2013.08.26
%%
\ProvidesPackage{xetexko-var}
   [2014/06/12 v0.13 Korean Typesetting under XeTeX]

%%% common options for xob-font
\DeclareOption{gremph}{\PassOptionsToPackage{\CurrentOption}{xob-font}}
\DeclareOption{itemph}{\PassOptionsToPackage{\CurrentOption}{xob-font}}
\DeclareOption{oldhangul}{\PassOptionsToPackage{\CurrentOption}{xob-font}}
\DeclareOption{latinquote}{\PassOptionsToPackage{\CurrentOption}{xob-font}}
\DeclareOption{nowinname}{\PassOptionsToPackage{\CurrentOption}{xob-font}}
%%% for kolabels
\newif\if@hangul
\newif\if@hanja
\DeclareOption{hangul}{\@hangultrue}
\DeclareOption{hanja}{\@hangultrue\@hanjatrue}
%%% for xob-fonts
\newif\if@extfontspec\@extfontspecfalse
\DeclareOption{manualfontspec}{\@extfontspectrue}

%%% unfonts
\DeclareOption{unfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}}
\DeclareOption{nounfonts}{\PassOptionsToPackage{\CurrentOption}{xob-font}}
\DeclareOption{nanum}{\PassOptionsToPackage{\CurrentOption}{xob-font}}
\DeclareOption{hcr}{\PassOptionsToPackage{\CurrentOption}{xob-font}}
\ProcessOptions\relax

%%% xetexko sub-styles
\RequirePackage{xetexko-space}
\RequirePackage{xetexko-josa}
\RequirePackage{xetexko-vertical}

%%% xoblivoir sub-styles
\RequirePackage{xob-dotemph}
\RequirePackage{xob-hyper}

\if@extfontspec
  \PackageWarning{xetexko-var}{Load xetexko-font and configure Korean Fonts manually!}{}
\else
%%% We will never use xetexko/luatexko's unfonts option.
  \newif\if@unfonts\@unfontsfalse
  \RequirePackage{xob-font}
\fi

\RequirePackage{kolabels-utf}
\if@hangul\AtBeginDocument{\RequirePackage{konames-utf}}\fi

\endinput

%%% 2014-06-12: new xob-font.sty
%%% 2013-09-27, nounfonts.
%%% 오후 3:22 2008-11-16
%%% 오후 17:59 2008-12-03 : nowinname 옵션 추가
%%% 2009-03-25, xetexko.sty
%%% 오전 2:22 2009-09-26, xetexko-vertical.sty
