Coder Social home page Coder Social logo

RBNF rule parsing error about node-cldr HOT 6 CLOSED

rotsee avatar rotsee commented on June 8, 2024
RBNF rule parsing error

from node-cldr.

Comments (6)

rotsee avatar rotsee commented on June 8, 2024 1

Thank you! The new behavior seems consistent with ICU, with 0 indicating that also -x should inherited from spellout-numbering.

But yes, virtually impossible to make out from the documentation...

from node-cldr.

papandreou avatar papandreou commented on June 8, 2024

Hmm, weird that there is no -x rule:

<ruleset type="spellout-cardinal-neuter">
<rbnfrule value="0">=%spellout-numbering=;</rbnfrule>
</ruleset>

This discussion looks related: http://unicode.org/pipermail/cldr-users/2016-December/000582.html

from node-cldr.

rotsee avatar rotsee commented on June 8, 2024

Oh, I assumed that meant that the minus rule should be inherited too, but now that I read the thread you are linking to I realize that's not the case. I'm closing this to suggest a change at the source instead.

from node-cldr.

papandreou avatar papandreou commented on June 8, 2024

Thanks for seeing this through! If it's causing trouble for you, we can easily add a temporary fix to the checked in copy of cldr.

from node-cldr.

rotsee avatar rotsee commented on June 8, 2024

I'm reopening this as according to the Unicode people this rule should actually be interpreted as inheriting the negative pattern as well, see http://st.unicode.org/cldr-apps/numbers.jsp?locale=sv

from node-cldr.

papandreou avatar papandreou commented on June 8, 2024

Thanks for the exploration. I still don't understand where that -x rule is supposed to be inherited from, there's no spellout-cardinal-neuter in root.xml. The whole thing feels quite underspecified and tied into the ICU implementation.

I played around with that Number Format Tester that you linked to, and it seems like it just uses the 0 rule in the absence of a -x rule, so I implemented that and released 5.0.1. Let me know if that works :)

from node-cldr.

Related Issues (20)

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.