<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%% File `kosections-utf.tex`
%%
%% (C) Copyright 2007-2022 Dohyun Kim &lt;nomos at ktug org&gt;
%%                    2022 Kangsoo Kim 
%%
%% 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.
%%
\ProvidesFile{kosections-utf}
  [2022/06/20 hangul option to kotex/utf]

%\def\hNum#1{\@hNum{\@nameuse{c@#1}}}
%\def\@hNum#1{\ifcase#1\or ì¼\or ì´\or ì‚¼\or ì‚¬\or ì˜¤\or ìœ¡\or ì¹&nbsp;\or
%  íŒ”\or êµ¬\or ì‹­\or ì‹­ì¼\or ì‹­ì´\or ì‹­ì‚¼\or ì‹­ì‚¬\or ì‹­ì˜¤\or ì‹­ìœ¡\or
%  ì‹­ì¹&nbsp;\or ì‹­íŒ”\or ì‹­êµ¬\or ì´ì‹­\or ì´ì‹­ì¼\or ì´ì‹­ì´\or ì´ì‹­ì‚¼\or
%  ì´ì‹­ì‚¬\else\@ctrerr\fi}
%\def\hanjanum#1{\@hanjanum{\@nameuse{c@#1}}}
%\def\@hanjanum#1{\ifcase#1\or ä¸€\or äºŒ\or ä¸‰\or
%  å››\or äº”\or å…­\or ä¸ƒ\or å…«\or ä¹\or å\or
%  åä¸€\or åäºŒ\or åä¸‰\or åå››\or åäº”\or
%  åå…­\or åä¸ƒ\or åå…«\or åä¹\or äºŒå\or
%  äºŒåä¸€\or äºŒåäºŒ\or äºŒåä¸‰\or äºŒåå››\else\@ctrerr\fi}
%\def\HArabic#1{\@HArabic{\@nameuse{c@#1}}}
%\def\@HArabic#1{\ifcase#1\or 1\rieul\or 2\jung\or 3\jong\or 4\jung\or 5\jung\or
%  6\jong\or 7\rieul\or 8\rieul\or 9\jung\or 10\jong\or 11\rieul\or 12\jung\or
%  13\jong\or 14\jung\or 15\jung\or 16\jong\or 17\rieul\or 18\rieul\or 19\jung\or
%  20\jong\or 21\rieul\or 22\jung\or 23\jong\or 24\jung\else\@ctrerr\fi}

%% í•œê¸€ ê¸°í˜¸ë¬¸ìž ì²˜ë¦¬ë¥¼ ìœ„í•œ ì&nbsp;•ì˜ë“¤.
%% ì¼ë¶€ í´ëž˜ìŠ¤(ì˜ˆ: memoir)ì—ì„œ \textsubscriptë¥¼ ì&nbsp;•ì˜í•˜ê³&nbsp; ìžˆìœ¼ë¯€ë¡œ,
%% ì—¬ê¸°ì„œëŠ” \TEXTsubscriptë¡œ ì&nbsp;•ì˜í•œë‹¤. ë§Œì•½ ì´ ì&nbsp;•ì˜ë¥¼ ë¬¸ì„œì—ì„œ
%% ì‚¬ìš©í•˜ê³&nbsp; ì‹¶ìœ¼ë©´ \let\textsubscript\TEXTsubscriptë¡œ í•&nbsp; ê²ƒ.
\protected\def\TEXTsubscript#1{%
  \@TEXTsubscript{\selectfont#1}}
\newcommand{\@TEXTsubscript}[1]{%
  {\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}%
\DeclareUnicodeCharacter{00BC}% 1/4
  {\textsuperscript1\kern-.45em\unihangulchar{65295}\kern-.45em\TEXTsubscript4}
\DeclareUnicodeCharacter{00BD}% 1/2
  {\textsuperscript1\kern-.45em\unihangulchar{65295}\kern-.45em\TEXTsubscript2}
\DeclareUnicodeCharacter{00BE}% 3/4
  {\textsuperscript3\kern-.45em\unihangulchar{65295}\kern-.45em\TEXTsubscript4}
\DeclareUnicodeCharacter{02D0}% Ë
  {\unihangulchar{"02D0}}% 8251=0x203B
\DeclareUnicodeCharacter{2025}% â€¥
  {\unihangulchar{"2025}}% 8251=0x203B
\DeclareUnicodeCharacter{2015}% â€•
  {\nobreak\hskip\dhucs@hu\unihangulchar{"2015}\hskip\dhucs@hu\relax}% 8251=0x203B
\DeclareUnicodeCharacter{2312}% âŒ’
  {\unihangulchar{"2312}}% 8251=0x203B
\DeclareUnicodeCharacter{203B}% â€»
  {\unihangulchar{8251}}% 8251=0x203B

%% konames-utf
\RequirePackage{konames-utf}

%% bangjom emphasis : extension. (inspired by hangul.sty)

\def\circemphchar{Ëš}
\def\dotemphchar{Ë™}
\let\useremphchar\circemphchar
\newdimen\raisedotdim\raisedotdim\z@
\newdimen\dhucs@emph@width

\def\put@dhucs@mphch@r#1{%
  \ifnum\thish@ngul&gt;\z@ %\ifnum\thish@ngul&lt;\thr@@ % hangul or hanja
    \rlap{\raise\dhucs@emph@raise
      \hb@xt@\dhucs@emph@width{\normalfont\hss#1\hss}}%
  \fi %\fi
}
\def\get@dhucs@mphheight#1{%
  \ifdim\raisedotdim=\z@\relax
    \settoheight{\dhucs@emph@raise}{#1}%
    \addtolength{\dhucs@emph@raise}{-.4em}%
  \else\let\dhucs@emph@raise\raisedotdim\fi
}

\protected\def\dotemph#1{\begingroup
  \get@dhucs@mphheight{#1}%
  \let\dhucs@emph\dhucs@dot@emph
  #1\endgroup}

\def\dhucs@dot@emph#1{%
  \settowidth{\dhucs@emph@width}{#1}%
  \put@dhucs@mphch@r{\dotemphchar}%
}

\protected\def\circemph#1{\begingroup
  \get@dhucs@mphheight{#1}%
  \let\dhucs@emph\dhucs@circ@emph
  #1\endgroup}

\def\dhucs@circ@emph#1{\leavevmode
  \settowidth{\dhucs@emph@width}{#1}%
  \put@dhucs@mphch@r{\circemphchar}%
}

\newdimen\useremphraisedim\useremphraisedim\z@

\protected\def\useremph#1{\begingroup
  \ifdim\useremphraisedim=\z@\relax
     \settoheight{\dhucs@emph@raise}{#1}%
     \addtolength{\dhucs@emph@raise}{-.4em}%
  \else\let\dhucs@emph@raise\useremphraisedim\fi
  \let\dhucs@emph\dhucs@user@emph
  #1\endgroup}

\def\dhucs@user@emph#1{\leavevmode
  \settowidth{\dhucs@emph@width}{#1}%
  \put@dhucs@mphch@r{\useremphchar}%
}

\g@addto@macro\pdfstringdefPreHook{%
  \let\circemph\@firstofone
  \let\useremph\@firstofone
}

%%% xspaceskip
\@ifpackageloaded{dhucs-setspace}{}{\linespread{1.333}}
\if@nonfrench
 \xspaceskip=.5em plus .111em minus .1em
\fi
\skip\footins=\glueexpr\skip\footins/72*100\relax

%%% interhchar
%\setInterHangulSkip{-0.55pt}

%%% makeidxë¥¼ ì“°ë©´ \seeì™€ \seealsoê°€ ì&nbsp;•ì˜ëœë‹¤.
%%% modified from kosections-euc.tex
%%% See http://www.ktug.or.kr/jsboard/read.php?table=operate&amp;no=22789
\AtBeginDocument{%
  \@ifundefined{see}{}{%
    \renewcommand*\see[2]{#1\emph{\seename}}%
  }
  \@ifundefined{seealso}{}{%
    \renewcommand*\seealso[2]{#1\emph{\alsoname}}%
  }
}

\endinput
</pre></body></html>