support_korean_language 0.0.0

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/support-korean-language.rb +35 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e8520b3dcf43fe0b83d41846c1dc43006c42d4f2d09309fafd8000721ad87e4f
4
+ data.tar.gz: e5f8d8449048f82c343b8d0ceece183ab51d91c5c2f8ea9aac81139bbb8fdee0
5
+ SHA512:
6
+ metadata.gz: 337427c8c21c1a683459c5831cf4e098d6baa656c20134566a0856a883a92294dbb799c6d7c7fc192f95b4c921291c415c2aa8181cb10034f8716c786806cd2d
7
+ data.tar.gz: eeeedb60a7989e0aab0b61da8123a414663714b87d80772ffc424ea4ab23f3218e4d1acf9f88daf97f63e38fedcf421c93676304bfeedb3e7d26a00e30e7d208
@@ -0,0 +1,35 @@
1
+ module LearnHangul
2
+ KOREAN_VOWELS = %w[ㅏ ㅓ ㅗ ㅜ ㅡ ㅣ ㅔ ㅐ ㅚ ㅟ ㅑ ㅕ ㅛ ㅠ ㅖ ㅒ ㅘ ㅝ ㅢ ㅞ ㅙ].freeze
3
+ KOREAN_CONSONANTS = %w[ㄱ ㄴ ㄷ ㄹ ㅁ ㅂ ㅅ ㅇ ㅈ ㅎ ㅋ ㅌ ㅍ ㅊ ㄲ ㄸ ㅃ ㅆ ㅉ].freeze
4
+ CONSONANT_NAMES = { 'ㄱ' => '기역', 'ㄴ' => '니은', 'ㄷ' => '디귿', 'ㄹ' => '리을',
5
+ 'ㅁ' => '미음', 'ㅂ' => '비읍', 'ㅅ' => '시옷', 'ㅈ' => '지읒',
6
+ 'ㅇ' => '이응', 'ㅎ' => '히읗', 'ㅋ' => '키읔', 'ㅌ' => '티읕',
7
+ 'ㅍ' => '피읖', 'ㅊ' => '치읓', 'ㄲ' => '쌍기역', 'ㄸ' => '쌍디귿',
8
+ 'ㅃ' => '쌍비읍', 'ㅆ' => '쌍시옷', 'ㅉ' => '쌍지옺' }.freeze
9
+ PHONETIC_VALUES = { 'ㅏ' => '[a]', 'ㅓ' => '[ə]', 'ㅗ' => '[o]', 'ㅜ' => '[u]',
10
+ 'ㅡ' => '[ɨ]', 'ㅣ' => '[i]', 'ㅔ' => '[e],', 'ㅐ' => '[ɛ]',
11
+ 'ㅚ' => '[wa]', 'ㅟ' => '[wə]', 'ㅑ' => '[ya]', 'ㅕ' => '[yə]',
12
+ 'ㅛ' => '[yo]', 'ㅠ' => '[yu]', 'ㅖ' => '[ye]', 'ㅒ' => '[yɛ]',
13
+ 'ㅘ' => '[ö/we]', 'ㅝ' => '[ü/wu]', 'ㅢ' => '[ɨy]', 'ㅞ' => '[we]',
14
+ 'ㅙ' => '[wɛ]', 'ㄱ' => '[k/g]', 'ㄴ' => '[n]', 'ㄷ' => '[t/d]',
15
+ 'ㄹ' => '[r/l]', 'ㅁ' => '[m]', 'ㅂ' => '[p/b]', 'ㅅ' => '[s]',
16
+ 'ㅇ' => '[ø/ŋ]', 'ㅈ' => '[tʃ/j]', 'ㅎ' => '[h]', 'ㅋ' => '[kh]',
17
+ 'ㅌ' => '[th]', 'ㅍ' => '[ph]', 'ㅊ' => '[tʃh]', 'ㄲ' => '[k\']',
18
+ 'ㄸ' => '[t\']', 'ㅃ' => '[p\']', 'ㅆ' => '[s\']', 'ㅉ' => '[tʃ\']' }.freeze
19
+
20
+ def display_korean_vowels
21
+ KOREAN_VOWELS.each { |n| print n }
22
+ end
23
+
24
+ def display_korean_consonants
25
+ KOREAN_CONSONANTS.each { |n| print n }
26
+ end
27
+
28
+ def consonant_name_of(name)
29
+ CONSONANT_NAMES[name]
30
+ end
31
+
32
+ def pronunciation_of(name)
33
+ PHONETIC_VALUES[name]
34
+ end
35
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: support_korean_language
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - J.P. Pérez-Tejada
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-10-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Gem with tools to support korean language
14
+ email: juan@daiuk.com.mx
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/support-korean-language.rb
20
+ homepage: https://rubygems.org/gems/support-korean-language
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.3.3
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Hola!
43
+ test_files: []