lyrics_japanese 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1583ce84cb6867fc94a0ebc3123cf019d0a842aa487f831e637e23098f6e358
4
- data.tar.gz: 6cb3bd9953ad8b7966aa6f458281ea6d0654c80a8a143f9112075b2ab0dde400
3
+ metadata.gz: 9a22bedbc9e165f83b019a404d78f1ccd6dfb070d0fc9eacfba8277d208bc124
4
+ data.tar.gz: cf7defc6b54f1ef1c19592d81f9f9c3dcf37f6396b1ae38284022fa0545dbe76
5
5
  SHA512:
6
- metadata.gz: 44517440ef38f09b4ee311b5da7b02c1a2205680b083904c96cb6a9303f1217424fd1ec2d30d0a7a6e0ba8329927f8cb2eaffe57d0e3612a5b1b85629e1e0b97
7
- data.tar.gz: 621da5266146e08a266a17496f6685a448da3efa000dd792421d260987d4707d4f5b72d7358135a5b7a394e49367ecdc2f8ed88c976efd76050f47d4f2bcb078
6
+ metadata.gz: 0e97bae1d79a803d711cd17057933f98d0cd3938b707d14fbb6bc873e0e0a3df22869deab0404ae54007b7ec42ff03e2972a1ff9409f1be28f4ab55b1d666663
7
+ data.tar.gz: 75da7efdba665614f676a167874d12c2b75d3339d3a0ce8f25363c3c47bd3f1a3eca65a4d7b9d55dfe3d27df03cfb3ccd412f345ae8407f4909372f42f5af882
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.0.1](https://github.com/shinyaohtani/lyrics_japanese/tree/v1.0.1) (2020-05-18)
4
+
5
+ [Full Changelog](https://github.com/shinyaohtani/lyrics_japanese/compare/v1.0.0...v1.0.1)
6
+
7
+ - Removed extra spaces before processing
8
+ - Sample lyrics for testing is prepared
9
+ - Example of README.md is changed because 1 char Kanji rule cannot be seen.
10
+
11
+ **Implemented enhancements:**
12
+
13
+ - Remove extra spaces [\#3](https://github.com/shinyaohtani/lyrics_japanese/issues/3)
14
+
15
+ **Merged pull requests:**
16
+
17
+ - Remove extra spaces [\#4](https://github.com/shinyaohtani/lyrics_japanese/pull/4) ([shinyaohtani](https://github.com/shinyaohtani))
18
+
3
19
  ## [v1.0.0](https://github.com/shinyaohtani/lyrics_japanese/tree/v1.0.0) (2020-05-15)
4
20
 
5
21
  [Full Changelog](https://github.com/shinyaohtani/lyrics_japanese/compare/95359c051a51f5562156e52fdcb80aeb0aae6b93...v1.0.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lyrics_japanese (1.0.0)
4
+ lyrics_japanese (1.0.1)
5
5
  natto (>= 1.2.0)
6
6
  yaml (>= 0.1.0)
7
7
 
data/README.md CHANGED
@@ -1,12 +1,16 @@
1
+ [![Gem Version](https://badge.fury.io/rb/lyrics_japanese.svg)](https://badge.fury.io/rb/lyrics_japanese)
1
2
  # LyricsJapanese
2
3
 
3
- This is a helper script for entering Japanese lyrics into music scores.
4
+ This is a helper script for entering **Japanese lyrics** into **music scores**.
4
5
  Convert natural Japanese sentences into word-spacing notes
5
6
  for musical notes.
6
7
  example:
7
8
  ```
8
- "恋しちゃおう 夢見ちゃおう 恋のダンスサイト" is converted to
9
- "こ い し ちゃ お う ゆ め み ちゃ お う こ い の ダ ン ス サ イ ト"
9
+ "恋しちゃおう 見ちゃおう 恋のダンスサイト"
10
+ ```
11
+ is converted to
12
+ ```
13
+ "こ い し ちゃ お う ゆ め 見 ちゃ お う こ い の ダ ン ス サ イ ト"
10
14
  ```
11
15
  This format can be directly put into the lyrics window
12
16
  of DAW software "Digital Performer" by Mark of the unicorn.
@@ -29,7 +33,21 @@ Or install it yourself as:
29
33
 
30
34
  ## Usage
31
35
 
32
- TODO: Write usage instructions here
36
+ There are two ways to convert
37
+ - convert from STDIN
38
+ - ex)
39
+ ```sh
40
+ $ echo "恋しちゃおう" | lyrics_japanese
41
+ こ い し ちゃ お う
42
+ ```
43
+ - convert from files
44
+ - ex)
45
+ ```sh
46
+ $ cat sample_lyrics.txt
47
+ 恋しちゃおう
48
+ $ lyrics_japanese sample_lyrics.txt
49
+ こ い し ちゃ お う
50
+ ```
33
51
 
34
52
  ## Development
35
53
 
@@ -48,7 +48,7 @@ module LyricsJapanese
48
48
  lines = []
49
49
  text.each do |sentence|
50
50
  words = []
51
- @@natto.parse(sentence) do |n|
51
+ @@natto.parse(sentence.gsub(/[  ]+/,' ').strip) do |n|
52
52
  unless n.is_eos?
53
53
  # puts "#{n.surface}\t#{n.feature}"
54
54
  rubi = n.surface
@@ -1,16 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LyricsJapanese
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  DESCRIPTION = <<~DESC
6
6
  This is a helper script for entering Japanese lyrics into
7
7
  music scores. lyrics_japanes converts natural Japanese sentences
8
8
  into word-spacing notes for musical notes.
9
9
  example:
10
- "恋しちゃおう 夢見ちゃおう 恋のダンスサイト" is converted to
11
- "こ い し ちゃ お う ゆ め ちゃ お う こ い の ダ ン ス サ イ ト"
10
+ "恋しちゃおう 見ちゃおう 恋のダンスサイト" is converted to
11
+ "こ い し ちゃ お う ゆ め ちゃ お う こ い の ダ ン ス サ イ ト"
12
12
  This format can be directly put into the lyrics window
13
- of DAW software "Digital Performer" by Mark of the unicorn.
13
+ of DAW software "Digital Performer" released by MOTU.
14
14
  DESC
15
15
  REPOSITORY_URL = 'https://github.com/shinyaohtani/lyrics_japanese'
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lyrics_japanese
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinya Ohtani (shinyaohtani@github)
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-15 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: natto
@@ -169,10 +169,10 @@ description: |
169
169
  music scores. lyrics_japanes converts natural Japanese sentences
170
170
  into word-spacing notes for musical notes.
171
171
  example:
172
- "恋しちゃおう 夢見ちゃおう 恋のダンスサイト" is converted to
173
- "こ い し ちゃ お う ゆ め ちゃ お う こ い の ダ ン ス サ イ ト"
172
+ "恋しちゃおう 見ちゃおう 恋のダンスサイト" is converted to
173
+ "こ い し ちゃ お う ゆ め ちゃ お う こ い の ダ ン ス サ イ ト"
174
174
  This format can be directly put into the lyrics window
175
- of DAW software "Digital Performer" by Mark of the unicorn.
175
+ of DAW software "Digital Performer" released by MOTU.
176
176
  email:
177
177
  - shinya_ohtani@yahoo.co.jp
178
178
  executables: