Bug#381657: installation-guide: Korean PDF build patch

2006-08-21 Thread Changwoo Ryu
2006-08-20 (일), 21:06 +0200, Frans Pop 쓰시길:
 On Sunday 20 August 2006 20:04, Changwoo Ryu wrote:
  New patch with changelog and error message fix.
 
 Thanks.
 
 One problem. If I try to build a Korean PDF (after installing
 latex-hangul-ucs of course), I get endless errors:

Ah..  I was wrong.  It's latex-hangul-ucs-hlatex package to depend on,
not latex-hangul-ucs.


Attached updated patch again.

-- 
Changwoo Ryu [EMAIL PROTECTED]
Index: debian/control
===
--- debian/control	(revision 40025)
+++ debian/control	(working copy)
@@ -4,7 +4,7 @@
 Maintainer: Debian Install System Team debian-boot@lists.debian.org
 Uploaders: Joey Hess [EMAIL PROTECTED], Frans Pop [EMAIL PROTECTED]
 Standards-Version: 3.6.2
-Build-Depends: debhelper (= 4), docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, docbook-dsssl, gs-common
+Build-Depends: debhelper (= 4), docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, docbook-dsssl, gs-common, latex-hangul-ucs-hlatex
 # This comment can also be used to generate a Build-Depends line, by
 # running the debian/genbuilddeps program. So put each build dep on its
 # own line, prefixed by  -  and to comment out a build dep, start the
@@ -31,6 +31,8 @@
 #		Used for producing pdf and ps files.
 #	- gs-common
 #		For pdfs.
+#	- latex-hangul-ucs-hlatex
+#		For Korean pdf
 
 Package: installation-guide-alpha
 Architecture: all
Index: debian/changelog
===
--- debian/changelog	(revision 40025)
+++ debian/changelog	(working copy)
@@ -29,7 +29,11 @@
   * Update preseeding docs to document listing more than one disk for
 partman-auto/disk and grub-installer/bootdev
 
- -- Joey Hess [EMAIL PROTECTED]  Thu, 17 Aug 2006 18:34:51 -0400
+  [ Changwoo Ryu ]
+  * Korean PDF output. Build-depends on latex-hangul-ucs-hlatex.
+Closes: #381657. 
+  
+ -- Changwoo Ryu [EMAIL PROTECTED]  Mon, 21 Aug 2006 03:00:16 +0900
 
 installation-guide (20060726) unstable; urgency=low
 
Index: build/buildone.sh
===
--- build/buildone.sh	(revision 40025)
+++ build/buildone.sh	(working copy)
@@ -192,6 +192,18 @@
 $tempdir/install.${language}.profiled.xml
 RET=$?; [ $RET -ne 0 ]  return $RET
 
+# some languages need additional macro
+case $language in
+ko)
+mv $tempdir/install.${language}.tex \
+$tempdir/install.${language}.orig.tex
+cat templates/header.${language}.tex \
+$tempdir/install.${language}.orig.tex \
+ $tempdir/install.${language}.tex
+	rm $tempdir/install.${language}.orig.tex
+;;
+esac
+
 echo Info: creating temporary .dvi file...
 
 # Next we use jadetex to generate a .dvi file
@@ -261,9 +273,9 @@
 BUILD_FAIL=
 for format in $formats ; do
 case $language in
-el|ja|ko|vi|zh_CN|zh_TW)
+el|ja|vi|zh_CN|zh_TW)
 if [ $format = pdf -o $format = ps ] ; then
-echo Warning: pdf and ps formats are currently not supported for Chinese, Greek, Japanese, Korean and Vietnamese
+echo Warning: pdf and ps formats are currently not supported for Chinese, Greek, Japanese and Vietnamese
 BUILD_SKIP=$BUILD_SKIP $format
 continue
 fi
Index: build/templates/header.ko.tex
===
--- build/templates/header.ko.tex	(revision 0)
+++ build/templates/header.ko.tex	(revision 0)
@@ -0,0 +1,104 @@
+
+%%% hangul typesetting along with jadetex
+%%%
+%%% (C) 2005  Dohyun Kim [EMAIL PROTECTED]
+%%%
+%%% This program is free software; you can redistribute it and/or modify
+%%% it under the terms of version 2 of the GNU General Public License as
+%%% published by the Free Software Foundation.
+%%%
+%%% This program is distributed in the hope that it will be useful, but
+%%% WITHOUT ANY WARRANTY; without even the implied warranty of
+%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%%% General Public License for more details.
+%%%
+%%% You should have received a copy of the GNU General Public License
+%%% along with this program; if not, write to the Free Software
+%%% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
+%%% USA 
+
+\def\hangulfontnormal{unwmj}
+\def\hangulfontbold{unwmjb}
+\def\hangulfonttitlenormal{unwgt}
+\def\hangulfonttitlebold{unwgtb}
+\def\chaptername{Chapter}
[EMAIL PROTECTED]@orig\Character
+\def\Character#1{%
+  \expandafter\ifx\csname!#1\endcsname\relax
+\hangulunichar{#1}%
+  \else
+[EMAIL PROTECTED]@orig{#1}%
+  \fi}

Bug#381657: installation-guide: Korean PDF build patch

2006-08-21 Thread Frans Pop
tags 381657 + pending
thanks

On Monday 21 August 2006 13:51, Changwoo Ryu wrote:
 Ah..  I was wrong.  It's latex-hangul-ucs-hlatex package to depend on,
 not latex-hangul-ucs.

Looks much better :-)

I must say that the resulting document looks pretty good too.

The pdf should become available on alioth when you next update the 
translation.

Thanks again for providing this solution.


pgpWNtpjGp7dm.pgp
Description: PGP signature


Bug#381657: installation-guide: Korean PDF build patch

2006-08-20 Thread Changwoo Ryu
New patch with changelog and error message fix.


-- 
Changwoo Ryu [EMAIL PROTECTED]
Index: debian/control
===
--- debian/control	(revision 40025)
+++ debian/control	(working copy)
@@ -4,7 +4,7 @@
 Maintainer: Debian Install System Team debian-boot@lists.debian.org
 Uploaders: Joey Hess [EMAIL PROTECTED], Frans Pop [EMAIL PROTECTED]
 Standards-Version: 3.6.2
-Build-Depends: debhelper (= 4), docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, docbook-dsssl, gs-common
+Build-Depends: debhelper (= 4), docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, docbook-dsssl, gs-common, latex-hangul-ucs
 # This comment can also be used to generate a Build-Depends line, by
 # running the debian/genbuilddeps program. So put each build dep on its
 # own line, prefixed by  -  and to comment out a build dep, start the
@@ -31,6 +31,8 @@
 #		Used for producing pdf and ps files.
 #	- gs-common
 #		For pdfs.
+#	- latex-hangul-ucs
+#		For Korean pdf
 
 Package: installation-guide-alpha
 Architecture: all
Index: debian/changelog
===
--- debian/changelog	(revision 40025)
+++ debian/changelog	(working copy)
@@ -29,7 +29,10 @@
   * Update preseeding docs to document listing more than one disk for
 partman-auto/disk and grub-installer/bootdev
 
- -- Joey Hess [EMAIL PROTECTED]  Thu, 17 Aug 2006 18:34:51 -0400
+  [ Changwoo Ryu ]
+  * Korean PDF output. Build-depends on latex-hangul-ucs. Closes: #381657.
+  
+ -- Changwoo Ryu [EMAIL PROTECTED]  Mon, 21 Aug 2006 03:00:16 +0900
 
 installation-guide (20060726) unstable; urgency=low
 
Index: build/buildone.sh
===
--- build/buildone.sh	(revision 40025)
+++ build/buildone.sh	(working copy)
@@ -192,6 +192,18 @@
 $tempdir/install.${language}.profiled.xml
 RET=$?; [ $RET -ne 0 ]  return $RET
 
+# some languages need additional macro
+case $language in
+ko)
+mv $tempdir/install.${language}.tex \
+$tempdir/install.${language}.orig.tex
+cat templates/header.${language}.tex \
+$tempdir/install.${language}.orig.tex \
+ $tempdir/install.${language}.tex
+	rm $tempdir/install.${language}.orig.tex
+;;
+esac
+
 echo Info: creating temporary .dvi file...
 
 # Next we use jadetex to generate a .dvi file
@@ -261,9 +273,9 @@
 BUILD_FAIL=
 for format in $formats ; do
 case $language in
-el|ja|ko|vi|zh_CN|zh_TW)
+el|ja|vi|zh_CN|zh_TW)
 if [ $format = pdf -o $format = ps ] ; then
-echo Warning: pdf and ps formats are currently not supported for Chinese, Greek, Japanese, Korean and Vietnamese
+echo Warning: pdf and ps formats are currently not supported for Chinese, Greek, Japanese and Vietnamese
 BUILD_SKIP=$BUILD_SKIP $format
 continue
 fi
Index: build/templates/header.ko.tex
===
--- build/templates/header.ko.tex	(revision 0)
+++ build/templates/header.ko.tex	(revision 0)
@@ -0,0 +1,104 @@
+
+%%% hangul typesetting along with jadetex
+%%%
+%%% (C) 2005  Dohyun Kim [EMAIL PROTECTED]
+%%%
+%%% This program is free software; you can redistribute it and/or modify
+%%% it under the terms of version 2 of the GNU General Public License as
+%%% published by the Free Software Foundation.
+%%%
+%%% This program is distributed in the hope that it will be useful, but
+%%% WITHOUT ANY WARRANTY; without even the implied warranty of
+%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%%% General Public License for more details.
+%%%
+%%% You should have received a copy of the GNU General Public License
+%%% along with this program; if not, write to the Free Software
+%%% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
+%%% USA 
+
+\def\hangulfontnormal{unwmj}
+\def\hangulfontbold{unwmjb}
+\def\hangulfonttitlenormal{unwgt}
+\def\hangulfonttitlebold{unwgtb}
+\def\chaptername{Chapter}
[EMAIL PROTECTED]@orig\Character
+\def\Character#1{%
+  \expandafter\ifx\csname!#1\endcsname\relax
+\hangulunichar{#1}%
+  \else
+[EMAIL PROTECTED]@orig{#1}%
+  \fi}
[EMAIL PROTECTED]@[EMAIL PROTECTED]
+\def\hangulunichar#1{%
+  \begingroup
+  [EMAIL PROTECTED]@[EMAIL PROTECTED]
+  [EMAIL PROTECTED]@[EMAIL PROTECTED]@series
+\ifx\ProcessingMode{book-title-verso-mode}
+  \let\myhangulfont\hangulfonttitlenormal
+\else
+  \let\myhangulfont\hangulfontnormal
+\fi
+  \else
+\ifx\ProcessingMode{book-title-verso-mode}
+ 

Bug#381657: installation-guide: Korean PDF build patch

2006-08-20 Thread Frans Pop
On Sunday 20 August 2006 20:04, Changwoo Ryu wrote:
 New patch with changelog and error message fix.

Thanks.

One problem. If I try to build a Korean PDF (after installing
latex-hangul-ucs of course), I get endless errors:

kpathsea: Running mktextfm unwmjbc1
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; 
input unwmjbc1
This is METAFONT, Version 2.71828 (Web2C 7.5.4)

kpathsea: Running mktexmf unwmjbc1
! I can't find file `unwmjbc1'.
* ...ljfour; mag:=1; nonstopmode; input unwmjbc1

Please type another input file name
! Emergency stop.
* ...ljfour; mag:=1; nonstopmode; input unwmjbc1

Transcript written on mfput.log.
grep: unwmjbc1.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input 
unwmjbc1' failedto make unwmjbc1.tfm.
kpathsea: Appending font creation commands to missfont.log.
kpathsea: Running mktextfm unwmjbce
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; 
input unwmjbce
This is METAFONT, Version 2.71828 (Web2C 7.5.4)

kpathsea: Running mktexmf unwmjbce
! I can't find file `unwmjbce'.
* ...ljfour; mag:=1; nonstopmode; input unwmjbce

Please type another input file name
! Emergency stop.
* ...ljfour; mag:=1; nonstopmode; input unwmjbce

Transcript written on mfput.log.
grep: unwmjbce.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input 
unwmjbce' failedto make unwmjbce.tfm.
kpathsea: Running mktextfm unwmjbc5
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; 
input unwmjbc5
This is METAFONT, Version 2.71828 (Web2C 7.5.4)

kpathsea: Running mktexmf unwmjbc5
! I can't find file `unwmjbc5'.
* ...ljfour; mag:=1; nonstopmode; input unwmjbc5

Please type another input file name
! Emergency stop.
* ...ljfour; mag:=1; nonstopmode; input unwmjbc5

Transcript written on mfput.log.


pgphsXVy77j50.pgp
Description: PGP signature


Bug#381657: installation-guide: Korean PDF build patch

2006-08-18 Thread Changwoo Ryu
2006-08-18 (금), 14:12 +0900, Changwoo Ryu 쓰시길:
 2006-08-18 (금), 00:45 +0200, Frans Pop 쓰시길: 

  - Where does the build/templates/header.ko.tex file come from? Did you
write it yourself or was it available somewhere? I think we do need
to know this for copyright reasons. It would probably be good to add
an explicit copyright comment at the top of the document.
 
 It was written by Dohyun Kim, the upstream author of latex-hangul-ucs.
 He just wrote it when I requested for help building d-i manual PDF, and
 later I modified a bit to make it clean.
 
 I'll ask him for copyright stuffs.

Here is the updated patch with copyright comment inserted by Dohyun Kim.


Index: debian/control
===
--- debian/control	(revision 39921)
+++ debian/control	(working copy)
@@ -4,7 +4,7 @@
 Maintainer: Debian Install System Team debian-boot@lists.debian.org
 Uploaders: Joey Hess [EMAIL PROTECTED], Frans Pop [EMAIL PROTECTED]
 Standards-Version: 3.6.2
-Build-Depends: debhelper (= 4), docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, docbook-dsssl, gs-common
+Build-Depends: debhelper (= 4), docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, docbook-dsssl, gs-common, latex-hangul-ucs
 # This comment can also be used to generate a Build-Depends line, by
 # running the debian/genbuilddeps program. So put each build dep on its
 # own line, prefixed by  -  and to comment out a build dep, start the
@@ -31,6 +31,8 @@
 #		Used for producing pdf and ps files.
 #	- gs-common
 #		For pdfs.
+#	- latex-hangul-ucs
+#		For Korean pdf
 
 Package: installation-guide-alpha
 Architecture: all
Index: build/buildone.sh
===
--- build/buildone.sh	(revision 39921)
+++ build/buildone.sh	(working copy)
@@ -192,6 +192,18 @@
 $tempdir/install.${language}.profiled.xml
 RET=$?; [ $RET -ne 0 ]  return $RET
 
+# some languages need additional macro
+case $language in
+ko)
+mv $tempdir/install.${language}.tex \
+$tempdir/install.${language}.orig.tex
+cat templates/header.${language}.tex \
+$tempdir/install.${language}.orig.tex \
+ $tempdir/install.${language}.tex
+	rm $tempdir/install.${language}.orig.tex
+;;
+esac
+
 echo Info: creating temporary .dvi file...
 
 # Next we use jadetex to generate a .dvi file
@@ -261,7 +273,7 @@
 BUILD_FAIL=
 for format in $formats ; do
 case $language in
-el|ja|ko|vi|zh_CN|zh_TW)
+el|ja|vi|zh_CN|zh_TW)
 if [ $format = pdf -o $format = ps ] ; then
 echo Warning: pdf and ps formats are currently not supported for Chinese, Greek, Japanese, Korean and Vietnamese
 BUILD_SKIP=$BUILD_SKIP $format
Index: build/templates/header.ko.tex
===
--- build/templates/header.ko.tex	(revision 0)
+++ build/templates/header.ko.tex	(revision 0)
@@ -0,0 +1,104 @@
+
+%%% hangul typesetting along with jadetex
+%%%
+%%% (C) 2005  Dohyun Kim [EMAIL PROTECTED]
+%%%
+%%% This program is free software; you can redistribute it and/or modify
+%%% it under the terms of version 2 of the GNU General Public License as
+%%% published by the Free Software Foundation.
+%%%
+%%% This program is distributed in the hope that it will be useful, but
+%%% WITHOUT ANY WARRANTY; without even the implied warranty of
+%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%%% General Public License for more details.
+%%%
+%%% You should have received a copy of the GNU General Public License
+%%% along with this program; if not, write to the Free Software
+%%% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
+%%% USA 
+
+\def\hangulfontnormal{unwmj}
+\def\hangulfontbold{unwmjb}
+\def\hangulfonttitlenormal{unwgt}
+\def\hangulfonttitlebold{unwgtb}
+\def\chaptername{Chapter}
[EMAIL PROTECTED]@orig\Character
+\def\Character#1{%
+  \expandafter\ifx\csname!#1\endcsname\relax
+\hangulunichar{#1}%
+  \else
+[EMAIL PROTECTED]@orig{#1}%
+  \fi}
[EMAIL PROTECTED]@[EMAIL PROTECTED]
+\def\hangulunichar#1{%
+  \begingroup
+  [EMAIL PROTECTED]@[EMAIL PROTECTED]
+  [EMAIL PROTECTED]@[EMAIL PROTECTED]@series
+\ifx\ProcessingMode{book-title-verso-mode}
+  \let\myhangulfont\hangulfonttitlenormal
+\else
+  \let\myhangulfont\hangulfontnormal
+\fi
+  \else
+\ifx\ProcessingMode{book-title-verso-mode}
+  \let\myhangulfont\hangulfonttitlebold
+\else
+  \let\myhangulfont\hangulfontbold
+\fi
+  \fi
+  \count2=#1  % \count2   = AC01
+  

Bug#381657: installation-guide: Korean PDF build patch

2006-08-16 Thread Frans Pop
Sorry for replying a bit late, beta 3 release and all that...

On Sunday 06 August 2006 11:54, Changwoo Ryu wrote:
 I agree this is a hack for building Korean document with plain TeX.  It
 will be obsolete when some clever (maybe pdflatex?) way is ready.  But
 currently it works anyway and is useful.

Thank you for providing the patch. I have a few questions before we can 
apply it.

- Where does the build/templates/header.ko.tex file come from? Did you
  write it yourself or was it available somewhere? I think we do need
  to know this for copyright reasons. It would probably be good to add
  an explicit copyright comment at the top of the document.
- Does the patch also require a particular font to be installed?
- Is this solution perhaps also possible for the other CJK languages
  and, if so, would you be willing to help realize that?

Otherwise it looks like a clean enough solution to me

Thanks,
FJP


pgpb4gBQDvhvl.pgp
Description: PGP signature


Bug#381657: installation-guide: Korean PDF build patch

2006-08-06 Thread Changwoo Ryu
Package: installation-guide
Severity: wishlist

This is Korean manual PDF build patch.

It adds new Build-Depends on latex-hangul-ucs, which is already in
testing.

I agree this is a hack for building Korean document with plain TeX.  It
will be obsolete when some clever (maybe pdflatex?) way is ready.  But
currently it works anyway and is useful.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17
Locale: LANG=ko_KR.UTF-8, LC_CTYPE=ko_KR.UTF-8 (charmap=UTF-8)
Index: debian/control
===
--- debian/control  (revision 39593)
+++ debian/control  (working copy)
@@ -4,7 +4,7 @@
 Maintainer: Debian Install System Team debian-boot@lists.debian.org
 Uploaders: Joey Hess [EMAIL PROTECTED], Frans Pop [EMAIL PROTECTED]
 Standards-Version: 3.6.2
-Build-Depends: debhelper (= 4), docbook, docbook-xml, docbook-xsl, xsltproc, 
gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, 
docbook-dsssl, gs-common
+Build-Depends: debhelper (= 4), docbook, docbook-xml, docbook-xsl, xsltproc, 
gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, 
docbook-dsssl, gs-common, latex-hangul-ucs
 # This comment can also be used to generate a Build-Depends line, by
 # running the debian/genbuilddeps program. So put each build dep on its
 # own line, prefixed by  -  and to comment out a build dep, start the
@@ -31,6 +31,8 @@
 #  Used for producing pdf and ps files.
 #  - gs-common
 #  For pdfs.
+#  - latex-hangul-ucs
+#  For Korean pdf
 
 Package: installation-guide-alpha
 Architecture: all
Index: build/buildone.sh
===
--- build/buildone.sh   (revision 39593)
+++ build/buildone.sh   (working copy)
@@ -192,6 +192,18 @@
 $tempdir/install.${language}.profiled.xml
 RET=$?; [ $RET -ne 0 ]  return $RET
 
+# some languages need additional macro
+case $language in
+ko)
+mv $tempdir/install.${language}.tex \
+$tempdir/install.${language}.orig.tex
+cat templates/header.${language}.tex \
+$tempdir/install.${language}.orig.tex \
+ $tempdir/install.${language}.tex
+   rm $tempdir/install.${language}.orig.tex
+;;
+esac
+
 echo Info: creating temporary .dvi file...
 
 # Next we use jadetex to generate a .dvi file
@@ -261,7 +273,7 @@
 BUILD_FAIL=
 for format in $formats ; do
 case $language in
-el|ja|ko|vi|zh_CN|zh_TW)
+el|ja|vi|zh_CN|zh_TW)
 if [ $format = pdf -o $format = ps ] ; then
 echo Warning: pdf and ps formats are currently not supported 
for Chinese, Greek, Japanese, Korean and Vietnamese
 BUILD_SKIP=$BUILD_SKIP $format
Index: build/templates/header.ko.tex
===
--- build/templates/header.ko.tex   (revision 0)
+++ build/templates/header.ko.tex   (revision 0)
@@ -0,0 +1,85 @@
+\def\hangulfontnormal{unwmj}
+\def\hangulfontbold{unwmjb}
+\def\hangulfonttitlenormal{unwgt}
+\def\hangulfonttitlebold{unwgtb}
+\def\chaptername{Chapter}
[EMAIL PROTECTED]@orig\Character
+\def\Character#1{%
+  \expandafter\ifx\csname!#1\endcsname\relax
+\hangulunichar{#1}%
+  \else
+[EMAIL PROTECTED]@orig{#1}%
+  \fi}
[EMAIL PROTECTED]@[EMAIL PROTECTED]
+\def\hangulunichar#1{%
+  \begingroup
+  [EMAIL PROTECTED]@[EMAIL PROTECTED]
+  [EMAIL PROTECTED]@[EMAIL PROTECTED]@series
+\ifx\ProcessingMode{book-title-verso-mode}
+  \let\myhangulfont\hangulfonttitlenormal
+\else
+  \let\myhangulfont\hangulfontnormal
+\fi
+  \else
+\ifx\ProcessingMode{book-title-verso-mode}
+  \let\myhangulfont\hangulfonttitlebold
+\else
+  \let\myhangulfont\hangulfontbold
+\fi
+  \fi
+  \count2=#1  % \count2   = AC01
+  \divide\count2 256  % \count2   = AC
+  \count4\count2  % \count4   = AC
+  \divide\count2 16   % \count2   = A; determined
+  \count255\count2% \count255 = A
+  \multiply\count255 16   % \count255 = A0
+  \advance\count4 -\count255  % \count4   = C; determined
+  \edef\mymyfont{\myhangulfont
+\ifcase\count2  0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or
+8\or 9\or a\or b\or c\or d\or e\or f\fi
+\ifcase\count4  0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or
+8\or 9\or a\or b\or c\or d\or e\or f\fi}%
+  \font\myfont\mymyfont\space at [EMAIL PROTECTED] pt\relax
+  % calculate hangul char number
+  \count2=#1  % \count2   = AC01
+  \count255\count2% \count255 = AC01
+  \divide\count255 256% \count255 = AC
+  \multiply\count255 256  % \count255 = AC00
+  \advance\count2 -\count255  %