Code Monkey home page Code Monkey logo

romaji's Issues

"トゥドゥドェ" seems unsupported

Hi, @makimoto.
I found some kana spellings were not correctly recognized.

> Romaji.kana2romaji('トゥエンティーフォー')
=> "toゥenthi-fo-"
> Romaji.kana2romaji('ドゥードゥー')
=> "doゥ-doゥ-" 
> Romaji.kana2romaji('ドェントナ')
=> "doェntona"

"にゃにゅにょ" seems unsupported.

Hello,

I found some common kana spellings were not correctly recognized by Romaji.kana2romaji.

[1] pry(main)> Romaji.kana2romaji "にゃにゅにょ"
=> "niャniュniョ"
[2] pry(main)> Romaji.kana2romaji "ニャニュニョ"
=> "niャniュniョ"
[3] pry(main)> Romaji.romaji2kana "nyanyunyo"
=> "ニャニュニョ"

undefined method `normalize' for Romaji:Module

I tried using this library like below.

require "romaji/core_ext/string"

puts "tesuto".kana

but it raised undefined method 'normalize' for Romaji:Module (NoMethodError).

/user/.anyenv/envs/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/romaji-0.2.3/lib/romaji/string_extension.rb:6:in `normalize': undefined method `normalize' for Romaji:Module (NoMethodError)
	from /user/.anyenv/envs/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/romaji-0.2.3/lib/romaji/string_extension.rb:14:in `kana'
	from sample.rb:3:in `<main>'

The installation directory and the version of my ruby are below.

$ which ruby
/user/.anyenv/envs/rbenv/shims/ruby

$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

"ビャビュビョ" seems unsupported.

Hi. I found broken results.

> Romaji.kana2romaji('ビャビュビョ')
=> "biャbiュbiョ"
> Romaji.kana2romaji(Romaji::ROMAJI2KANA.values.flatten.join)
=> "aiueo-nァィゥェォkakikukekokakukogagigugegosashisusesozajizuzezojajijujejotachitsutetodadidudedonaninunenohahifuhehobabibubebopapipupepovavivuvevofafifufefomamimumemoyaiyuiェyorarirurerorarirurerowawiuwewontsuヵヶヮxtsuャュョkyakiィkyukyekyogyagiィgyugyegyoshashiィshusheshoshashishusheshojajiィjujejojajiィjujejochachiィchuchechochachiィchuchechochachichuchechothathithuteェthodiャdiィdiュdiェdiョdhadhidhudhedhonyaniィnyunyenyohyahiィhyuhyehyobiャbiィbiュbiェbiョpyapiィpyupyepyomiャmiィmiュmiェmiョryariィryuryeryoryariィryuryeryo"

Getting コーヒー

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

ライセンスを明示してほしい

romajiを使ってソフトウェアを作っているのですがもし可能であればライセンスを明示するのを検討していただけないでしょうか?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.