Git Product home page Git Product logo

Comments (2)

opoudjis avatar opoudjis commented on September 24, 2024

The spec is indeed explicitly insisting on native language ordinals:

111e in French.
111th in English.

You can get these using twitter_cldr_rb, which is the localisation code Metanorma already uses:

https://github.com/twitter/twitter-cldr-rb

require "twitter_cldr"

sequence = 111
111.localize(:en).to_rbnf_s("OrdinalRules", "digits-ordinal") # = "111th"
111.localize(:fr).to_rbnf_s("OrdinalRules", "digits-ordinal-feminine") # = "111e"
111.localize(:fr).to_rbnf_s("OrdinalRules", "digits-ordinal-masculine") # = "111e"

In French, whether to use feminine or masculine depends on the noun gender that it is being applied to.

réunion "meeting" is feminine, so meeting-sequence uses digits-ordinal-feminine. I'm not seeing ordinals being applied to any other noun in that document.

@andrew2net If this is not actioned already, could you please action it?

from bipm-editor-guides.

opoudjis avatar opoudjis commented on September 24, 2024

Already actioned in relaton-bipm. Adding clarification in documentation.

from bipm-editor-guides.

Related Issues (4)

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.