- Avoid trailing whitespaces.
- Print which tool and version were used for the generation (to help for
future debugging in case of discrepancies between versions or
implementations).
I wanted to add new tables for which I could find no listing anywhere,
even though iconv has support for it (not core Python though), which are
GEORGIAN-ACADEMY and GEORGIAN-PS.
I could find info on these in libiconv source (./lib/georgian_academy.h
and ./lib/georgian_ps.h), though rather than trying to read these, I
thought I should just do the other way around: get back a table from the
return value of iconv API (or Python decode() when relevant).
So this script is able to generate tables in the format used under
script/charsets/, from either Python decode() or iconv. It will be much
useful!