Skip to content

Releases: khonsulabs/nominals

v0.3.1

25 Jul 15:37
da5033e
Compare
Choose a tag to compare

Added

  • CircledNumber and DoubleCircledNumber are new systems that uses Unicode
    circled numbers instead of decimal digits. Thank you to @ModProg for this
    contribution!

v0.3.0

19 Jan 18:27
2a199c0
Compare
Choose a tag to compare

Breaking Changes

  • HangeulInformal has been renamed to HanjaInformal, its correct name.
  • DigitCollection::len and DigitCollection::digit no longer receive a
    digit_index parameter.
  • DigitCollection::Fallback is a new associated type that allows a digit
    collection to define a fallback digit set. NoFallback is a new type that can
    be used when no fallback should be used.

Added

  • DigitCollection::fixed is a new function that indicates the collection
    should only ever be used to produce a single digit.

Fixed

  • CjkHeavenlyStem and CjkEarthlyBranch now fall back to CjkDecimal in a
    fashion that matches the CSS specification. Specifically once the symbols have
    been exhausted, the entire nominal formatting is produced by the fallback
    rather than only formatting the remaining digits with the fallback.

v0.2.2

18 Jan 22:41
776b01f
Compare
Choose a tag to compare

Changed

  • Urdu and Khmer now utilize re-exports rather than type aliases. This
    allows the type constructors to be invoked.

Fixed

  • Ethiopic now returns the correct result for 1.

v0.2.1

18 Jan 16:59
974cd2e
Compare
Choose a tag to compare

Fixed

  • A compilation error for no-alloc targets has been fixed.

v0.2.0

18 Jan 16:59
fdee8d9
Compare
Choose a tag to compare

Breaking Changes

  • RomanLowercase has been renamed to RomanLower for consistency.
  • HiraganaAiueo and KatakanaAiueo have had Aiueo removed from their names
    to match the CSS naming and reflect modern expectations.
  • Urdu has been removed. The Persian Unicode range is reused for Urdu
    numerals, and the different symbols are a result of using an Urdu or Persian
    font.
  • DigitCollection::len and DigitCollection::digit now take a digit_index
    parameter, allowing a digit collection to delegate specific digits to other
    implementations.

Changed

  • NominalString::INLINE_CAPACITY is now 62, and the type has been optimized to
    avoid zero-initializing data unnecessarily.

Added

  • NominalString now implements Clone.

  • NominalString::new_reverse() returns an empty string that is optimized for
    push_front operations.

  • AdditiveSet is a new NominalSystem implementation that implements additive
    nominal systems. The existing Roman numeral implementation is now utilizing
    this type.

  • These nominal systems have been added from the CSS counter-styles spec:

    • ArmenianLower
    • ArmenianUpper
    • Bengali
    • Cambodian
    • CjkDecimal
    • CjkEarthlyBranch
    • CjkHeavenlyStem
    • Devanagari
    • Ethiopic
    • Georgian
    • Gujarati
    • Gurmukhi
    • HangeulFormal
    • HangeulInformal
    • HanjaFormal
    • JapaneseFormal
    • JapaneseInformal
    • Kannada
    • Lao
    • Malayalam
    • Mongolian
    • Myanmar
    • Oriya
    • Tamil
    • Telugu
    • Thai
    • Tibetan

v0.1.0

15 Jan 23:57
0e3cc69
Compare
Choose a tag to compare

Initial release