Skip to content

Give print an option to not sort characters (or make it not sort by default?) #47

@jwodder

Description

@jwodder
$ uni print 43 42 41 43
     CPoint  Dec    UTF8        HTML       Name (Cat)
'A'  U+0041  65     41          A     LATIN CAPITAL LETT… (Uppercase_Let…)
'B'  U+0042  66     42          B     LATIN CAPITAL LETT… (Uppercase_Let…)
'C'  U+0043  67     43          C     LATIN CAPITAL LETT… (Uppercase_Let…)
'C'  U+0043  67     43          C     LATIN CAPITAL LETT… (Uppercase_Let…)

As you can see, the output from print sorts characters by codepoints rather than outputting them in the order given on the command line. This is a problem for scripted use, and it's inconsistent with how uni identify works. It also seems strange that the codepoints are sorted but duplicates are not removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions