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

expansion algorithm checking language map value against BCP47 #563

Open
Johann150 opened this issue Mar 26, 2023 · 2 comments
Open

expansion algorithm checking language map value against BCP47 #563

Johann150 opened this issue Mar 26, 2023 · 2 comments
Labels

Comments

@Johann150
Copy link

In the expansion algorithm, while processing language mappings in step 13.7 and substeps, a variable name seems to be swapped:

Step 13.7.4.2.3 says to check item as being well-formed accoding to BCP47. This implies that item is a language tag. However, it is defined in step 13.7.4.2 that item comes from the language value, i.e. the value which is mapped to a language tag, not the language tag itself. The language tag is actually in language, which should thus be checked instead of item.

I think <var>item</var> should be replaced with <var>language</var> on the following line:

<span class="changed">If <var>item</var> is neither `@none` nor <a>well-formed</a> according to

@gkellogg
Copy link
Member

Summary: in 13.7.4.2.3 the tex erroneously says "If item is neither @none nor well-formed according to section 2.2.9 of [BCP47]," It should be checking for "language" which is the intention of the algorithm step.

@gkellogg
Copy link
Member

Thanks, @Johann150, good catch. It should how show up as an erratum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Errata
Development

No branches or pull requests

2 participants