Skip to content

Commit ecc9dd4

Browse files
committed
[Hung] fix regression of converting punctuation
Typing words with punctuation transliterates only letters, but not punctuation in LibreOffice Writer, because transliterated letters ending with not transliterated punctuation hasn't been processed since commit efb0879 "[Hung] fix translation of letters and words with special letters".
1 parent 523a24d commit ecc9dd4

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

data/hu_Hung.sor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# e.g. Áprily, Champs-Élysées, Élysée-palota, Dolly, Folly, Hollywood, jolly, intercity, Kisfaludy ...
77
"^(Áp​?ri​?l|Champs-Él|[cC]i​?t|Do​?lák-Sa​?l|[dfhjDFHJ]ol​?l|Él|Fesz​?t|[gG]rizz​?l|Ha​?rasz​?t|Hat​?va​?n|Husz​?t|[iI]n​?ter​?ci​?t|Jé​?ke​?l|Kis​?fa​?lu​?d|Ku​?ko​?r​?el​?l|Mo​?ho​?l|Mind​?szen​?t|Nosz​?t|[pP]en​n|Pes​?t|Re​?gu​?l|So​?n|Szi​?l|Szte​?va​?no​?vi​?t|Vö​?rös​?mar​?t|[zZ][lł]ot)y(.*) 0$" $1𐳐$2
88
"^(ÁP​?RI​?L|CHAMPS-ÉL|CI​?T|DO​?LÁK-SA​?L|[DFHJ]OL​?L|ÉL|FESZ​?T|GRIZZ​?L|HA​?RASZ​?T|HAT​?VA​?N|HUSZ​?T|IN​?TER​?CI​?T|JÉ​?KE​?L|KIS​FA​LU​?D|KU​?KO​?R​?EL​?L|MIND​?SZEN​?T|MO​?HO​?L|NOSZ​?T|PEN​?N|PES​?T|RE​?GU​?L|SO​?N|SZI​?L|SZTE​?VA​?NO​?VI​?T|VÖ​?RÖS​?MAR​?T|Z[LŁ]OT)Y(.*) 0$" $1𐲐$2
9+
# punctuation with transliterated letters
10+
"^([-𐲀-𐳿0-9​–,„”\?\;‟⁏⸮⹁⹂]*[,„”\?\;]) 0$" $1
911
# if the original word contains an unknown character, return without modification
1012
"^(.*[^-0-9qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNMáäéëíóöőúüűÁÄÉËÍÓÖŐÚÜŰ​–,„”\?\;].*) 0$" \1
1113
# words with y

test/hu_Hung.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
í 0
66
Í 0
77
NY
8+
?
9+
,
10+
;
11+
„”
12+
kérdőjel?
13+
vessző,
14+
pontosvessző;
15+
„idézőjel”
16+
„𐳐𐳇𐳋𐳯𐳟𐳒𐳉𐳖?”
17+
„𐳐𐳇𐳋𐳯𐳟𐳒𐳉𐳖”?
18+
„𐳐𐳇𐳋𐳯𐳟𐳒𐳉𐳖”,
19+
„𐳐𐳇𐳋𐳯𐳟𐳒𐳉𐳖”;
820
Händel 0
921
Molière 0
1022
IQ 0

test/hu_Hung.out

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
𐳑
66
𐲑
77
𐲚
8+
9+
10+
11+
⹂‟
12+
𐳓𐳋𐳢𐳇𐳟𐳒𐳉𐳖⸮
13+
𐳮𐳉𐳥𐳥𐳟⹁
14+
𐳠𐳛𐳙𐳦𐳛𐳤𐳮𐳉𐳥𐳥𐳟⁏
15+
⹂𐳐𐳇𐳋𐳯𐳟𐳒𐳉𐳖‟
16+
⹂𐳐𐳇𐳋𐳯𐳟𐳒𐳉𐳖⸮‟
17+
⹂𐳐𐳇𐳋𐳯𐳟𐳒𐳉𐳖‟⸮
18+
⹂𐳐𐳇𐳋𐳯𐳟𐳒𐳉𐳖‟⹁
19+
⹂𐳐𐳇𐳋𐳯𐳟𐳒𐳉𐳖‟⁏
820
𐲏𐳋𐳙𐳇𐳉𐳖
921
Molière
1022
IQ

0 commit comments

Comments
 (0)