-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: Tags like Ancient Greek, grc-Grek, should still have BCP47 (s…
…implify templating)
- Loading branch information
Showing
4 changed files
with
70 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2431,10 +2431,6 @@ class HXLTMDatumNormam: # pylint: disable=too-many-instance-attributes | |
>>> HXLTMDatumNormam('[email protected].भारत').a() | ||
'+normam_356_xz_museum_icom_भारत_x_private1_wadegile' | ||
>>> HXLTMLinguam('rmf-Latn').v() | ||
{'_typum': 'HXLTMLinguam', 'crudum': 'rmf-Latn', \ | ||
'linguam': 'rmf-Latn', 'iso6393': 'rmf', 'iso115924': 'Latn'} | ||
""" | ||
|
||
_typum: InitVar[str] = None | ||
|
@@ -5472,7 +5468,7 @@ class HXLTMLinguam: # pylint: disable=too-many-instance-attributes | |
>>> HXLTMLinguam('rmf-Latn').v() | ||
{'_typum': 'HXLTMLinguam', 'crudum': 'rmf-Latn', \ | ||
'linguam': 'rmf-Latn', 'iso6393': 'rmf', 'iso115924': 'Latn'} | ||
'linguam': 'rmf-Latn', 'iso6393': 'rmf', 'iso115924': 'Latn', 'bcp47': 'rmf'} | ||
Kalo Finnish Romani, Latin script (no ISO 2 language, so no attr) | ||
|
@@ -5622,6 +5618,10 @@ def initialle(self, strictum: bool): # pylint: disable=too-many-branches | |
if self.imperium: | ||
self.imperium = self.imperium.upper() | ||
|
||
# Tags like Ancient Greek, grc-Grek, should still have BCP47 | ||
if not self.bcp47 and self.iso6393: | ||
self.bcp47 = self.iso6393 | ||
|
||
if self.privatum is not None and len(self.privatum) > 0: | ||
# https://tools.ietf.org/search/bcp47#page-2-12 | ||
# '4.5. Canonicalization of Language Tags' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# if forks do eventually exist. | ||
# The 'hxltm', as 2021-11-13, is actually not used on Python pip. | ||
name = hxltm-eticaai | ||
version = 0.8.9 | ||
version = 0.8.10 | ||
author = Emerson Rocha | ||
author_email = [email protected] | ||
description = Multilingual Terminology in Humanitarian Language Exchange (HXLTM) - reference implementation. | ||
|