# [XeTeX] Typesetting Arabic in XeLaTeX

Manuel Souto Pico m.soutopico at gmail.com
Sun Feb 14 03:41:19 CET 2010

Hello,

I would just update the list on one of the problems that I had, see below.
I'd be grateful for any contribution or attempt to help.

>>> 3) How can I get the date in Arabic in the title? I mean like ٣٠ كانون
>>> الثاني ٢٠١٠ or ٣٠ فبراير ٢٠١٠, which are just January 30, 2010 in Arabic,
>>> not the Hijra date according to the lunar calendar... When I used babel long
>>> ago I would put arabic as the last item in the list of parameters of the
>>> package declaration, but what should I do with arabxetex or polyglossia?
>>> I've tried \date{\arab \today} and \date{\begin{Arabic}\today\end{Arabic}},
>>> respectively, but the result is far from good.
>>>
>>
>> I think polyglossia has some options for this but I am not sure. Read the
>> manual of polyglossia and it should contain all the details.
>>
>
> Well, I did, but it's not clear to me. Section 5 talks about
> language-specific options and commands but I don't know how to use them or
> where to put them. I've tried all around. It seems what I need is
> calendar=gregorian but that's the default option already.
>
> From what the polyglossia manual says (section 5.1), I understand I should
get the gregorian alphabet by default. However, without defining any
calendar I get 1431 �afar 29 instead of ٢٠١٠ طابش ١٤ .

http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/macros/xetex/latex/polyglossia/polyglossia.pdf

That probably means that, unless the package fails, I don't know how to
define the calendar. I don't know how to define the locale, either. Could
anyone enlighten me as to how I should use the options and end-user commands
listed in section 5.1?

This is my minimal example:

%!TEX TS-program = xelatex-xdvipdfmx
%!TEX encoding = UTF-8 Unicode

\documentclass[a4paper]{article}
\usepackage{polyglossia}
\setmainlanguage{arabic}
\setotherlanguage{galician}

\title{السلام عليكم}

\begin{document}
\maketitle
وعليكم السلام
\end{document}

Thanks a lot!
Manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100214/3568b6b1/attachment-0001.html>