LyricsJapanese
This is a helper script for entering Japanese lyrics into music scores. Convert natural Japanese sentences into word-spacing notes for musical notes. example:
"恋しちゃおう 夢 見ちゃおう 恋のダンスサイト"
is converted to
"こ い し ちゃ お う ゆ め 見 ちゃ お う こ い の ダ ン ス サ イ ト"
This format can be directly put into the lyrics window of DAW software "Digital Performer" by Mark of the unicorn.
Installation
Add this line to your application's Gemfile:
gem 'lyrics_japanese'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install lyrics_japanese
Usage
There are two ways to convert
- convert from STDIN
- ex)
$ echo "恋しちゃおう" | lyrics_japanese こ い し ちゃ お う
- convert from files
- ex)
$ cat sample_lyrics.txt 恋しちゃおう $ lyrics_japanese sample_lyrics.txt こ い し ちゃ お う
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
Bug reports and pull requests are welcome!
- Fork it ( https://github.com/shinyaohtani/lyrics_japanese )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the MasterDelivery project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.