Skip to content

v0.1.2

Compare
Choose a tag to compare
@antfu antfu released this 29 Dec 16:57
· 453 commits to master since this release

v0.1.2

Overhauled hanzi2num (PR #413, thanks @statementreply)

  • 塵埃渺漠 are now 10x each
  • The character for 10^28 is changed to (U+7A70).
  • 一百一 = 101 now
  • Multi-character multipliers are no longer supported.
  • Omitting before fractional multipliers is no longer allowed. It's unclear whether 五毫絲 means 0.0051 or 5e-7, so I just disallowed it for now.
  • Allow multiple multipliers: 一萬萬 = 1e+8, 一百絲 = 0.01.
  • Add support for positional notation: 一三三七 = 1337
  • Add digit zero (exactly one digit of zero) and decimal separator ·: 三五〇〇·〇一 = 3500.01
  • "又" can be used at more places: 三十又六 = 36

New Features

  • 『』 is now supported as string literals, an alternate of 「「」」 (5f698df), resolves #81
  • is now supported sentence separators. (5f698df), resolves #15, resolves #129, resolves #348
  • Platform-specific stdlib steup (1cecae9)
  • Changelog added

Fixes

Examples