summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xetex/zhspacing/zhs-man.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/xetex/zhspacing/zhs-man.tex')
-rw-r--r--Master/texmf-dist/doc/xetex/zhspacing/zhs-man.tex37
1 files changed, 22 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/xetex/zhspacing/zhs-man.tex b/Master/texmf-dist/doc/xetex/zhspacing/zhs-man.tex
index 6959a38d641..e4d16a710e6 100644
--- a/Master/texmf-dist/doc/xetex/zhspacing/zhs-man.tex
+++ b/Master/texmf-dist/doc/xetex/zhspacing/zhs-man.tex
@@ -4,7 +4,10 @@
%\usepackage[margin=1.5in]{geometry}
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}
-\usepackage[no-sscript]{xltxtra}
+\usepackage{hologo}
+\def\eTeX{\hologo{eTeX}}
+\def\XeTeX{\hologo{XeTeX}}
+\def\XeLaTeX{\hologo{XeLaTeX}}
\usepackage{zhspacing}
\usepackage[fakebold]{zhfont}
\usepackage[noactive]{zhmath}
@@ -29,7 +32,7 @@
manual\thanks{Revision: \zhspacingrevision.}}
\author{\textsc{Yin} Dian\footnote{Lab.\ of Network Comm. System \&
Control, Univ.\ of Sci.\ \& Tech.\ of China.}}
-\date{2012/03/14}
+\date{2016/02/10}
\maketitle
\tableofcontents
\newpage
@@ -56,7 +59,7 @@ using \XeTeX, the package |zhspacing| is coded, utilizing the new primitive of
\section{Getting Started}
|zhspacing| can be used in both plain \XeTeX\ or \XeLaTeX. The usage is quite
-straightforward. For instance, in plain \XeTeX,
+straightforward. For instance, in plain \XeTeX,
{\emptyskipscheme
\begin{verbatim}
\input zhspacing.sty
@@ -90,11 +93,11 @@ well as math formulas. In fact, all of the following inputs can produce mixed
langauge output with skip automatically inserted between Chinese and English
characters,
\begin{center}
-\emptyskipscheme |中Eng文|,\quad |中 Eng文|,\quad |中Eng 文|\quad and\quad |中 Eng 文|.
+\emptyskipscheme |中Eng文|,\quad |中 Eng文|,\quad |中Eng 文|\quad and\quad |中 Eng 文|.
\end{center}
And their corresponding output is,
\begin{center}
-中Eng文,\quad 中 Eng文,\quad 中Eng 文\quad and\quad 中 Eng 文.
+中Eng文,\quad 中 Eng文,\quad 中Eng 文\quad and\quad 中 Eng 文.
\end{center}
Look close and you'll find, that the first and second input generates exactly
@@ -200,7 +203,7 @@ link}}.}% or Fig.~\ref{fig:kieu}.}
\subsection{More on Fonts}
Sometimes it may be desirable to use different Chinese fonts for different
\NFSS\ font families in \LaTeX. This can be done by changing the definition of
-\cs{zhs@savefont} and \cs{zhfont}, without modifying the |zhspacing| source.
+\cs{zhs@savefont} and \cs{zhfont}, without modifying the |zhspacing| source.
Here is the way to do it.\footnote{See zhfont.sty later for convenient ways.}
\begin{verbatim}
@@ -287,7 +290,7 @@ All of the skip commands above are defined in the pattern \\
\vadjust{}\hfil |\def\skipxxx{\hskip xxxxx}|.
|zhspacing| comes with three pre-defined skip schemes, namely
-\cs{simsunskipscheme}, \cs{emptyskipscheme} and \cs{haltskipscheme}. The
+\cs{simsunskipscheme}, \cs{emptyskipscheme} and \cs{haltskipscheme}. The
first scheme should be suitable for font \fntname{SimSun} and other popular
Chinese fonts used in China, which does not support OpenType features of
|halt|, and needs negative spaces be inserted before opening punctuations and
@@ -300,7 +303,8 @@ customization, of course.
Vertical Chinese can be achieved by adding raw feature |vertical| to the
specified font. An example could be, \hfil
\setbox0=\hbox to 0pt{\vbox{\noindent
-\newfontfamily\zhfont[RawFeature={script=hani:language=CHN:vertical:+vert},
+\newfontlanguage{Chinese}{CHN}
+\newfontfamily\zhfont[Script=CJK,Language=Chinese,Vertical=RotatedGlyphs,
BoldFont=SimHei]{SimSun}
\let\zhpunctfont\zhfont
\haltskipscheme
@@ -312,12 +316,14 @@ specified font. An example could be, \hfil
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{zhspacing}
- \zhspacing
- \begin{document}
+ \newfontlanguage{Chinese}{CHN}
\newfontfamily\zhfont[
- RawFeature={script=hani:language=CHN:vertical:+vert}]{SimSun}
+ Script=CJK, Language=Chinese,
+ Vertical=RotatedGlyphs]{SimSun}
\let\zhpunctfont\zhfont
\haltskipscheme
+ \zhspacing
+ \begin{document}
\rotatebox{-90}{我是中国人,我爱自己的祖国。}
\end{document}
\end{verbatim}
@@ -331,7 +337,7 @@ punctuations using some fonts such as \fntname{KaiTi\_GB2312} etc. I've told
this bug to \name{jjgod} in May, but it seems that he hasn't solved the problem
yet. Moreover, the baseline of vertical Chinese is not correct, so mixed
typesetting of Chinese and English in vertical mode generates ugly results, and
-thus should be avoided.
+thus should be avoided.
\subsection{Compatibility}
Theoretically, |zhspacing| should be compatible with all macro packages, except
those who change the definition of \cs{hskip} and \cs{penalty}, in which case
@@ -391,7 +397,8 @@ You can get latest stable version of |zhspacing| on CTAN.
|zhspacing| was hosted on an open-source project at googlecode. The old project
homepage is \url{http://code.google.com/p/zhspacing/}.
-Now |zhspacing| is part of |ctex-kit| project (\url{http://code.google.com/p/ctex-kit/}). You can get the lastest source via SVN.
+Now |zhspacing| is part of |ctex-kit| project (\url{https://github.com/CTeX-org/ctex-kit/}).
+You can get the lastest source via Git.
\goodbreak
\part{zhfont.sty}
@@ -415,13 +422,13 @@ You can redefine them to customize your fonts.
Simply macro to set \cs{zh\{rm/sf/tt\}font} using \cs{newfontfamily}.
\mymacro\newfontfamilywithslant
-Create a font family with fake slant. Take one argument as the font name.
+Create a font family with fake slant. Take one argument as the font name.
Example: |\newfontfamilywithslant\zhrmfont{SimSun}|
\mymacro\newfontfamilywithslantandbold
Create a font family with fake slant, and specify another font for its
-boldface. Take two arguments as the font name and bold font name.
+boldface. Take two arguments as the font name and bold font name.
Example:\\\quad |\newfontfamilywithslantandbold\zhrmfont{SimSun}{SimHei}|
\section{Examples}