convert icon indicating copy to clipboard operation
convert copied to clipboard

Provide a user-accessible script to generate encodings from Unicode.org mappings.

Open brianquinlan opened this issue 2 years ago • 1 comments

The script would:

  • Consume mappings (e.g. https://unicode.org/Public/MAPPINGS/ISO8859/8859-2.TXT)
  • Generate Dart source that constructs a CodePage representing that mapping

This would allow developers to generate CodePages for encodings not supported by package:convert.

See discussion at https://github.com/dart-lang/convert/pull/93#issuecomment-1802434604

brianquinlan avatar Nov 09 '23 16:11 brianquinlan

FWIW, the Python approach is to download the entire mappings directory and then choose what encodings to build: https://github.com/python/cpython/blob/6f09f69b7f85962f66d10637c3325bbb2b2d9853/Tools/unicode/Makefile#L23

brianquinlan avatar Nov 09 '23 16:11 brianquinlan