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

Normative: Apply recommended updates for BCP 47 Locale Identifiers #333

Merged
merged 1 commit into from
Mar 18, 2019

Conversation

leobalter
Copy link
Member

Ref #330

cc @anba @sffc @FrankYFTang

This is a tentative to update the immediate parts of #330, please let me know WDYT?

Copy link
Member

@littledan littledan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change LGTM, good catch.

@@ -51,7 +50,7 @@ <h1>IsStructurallyValidLanguageTag ( _locale_ )</h1>
</ul>

<p>
The abstract operation returns true if _locale_ can be generated from the ABNF grammar in section 3.2 of the Unicode Technical Standard 35, or successor, starting with unicode_locale_id, and does not contain duplicate variant or singleton subtags (other than as a private use subtag). It returns false otherwise. Terminal value characters in the grammar are interpreted as the Unicode equivalents of the ASCII octet values given.
The abstract operation returns true if _locale_ can be generated from the EBNF grammar in section 3.2 of the Unicode Technical Standard 35, or successor, starting with unicode_locale_id, and does not contain duplicate variant or singleton subtags (other than as a private use subtag). It returns false otherwise. Terminal value characters in the grammar are interpreted as the Unicode equivalents of the ASCII octet values given.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess ABNF or EBNF both work here, as Unicode defines both grammars for some reason.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO, we should surely switch to EBNF because Mark Davis is deleting ABNF from UTS35 now. The update will be pushed out very soon. See http://unicode.org/repos/cldr/trunk/specs/ldml/tr35.html#Unicode_Language_and_Locale_Identifiers
the ABNF was very buggy (see http://unicode.org/cldr/trac/ticket/11746 and more)
The EBNF on that latest version still have some minor problems and I am reviewing for Mark Davis now. He will fix them shortly.

@FrankYFTang
Copy link
Contributor

LGTM

@littledan littledan merged commit 1e5df59 into tc39:master Mar 18, 2019
@leobalter leobalter deleted the 330/bcp47-locid branch March 19, 2019 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants