The uni2characterwidth tool, converts Unicode Character Database files
into character width lookup tables. It uses a template file to place
the tables in a source code file together with a function for finding
the width for specified character. It also allows to generate few forms
of lists with width data for debug and test purposes, or for future use
as a replacement of Unicode files.
Set KONSOLE_BUILD_UNI2CHARACTERWIDTH cmake flag to build the tool.
Use --help argument for more detailed usage.
There is a possibility to generate separate "width" for Ambiguous
characters. It can be used to add ability to configure the characters
width in Konsole settings.
The example.template file contains all possible named tags, and some
additional tags to show how to use them.
CCBUG: 396435
Depends on D15756