summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex')
-rw-r--r--Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex55
1 files changed, 54 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex b/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex
index fc58b04be04..096561708a2 100644
--- a/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex
+++ b/Master/texmf-dist/doc/fonts/xcharter/xcharter-doc.tex
@@ -13,6 +13,7 @@
\font\osfIfnt=XCharter-Roman-tosf-t1 at 11pt
\font\osffnt=XCharter1-Roman-tosf-t1 at 11pt
\usepackage{fonttable}
+\usepackage{booktabs}
\usepackage{url}
\newcommand\cyrtext{\fontfamily{XCharter-TLF}\fontencoding{OT2}\selectfont} % declaration
\DeclareTextFontCommand{\textcyr}{\cyrtext} %macro with argument
@@ -30,7 +31,9 @@ The \emph{XCharter} fonts are extensions of the Bitstream Charter fonts, adding
As of version 1.09 (2017-06-25) there is a new collection of Cyrillic glyphs in \emph{XCharter}, copied from Andrey Panov's \emph{Khartiya}, an extension of the free Charter fonts, with small caps included. Some new figure styles were also copied from \emph{Khartiya}---inferiors, numerators and denominators. Along with these additions, there are now slanted versions for those who wish to have both slanted and italic text available to meet distinct semantic purposes. Note that figures and uppercase slanted and italic are almost identical (except for slanted \textsl{Q} and italic \textit{Q}) but lower-case forms are distinct.
-Support files are provided for T$1$, TS$1$, LY$1$, T$2$A and OT$2$ encodings, the latter being to support the Cyrillic component of \emph{XCharter}. The package has a number of options:
+Starting with version 1.1, support has been added for typesetting in the Serbian variant of Cyrillic, with some changes to the Italic and BoldItalic Cyrillic glyphs and a new option in the main package. These are described more fully below.
+
+Support files are provided for T$1$, TS$1$, LY$1$, T$2$A and OT$2$ encodings, the last two being to support the Cyrillic component of \emph{XCharter}. The package has a number of options:
\begin{itemize}
\item
{\tt scaled=.98}, for example, scales all text to 98\% of specified size;
@@ -39,6 +42,8 @@ Support files are provided for T$1$, TS$1$, LY$1$, T$2$A and OT$2$ encodings, th
\item {\tt oldstyleI} (or {\tt osfI}) sets the figure style in text mode to oldstyle (\textosfI{0123456789}) with numeral one like a shortened I, but math mode will always use lining figures;
\item {\tt sups} sets the style for superscript figures (eg, footnote markers) to XCharter's superior figures rather than using the default text inserts in mathematical superscripts. This option has no effect if a KOMA class is in force.
\item {\tt scosf} makes oldstyle figures the default in small cap text, no matter what the global figure setting may be.
+\item {\tt serbianc} is useful only with the T$2$A encoding. It modifies
+one slot in upright and slanted shapes and five slots in italic shapes, as expected in Serbian Cyrillic. See the last section for examples.
\end{itemize}
@@ -170,7 +175,55 @@ Any {\tt utf8}-encoded text typed outside of a \verb|\foreignlanguage{}{}| block
\newpage
\textsc{XCharter-Roman-tlf-t2a.tfm}:\\
\fonttable{XCharter-Roman-tlf-t2a.tfm}
+\newpage
+\textsc{XCharter-Italic-tlf-t2a.tfm}:\\
+\fonttable{XCharter-Italic-tlf-t2a.tfm}
\textsc{Note:} Currently, the \LaTeX\ support files for T$2$A encoded \emph{XCharter} cover only the figure styles {\tt lining}, {\tt oldstyle} and {\tt superiors}.
+\section{Serbian Cyrillic}
+Serbian and Russian Cyrillic differ in the following ways.
+
+\font\russc=XCharter-Roman-tlf-t2a at 11pt
+\font\serbc=XCharter-Roman-tlf-t2asrb at 11pt
+\font\russci=XCharter-Italic-tlf-t2a at 11pt
+\font\serbci=XCharter-Italic-tlf-t2asrb at 11pt
+\begin{center}
+ \begin{tabular}{@{} cccc @{}}
+ \toprule
+ Character & Shape & Russian & Serbian \\
+ \midrule
+ U+0431 & Upright & {\russc\char"E1} & {\serbc\char"E1} \\
+ U+0431 & Italic & {\russci\char"E1} & {\serbci\char"E1} \\
+ U+0433 & Italic & {\russci\char"E3} & {\serbci\char"E3} \\
+ U+0434 & Italic & {\russci\char"E4} & {\serbci\char"E4} \\
+ U+043F & Italic & {\russci\char"EF} & {\serbci\char"EF} \\
+ U+0442 & Italic & {\russci\char"F2} & {\serbci\char"F2} \\
+ \bottomrule
+ \end{tabular}
+\end{center}
+
+Usage under XeLaTeX and XeLaTeX is simple. Your preamble should include
+\begin{verbatim}
+\usepackage{polyglossia}
+\usepackage{fontspec}
+\setmainfont{XCharter}[%
+Language=Serbian,
+Script=Cyrillic
+]
+\end{verbatim}
+Then all (unicode) input characters will be typeset using the above substitution table.
+
+The story is a bit more complicated with \LaTeX\ processing.
+
+\textsc{Example 1: Serbian Cyrillic as default text.}
+\begin{verbatim}
+\usepackage[utf8x]{inputenc}
+\usepackage[serbianc]{babel}
+\usepackage[serbianc]{XCharter}
+\usepackage[T2A]{fontenc}
+\end{verbatim}
+This will produce essentially the same output as the {\tt fontspec} example above, with unicode input.
+It may be be possible to work out a scheme that would allow multiple scripts and languages to be used with {\tt serbianc} as the main or as a secondary language in {\tt babel}, but I have not succeeded in doing this with XCharter, and know of no other example that I might crib from.
+%\textsc{Example 2:
\end{document} \ No newline at end of file