![使用 biber/xelatex/polyglossia 的多脚本书目](https://linux22.com/image/250620/%E4%BD%BF%E7%94%A8%20biber%2Fxelatex%2Fpolyglossia%20%E7%9A%84%E5%A4%9A%E8%84%9A%E6%9C%AC%E4%B9%A6%E7%9B%AE.png)
我已成功使用 polyglossia 制作多语种文档。我尝试使用 biber 制作多语种书目。所有东西都编译得很好,但 .bib 文件中的阿拉伯语脚本未打印在 pdf 文件中。它在 TexWorks 日志中正确显示,但在 pdf 文件中根本没有显示,日志中没有相关警告,甚至在强制使用 utf-8 编码后也是如此。
这是最少的代码:
在 main.tex 中:
\documentclass[12pt,a4paper]{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{arabic}
\usepackage{fontspec}
\newfontfamily\arabicfont[Script=Arabic,Scale=3]{Arabic Typesetting}
\usepackage[backend=biber,bibencoding=utf8,sorting=nyt]{biblatex}
\addbibresource{References/newref.bib}
在 newref.bib 中
@article{arabic1,
author ={عزيزة مبارك العلوني, مريم عبد الرحمن السهلي, مهرة فارس المطيري, ندى محمد ميمني},
journal = {رسالة ماجستير غير منشورة},
title = {برنامج تعليمي الكتروني في تنمية بعض من مهارات الاستعداد للقراءة لدى أطفال ما قبل المدرسة},
url = {http://www.minshawi.com/node/2241},
year = 2011
}
更新:这是日志:
Package biblatex Warning: Biber reported the following issues
(biblatex) with 'arabic1':
(biblatex) - Name "ط¹ط²ظٹط²ط© ظ…ط¨ط§ط±ظƒ ط§ظ„ط¹ظ„ظˆظ†ظٹ, ظ…ط±ظٹظ
… ط¹ط¨ط¯ ط§ظ„ط±طظ…ظ† ط§ظ„ط³ظ‡ظ„ظٹ, ظ…ظ‡ط±ط© ظپط§ط±ط³ ط§ظ„ظ…ط·ظٹط±ظٹ, ظ†ط¯ظ‰ ظ…
طظ…ط¯ ظ…ظٹظ…ظ†ظٹ" has too many commas: skipping name.
)
Package biblatex Info: Reference section=0 on input line 74.
Package biblatex Info: Reference segment=0 on input line 74.
Requested font "[lmsans12-regular]:mapping=tex-text" at 12.0pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmsans12-regular.otf
Requested font "[lmsans10-regular]:mapping=tex-text" at 10.95pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmsans10-regular.otf
Requested font "[lmsans10-bold]:mapping=tex-text" at 12.0pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmsans10-bold.otf
File: TitlePage/GUC-logo-ss.ps Graphic file (type eps)
<TitlePage/GUC-logo-ss.ps>
Requested font "[lmsans17-regular]:mapping=tex-text" at 17.28pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmsans17-regular.otf
File: TitlePage/logo2.eps Graphic file (type eps)
<TitlePage/logo2.eps>
Requested font "[lmsans10-bold]:mapping=tex-text" at 17.28pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmsans10-bold.otf
Overfull \vbox (91.82722pt too high) detected at line 83
[]
Requested font "[lmsans10-bold]:mapping=tex-text" at 10.95pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmsans10-bold.otf
Requested font "[lmroman10-regular]:mapping=tex-text" at 10.95pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmroman10-regular.otf
[1
] [1
] ("E:\Lolla\My Work\Masters\Thesis files\Thesis\main.toc"
Requested font "[lmroman12-bold]:mapping=tex-text" at 12.0pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmroman12-bold.otf
Requested font "[lmroman8-regular]:mapping=tex-text" at 8.0pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmroman8-regular.otf
Requested font "[lmroman6-regular]:mapping=tex-text" at 6.0pt
-> C:/Program Files/MiKTeX 2.9/fonts/opentype/public/lm/lmroman6-regular.otf
Requested font "cmmi12" at 12.0pt
-> cmmi12
Requested font "cmmi8" at 8.0pt
-> cmmi8
Requested font "cmmi6" at 6.0pt
-> cmmi6
Requested font "cmsy10" at 12.0pt
-> cmsy10
Requested font "cmsy8" at 8.0pt
-> cmsy8
Requested font "cmsy6" at 6.0pt
-> cmsy6
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 7.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 7.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 7.
Requested font "cmr8" at 8.0pt
-> cmr8
Requested font "cmr6" at 6.0pt
-> cmr6
[2])
\tf@toc=\write4
[3]
Joseph,我在日志中注意到了两件事:首先,阿拉伯字符在这里也没有显示,尽管它们在 TexWorks 日志中显示正确。此外,还请求了 msans 字体。我不知道为什么会请求它。作为一种解决方法,我将尝试将英语字体设置为与阿拉伯语相同的字体,看看会发生什么……
答案1
不确定阿拉伯语和 biber,但你可能想看看persian-bib
包裹。