aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt/gen_ucs_width_table.py
Commit message (Collapse)AuthorAgeFilesLines
* vt: move UCS tables to the "shipped" formNicolas Pitre2025-04-261-5/+13
| | | | | | | | | | | | Use the "shipped" mechanism to copy pre-generated tables to the build tree by default. If GENERATE_UCS_TABLES=1 then they are generated at build time instead. If GENERATE_UCS_TABLES=2 then gen_ucs_recompose_table.py is invoked with --full. Signed-off-by: Nicolas Pitre <[email protected]> Suggested-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
* vt: update gen_ucs_width_table.py to make tables more space efficientNicolas Pitre2025-04-261-6/+49
| | | | | | | | | | Split table ranges into BMP (16-bit) and non-BMP (above 16-bit). This reduces the corresponding text size by 20-25%. Signed-off-by: Nicolas Pitre <[email protected]> Reviewed-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
* vt: introduce gen_ucs_width_table.py to create ucs_width_table.hNicolas Pitre2025-04-261-0/+256
The table in ucs.c is terribly out of date and incomplete. We also need a second table to store zero-width code points. Properly maintaining those tables manually is impossible. So here's a script to generate them. Signed-off-by: Nicolas Pitre <[email protected]> Reviewed-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>