From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- language/korean/kotex-utf/tex4ht/dhucs.4ht | 22 ++++ language/korean/kotex-utf/tex4ht/dhucs.cfg | 40 +++++++ .../korean/kotex-utf/tex4ht/kosections-utf.4ht | 131 +++++++++++++++++++++ 3 files changed, 193 insertions(+) create mode 100644 language/korean/kotex-utf/tex4ht/dhucs.4ht create mode 100644 language/korean/kotex-utf/tex4ht/dhucs.cfg create mode 100644 language/korean/kotex-utf/tex4ht/kosections-utf.4ht (limited to 'language/korean/kotex-utf/tex4ht') 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 +%% +%% 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 +%% +%% 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 +%% +%% 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{
}} + {\HCode{
}} + {\HCode{

}% + \pre@partcnt\thepart\post@partcnt\HCode{
}% + \HCode{}} + {\HCode{}\HCode{

}} +\Configure{chapter} + {\HCode{
}} + {\HCode{
}} + {\HCode{

}% + \pre@chaptercnt\thechapter\post@chaptercnt\HCode{
}% + \HCode{}} + {\HCode{}\HCode{

}} +\Configure{section} + {} + {} + {\HCode{

}% + \HCode{}% + \pre@sectioncnt\thesection\post@sectioncnt~~% + \HCode{}\HCode{}} + {\HCode{}\HCode{

}} +\Configure{subsection} + {} + {} + {\HCode{

}% + \HCode{}% + \thesubsection~~\HCode{}% + \HCode{}} + {\HCode{}\HCode{

}} +\Configure{subsubsection} + {} + {} + {\HCode{
}% + \HCode{}% + \thesubsubsection~~\HCode{}% + \HCode{}} + {\HCode{}\HCode{
}} +} + +\@ifclassloaded{report}{ +\Configure{part} + {\HCode{
}} + {\HCode{
}} + {\HCode{

}% + \pre@partcnt\thepart\post@partcnt\HCode{
}% + \HCode{}} + {\HCode{}\HCode{

}} +\Configure{chapter} + {\HCode{
}} + {\HCode{
}} + {\HCode{

}% + \pre@chaptercnt\thechapter\post@chaptercnt\HCode{
}% + \HCode{}} + {\HCode{}\HCode{

}} +\Configure{section} + {} + {} + {\HCode{

}% + \HCode{}% + \pre@sectioncnt\thesection\post@sectioncnt~~% + \HCode{}\HCode{}} + {\HCode{}\HCode{

}} +\Configure{subsection} + {} + {} + {\HCode{

}% + \HCode{}% + \thesubsection~~\HCode{}% + \HCode{}} + {\HCode{}\HCode{

}} +\Configure{subsubsection} + {} + {} + {\HCode{
}% + \HCode{}% + \thesubsubsection~~\HCode{}% + \HCode{}} + {\HCode{}\HCode{
}} +} + +\@ifclassloaded{article}{ +\Configure{part} + {\HCode{
}} + {\HCode{
}} + {\HCode{

}% + \pre@partcnt\thepart\post@partcnt\HCode{
}% + \HCode{}} + {\HCode{}\HCode{

}} +\Configure{section} + {} + {} + {\HCode{

}% + \HCode{}% + \pre@sectioncnt\thesection\post@sectioncnt~~% + \HCode{}\HCode{}} + {\HCode{}\HCode{

}} +\Configure{subsection} + {} + {} + {\HCode{

}% + \HCode{}% + \thesubsection~~\HCode{}% + \HCode{}} + {\HCode{}\HCode{

}} +\Configure{subsubsection} + {} + {} + {\HCode{
}% + \HCode{}% + \thesubsubsection~~\HCode{}% + \HCode{}} + {\HCode{}\HCode{
}} +} + +\endinput -- cgit v1.2.3