阿拉伯語參考書目與 biblatex

阿拉伯語參考書目與 biblatex

我沒有發現任何提及使用biblatex阿拉伯文字(在本例中為阿拉伯文字)插入參考書目條目的可能性。

我有什麼辦法可以做到嗎?

答案1

我不完全確定你的問題是什麼。您想要一份完全阿拉伯語的 pdf 文件,還是一份英文版的 pdf 文件,其中可以選擇引用阿拉伯文獻沒有音譯書目資訊?

無論如何:這裡有一個例子表明它可以使用biblatex和排版阿拉伯語參考文獻biber

這個答案遠非完美。很多事情都需要調整或使其完美,例如:

  1. 使用的逗號是阿拉伯文本中錯誤的逗號
  2. 一般來說,語法不需要調整
  3. 也許您希望阿拉伯語腳註右對齊(這是可能的,但我不知道如何
  4. 一個阿拉伯數字就footnotemark很好了(很容易實現!)
  5. 你需要阿拉伯語表達“編輯者”等。

但這一切都應該是可能的。

後續問題:是否有可能僅有的阿拉伯語腳註右對齊並保持英語腳註左對齊?

工作範例:

% !TEX TS-program = lualatexmk
\documentclass[12pt, a4paper, DIV=calc]{scrartcl}

\usepackage{fontspec}
    \setmainfont[Ligatures=TeX]{Times New Roman}
    \newfontfamily\arabicfont[Script=Arabic,Scale=1.3]{Arabic Typesetting}

\usepackage[style=verbose,backend=biber]{biblatex}
    \DeclareFieldFormat{postnote}{#1}% postnotes without p. and pp.

\newcommand{\arabtext}[1]   % Arabic inside LTR
    {\bgroup\luatextextdir TRT\arabicfont #1\egroup}
\newcommand{\arabnr}[1]     % for digits inside Arabic text
    {\bgroup\luatextextdir TLT #1\egroup}
\newcommand{\afootnote}[1]  % Arabic footnotes
    {\footnote{\arabtext{#1}}}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
    @book{ibnsina:shifa:physics:ar,
    author = {\arabtext{ابن سينا}},
    year = {\arabnr{١٤١٧}},
    title = {\arabtext{السماع الطبيعى من كتاب الشفاء}},
    publisher = {\arabtext{دار المناهل}},
    location = {\arabtext{بيروت}},
        }
    @book{ibnsina:shifa:physics:en,
    author = {Avicenna},
    year = {1996},
    title = {Al-Samāʿ al-ṭabīʿī min Kitāb al-Šifāʾ},
    publisher = {Dār al-Manāhil},
    location = {Beirut}}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\noindent Text with an English reference in the footnote.\footnote{\cite[12]{ibnsina:shifa:physics:en}.}

\noindent Text with an Arabic reference in the footnote.\afootnote{\cite[\arabnr{١٢}]{ibnsina:shifa:physics:ar}.}

\printbibliography

\end{document}

答案2

polyglossia我解決這個問題的方法biblatex是使用\textarabic.我確信這是目前最好的解決方案。如果它不適合您,請告訴我原因,我會嘗試調整我的答案。

由於您抱怨我使用了另一個答案中的範例,因此這裡有一個我自己的範例,放入 MWS 中以展示如何使用它:

\documentclass{scrartcl}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Arabic Typesetting}
% redefine \textarabic{} to never be italic
\let\oldtextarabic\textarabic
\renewcommand{\textarabic}{\upshape\oldtextarabic}
\usepackage[backend=biber,style=mla]{biblatex}

\begin{filecontents}{example.bib}
@book{Jamii2005,
  location = {\textarabic{بيروت}},
  title = {\textarabic{قاموس الفصاحة العمانية - ما حفظته الدارجة العمانية لللغة العربية}},
  volumes = {2},
  publisher = {\textarabic{‏‏دار أحياء التراث العربي}},
  author = {\textarabic{الجامعي}, \textarabic{أبو قاسم محمود بن حميد}},
  date = {2005},
  langid = {arabic}
}
\end{filecontents}

\addbibresource{example.bib}

\begin{document}
  \section{Example}
  Lorem ipsum dolor sit amet \parencite[p. 123]{Jamii2005} consectetur.
  \printbibliography
\end{document}

編譯文件

@Werner:感謝您的格式化幫助!

答案3

您可以使用 解決此問題Persian-bib,請前往 CTAN 並下載Persian-bib,將其放入您的工作目錄中,然後按照以下步驟操作:

  • 將這些程式碼行複製並貼上到序言中:

    \usepackage{xepersian}
    \settextfont[Scale=1]{XB Zar}%{XB Niloofar}
    \setlatintextfont[Scale=1]{Linux Libertine}
    \defpersianfont\Sayeh[Scale=1]{XB Kayhan Sayeh}
    
  • 前往文件的適當部分並插入以下內容:

    \bibliographystyle{asa-fa}%{chicago-fa}%{plainnat-fa}%
    \bibliography{MyReferences}
    

{asa-fa}= RTL 語言的改編文件,{MyReferences}= 是您的.bib文件

*請不要忘記添加必要的字體

相關內容