vt: create ucs_fallback_table.h_shipped with gen_ucs_fallback_table.py

The generated table maps complex characters to their simpler fallback
forms for a terminal display when corresponding glyphs are unavailable.
A page-based approach is used to reduce compiled binary footprint.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Link: https://lore.kernel.org/r/20250507141535.40655-6-nico@fluxnic.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Nicolas Pitre 2025-05-07 10:13:20 -04:00 committed by Greg Kroah-Hartman
parent 5071ddc18e
commit de45d93f00
3 changed files with 3445 additions and 1 deletions

View File

@ -2,5 +2,6 @@
/conmakehash
/consolemap_deftbl.c
/defkeymap.c
/ucs_fallback_table.h
/ucs_recompose_table.h
/ucs_width_table.h

View File

@ -12,7 +12,7 @@ obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o \
# Files generated that shall be removed upon make clean
clean-files := consolemap_deftbl.c defkeymap.c \
ucs_width_table.h ucs_recompose_table.h
ucs_width_table.h ucs_recompose_table.h ucs_fallback_table.h
hostprogs += conmakehash
@ -58,4 +58,7 @@ endif
$(obj)/ucs_recompose_table.h: $(src)/gen_ucs_recompose_table.py
$(PYTHON3) $< -o $@ $(gen_recomp_arg)
$(obj)/ucs_fallback_table.h: $(src)/gen_ucs_fallback_table.py
$(PYTHON3) $< -o $@
endif

File diff suppressed because it is too large Load Diff