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

How to reset custom mapping? #129

Closed
whimsee opened this issue Jan 30, 2022 · 1 comment · Fixed by #132
Closed

How to reset custom mapping? #129

whimsee opened this issue Jan 30, 2022 · 1 comment · Fixed by #132
Assignees
Labels

Comments

@whimsee
Copy link

whimsee commented Jan 30, 2022

This probably isn't an intended use of it but I stumbled across Wanakana when I was looking for a kana -> romaji conversion tool for a project I'm working on. Basically, I just want to convert kana to readable base romaji, Hepburn w/ macrons, and other romanization systems then display them on a website.

The custom maps work like a charm, but I'm having trouble finding a way to reset or replace the mapping once it's set.

ie. {customRomajiMapping: {とお: "tō"}} works to change what would have been "too" to "tō", but I'm essentially stuck with that custom map. I can't replace it, even add to it apparently since I tried adding a silly mapping of あ to "ah" and it didn't register either.

@DJTB
Copy link
Collaborator

DJTB commented Feb 7, 2022

Hey @whimsee good catch!
It looks like we only apply a custom mapping if one is not already set, probably as a performance optimization.
I'll take a look at fixing this up for you.

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

Successfully merging a pull request may close this issue.

2 participants