]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vt: introduce gen_ucs_recompose_table.py to create ucs_recompose_table.h
authorNicolas Pitre <npitre@baylibre.com>
Thu, 17 Apr 2025 18:45:09 +0000 (14:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Apr 2025 09:22:03 +0000 (11:22 +0200)
commit03c6de017b2a9eaa1062566c6e70cf0ed72e24d9
treec0d9dd452a0ba9801a5888e6ad8a3baec1cc2e62
parent54cda9201c673fd1c5de189d961670999232e49d
vt: introduce gen_ucs_recompose_table.py to create ucs_recompose_table.h

The generated table maps base character + combining mark pairs to their
precomposed equivalents using Python's unicodedata module.

The default script behavior is to create a table with most commonly used
Latin, Greek, and Cyrillic recomposition pairs only. It is much smaller
than the table with all possible recomposition pairs (71 entries vs 1000
entries). But if one needs/wants the full table then simply running the
script with the --full argument will generate it.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250417184849.475581-8-nico@fluxnic.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/gen_ucs_recompose_table.py [new file with mode: 0755]