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

Outline process for adding new glyph stroke animations? #321

Open
lancejpollard opened this issue Sep 24, 2024 · 2 comments
Open

Outline process for adding new glyph stroke animations? #321

lancejpollard opened this issue Sep 24, 2024 · 2 comments

Comments

@lancejpollard
Copy link

Is it possible to add animations for arbitrary glyphs (Latin script, Tibetan script, etc.)?

If so, how do you go about adding them, what is the exact process? I would like to teach people how to add their own glyph animations if it's easy enough.

Thanks!

@chanind
Copy link
Owner

chanind commented Sep 24, 2024

The problem is that latin characters loop back on themselves, and the way HanziWriter does animations currently it can't really handle this. I'm not sure about Tibetan but probably similar, most scripts have this property. Mandarin strokes are one of the few where no stroke ever loops back on itself. We'd have to change the way strokes are drawn to make this work, potentially doing something like break up the stroke into chunks that get animated sort of at the same time so the overlapping portion doesn't leak out during animation.

@lancejpollard
Copy link
Author

Oh ok, how much work is that? Can you explain roughly how you solved this for Mandarin characters for now? Maybe I could think about how to do this in the general case as well.

Thanks.

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