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

Incorrect language alias for Punjabi/Panjabi language #7814

Closed
thekalinga opened this issue Jan 7, 2022 · 2 comments
Closed

Incorrect language alias for Punjabi/Panjabi language #7814

thekalinga opened this issue Jan 7, 2022 · 2 comments
Labels

Comments

@thekalinga
Copy link

thekalinga commented Jan 7, 2022

Explain the problem.
The correct language alias for the language Punjabi/Panjabi pa is punjabi. But pandoc incorrectly maps pa to panjabi instead

pa to be mapped punjabi instead of panjabi (a single character change)

We can find this out from multiple places

  1. https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/likely_subtags.html#pa
  2. https://github.com/latex3/babel/blob/main/locale/pa/babel-pa.ini
  3. https://ctan.asis.ai/macros/latex/required/babel/base/babel.pdf

When I searched for it in pandoc repo

https://github.com/jgm/pandoc/search?q=panjabi

I see the wrong alias is being declared in two different files. I think in both places it has to be renamed to punjabi

Pandoc version?:
Using via docker. Image used: pandoc/latex:2.16.2

@thekalinga thekalinga added the bug label Jan 7, 2022
@thekalinga thekalinga changed the title Incorrect language key for Punjabi language Incorrect language alias for Punjabi language Jan 7, 2022
@thekalinga thekalinga changed the title Incorrect language alias for Punjabi language Incorrect language alias for Punjabi/Panjabi language Jan 7, 2022
@jgm jgm closed this as completed in 90e74c2 Jan 7, 2022
@jgm
Copy link
Owner

jgm commented Jan 7, 2022

Thanks for the report!

@mb21
Copy link
Collaborator

mb21 commented Jan 10, 2022

Both wikipedia and Britannica say both spellings are in use. But our mappings are to/from LaTeX babel package, so if they switched over to Punjabi, we should indeed do so as well.

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

No branches or pull requests

3 participants