Skip to content

v2.7.0

Latest
Compare
Choose a tag to compare
@arp242 arp242 released this 22 May 16:19
· 3 commits to master since this release
481d298
  • Improve -format flag:

    • Add %name as an alias for %(name l:auto); this is a lot less typing and requires less shell quoting, and >90% of the time this is what you want.

    • Automatically prepend character, codepoint, and name if the format flag starts with +; for example:

      % uni identify -f +'%unicode %plane' a
                   Name                 Unicode Plane
      'a'  U+0061  LATIN SMALL LETTER A 1.1     Basic Multilingual Plane
      

    This should make quickly printing some property a lot quicker.

  • Align and colourize JSON output.

  • Update CLDR information, adding significantly more aliases for emojis.

  • Add cells column, which returns how many cells a codepoint will display at (0, 1, or 2).

  • Add aliases column, which lists the alias names. Also add this to the default output:

    % uni s factorial
         CPoint  Dec    UTF8        HTML       Name  Aliases
    '!'  U+0021  33     21          !     EXCLAMATION MARK [factorial, bang]
    
  • Add refs columns, which references other related/similar codepoints:

    % uni p -q U+46 -f '%(name): %(refs)'
    LATIN CAPITAL LETTER F: U+2109, U+2131, U+2132
    
    % uni p -q U+46 -f '%(refs)' | uni p
         CPoint  Dec    UTF8        HTML       Name  Aliases
    '℉'  U+2109  8457   e2 84 89    ℉   DEGREE FAHRENHEIT
    'ℱ'  U+2131  8497   e2 84 b1    ℱ     SCRIPT CAPITAL F [Fourier transform]
    'Ⅎ'  U+2132  8498   e2 84 b2    Ⅎ   TURNED CAPITAL F [Claudian digamma inversum]
    
  • Allow arguments to printto start or end with a comma or slash. This comes up when copy/pasting some list of codepoints from another source; there's no real reason to error out on this.

  • Allow listing unicode versions with uni list unicode and planes with uni list planes.

  • uni list without arguments errors, instead of listing all.

  • Add h format flag to not print the header for this column.