hebrew 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hebrew.rb +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ef2e827cd290e619c308f84ee2c10c500e06643cd38e83ea0e2131dca7d712b
4
- data.tar.gz: 3905432bb0cdbcbaacb04933c0c4a584b425bae481b2130558cdcdb06bc0ddbd
3
+ metadata.gz: a509e56919f2055864ca238d0ce48eee1008016ce5d374d94af15493669d8af8
4
+ data.tar.gz: b4dec8e825ae6dbca6c7fc9c4fe0c86e44606892c30f06b7201e3aab49929702
5
5
  SHA512:
6
- metadata.gz: 240ac1b3e6dc8d2891f8299e4871b313757038389cbca94dd5ad5693160bdcbfbb027ef4b96b303e413b17c6306dc4a320b40a0ad18efe39b691272b4897e6e7
7
- data.tar.gz: 0df9ecc542cf86904f6951083a70fa26c799d7dd8923ca6c87d204fdaabee468f8918f9b9689074dd4e0e2fe6cc50541a657239c10b44e20e66a5de41432669d
6
+ metadata.gz: ba23fb87e55a1eba175fcbfc081ef7b9ed4ddfe554a079d4c69b52c87d676811f5f76e0c2bc417b1a998323b8dbacc9070d095060e202c0f9ab0218b9d8cd051
7
+ data.tar.gz: 31e495df211f42b7308d0e31b710396d7861e177d1b49a0df714661abc266fa910dfa64c50da99a7d884fdda8e4fb68d0444ffc7165576466da70d5c648e2282
@@ -98,9 +98,12 @@ class String
98
98
  case self.encoding
99
99
  when Encoding::UTF_8
100
100
  self.each_char do |c|
101
- ret += c
101
+ if c.codepoints[0] == HEB_UTF8_QUBBUTS
102
+ ret += 'וּ' # replace Qubbuts with vav and shuruk
103
+ else
104
+ ret += c
105
+ end
102
106
  ret += 'י' if c.codepoints[0] == HEB_UTF8_XIRIK
103
- ret += 'ו' if c.codepoints[0] == HEB_UTF8_QUBBUTS
104
107
  ret += 'ו' if c.codepoints[0] == HEB_UTF8_XOLAM && prev_char != 'ו'
105
108
  prev_char = c
106
109
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hebrew
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asaf Bartov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-20 00:00:00.000000000 Z
11
+ date: 2020-10-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Some useful code to identify, transcode, and manipulate Hebrew text
14
14
  email: asaf.bartov@gmail.com