makimoto / romaji

Romaji-Kana transliterator
96 stars 18 forks source link

Getting コーヒー #7

Open matthewkrom opened 9 years ago

matthewkrom commented 9 years ago

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 commented 7 years ago

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 commented 7 years ago

Thanks!!

On Mon, Jan 9, 2017 at 10:25 AM, atmarksharp notifications@github.com wrote:

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

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 #=> コーヒー

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/makimoto/romaji/issues/7#issuecomment-271312323, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYFkyefVYS8JIYuF1oSiHE4ula-WJJAks5rQlFmgaJpZM4D8Gnz .

-- Matthew Krom MW Krom LLC / Web+mobile product design, development, engineering, experience Cambridge, MA USA

Tel/Text +1 617 852 5130 http://www.mwkrom.com http://www.huville-makerspace.com

funatsufumiya commented 7 years ago

I also think this should be added to spec :)