Skip to content

Commit de45d93

Browse files
Nicolas Pitregregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5071ddc commit de45d93

File tree

3 files changed

+3445
-1
lines changed

3 files changed

+3445
-1
lines changed

drivers/tty/vt/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
/conmakehash
33
/consolemap_deftbl.c
44
/defkeymap.c
5+
/ucs_fallback_table.h
56
/ucs_recompose_table.h
67
/ucs_width_table.h

drivers/tty/vt/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o \
1212

1313
# Files generated that shall be removed upon make clean
1414
clean-files := consolemap_deftbl.c defkeymap.c \
15-
ucs_width_table.h ucs_recompose_table.h
15+
ucs_width_table.h ucs_recompose_table.h ucs_fallback_table.h
1616

1717
hostprogs += conmakehash
1818

@@ -58,4 +58,7 @@ endif
5858
$(obj)/ucs_recompose_table.h: $(src)/gen_ucs_recompose_table.py
5959
$(PYTHON3) $< -o $@ $(gen_recomp_arg)
6060

61+
$(obj)/ucs_fallback_table.h: $(src)/gen_ucs_fallback_table.py
62+
$(PYTHON3) $< -o $@
63+
6164
endif

0 commit comments

Comments
 (0)