hebrew 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hebrew.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a509e56919f2055864ca238d0ce48eee1008016ce5d374d94af15493669d8af8
|
4
|
+
data.tar.gz: b4dec8e825ae6dbca6c7fc9c4fe0c86e44606892c30f06b7201e3aab49929702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba23fb87e55a1eba175fcbfc081ef7b9ed4ddfe554a079d4c69b52c87d676811f5f76e0c2bc417b1a998323b8dbacc9070d095060e202c0f9ab0218b9d8cd051
|
7
|
+
data.tar.gz: 31e495df211f42b7308d0e31b710396d7861e177d1b49a0df714661abc266fa910dfa64c50da99a7d884fdda8e4fb68d0444ffc7165576466da70d5c648e2282
|
data/lib/hebrew.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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
|