# Why do UpLaTex display Chinese text with Japanese punctations instead of Chinese punctations

When I tried to compile my file containing Chinese text vertical style using dvipdfmx, it ended up compiling the text which was written with Chinese punctuation where the period, 。 and 、 are supposed to be in the middle like most of the Taiwanese novels I have seen to punctuation more like Japanese style which is on the top right of the last character.

I looked on the website for UpTex itself and the example pdf for vertical Chinese looked appropriate when I downloaded it. Yet after using dvipdfmx on it it goes back to Japanese style punctuations.

Is there a package I can use to fix the punctuation so it will look appropriate?

EDIT:

\documentclass[dvipdfmx]{utarticle} % dvipdfmx driver option (for color) required, for post-processing of dvipdfmx
\usepackage{color} % not required for this example...
\begin{document}
\section{不動 明王}

\end{document}

• Post a MWE; an minimal working example .tex file which reproduces your problem. – Hironobu YAMASHITA Jun 13 '17 at 22:20
• Could this be a simplified vs traditional problem? I think in mainland usage the punctuation marks would be more like the ones you got a actually. – Rethliopuks Jun 13 '17 at 23:39
• @Rethliopuks I was using traditional Chinese in my text. – Rowan Dao Jun 13 '17 at 23:49
• By "post a MWE", I meant that you have to copy and paste the content of jpn.tex; otherwise nobody can answer your question. – Hironobu YAMASHITA Jun 14 '17 at 3:28
• @HironobuYAMASHITA Should I upload a pdf file to show where the offending punctuation error are? – Rowan Dao Jun 14 '17 at 4:34

By default, upLaTeX is optimized for Japanese texts. If you like to use traditional Chinese, you can write for example:

\documentclass{utarticle}
%\usepackage[english]{babel}% unnecessary after updating to 2017/05/29 v1.1
\usepackage[main=tchinese]{pxbabel}
% change the behavior of \normalfont for \section etc.
% here we use tchinese = J23, defined in pxbabel
%\def\kanjiencodingdefault{J23}% unnecessary after updating to 2017/06/19 v1.1a
\begin{document}
\section{不動 明王}

\end{document}


Save the above code as "tchinese-vert.tex" and execute

$uplatex tchinese-vert$ dvipdfmx tchinese-vert


then you will get

[Note] When the result is still wrong (= roman letters are messed up with kanji characters), there is something wrong in the embedded fonts themselves. For example, I know that arphic-ttf fonts (bsmi00lp.ttf = ShanHeiSun-Light, bkai00mp.ttf = ZenKai-Medium; these are freely available and set as default embedding fonts by TeX Live) do not work as expected in vertical writing.

In such case, you should choose other fonts by executing

$kanji-config-updmap-sys --tc adobe % when you choose Adobe fonts$ kanji-config-updmap-sys --tc ms    % when you choose Microsoft fonts


etc., and re-run dvipdfmx. The above choice is supported by "ptex-fontmaps"; if you want to know what embedding fonts can be used, see the result of the following:

$kanji-config-updmap-sys --tc status  If you don't have any fonts with vertical support, then you may choose $ kanji-config-updmap-sys --tc noEmbed


By executing this, dvipdfmx does not embed any traditional Chinese fonts; as a result, the actual fonts are determined by PDF viewers -- then, whether the result is correct depends on PDF viewer.

• The punctuation looks correct when I compile your example tex into pdf but I think the roman letters look off like this: !Messed up roman letters. – Rowan Dao Jun 14 '17 at 19:11
• As I already wrote in the answer, when arphic-ttf fonts are used, the result is wrong as you pointed (I experienced the same result as your "Messed up roman letters"). However, when you choose other fonts (adobe, ms, etc -- all these are not included in TeX Live due to non-free), the result will be ok. – Hironobu YAMASHITA Jun 14 '17 at 20:09