我正在用 XeLaTeX 和 制作一个使用藏文 Unicode 字体的文档fontspec
。但是,文本显示不正确。上标和下标字母出现在基本字母旁边,而不是在它们上面或下面,而且 tsheg 的外观很奇怪。我怀疑这是由于使用了错误的字体,但我不知道该换成哪种字体。谢谢。
\documentclass[10pt]{article}
\usepackage{fontspec}
\begin{document}
\setmainfont{Arial Unicode MS}
བོད་ཡིག་འདི་ལ་དག་པར་ཡོང་གི་མ་རེད།
\end{document}
更新:下面是编译此代码的摘录:
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\setmainfont{Kailasa}
བོད་ཡིག་འདི་ལ་དག་པར་ཡོང་གི་མ་རེད།
\end{document}
“Kailasa” 是我的系统上安装的藏文字体;无论我使用哪种藏文字体,结果都是一样的。以下是文字记录的结尾:
.................................................
. fontspec info: "no-scripts"
.
. Font Kailasa does not contain any OpenType `Script' information.
.................................................
\g__fontspec_family_Kailasa_int=\count121
.................................................
. fontspec info: "no-font-shape"
.
. Could not resolve font Kailasa/BI (it probably doesn't exist).
.................................................
.................................................
. fontspec info: "no-font-shape"
.
. Could not resolve font Kailasa/B (it probably doesn't exist).
.................................................
.................................................
. fontspec info: "no-font-shape"
.
. Could not resolve font Kailasa/I (it probably doesn't exist).
.................................................
.................................................
. fontspec info: "defining-font"
.
. Font family 'Kailasa(0)' created for font 'Kailasa' with options
. [Ligatures=TeX].
.
. This font family consists of the following shapes:
.
. * 'normal' with NFSS spec.:
. <->"Kailasa/OT:mapping=tex-text;"
.
. * 'small caps' with NFSS spec.:
.
. and font adjustment code:
.
.................................................
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no ? in font Kailasa Regular/OT:mapping=tex-text;!
Missing character: There is no 1 in font Kailasa Regular/OT:mapping=tex-text;!
[1
]
(./tibetan test.aux) )
Here is how much of TeX's memory you used:
13186 strings out of 493734
278852 string characters out of 6146348
296946 words of memory out of 5000000
16499 multiletter control sequences out of 15000+600000
3704 words of font info for 22 fonts, out of 8000000 for 9000
1328 hyphenation exceptions out of 8191
46i,4n,59p,10365b,183s stack positions out of 5000i,500n,10000p,200000b,80000s
Output written on tibetan test.pdf (1 page).
由于某种原因,它无法识别在文档代码中输入的字符或找不到字体,尽管我确定它已安装在我的系统上。
答案1
我在这里找到了两种用于排版藏文的免费字体:http://digitaltibetan.org/index.php/Tibetan_Fonts#Freely_available_Unicode_fonts。
以下是使用这些字体的示例:
\documentclass[10pt]{article}
\usepackage{fontspec}
\begin{document}
\setmainfont{DDC Uchen}
བོད་ཡིག་འདི་ལ་དག་པར་ཡོང་གི་མ་རེད།
\setmainfont{Jomolhari}
བོད་ཡིག་འདི་ལ་དག་པར་ཡོང་གི་མ་རེད།
\end{document}
输出: