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

Cannot parse "シークヮーサー" #10

Open
MihailsKuzmins opened this issue Feb 19, 2021 · 2 comments
Open

Cannot parse "シークヮーサー" #10

MihailsKuzmins opened this issue Feb 19, 2021 · 2 comments
Assignees

Comments

@MihailsKuzmins
Copy link

MihailsKuzmins commented Feb 19, 2021

I would like to parse "シークヮーサー", but I get the "key not found" exception.
Could you please advise how it can be done? Do I use the CustomKanaMapping and CustomRomajiMapping incorrectly?
Exception message: "The given key 'ゎ' was not present in the dictionary."

		[Fact]
		public void Aaa()
		{
			const string input = "シークヮーサー";
			var wanaKanaOptions = new WanaKanaOptions
			{
				CustomKanaMapping = new Dictionary<string, string>
				{
					{"ゎ", "wa"},
					{"ヮ", "wa"}
				},
				CustomRomajiMapping = new Dictionary<string, string>
				{
					{"ゎ", "wa"},
					{"ヮ", "wa"}
				}
			};

			var result = WanaKana.ToRomaji(input, wanaKanaOptions);
		}
@MartinZikmund
Copy link
Owner

Hey @MihailsKuzmins,

sorry I missed your issue, I will take a look and investigate.

@MihailsKuzmins
Copy link
Author

@MartinZikmund, thank you for the library.
It looks like you cannot find time for this issue, so I'm closing it.
As for me, I have another solution for romanising this katakana sequence

@MartinZikmund MartinZikmund reopened this Mar 4, 2023
@MartinZikmund MartinZikmund self-assigned this Mar 4, 2023
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