On 13/07/2010 14:56, Fr. Michael Gilmary wrote:

But is there hyphenation in Armenian? Should polyglossia have a gloss-armenian.ldf? As it is, there's only a warning, so it doesn't prevent compilation.


Currently the (soon-to-be-released) version 1.2 of polyglossia offers support for 67 different languages. Armenian is not among them yet, but I'd be happy to create a module to support it. Ideally this can only be achieved with the help of someone competent in that language, but at least the attached file should provide initial basic support. If someone is able to translate the caption strings, that would be nice! The code for formatting the date and the month names derives from the data for Armenian in the "Common Locale Data Repository":
http://unicode.org/cldr/trac/browser/trunk/common/main/hy.xml
Please inform me if I made a mistake!

@Arthur: is "hyphenmins={2,2}" (for left and right, resp.) okay for Armenian?

Regards,
François Charette

PS: the attached file cannot be used with polyglossia v1.1.1. You need to get v1.2 from github:
http://github.com/fc7/polyglossia/archives/1.2
but the easiest is to wait for its appearance on CTAN (probably) tomorrow :)
\ProvidesFile{gloss-armenian.ldf}[polyglossia: module for armenian]
\makeatletter

\PolyglossiaSetup{armenian}{
  script=Armenian,
  scripttag=armn,
  langtag=HYE,
  hyphennames={armenian},
  hyphenmins={2,2},
  fontsetup=true
}

\def\captionsarmenian{%
   \def\refname{}%
   \def\abstractname{}%
   \def\bibname{}%
   \def\prefacename{}%
   \def\chaptername{}%
   \def\appendixname{}%
   \def\contentsname{}%
   \def\listfigurename{}%
   \def\listtablename{}%
   \def\indexname{}%
   \def\authorname{}%
   \def\figurename{}%
   \def\tablename{}%
   %\def\thepart{}%
   \def\partname{}%
   \def\pagename{}%
   \def\seename{}%
   \def\alsoname{}%
   \def\enclname{}%
   \def\ccname{}%
   \def\headtoname{}%
   \def\proofname{}%
   \def\glossaryname{}%
}
\def\datearmenian{%
   \def\today{\ifcase\month\or
    Յունուար\or
    Փետրուար\or
    Մարտ\or
    Ապրիլ\or
    Մայիս\or
    Յունիս\or
    Յուլիս\or
    Օգոստոս\or
    Սեպտեմբեր\or
    Հոկտեմբեր\or
    Նոյեմբեր\or
    Դեկտեմբեր\fi
    \number\day,\space\number\year}}
\endinput

--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to