Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel: change in babel-ar.ini for different arabic months names #16

Closed
seloumi opened this issue Jan 31, 2018 · 3 comments
Closed

babel: change in babel-ar.ini for different arabic months names #16

seloumi opened this issue Jan 31, 2018 · 3 comments

Comments

@seloumi
Copy link

seloumi commented Jan 31, 2018

Brief outline of the bug

In context there are possibility to insert arabic months names with options ar, ar-dz, ar-sy, ar-ma

lang-txt.lua

Example in context

\setuppapersize[A4]
\mainlanguage[ar-sy] % ar, ar-dz, ar-sy, ar-ma
\setupdirections[bidi=global]
\setupalign[r2l] 

\setupbodyfontenvironment[default][em=italic]
\usemodule   [simplefonts]

\definefontfamily [myfont][serif][Amiri][features=arabic]
\definefontfamily [myfont][sans] [Amiri][features=arabic]
\setupbodyfont [myfont]

\starttext
\currentdate
\stoptext

These options are not available with babel, one option is available to write names of arabic months in eastern countries

babel-ar.ini

ar:
january =يناير
february =فبراير
march =مارس
april =أبريل
may =مايو
june =يونيو
july =يوليو
august =أغسطس
september=سبتمبر
october=أكتوبر
november=نوفمبر
december=ديسمبر

ar-dz: % algeria
january =جانفي
february =فيفري
march =مارس
april =أفريل
may =ماي
june =جوان
july =جويلية
august =أوت
september=سبتمبر
october=أكتوبر
november=نوفمبر
december=ديسمبر

ar-ma: % marocco
january =يناير
february =فبراير
march =مارس
april =أبريل
may =ماي
june =يونيو
july =يوليوز
august =غشت
september=شتنبر
october=أكتوبر
november=نونبر
december=دجنبر

ar-sy: % syria
january =كانون الثاني
february =شباط
march =آذار
april =نيسان
may =أيار
june =حزيران
july =تموز
august =آب
september=أيلول
october=تشرين الأول
november=تشرين الثاني
december=كانون الأول

@jbezos
Copy link
Contributor

jbezos commented Feb 1, 2018 via email

@seloumi
Copy link
Author

seloumi commented Feb 1, 2018

The file gloss-arabic.ldf from polyglossia is very sufficient except for Lybia's months (which have been changed), also for contents the arabic word is "المحتويات" not "الفهرس" as mentioned in babel-ar.ini

Thanks for all the work you do to improve Arabic writing with babel.

@jbezos jbezos self-assigned this Feb 2, 2018
@jbezos
Copy link
Contributor

jbezos commented Feb 7, 2018

Added 3 ini files on GitHub: ar-DZ, ar-MA, and ar-SY (and fixed the contents name). Feel free to make more feature requests.

@jbezos jbezos closed this as completed Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants