Bug 138839 - i18n: add languages Cabécar and Bribri
Summary: i18n: add languages Cabécar and Bribri
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Eike Rathke
URL:
Whiteboard: target:7.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-12 05:59 UTC by Rolando Coto
Modified: 2021-02-12 23:08 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rolando Coto 2020-12-12 05:59:23 UTC
Hi! I am making extensions for dictionaries of two Indigenous languages of Costa Rica, and I would like to request the addition of the following two ISO 639 codes:

cjp: Cabécar
bzd: Bribri

Thank you!
Comment 1 Julien Nabet 2020-12-12 08:55:43 UTC
Eike: thought you might be interested in this one.
BTW I wonder how you find the right codes.
I mean taking a look at https://cgit.freedesktop.org/libreoffice/core/commit/?id=e1873e961169f6a90820bb6d26a16f3fd32ccaca
Language list: + Aka (CAR); Yaka -> Yaka (Congo), + Yaka (DRC) [yaf-CD]

I don't find anything about "yaf" or "0x06A9"
Comment 2 Eike Rathke 2021-02-12 20:08:37 UTC
@Julien:
The ISO 639 codes can be found at https://iso639-3.sil.org/code_tables/639/data (leading to https://iso639-3.sil.org/code/yaf for your example).
If an ISO 639-1 two letter code exists we use that, otherwise the ISO 639-3 three letter code.
For the MS-LCID it depends, if there exists one assigned by Microsoft we of course use that, otherwise we assign one in the reserved for user-defined IDs ranges, include/i18nlangtag/lang.h has a bunch of comments on that.

@Rolando:
Note that even if there is no language list entry defined (yet) you can use a proper language tag in the Locales property of your dictionaries.xcu file. The tag then will be displayed on top of the language list in the paragraph or character attribution as, for example, {cjp-CR} or {bzd-CR}.
(a CJK or CTL language would need an additional property to identify which list).
Comment 3 Commit Notification 2021-02-12 23:07:04 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/9b6a84916a8f58f2c4db2c970eb2c366465c6472

Resolves: tdf#138839 Add Cabécar {cjp-CR} 0x06AA, Bribri {bzd-CR} 0x06AB

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.