1
0
mirror of https://github.com/KanjiVG/kanjivg.git synced 2026-03-28 01:44:01 +01:00
Commit Graph

1453 Commits

Author SHA1 Message Date
Ben Bullock
692a1ecb8f Add missing nyo/nyoc on 09060.svg 2022-04-30 09:50:25 +09:00
Ben Bullock
def490a9af If baby, I'm the bottom, you're the top 2022-04-30 07:45:04 +09:00
Ben Bullock
bbe611b9cf Make mismatched outer group into two parts
This was another case of someone trying to put a square peg in a round
hole, the outer group of 0548e.svg didn't contain one of the child
elements and its position also didn't make much sense.
2022-04-30 07:38:00 +09:00
Ben Bullock
4b4247d899 Fix positions/groups on 04f5e.svg
Whoever made the KanjiVG groups originally often insisted on plugging
in ill-matching groups like 仁 in characters like these. I don't want
to remove these willy-nilly but if these things must be added, at
least they should be added so they don't disrupt the actual structure
of the character. This splits the 仁 bit into two parts and makes it
no longer the "master group" of this character.
2022-04-30 07:32:30 +09:00
Ben Bullock
1d5aec0567 Merge pull request #355 from KanjiVG/moon
Moon
2022-04-30 06:20:46 +09:00
Ben Bullock
a9ce2e1080 Re-do 07f86-Kaisho.svg edits 2022-04-30 06:19:58 +09:00
Ben Bullock
4864ee1c99 Merge pull request #356 from KanjiVG/non-kanji-el
Add kvg:element to the outermost group of non-kanji graphics
2022-04-30 06:14:17 +09:00
Ben Bullock
268f97e01d Merge pull request #358 from KanjiVG/pos-mismatch
Resolve various mismatches of left with bottom etc.
2022-04-30 06:13:58 +09:00
Ben Bullock
2a261e2677 Add 04edd 2022-04-29 15:55:01 +09:00
Ben Bullock
829a50e6a6 Remove false group from 0985b-JinmeiKaisho.svg 2022-04-29 12:58:12 +09:00
Ben Bullock
1acf424a8b Resolve various mismatches of left with bottom etc.
Add new "middle" value for position
2022-04-29 12:44:34 +09:00
Ben Bullock
2ef47e7553 Add kvg:element to the outermost group of non-kanji graphics
Most of the non-kanji graphics except for マ did not have a
kvg:element on the outermost group of the stroke paths. This adds the
Unicode value as kvg:element.
2022-04-29 10:56:58 +09:00
Ben Bullock
0e2ba10628 Do the rest of the cases where 月 is doubled 2022-04-29 10:47:40 +09:00
Ben Bullock
9e0533a40a Change left stroke of 月 to consistent values
Where the left stroke was labelled ㇑/㇒, it's been relabelled as ㇑,
CJK Stroke S. This label seems to have been intended to indicate that
the stroke was vertical but could be bent in some cases, but its used
was inconsistent, so I decided to remove it.

Where the left stroke was labelled ㇒, two actions were taken
depending on the properties of the stroke.

Where the stroke appeared to bend left at the bottom, the stroke was
relabelled ㇓, CJK Stroke SP, which is the correct stroke type for
this according to the documentation available.

Where the stroke appeared to be straight at the bottom and vertical,
the stroke was relabelled ㇑, CJK Stroke S. (Some of the strokes had a
small kink at the top.)

All of the files in the second case had "Kaisho" in the file name,
except for one exception, 0745c-VtLst.svg.
2022-04-29 09:46:06 +09:00
Ben Bullock
99cf5245ad Change 月 to 円 and remove subgroup
This automatically changes a number of cases where the bottom part of
an 青 element was written using an 円 kanji but marked as 月 in the
group with a subgroup of 円 to using a single group with 月 as the
original value and 円 as the element value, without a subgroup.

None of these groups was a radical or otherwise seemed to require
special treatment.
2022-04-29 09:17:53 +09:00
Ben Bullock
fb5e3ae673 Merge pull request #352 from KanjiVG/contig
Join needlessly-separated groups
r20220427
2022-04-27 05:59:19 +09:00
Ben Bullock
9b11332747 Doubled cases of contiguous groups
This does some more cases where the file has two joined groups.

The script which does this work is not very sophisticated, so it was
necessary to run it twice for cases there were two instances of groups
which should be joined.

I also ran it a third time, but there were no cases of three sets of
groups like this.
2022-04-26 08:23:09 +09:00
Ben Bullock
9c9242b2d8 Join needlessly-separated groups
Some of the files had two groups with part=1 part=2 with the same
element next to each other. This removes all such groups, and also
renumbers the succeeding parts of the group where they exist
2022-04-26 08:15:29 +09:00
Ben Bullock
c2b603a89a Add a documentation link to README 2022-04-26 06:19:41 +09:00
Ben Bullock
ebca101daa Merge pull request #350 from KanjiVG/no-mismatch-dir
Remove kanji_mismatch directory and move contents to kanji
2022-04-26 06:15:27 +09:00
Ben Bullock
ec9af32de6 Whitespace, consistency etc. for moved files
Some of the moved files had missing paths etc.

This commit is the result of running all the files through a
consistency check.
2022-04-25 11:08:08 +09:00
Ben Bullock
10de58bd8d Remove kanji_mismatch directory and move contents to kanji 2022-04-25 11:03:56 +09:00
Ben Bullock
a511a7f0be Merge pull request #349 from KanjiVG/rm-cjk-uni
Change CJK Unified values for kvg:type to CJK Stroke values
2022-04-25 10:58:25 +09:00
Ben Bullock
b0f09f11dd Change CJK Unified values for kvg:type to CJK Stroke values
Three CJK Unified values had been used in KanjiVG for some of the
kvg:type values. This substitutes back the equivalent CJK Stroke
values instead.
2022-04-24 09:55:34 +09:00
Ben Bullock
51c5918a40 Merge pull request #344 from KanjiVG/use-31c1
Change ㇕va to ㇁
2022-04-24 08:20:51 +09:00
Ben Bullock
c47567ab36 Merge pull request #345 from KanjiVG/rm-31cc
Rm 31cc
2022-04-24 08:20:36 +09:00
Ben Bullock
978b56e98e Better choice for 04e43 2022-04-23 19:09:09 +09:00
Ben Bullock
54182d4e8f Replace kvg:type of value U+31CC with an alternative 2022-04-23 19:06:13 +09:00
Ben Bullock
ed84916b76 Change ㇕va to ㇁
See https://github.com/KanjiVG/kanjivg/issues/342
2022-04-23 17:32:59 +09:00
Ben Bullock
b09cb9e126 Merge pull request #339 from KanjiVG/tarec
Group the counterparts of the tare element into tarec
2022-04-23 16:58:01 +09:00
Ben Bullock
f3cd2a32d0 Group the counterparts of the tare element into tarec
Add the new position value "tarec".

Most of this change could be done automatically either just by adding
the position to the obvious counterpart, or by grouping the other
elements into one thing and then giving that new group a "tarec"
position.

There were some exceptional cases where "tare" had been added to the
parent of the actual tare element. There was one very weird case
081ba.svg where the grouping was too eccentric to be able to keep, so
I removed the inner groups.
2022-04-23 16:54:46 +09:00
Ben Bullock
1a5ab3d4db Merge pull request #338 from KanjiVG/nyoc
Add "nyoc" grouping, meaning "nyo counterpart"
2022-04-23 16:34:53 +09:00
Ben Bullock
81e6c1d2de Add kvg:type where missing; consistency fixes
066f2-KaishoVtLst had a different Nelson radical than 066f2.svg

Two or three strokes in kanji files were missing kvg:type information
completely.

Two or so attributes were mis-ordered
2022-04-23 11:23:33 +09:00
Ben Bullock
552f51d6a3 Remove strokes.txt
This file seems to be just a list of the CJK stroke types from
Unicode. Further, it includes various simplified Chinese strokes which
don't occur in KanjiVG, so presumably it was never checked against the
data.
2022-04-23 06:34:55 +09:00
Ben Bullock
da388f6e14 Merge pull request #335 from KanjiVG/fix-066f2
Add the centre horizontal to the radical group
2022-04-22 16:55:00 +09:00
Ben Bullock
810fdaa68b Merge pull request #334 from KanjiVG/rm-dup-rads
Remove the duplicate radicals
2022-04-22 16:54:46 +09:00
Ben Bullock
3e476d96bb Add "nyoc" grouping, meaning "nyo counterpart"
Most of this is automatically edited. About 300 cases were simple
addition of the nyoc group to whichever of a pair of groups lacked the
position element, then about 50 or so cases were re-grouping of the
counterpart elements into a single group and adding the nyoc position,
and then there were a few cases such as 051a0.svg of grouping errors
in the existing files, where the nyo counterpart had falsely been made
a child of the nyo group which had to be hand edited.

There were no other types of errors as far as I could see, and this
now covers every case of "nyo" position in the kanji directory.
2022-04-22 16:46:35 +09:00
Ben Bullock
d798cfd956 Add the centre horizontal to the radical group
Also remove a lot of small groups containing only one path which
seemed to have caused the creator of this file much confusion.

Also put the Nelson radical on the correct stroke
2022-04-21 17:45:03 +09:00
Ben Bullock
9dbb7ac157 Remove the duplicate radicals
This uses a script to remove all of the duplicate radicals. I spot
checked the geometry, and it seems that the first group is always the
right one to keep, because of the stroke order, so I just removed all
the other radical values on groups except the first one. I did not
actually go to the trouble of sorting the geometries in order since
there didn't seem to be any exceptions to the "first is upper left"
rule.
2022-04-21 16:02:18 +09:00
Ben Bullock
6ac6acc26b Add kvg:element on radical groups
Three kanji had a group marked as "radical" without a kvg:element.
2022-04-21 05:57:24 +09:00
Ben Bullock
6d5ea727fc Some stroke ordering problems fixed
See issue 331.
2022-04-20 20:39:28 +09:00
Ben Bullock
31ad97336f Merge pull request #329 from KanjiVG/radical-miscount
Fix various errors in numbers of strokes of radicals
2022-04-20 08:28:03 +09:00
Ben Bullock
628ab6ebab Merge pull request #326 from KanjiVG/white
Add a group around 白
2022-04-19 11:59:41 +09:00
Ben Bullock
9176624ce8 Merge pull request #325 from KanjiVG/fix-hara
Fix 原 elements
2022-04-19 11:59:26 +09:00
Ben Bullock
92c304e387 Fix various errors in numbers of strokes of radicals
Change radical variant to ⻞ where appropriate

Otherwise change the radicals to the correct variant or otherwise fix
grouping errors related to radicals and their expected stroke count.
2022-04-19 11:55:19 +09:00
Ben Bullock
13cb898d54 Consistency fixes 2022-04-18 18:05:05 +09:00
Ben Bullock
e81e46eb80 Add more "white" groups 2022-04-18 16:17:32 +09:00
Ben Bullock
d0ce1c0bee Make 百 into 白 plus top 2022-04-18 16:11:17 +09:00
Ben Bullock
3fff49010e Add 白 group to 敫 elements 2022-04-18 16:05:02 +09:00
Ben Bullock
b4424bc36d Add a white element on groups with no element
Also some hand-edited cases
2022-04-18 16:00:25 +09:00