yindian / zhspacing

Automatically exported from code.google.com/p/zhspacing
1 stars 0 forks source link

Chinese Left "(" on the first char is wrong font. #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. test.tex
\documentclass[a4paper,11pt]{article}
\usepackage{fontspec}
\newfontfamily\zhfont[BoldFont=Adobe Heiti Std,ItalicFont=Adobe Kaiti
Std]{Adobe Song Std}
\newfontfamily\zhpunctfont{Adobe Song Std}
\newcommand{\pozhehao}{\kern0.5ex\rule[.2\baselineskip]{1.5em}{.4pt}\kern0.5ex}
\usepackage{color}
\usepackage{indentfirst}
\setlength{\parindent}{2em}
\usepackage{zhspacing}

\begin{document}
\zhspacing

\section{zhspacing 排版中的问题}
\textit{(1)中文括号(1)文中}

\textit{(1) 英文括号(1)文中}

\textbf {(1)中文括号(1)文中 }

\textbf {(1)英文括号(1) 文中 }
\end{document}

2. xelatex test.tex

What is the expected output? What do you see instead?

From the pdf file, I can find the Chinese left "(" and right ")" are not in
the same font. 

What version of the product are you using? On what operating system?

The zhspacing-080102-r4

Please provide any additional information below.

Original issue reported on code.google.com by fregis...@gmail.com on 14 Nov 2008 at 9:16

GoogleCodeExporter commented 9 years ago

Original comment by sinoz...@gmail.com on 30 Mar 2009 at 3:27

Attachments:

GoogleCodeExporter commented 9 years ago
Following is the patch file. It will be integrated in the future. Thanks for 
your 
bug report.

--- orig\zhspacing.sty  Wed Jan 02 15:29:18 2008
+++ zhspacing.sty   Sat May 16 18:43:02 2009
@@ -535,2 +535,3 @@
   \appendinterclasstoks{halfwidth}{\zhs@class}{\zhpunctfont}
+  \appendinterclasstoks{alphanum}{\zhs@class}{\zhpunctfont}
 }

Original comment by yindian@gmail.com on 16 May 2009 at 10:46