Skip to content

Add ambiguous currency symbol presentations (bare dollar, yen, franc) - #141

Merged
ronaldtse merged 1 commit into
mainfrom
currency-ambiguous-symbols
Nov 11, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
currency-ambiguous-symbols

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

Resolves #140, option one: unitsdb stays disambiguation-first, and ambiguity becomes explicit data. SymbolPresentation gains an optional ambiguous boolean (schema unchanged in effect: additive optional property, schema_version stays 2.2.0):

  • USD carries the bare dollar sign $ (ambiguous: true) alongside US$
  • CNY carries CN¥ (unambiguous) and the bare yen sign ¥ (ambiguous: true)
  • JPY's ¥ is marked ambiguous: true (shared with CNY)
  • CHF carries Fr. (ambiguous: true)

Strict-unit consumers keep skipping ambiguous presentations; prose style-enforcement consumers (metanorma-iso house style, metanorma#1707) match them.

Test plan

  • ruby validate_schemas.rb — all files pass
  • unitsdb validate identifiers/references/si_references — green (bundle's unitsdb gem updated to 2.2.13; Gemfile.lock update left uncommitted as tooling)
  • Reviewer: confirm the four symbol rulings match the intended policy

Currency symbols gain an optional ambiguous flag for presentations
shared across currencies: USD carries the bare dollar sign, CNY the
disambiguated CN yuan sign and the bare yen sign (JPY's yen sign is
marked ambiguous for the same reason), and CHF the franc Fr. Strict
unit consumers skip ambiguous presentations; prose style-enforcement
consumers (metanorma-iso house style) match them. Resolves #140,
option one: disambiguation stays primary, ambiguity is explicit.
@ronaldtse
ronaldtse merged commit fcc9e41 into main Nov 11, 2026
5 checks passed
ronaldtse added a commit to unitsml/unitsml-ruby that referenced this pull request Nov 11, 2026
The payload sync guard fails with the new currency symbol data (the
ambiguous presentations of unitsml/unitsdb#141); the committed payload
is regenerated against the published unitsdb gem 2.2.14.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Currency symbol policy: bare $ / CNY / CHF — disambiguation-first vs prose style enforcement

1 participant