Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a source of stroke data for primitives and keys like 衤, 扌? #28

Open
ganqqwerty opened this issue Mar 3, 2023 · 4 comments

Comments

@ganqqwerty
Copy link

I noticed that in the dataset, some radicals and primitives have stroke data, for example 氵
At the same time, 衤, 扌do not have stroke data.
How is the data generated, is it hand crafted?
I would like to add the stroke data about primitives and radicals so that i could use it for my anki deck projects.

@parsimonhi
Copy link
Owner

Basically:
a) If the character exists in the MakeMeAHanzi project, we get the data from it, transform it into AnimCJK format using some scripts, then use Inkscape (a software that can edit SVG files) to adapt the shapes if necessary (because there are many small imperfections, there are some errors and the shape of a character may be different depending on the language).
b) If the character does not exist in the MakeMeAHanzi project, we build the character using parts of other already existing characters using a text editor (SVG image files are text files) and Inkscape.
c) Finally, we use other scripts to create the "medians", add a brush effect to the ends of the lines and update all other data such as decompositions and dictionary entries.

Note that it took years to make AnimCJK. If you have hundreds of characters to add, it can take a long time.

Do you have a list of characters you want? Or is it an open list?

@parsimonhi
Copy link
Owner

Hello,

Just added 衤 and 扌 to svgsJa and svgsZhHans.

@ganqqwerty
Copy link
Author

ganqqwerty commented May 13, 2023

Do you have a list of characters you want? Or is it an open list?

Sorry that it took me so long to reply. I am thinking about all radicals, plus all Heisig "primitives" (which includes all radicals). A list of primitives can be found here, it has the SVGs too

@parsimonhi
Copy link
Owner

The "heisig-rtk-index" project looks very interesting. But your two "All" are just scary! :-)

I cannot promise anything. It's a lot of work to do (probably many years of free time) because there is no automatic method to accomplish this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants