FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve Hebrew conversion · mkc188/unidecode@81f938d · GitHub

Repository navigation

Commit 81f938d

Browse files
committed
Improve Hebrew conversion
Convert double letter translation to capital letter as very hard to understand what the translation is because of duplicate, for example: kh - is it k and h or kh? tskh - is it t,s,kh or ts,k,h or ts,kh, etc... 0xa2 Hebrew bible puncheation mark, should be ignored. 0xc6 Opposite Nun, same as 'n'. 0xba Hulam Haser, vawel as 'o'. 0xbf Makaf Raphe, same as Makaf (0xbe). 0xc5 Hebrew bible puncheation mark, should be ignored. 0xc7 Makaf katan, vowel as 'o'. 0xd0 Aleph, sounds as AHA must exist to make string readbale. Distinguish from '`' use capital A to distinguish from 'a' vowel. 0xf5 Splitted Vave, same as 'v'. 0xf6 Opposite Nun, same as 'n'. 0xf7 Small Kuf, same as 'q'. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
1 parent 17aecae commit 81f938d

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

‎unidecode/x005.py‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
'', # 0x9f
162162
'', # 0xa0
163163
'', # 0xa1
164-
'[?]', # 0xa2
164+
'', # 0xa2
165165
'', # 0xa3
166166
'', # 0xa4
167167
'', # 0xa5
@@ -185,20 +185,20 @@
185185
'a', # 0xb7
186186
'a', # 0xb8
187187
'o', # 0xb9
188-
'[?]', # 0xba
188+
'o', # 0xba
189189
'u', # 0xbb
190190
'\'', # 0xbc
191191
'', # 0xbd
192192
'-', # 0xbe
193-
'', # 0xbf
193+
'-', # 0xbf
194194
'|', # 0xc0
195195
'', # 0xc1
196196
'', # 0xc2
197197
':', # 0xc3
198198
'', # 0xc4
199-
'[?]', # 0xc5
200-
'[?]', # 0xc6
201-
'[?]', # 0xc7
199+
'', # 0xc5
200+
'n', # 0xc6
201+
'o', # 0xc7
202202
'[?]', # 0xc8
203203
'[?]', # 0xc9
204204
'[?]', # 0xca
@@ -207,14 +207,14 @@
207207
'[?]', # 0xcd
208208
'[?]', # 0xce
209209
'[?]', # 0xcf
210-
'', # 0xd0
210+
'A', # 0xd0
211211
'b', # 0xd1
212212
'g', # 0xd2
213213
'd', # 0xd3
214214
'h', # 0xd4
215215
'v', # 0xd5
216216
'z', # 0xd6
217-
'kh', # 0xd7
217+
'KH', # 0xd7
218218
't', # 0xd8
219219
'y', # 0xd9
220220
'k', # 0xda
@@ -228,25 +228,25 @@
228228
'`', # 0xe2
229229
'p', # 0xe3
230230
'p', # 0xe4
231-
'ts', # 0xe5
232-
'ts', # 0xe6
231+
'TS', # 0xe5
232+
'TS', # 0xe6
233233
'q', # 0xe7
234234
'r', # 0xe8
235-
'sh', # 0xe9
235+
'SH', # 0xe9
236236
't', # 0xea
237237
'[?]', # 0xeb
238238
'[?]', # 0xec
239239
'[?]', # 0xed
240240
'[?]', # 0xee
241241
'[?]', # 0xef
242242
'V', # 0xf0
243-
'oy', # 0xf1
243+
'OY', # 0xf1
244244
'i', # 0xf2
245245
'\'', # 0xf3
246246
'"', # 0xf4
247-
'[?]', # 0xf5
248-
'[?]', # 0xf6
249-
'[?]', # 0xf7
247+
'v', # 0xf5
248+
'n', # 0xf6
249+
'q', # 0xf7
250250
'[?]', # 0xf8
251251
'[?]', # 0xf9
252252
'[?]', # 0xfa

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL