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

Getting コーヒー #7

Open
matthewkrom opened this issue Apr 8, 2015 · 3 comments
Open

Getting コーヒー #7

matthewkrom opened this issue Apr 8, 2015 · 3 comments

Comments

@matthewkrom
Copy link

Hi! If I do "koohii" to katakana, I'm missing the ー. I see instead コオヒイ. I should add that I am just learning Japanese as a beginner. Is the lack of ー OK for native speakers? Or, is this something I could contribute a "pull" request for? (Assuming I find proper examples to add to the spec)

Matt

@funatsufumiya
Copy link

funatsufumiya commented Jan 9, 2017

Hi, Matt. A valid representation of "コーヒー" (coffee) in romaji is:

 _ _
kohi

 or

 ^ ^
kohi

(See https://en.wikipedia.org/wiki/Romanization_of_Japanese for detail)

I found the way of representing long vowels in this library.

require "romaji"
require "romaji/core_ext/string"

puts "ko-hi-".kana #=> コーヒー

@matthewkrom
Copy link
Author

matthewkrom commented Jan 9, 2017 via email

@funatsufumiya
Copy link

I also think this should be added to spec :)

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