Skip to content

Draft: nls: Add tool to automate Compose sequences comments

Wismill requested to merge wismill/libx11:compose/auto-comments into master

Currently the comments of the Compose sequences are written manually. Unfortunately there are inconsistencies that are time-consuming to fix and easy to re-introduce.

This commit add a new Python script to detect these inconsistencies and optionally fix them automatically.

TODO: We probably also want to check that the keysyms are correct and not deprecated. I am going to check the feasibility.

How to use:

cd nls
# Only check
./compose-check.py en_US.UTF-8/Compose.pre
# Check & fix
./compose-check.py en_US.UTF-8/Compose.pre --write

@benno Could you give it a try? I think it could simplify a lot your work.

Edited by Wismill

Merge request reports

Loading