ucs c00 encoding should use chinese arphic fonts

Bug #179725 reported by Herbert Schmid
2
Affects Status Importance Assigned to Milestone
texlive-base (Debian)
Fix Released
Unknown
texlive-base (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: texlive-latex-recommended

c00enc.def refers to the definition of the sung bitmap font, while this definition seems not be included in any texlive package.

anyway, as I read the dependencies of latex-cjk-chinese people should use the new arphic truetype fonts anyway and not the old bitmaps fonts.

the following patch removes the need for the missing bitmap sung definition file in favor for the arphic bsmi truetype font.

the file c00enc.def belongs to the ctan package ucs and is included in the ubuntu package texlive-latex-recommended.

--- usr/share/texmf-texlive/tex/latex/ucs/c00enc.def_orig 2006-05-15 21:12:54.000000000 +0200
+++ usr/share/texmf-texlive/tex/latex/ucs/c00enc.def 2008-01-01 21:20:38.000000000 +0100
@@ -15,6 +15,6 @@
 %%
 \ProvidesFile{c00enc.def}[2001/10/11 Fontencoding C00 (Big5)]%
 \DeclareFontEncoding{C00}{}{}%
-\DeclareFontSubstitution{C00}{song}{m}{n}%
+\DeclareFontSubstitution{C00}{bsmi}{m}{n}%
 \input{cenccmn.tex}%
-\expandafter\let\csname C00/song/m/n\endcsname\undefined
+\expandafter\let\csname C00/bsmi/m/n\endcsname\undefined

Revision history for this message
Herbert Schmid (sairia) wrote :

remark which doesn't belong to the bug, but may be interesting for one or the other reader:

you don't need the CTAN package cjk anymore, if you like to typeset chinese whith unicode.
just use ucs in your document preamble:

\usepackage[cjkbg5]{ucs} % belongs to utf8x, the x is important
\usepackage[utf8x]{inputenc}
%\usepackage[ngerman]{babel} % or whatever you need
\usepackage[C00,T1]{fontenc}

Revision history for this message
Herbert Schmid (sairia) wrote :

this patch also changes the file date to 2008/01/01.

Revision history for this message
Norbert Preining (preining) wrote : Re: [Bug 179725] ucs c00 encoding should use chinese arphic fonts

Package: texlive-latex-recommended
Version: 2007-13
Severity:normal

Dear Dominique, dear Herbert, dear TeX Live team,

(Herbert:) thanks for the bug report, I have created a image of it in
the Debian Bug Database.

(TeX Live Team:) all for your information

(Dominique:) We got the following bug report which relates to the ucs
package. It seems that the mentioned sung bitmap font is not available,
while the arphic fonts are widely available and packaged for at least
Debian and Ubuntu (and for sure for many others, too).

Do you see any other problems with the approach taken below?

Would it be possible to include this in a new release of ucs?

(For Debian/Ubuntu:) I guess if we get a positive answer I will patch
this into the current TeX Live packages. Hopefully it will be fixed
upstream, too.

Thanks a lot and all the best in the new year

Norbert

On Di, 01 Jan 2008, Herbert Schmid wrote:
> Public bug reported:
>
> Binary package hint: texlive-latex-recommended
>
> c00enc.def refers to the definition of the sung bitmap font, while this
> definition seems not be included in any texlive package.
>
> anyway, as I read the dependencies of latex-cjk-chinese people should
> use the new arphic truetype fonts anyway and not the old bitmaps fonts.
>
> the following patch removes the need for the missing bitmap sung
> definition file in favor for the arphic bsmi truetype font.
>
> the file c00enc.def belongs to the ctan package ucs and is included in
> the ubuntu package texlive-latex-recommended.
>
> --- usr/share/texmf-texlive/tex/latex/ucs/c00enc.def_orig 2006-05-15 21:12:54.000000000 +0200
> +++ usr/share/texmf-texlive/tex/latex/ucs/c00enc.def 2008-01-01 21:20:38.000000000 +0100
> @@ -15,6 +15,6 @@
> %%
> \ProvidesFile{c00enc.def}[2001/10/11 Fontencoding C00 (Big5)]%
> \DeclareFontEncoding{C00}{}{}%
> -\DeclareFontSubstitution{C00}{song}{m}{n}%
> +\DeclareFontSubstitution{C00}{bsmi}{m}{n}%
> \input{cenccmn.tex}%
> -\expandafter\let\csname C00/song/m/n\endcsname\undefined
> +\expandafter\let\csname C00/bsmi/m/n\endcsname\undefined
>
> ** Affects: texlive-base (Ubuntu)
> Importance: Undecided
> Status: New
>
> --
> ucs c00 encoding should use chinese arphic fonts
> https://bugs.launchpad.net/bugs/179725
> You received this bug notification because you are a member of Debian
> TeX Maintainers, which is a bug contact for texlive-base in ubuntu.

-------------------------------------------------------------------------------
Dr. Norbert Preining <email address hidden> Vienna University of Technology
Debian Developer <email address hidden> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
FIUNARY (n.)
The safe place you put something and then forget where it was.
   --- Douglas Adams, The Meaning of Liff

Revision history for this message
Ming Hua (minghua) wrote :

Norbert, thanks for the TeX-related bug triaging work you've been doing.

On Sun, Jan 06, 2008 at 03:44:40PM +0100, Norbert Preining wrote:
>
> (Dominique:) We got the following bug report which relates to the ucs
> package. It seems that the mentioned sung bitmap font is not available,
> while the arphic fonts are widely available and packaged for at least
> Debian and Ubuntu (and for sure for many others, too).

I know the Arphic fonts are available in Fedora (though probably not
installed by default) in TTF form, but not sure if they have the LaTeX
format (Type1?) packaged. The Debian/Ubuntu packages are made from TTF
files using fontforge.

Also, if it is decided to make such change, I would like to ask if it's
possible to consider satisfying both the similified Chinese users (use
"gbsn", provided by Debian's latex-cjk-chinese-arphic-gbsn00lp package)
and the tranditional Chinese users (use "bsmi", provided by Debian's
latex-cjk-chinese-arphic-bsmi00 package).

> > --- usr/share/texmf-texlive/tex/latex/ucs/c00enc.def_orig 2006-05-15 21:12:54.000000000 +0200
> > +++ usr/share/texmf-texlive/tex/latex/ucs/c00enc.def 2008-01-01 21:20:38.000000000 +0100
> > @@ -15,6 +15,6 @@
> > %%
> > \ProvidesFile{c00enc.def}[2001/10/11 Fontencoding C00 (Big5)]%
> > \DeclareFontEncoding{C00}{}{}%
> > -\DeclareFontSubstitution{C00}{song}{m}{n}%
> > +\DeclareFontSubstitution{C00}{bsmi}{m}{n}%
> > \input{cenccmn.tex}%
> > -\expandafter\let\csname C00/song/m/n\endcsname\undefined
> > +\expandafter\let\csname C00/bsmi/m/n\endcsname\undefined

Ming
2008.01.06

Revision history for this message
Danai SAE-HAN () (danai-sae-han) wrote : Re: Bug#459438: ucs c00 encoding should use chinese arphic fonts

Hi!

Op 06-01-08 16:22, schreef Ming Hua:
> Norbert, thanks for the TeX-related bug triaging work you've been doing.

I'd like to pay my respect as well. Cheers, Norbert!

> Also, if it is decided to make such change, I would like to ask if it's
> possible to consider satisfying both the similified Chinese users (use
> "gbsn", provided by Debian's latex-cjk-chinese-arphic-gbsn00lp package)
> and the tranditional Chinese users (use "bsmi", provided by Debian's
> latex-cjk-chinese-arphic-bsmi00 package).

Indeed; the GB2312 encoding uses C10 instead of C00 however, so you might
need to create another .def file for this.

The upstream developer of CJK, Werner Lemberg, has repeatedly warned for the
use of UCS and CJK together, but perhaps this was without the .def changes
suggested here.

Best regards

--
Danai SAE-HAN (韓達耐)

題目:《襄邑道中》
作者:陳與義(1090-1138)

飛花兩岸照船紅,百里榆堤半日風。
臥看滿天云不動,不知云與我俱東。

Revision history for this message
Norbert Preining (preining) wrote :

To all, please use the new address of Dominique for furhter discussion.
I have bounced him all the emails.
 Dominique Unruh <email address hidden>

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <email address hidden> Vienna University of Technology
Debian Developer <email address hidden> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
TILLICOULTRY (n.)
The man-to-man chumminess adopted by an employer as a prelude for
telling an employee that he's going to have to let him go.
   --- Douglas Adams, The Meaning of Liff

Changed in texlive-base:
status: Unknown → New
Revision history for this message
Herbert Schmid (sairia) wrote :

Dear Norbert, Danai Sae-Han, Ming Hua and Dominique,

I've done some more testing and got the following results. (.tex and
.pdf attached.)

1. the CJK package is obsolete if you use unicode input. in this case
you won't need anything beside ucs and the fonts. I've installed the
latex-cjk-chinese-arphaic-* packages only, but not latex-cjk-chinese
package itself.

2. c00enc sets just the default font and latex issues errors only if you
really typeset chinese characters. Users can repair this using
\DeclareFontSubstitution{C00}{bsmi}{m}{n}
in the document preamble.

Anyway, not applying my patches leaves the ubuntu default installation
broken.

3. c10enc.def also needs similiar changes (patch attached).

4. c00enc corresponds to the ucs option "cjkbg5",
   c10enc to option "cjkgb"

5. there are two arphaic fonts, each is supplied in two encodings
C00: bsmi (clear design) and bkai (calligraphic)
C10: gbsn (clear design) and gkai (calligraphic)

6. I've no idea of chinese typesetting and choosen the replacements just by accident.

You may wish to use bkai for c00/"cjkbg5" and gbsn for c10/"cjkgb". I
think the native speakers should decide this and the patches need to be
changed accordingly.

Best regards,
Herbert

--- /usr/share/texmf-texlive/tex/latex/ucs/c10enc.def_orig 2008-01-07 01:37:23.000000000 +0100
+++ /usr/share/texmf-texlive/tex/latex/ucs/c10enc.def 2008-01-07 01:37:52.000000000 +0100
@@ -15,6 +15,6 @@
 %%
 \ProvidesFile{c10enc.def}[2001/10/11 Fontencoding C10 (Big5)]%
 \DeclareFontEncoding{C10}{}{}%
-\DeclareFontSubstitution{C10}{song}{m}{n}%
+\DeclareFontSubstitution{C10}{gkai}{m}{n}%
 \input{cenccmn.tex}%
-\expandafter\let\csname C10/song/m/n\endcsname\undefined
+\expandafter\let\csname C10/gkai/m/n\endcsname\undefined

Revision history for this message
Herbert Schmid (sairia) wrote :
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

I have a question regarding this: the above example works fine. If I typeset 禮 in regular text (using C00_chinese_test.tex as template), it works just fine. But if I say \section{禮}, I get this error:

 ! Undefined control sequence.
 \u@cjk@Bgv ...{\fontencoding {C00}\def \CJK@plane
                                                   {#1#2}\selectfont \char "#...
 l.48 \section{禮}

Any thoughts on that? (I am on up-to-date hardy now). Thanks!

Revision history for this message
xteejx (xteejx) wrote :

Hi guys,
Has this been implemented yet, or is it still a problem in the latest release Karmic as I don't know how to test this, but there has been no activity for over 18 months. Thank you.

Changed in texlive-base (Ubuntu):
status: New → Incomplete
Revision history for this message
Herbert Schmid (sairia) wrote :

Hi,

I will have a look at this as soon as texlive 2009 is packaged for debian/ubuntu which has just been released upstream.

Teej, please revert the status to new, because this bug should not be closed automatically.

Thanks,
herbert

@Václav Šmilauer:
Did you try
   \PrerenderUnicode{禮}
in the document preemble just before \begin{document} ?

xteejx (xteejx)
Changed in texlive-base (Ubuntu):
status: Incomplete → New
Revision history for this message
xteejx (xteejx) wrote :

I believe the 2009 package has been released now in Debian unstable, any chance you could test this for us please? Thank you.
Marking Wishlist bug.

Changed in texlive-base (Ubuntu):
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
xteejx (xteejx) wrote :

This bug report is being closed as there has been no response. If you can provide the information, please reopen this bug report. Thank you.

Changed in texlive-base (Ubuntu):
importance: Wishlist → Undecided
status: Incomplete → Invalid
Changed in texlive-base (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.