Changing stroke type of horizontal bottom strokes of subelements

29 views
Skip to first unread message

Ben Bullock

unread,
Aug 9, 2024, 8:48:18 PM8/9/24
to KanjiVG
Recently I've been checking the types of strokes against their physical description in KanjiVG. A large number of the discrepancies come from cases like stroke 3 of


or stroke 4 of 


There are several hundred cases of this. What I propose to do is to change their type from ㇐ (CJK STROKE H) to ㇀/㇐ (CJK STROKE T/H). There are already about 800 cases of ㇀/㇐, and they mostly fit the pattern of the above, a bottom stroke in a subelement which is slanted upwards.

Ulrich Apel

unread,
Aug 10, 2024, 6:23:19 AM8/10/24
to kan...@googlegroups.com
This seems to be very good idea. Please go ahead! Thank you.

Ulrich
> --
> --
> You received this message because you are subscribed to the "KanjiVG" group.
> For options and unsubscribing, visit this group at
> http://groups.google.com/group/kanjivg
> ---
> You received this message because you are subscribed to the Google Groups "KanjiVG" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kanjivg+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/kanjivg/CAN5Y6m9Tdfr8CCQZFQY65u7uiaikMzwQDVq_QGZcncb5M1Xq1Q%40mail.gmail.com.

pascal Baillehache

unread,
Aug 10, 2024, 8:35:36 PM8/10/24
to KanjiVG
This correction would be appreciated. Thanks in advance !

Ben Bullock

unread,
Aug 10, 2024, 8:56:35 PM8/10/24
to kan...@googlegroups.com
On Sun, 11 Aug 2024 at 09:35, pascal Baillehache <baillehac...@gmail.com> wrote:
This correction would be appreciated. Thanks in advance !

Thank you for letting me know. Do you use the stroke type information? 

At the moment the viewer doesn't have an option to show the stroke types:


but I have added it to the viewer on my own website:


It might be useful to add an option to view the types in the same way as the radicals and groups are options.

If anyone would like a small job, for example they could do one or two spot checks on the changes here, since these changes were done automatically, with not every change checked:

 
--
--
You received this message because you are subscribed to the "KanjiVG" group.
For options and unsubscribing, visit this group at
http://groups.google.com/group/kanjivg
---
You received this message because you are subscribed to the Google Groups "KanjiVG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kanjivg+u...@googlegroups.com.

pascal Baillehache

unread,
Aug 10, 2024, 9:26:01 PM8/10/24
to kan...@googlegroups.com
Hi Ben,

Thank you for letting me know. Do you use the stroke type information? 

I don't, because I currently can't, but would like to !
To extend my work on simulation of Japanese calligraphy I was hoping to use the stroke type information and other kvg attributes, but couldn't do it due to those kinds of discrepancies.
Correcting them would be a step forward in achieving what I aim to do, although there would remain other problems to solve.
 
At the moment the viewer doesn't have an option to show the stroke types:


but I have added it to the viewer on my own website:


It might be useful to add an option to view the types in the same way as the radicals and groups are options.

Yes, it would certainly be useful to many people. 
As you've already done it for your own viewer I presume it wouldn't be difficult to add it to the official viewer ?
 
If anyone would like a small job, for example they could do one or two spot checks on the changes here, since these changes were done automatically, with not every change checked:


I'm ok to take a few ones at random and have a look at them during next week.

Ben Bullock

unread,
Aug 10, 2024, 10:08:39 PM8/10/24
to kan...@googlegroups.com
On Sun, 11 Aug 2024 at 10:26, pascal Baillehache <baillehac...@gmail.com> wrote:

If anyone would like a small job, for example they could do one or two spot checks on the changes here, since these changes were done automatically, with not every change checked:


I'm ok to take a few ones at random and have a look at them during next week.

Great! Let me know in the github issues if there are any mistaken changes.
 

Ulrich Apel

unread,
Aug 11, 2024, 1:31:52 AM8/11/24
to kan...@googlegroups.com

Hi, everybody,

> Thank you for letting me know. Do you use the stroke type information?

The information is used for lookup via stoke types. and it will be used for better looking characters for example for new handwriting fonts.

Best wishes
Ulrich

Ben Bullock

unread,
Aug 11, 2024, 4:02:23 AM8/11/24
to kan...@googlegroups.com
As you can see on the commits page at github if you follow that, I've gradually been working through the errors in the types, but I don't know of anyone using the stroke types in any of the applications we have listed on the projects page.

 
 

pascal Baillehache

unread,
Aug 14, 2024, 1:07:19 AM8/14/24
to kan...@googlegroups.com
Hi Ben,

I've checked the modification regarding ㇀/㇐ .

First I've looked at the diff between 939223bb73d7b782f30146e19463d596f8bea343 "Automated change of ㇐ to ㇀/㇐" and its previous commit, and checked the only modifications were replacement of `kvg:type="㇐"` with `kvg:type="㇀/㇐"`.

Then I've checked, using the viewer of your website, that the type ㇀/㇐ was correctly used for the 20 kanji below (randomly selected among the modified ones):

073c8
073ca
073ce
073de
073e5
073ee
07405-Kaisho
07409
07422
07425-VtLst
074a2
074cf
074e3
07ae2
07dfb
07e96-Kaisho
07fca
08229
089ac
08efe

Hoping that will help you.


--
--
You received this message because you are subscribed to the "KanjiVG" group.
For options and unsubscribing, visit this group at
http://groups.google.com/group/kanjivg
---
You received this message because you are subscribed to the Google Groups "KanjiVG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kanjivg+u...@googlegroups.com.

Ben Bullock

unread,
Aug 14, 2024, 3:07:04 AM8/14/24
to kan...@googlegroups.com
Thank you Pascal, that does help. Please feel free to do any more checks you like. As I mentioned above I am very gradually working through the stroke type errors. At the moment, the method I'm using is to generate the angle of the start and end points, then average the values, and see what strokes are outside the expected range for that type, and produce a report on which characters seem to have errors. I think what I'll do is to put that onto a github page or something so that people can contribute. I think it would be good to also put the stroke types on the main kanjivg viewer, as an option. That's currently on the bugs list.


Thank you again.

Reply all
Reply to author
Forward
0 new messages