language/arabtex  

言語アラビア語,ペルシャ語,ウルドゥー語,パシュトー語
パッケージアラビア語TeXパッケージ v.3.11
作者Klaus Lagally
フォントMETAFONT,Type1
DocumentArabTeX User's Guide 日本語訳
備考 Babel環境下において,ArabTeX,とりわけヘブライ語,フランス語,ギリシア語の混在 を可能とするパッチを安田さんが提供してくださっています。ArabTeXをご使用の際は, パッチを当てたファイルをご使用ください。詳細は『スラヴ研究者向けLaTeX多言語環境の構築と利用 - pTeX p3.1.2』を参照願います。
パッチ適用済みのファイルはarab7bit.zipをダウンロードしてください。

■ インストール ■

arabtex                TEXMF
===================    =====================
doc/*.*             → \doc\arabtex
examples/*.*        → \doc\arabtex
mfinput/*.mf        → \fonts\source\arabtex
tfm/*.tfm           → \fonts\tfm\arabtex
psfonts/*.pfb       → \fonts\type1\arabtex
psfonts/arabtex.map → \fonts\map\arabtex
                       updmap --add arabtex.mapを実行する。
arab7bit.zip
===================
*.sty, *.fd etc     → \tex\arabtex

入力方法

入力方法は上記マニュアル参照してください。
日本語文章の中で,数語の単語をアラビア語で出力するような際に用いるコマンド ¥<...>,<...> は,パッチを当てた arabtex では エラーになります。¥RL コマンド,あるいはarabtext環境を使用してください。

■ サンプル ■

\documentclass [nashbf ]{jsarticle}
\usepackage{arabtex}
\begin{document}

\setarab \transtrue
\setnashbf \large
\begin{center}
\RL{nawAdiru}
\end{center}
\normalsize
\begin{center}
\begin{arabtext}^gu.hA wa-.hamIruhu al-‘a ^saraTu\end{arabtext}
\end{center}
\setnash
\begin{arabtext}
i ^starY ^gu.hA ‘a ^saraTa .hamIriN.fari.ha bihA wa-sAqahA ’amAmahu,
_tumma rakiba wA.hidaN minhA.wa-fI al-.t.tarIqi ‘adda .hamIrahu
wa-huwa rAkibuN,fa-wa ^gadahA tis ‘aTaN._tumma nazala wa-‘addahA
fa-ra ’AhA ‘a ^saraTuN fa-qAla:
\end{arabtext}

\end{document}
■ Babelとの併用 ■

英・独・仏・希・露・ヘブライ・ペルシア

使用方法は,英語,ドイツ語,フランス語,ギリシア語,ロシア語,日本語,ヘブライ語, ペルシア語混在の出力例とその ソースファイルをご覧ください。
なお,greek.cfg を カレントあるいは Babel のディレクトリーに置くと,古典ギリシア語モードに入る際に ¥catcode を変更する必要がありません。

greek.cfg
==================================
\addto\extraspolutonikogreek{%
  \catcode`\<=12%
  \catcode`\_=12%
  }

Spanishとの併用

スペイン語と併用すると,下記のようなエラーが生じるという報告がありました。

\documentclass{article}
\usepackage[spanish]{babel}
\usepackage{arabtex}
\begin{document}
espa\~nol
\RL{`arabiyyaT}
\end{document}

エラー

! Argument of \a@parse has an extra }.

                \par
l.6 \RL{`arabiyyaT}

?

スペイン語の入力において,acuteアクセントの入力方法('a 'e 等)を \~a \~e 等に置き換えることにより上記のエラーを回避する方法があります。他は spanish.ldf で定義されているとおりです。 下記の spanish.cfg をカレントもしくは babel のディレクトリに置いてお使いください。 なお,下記のサンプルのように,otherlanguage 環境内でスペイン語を記述 願います。\selectlanguage ですと,古典ギリシャ語で ~,アラビア語で " ' が原因となるエラーが生じる場合があります。

spanish.cfg
========================================
\declare@shorthand{spanish}{~a}{\'a}%
\declare@shorthand{spanish}{~A}{\'A}%
\declare@shorthand{spanish}{~e}{\'e}%
\declare@shorthand{spanish}{~E}{\'E}%
\declare@shorthand{spanish}{~i}{\'{\i}}%
\declare@shorthand{spanish}{~I}{\'I}%
\declare@shorthand{spanish}{~o}{\'o}%
\declare@shorthand{spanish}{~O}{\'O}%
\declare@shorthand{spanish}{~u}{\'u}%
\declare@shorthand{spanish}{~U}{\'U}%
\def\deactivatequoting{%
  \catcode`>=12 \catcode`<=12}
\let\es@quoting\deactivatequoting
\es@quoting
\endinput

sample.tex
======================================================================
\documentclass[a4paper]{jsarticle}
\usepackage[spanish,greek,english]{babel}
\languageattribute{greek}{polutoniko}
\usepackage{arabtex}
\begin{document}
\begin{otherlanguage}{spanish}
"<~N~n"> "?~A~a ~E~e ~I~i ~O~o ~U~u? "!"U"u "C"c! 1"er 1"o 1"a $\lim$
\end{otherlanguage}

\selectlanguage{greek}
>'Andra moi >'ennepe, Mo~usa, pol'utropon, <`oc m'ala poll`a...
\bigskip

\RL{```arabiyyaT 'amruN "'u''}
\end{document}

■ Links ■

Arabic, Dari, Hausa, Kabyle, Kashmiri, Kazak, Kurdish, Kyrghyz, Malay, Morisco, Pashto, Persian/Farsi, Punjabi, Sindhi, Siraiki, Tatar, Turkish, Uyghur, Urdu
Arabic calligraphy
  http://www.islamicart.com/main/calligraphy
Wikipedia: Arabic language
  http://en.wikipedia.org/wiki/Arabic_language
Universal Declaration of Human Rights Arabic
  http://www.unhchr.ch/udhr/lang/arz.htm
Universal Declaration of Human Rights Farsi/Persian
  http://www.unhchr.ch/udhr/lang/prs.htm
Universal Declaration of Human Rights Pashto/Pakhto
  http://www.unhchr.ch/udhr/lang/pbu.htm
Universal Declaration of Human Rights Urdu
  http://www.unhchr.ch/udhr/lang/urd.htm
Wikipedia in Arabic
  http://ar.wikipedia.org/wiki/
Wikipedia in Persian
  http://fa.wikipedia.org/wiki/
Wikipedia in Pashto
  http://ps.wikipedia.org/wiki/
Wikipedia in Urdu
  http://ur.wikipedia.org/wiki/