GithubHelp home page GithubHelp logo

bcp47.py's People

Contributors

highfestiva avatar jonbysvol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rizquuula gitbib

bcp47.py's Issues

Few languages don't show up.

It seems this might require an update since few languages aren't showing up that shows up in language_tags. Please consider as i am not very familiar with correcting/updating.

'ar-XA' should come up with key like Arabic
'cmn-CN' should come up with key like -- 'Mandarin Chinese', 'China'
'cmn-TW' should come up with key like -- 'Mandarin Chinese', 'Taiwan, Province of China'
'sr-RS' should come up with key like -- 'Serbian', 'Serbia'
'yue-HK' should come up with key like -- 'Yue Chinese', 'Cantonese', 'Hong Kong'

For now, commented the import of bcp47 and using language_tags although it seems bcp47 is showing up as newer one.

Package naming, purpose, and maintainership.

Howdy!

Examining the ecosystem for available BCP47 implementations, I've been highly discouraged by my findings. Not one implements the tag specification properly, not one processes Unicode extensions (e.g. timezone, currency, etc.), and this package is only a mapping of English-localized names to two-component abbreviated tags.

An entire package for that one dictionary, which is of limited use and does not actually make use of the source data, which maps Microsoft Language ID integers (LCID; expressed generally as two-byte hex codes) to language tags. The one publicly accessible dependant project on GitHub ("Used By") uses it entirely as an enum of possible tag strings, without any form of parsing, meaning that project will reject perfectly valid language tags.

The example I'm attempting to parse: en-CA-u-tz-cator-cu-CAD โ€” a single string can contain 100% of the language, region, locale, timezone, currency, calendar system, week-starts-on, accounting negative numbers preference (-10 v. (10)), and so forth, so on.

I would like to propose a transfer of maintainership for this package, if you'd be OK with that? My plan would be to make a final point release of this existing codebase to add a DeprecationWarning generated on import (with advice to pin versions if needed), and then to implement a proper, conformant BCP47 Language Tag parser/generator and datatype representation, similar to what I did with the uri package, sourcing languages, regions, and localization of the labels/names for these from the official CLDR dataset.

Thank you for your consideration!
โ€” A hopeful Alice.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.