IMHO something like the Perl 5

  charnames::viacode(ord($char));
  charnames::vianame($charname);

is needed in Perl 6.

Use cases:

- test
- diagnosis
- manipulation on charname-level (e.g. get base character of
  LATIN CAPITAL LETTER L WITH STROKE, which has no de-composition)

To be defined (TBD):
- naming
- works on and returns String/List versus single Char
- works on resp. returns ord versus char

Obviously it cannot work on Grapheme level, because Graphemes without a pre-composition do not have a character name[1].

[1] It would be possible to compose character names for the life-time of the process, but these names would need to be checked for uniqueness (performance problem).

Helmut Wollmersdorfer

Reply via email to