Releases: khonsulabs/nominals
Releases · khonsulabs/nominals
v0.3.1
v0.3.0
Breaking Changes
HangeulInformal
has been renamed toHanjaInformal
, its correct name.DigitCollection::len
andDigitCollection::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
andCjkEarthlyBranch
now fall back toCjkDecimal
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
v0.2.1
v0.2.0
Breaking Changes
RomanLowercase
has been renamed toRomanLower
for consistency.HiraganaAiueo
andKatakanaAiueo
have hadAiueo
removed from their names
to match the CSS naming and reflect modern expectations.Urdu
has been removed. ThePersian
Unicode range is reused forUrdu
numerals, and the different symbols are a result of using an Urdu or Persian
font.DigitCollection::len
andDigitCollection::digit
now take adigit_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 implementsClone
. -
NominalString::new_reverse()
returns an empty string that is optimized for
push_front
operations. -
AdditiveSet
is a newNominalSystem
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