Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Arabic support for PDF.JS

714 views
Skip to first unread message

Chris

unread,
Oct 23, 2014, 6:41:29 PM10/23/14
to mozilla-d...@lists.mozilla.org
Hi All,
This question is for anyone who has worked with the language packs in PDF.JS (especially those familiar with the Arabic l10n properties).

I'm currently working on a project to integrate PDF.JS into an established product of ours, and have a question around the language support. I modified l10n.js to take a query param from our application that contained our products current language setting - this way the pdf.js language setting is synced with ours. This worked great, until I hit Arabic (defined as 'ar' in the language configs). We currently have a defined language in our system for 'ar-sa' (Arabic, Saudi Arabia). Does anyone know whether there's a difference between the two, or even if the language pack currently included is proper for ar-sa? I've simply added a definition for 'ar-sa' into locale.properties for now, pointing towards the 'ar' pack.

Thanks!

Yury Delendik

unread,
Oct 23, 2014, 6:59:15 PM10/23/14
to Chris
On 10/23/14, 5:06 PM, Chris wrote:
> I modified l10n.js to take a query param from our application that contained our products current language setting - this way the pdf.js language setting is synced with ours.

Hi Chris,

The included l10n.js shall automatically fallback to 'ar' if it cannot
find 'ar-sa' resources, which shall be a generic translation. (However I
see that RTL mode is not detected properly, e.g. when opening
http://mzl.la/pdf-js#locale=ar-sa -- I opened issue at
https://github.com/mozilla/pdf.js/issues/5440)

Thanks.

Chris Silcock

unread,
Oct 23, 2014, 7:56:08 PM10/23/14
to Yury Delendik, mozilla-d...@lists.mozilla.org
Hi Yuri,
Thanks for the follow up. I noticed the RTL issue as well and fixed it in
our implementation, but I'm happy to see that you folks will look into
fixing it permanently. The information you provided around the translation
helps as well.

Chris
On Oct 23, 2014 3:58 PM, "Yury Delendik" <ydel...@mozilla.com> wrote:

> On 10/23/14, 5:06 PM, Chris wrote:
>
>> I modified l10n.js to take a query param from our application that
>> contained our products current language setting - this way the pdf.js
>> language setting is synced with ours.
>>
>
0 new messages