summaryrefslogtreecommitdiff
path: root/language/korean/kotex-utf/tex4ht
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /language/korean/kotex-utf/tex4ht
Initial commit
Diffstat (limited to 'language/korean/kotex-utf/tex4ht')
-rw-r--r--language/korean/kotex-utf/tex4ht/dhucs.4ht22
-rw-r--r--language/korean/kotex-utf/tex4ht/dhucs.cfg40
-rw-r--r--language/korean/kotex-utf/tex4ht/kosections-utf.4ht131
3 files changed, 193 insertions, 0 deletions
diff --git a/language/korean/kotex-utf/tex4ht/dhucs.4ht b/language/korean/kotex-utf/tex4ht/dhucs.4ht
new file mode 100644
index 0000000000..650184fa84
--- /dev/null
+++ b/language/korean/kotex-utf/tex4ht/dhucs.4ht
@@ -0,0 +1,22 @@
+%% File `dhucs.4ht`
+%%
+%% Copyright (c) 2007-2013 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
+%% 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.
+%%
+\protected\def\unihangulchar#1{\futurelet\dhucs@next\unihangulchar@#1\@nil}
+\def\unihangulchar@{%
+ \ifx\dhucs@next"\expandafter\hex@unihangulchar
+ \else\expandafter\digit@unihangulchar
+ \fi}
+\def\digit@unihangulchar#1\@nil{\HCode{&\##1;}}
+\def\hex@unihangulchar"#1\@nil{\HCode{&\#x#1;}}
+
+\DeclareUnicodeCharacter{00B7}{~\unihangulchar{"00B7}~}
+
diff --git a/language/korean/kotex-utf/tex4ht/dhucs.cfg b/language/korean/kotex-utf/tex4ht/dhucs.cfg
new file mode 100644
index 0000000000..8c8f57f282
--- /dev/null
+++ b/language/korean/kotex-utf/tex4ht/dhucs.cfg
@@ -0,0 +1,40 @@
+%% File `dhucs.cfg`
+%%
+%% Copyright (c) 2007-2013 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
+%% 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.
+%%
+\Preamble{xhtml}
+\Configure{charset}{charset=utf-8}
+\Configure{@TITLE}{\protected\def\unihangulchar##1{\special{t4ht=&\###1;}}}
+\Configure{@BODY}{\NoFonts}
+\Configure{@/BODY}{\EndNoFonts}
+
+\begin{document}
+\CssFile
+ /* css.sty */
+body {
+ line-height: 150%;
+}
+.verbatim {
+ font-family: monospace;
+ white-space: nowrap;
+ text-align: left;
+ line-height: 100%;
+}
+.quote {
+ margin-bottom: 0.25em;
+ margin-top: 0.25em;
+ margin-left: 3em;
+ margin-right:3em;
+ text-align:justify;
+}
+\EndCssFile
+\EndPreamble
+
diff --git a/language/korean/kotex-utf/tex4ht/kosections-utf.4ht b/language/korean/kotex-utf/tex4ht/kosections-utf.4ht
new file mode 100644
index 0000000000..c26be1caf9
--- /dev/null
+++ b/language/korean/kotex-utf/tex4ht/kosections-utf.4ht
@@ -0,0 +1,131 @@
+%% File `kosections-utf.4ht`
+%%
+%% Copyright (c) 2007-2013 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
+%% 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.
+%%
+\def\dhucs@seccntformat#1#2{}
+
+\@ifclassloaded{book}{
+\Configure{part}
+ {\HCode{<div class="part">}}
+ {\HCode{</div>}}
+ {\HCode{<h1 class="partHead">}%
+ \pre@partcnt\thepart\post@partcnt\HCode{<br />}%
+ \HCode{<span class="part_font">}}
+ {\HCode{</span>}\HCode{</h1>}}
+\Configure{chapter}
+ {\HCode{<div class="chapter">}}
+ {\HCode{</div>}}
+ {\HCode{<h2 class="chapterHead">}%
+ \pre@chaptercnt\thechapter\post@chaptercnt\HCode{<br />}%
+ \HCode{<span class="chapter_font">}}
+ {\HCode{</span>}\HCode{</h2>}}
+\Configure{section}
+ {}
+ {}
+ {\HCode{<h3 class="sectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \pre@sectioncnt\thesection\post@sectioncnt~~%
+ \HCode{</span>}\HCode{<span class="section_font">}}
+ {\HCode{</span>}\HCode{</h3>}}
+\Configure{subsection}
+ {}
+ {}
+ {\HCode{<h4 class="subsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsection~~\HCode{</span>}%
+ \HCode{<span class="subsection_font">}}
+ {\HCode{</span>}\HCode{</h4>}}
+\Configure{subsubsection}
+ {}
+ {}
+ {\HCode{<h5 class="subsubsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsubsection~~\HCode{</span>}%
+ \HCode{<span class="subsubsection_font">}}
+ {\HCode{</span>}\HCode{</h5>}}
+}
+
+\@ifclassloaded{report}{
+\Configure{part}
+ {\HCode{<div class="part">}}
+ {\HCode{</div>}}
+ {\HCode{<h1 class="partHead">}%
+ \pre@partcnt\thepart\post@partcnt\HCode{<br />}%
+ \HCode{<span class="part_font">}}
+ {\HCode{</span>}\HCode{</h1>}}
+\Configure{chapter}
+ {\HCode{<div class="chapter">}}
+ {\HCode{</div>}}
+ {\HCode{<h2 class="chapterHead">}%
+ \pre@chaptercnt\thechapter\post@chaptercnt\HCode{<br />}%
+ \HCode{<span class="chapter_font">}}
+ {\HCode{</span>}\HCode{</h2>}}
+\Configure{section}
+ {}
+ {}
+ {\HCode{<h3 class="sectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \pre@sectioncnt\thesection\post@sectioncnt~~%
+ \HCode{</span>}\HCode{<span class="section_font">}}
+ {\HCode{</span>}\HCode{</h3>}}
+\Configure{subsection}
+ {}
+ {}
+ {\HCode{<h4 class="subsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsection~~\HCode{</span>}%
+ \HCode{<span class="subsection_font">}}
+ {\HCode{</span>}\HCode{</h4>}}
+\Configure{subsubsection}
+ {}
+ {}
+ {\HCode{<h5 class="subsubsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsubsection~~\HCode{</span>}%
+ \HCode{<span class="subsubsection_font">}}
+ {\HCode{</span>}\HCode{</h5>}}
+}
+
+\@ifclassloaded{article}{
+\Configure{part}
+ {\HCode{<div class="part">}}
+ {\HCode{</div>}}
+ {\HCode{<h1 class="partHead">}%
+ \pre@partcnt\thepart\post@partcnt\HCode{<br />}%
+ \HCode{<span class="part_font">}}
+ {\HCode{</span>}\HCode{</h1>}}
+\Configure{section}
+ {}
+ {}
+ {\HCode{<h3 class="sectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \pre@sectioncnt\thesection\post@sectioncnt~~%
+ \HCode{</span>}\HCode{<span class="section_font">}}
+ {\HCode{</span>}\HCode{</h3>}}
+\Configure{subsection}
+ {}
+ {}
+ {\HCode{<h4 class="subsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsection~~\HCode{</span>}%
+ \HCode{<span class="subsection_font">}}
+ {\HCode{</span>}\HCode{</h4>}}
+\Configure{subsubsection}
+ {}
+ {}
+ {\HCode{<h5 class="subsubsectionHead">}%
+ \HCode{<span class="titlemark">}%
+ \thesubsubsection~~\HCode{</span>}%
+ \HCode{<span class="subsubsection_font">}}
+ {\HCode{</span>}\HCode{</h5>}}
+}
+
+\endinput