A large number of groups with a central vertical such as 甲 or 由 are
listed as 田 in KanjiVG, however, they are in fact 日 groups since the
central line is not part of the group. This commit uses a script to
swap the value of element on such groups.
There was a variety of grouping issues with the 心 element under 必,
this resolves most of the grouping issues. There may be some stray
part= on some inputs.
Various of the 离 elements have the types of the bottom centre strokes
given as ㇜ and ㇜, which is incorrect. This uses a script to fix
about six cases. It also uses the previously-mentioned downstroke
script to fix yet more problems in the -Kaisho variants.
The script which checks the errors in the strokes is very slow & also
requires clustering of results. It also has to be run over and over to
find these errors, since once too many wrong things get into the
cluster of results it can't discriminate any more. This represents
about three runs.
Many of the Kaisho variants consist of nothing other than a down-line
in a tree shape with a hook at the end, but this difference is not
represented in the stroke's kvg:type. This uses a graphical search
algorithm to find instances where a line is labelled ㇑, but appears
to actually be ㇚ graphically, and automatically changes the files.
There are about 150 changes. I've done spot checks on about ten of the
files to make sure that the correct things are being done.
Two cases were missed in the previous commit, the case where the ㇕v
was on a child path of the top-level group, and the case where ㇕v
appeared more than once in the same kanji.
This replaces kvg:type="㇕v" with kvg:type="㇁" in all cases.
This edit was done automatically. I did not check every edit but I
checked that an appropriate element was present in most of the files.