# [tex-live] Bug#668562: Interoperability problem of frenchb.ldf and xeCJK.sty

Leo Liu leoliu.pku at gmail.com
Wed May 2 06:59:41 CEST 2012

Hi Flipo,

xeCJK is now under maintenance of ctex-kit project
( http://code.google.com/p/ctex-kit/ ) by a group of peoples, while Prof Sun has
no much time to maintain the package. I am now one of the current maintainers
of xeCJK package. The requested feature (using \newXeTeXintercharclass) has
been implemented for days in the LaTeX3 version in the SVN trunk. But we need
to do quite a lot of tests and modifications, please be patient.

However, xeCJK is not compatible with any package that relies on
\XeTeXinterchartoks. The polyglossia is one of them. And it is difficult to
make them work together very well, even the new version would have some

Best wishes,
Leo

-----Original Message-----
From: tex-live-bounces at tug.org [mailto:tex-live-bounces at tug.org] On Behalf Of Daniel Flipo
Sent: Wednesday, May 02, 2012 3:36 AM
To: Sun Wenchang
Cc: tex-live at tug.org
Subject: [tex-live] Bug#668562: Interoperability problem of frenchb.ldf and xeCJK.sty

Hi Sun, hi all,

A bug report (see http://bugs.debian.org/668562) was made a fortnight
ago.  The origin of the problem is that xeCJK assigns "\XeTeXcharclass"
4 to 6 to various ASCII characters instead of creating its own classes
with "\newXeTeXintercharclass".

A minimal example of the bug follows:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{xeCJK}
\usepackage[french]{babel}
\begin{document}
anti\-atomique
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Yet another test file that shows a problem (the origin is the same)
between polyglossia/french and xeCJK.sty:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{xeCJK}
\usepackage{polyglossia}
\setdefaultlanguage{french}
\begin{document}
% A spurious space is added before the 4 chars , . ] )
a,b.c x[z]y  u(v)w
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The fix I suggested on April 19th was to define 3 named
"\newXeTeXintercharclass" and to use them instead of raw 4, 5, 6
classes, but I got no feedback from Sun.

Sun, please tell us if you are willing to fix this issue, thanks in advance.

I can fix it on frenchb.ldf side, but polyglossia or any package making
use of XeTeXinterchartokens' mecanism will have to add the same fix
also, IMHO it is not the right way to go.

Best wishes,
--
Daniel Flipo