Skip to content

Commit

Permalink
duplicate patterns with apostrophes in plan text files (there was a b…
Browse files Browse the repository at this point in the history
…ug in conversion for Greek)
  • Loading branch information
mojca committed Jun 8, 2011
1 parent deffaae commit 312c62d
Show file tree
Hide file tree
Showing 19 changed files with 485 additions and 133 deletions.
4 changes: 4 additions & 0 deletions hyph-utf8/doc/generic/hyph-utf8/CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2011-06-08 (#547)
- duplicate patterns with apostrophes in plan text files
- fix a bug in conversion of greek patterns into plain text files (no apostrophe replacement)

2011-06-08 (#545, #546)
- restore two version of plain text patterns for Serbian
and load 'sh' patterns by default also for Cyrillic script
Expand Down
10 changes: 9 additions & 1 deletion hyph-utf8/source/generic/hyph-utf8/generate-plain-patterns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@

# patterns
patterns.each do |pattern|
$file_pat.puts pattern.gsub(/'/,"’")
$file_pat.puts pattern
if pattern =~ /'/ then
if code != "grc" and code != "el-monoton" and code != "el-polyton" then
$file_pat.puts pattern.gsub(/'/,"’")
end
end
end
# exceptions
if exceptions != ""
Expand All @@ -82,6 +87,9 @@
characters_indexes.each do |c|
ch = [c].pack('U')
$file_let.puts ch + Unicode.upcase(ch)
if ch == "'" and code != "grc" and code != "el-monoton" and code != "el-polyton" then
$file_let.puts "’’"
end
end
# licence and readme
$file_inf.puts "#{language.message}\n\n(more info about the licence to be added later)\n\n"
Expand Down
1 change: 0 additions & 1 deletion hyph-utf8/source/generic/hyph-utf8/languages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def get_patterns
gsub(/\s+/m,"\n").
gsub(/^\s*/m,'').
gsub(/\s*$/m,'').
gsub(/'/,"’").
split("\n")

if @code == 'eo' then
Expand Down
3 changes: 2 additions & 1 deletion hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-af.chr.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
''
’’
--
aA
bB
Expand Down Expand Up @@ -35,4 +37,3 @@ zZ
öÖ
ûÛ
üÜ
’’
7 changes: 7 additions & 0 deletions hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-af.pat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
.af7oes.
.a4f5oo
.a4f5ra
.af6ro'
.af6ro’
.a7fro's
.a7fro’s
.af6ro-
.a7fro-h
Expand Down Expand Up @@ -348,6 +350,7 @@
.k4we
.k4wo
.ky7otop
.l'7etji
.l’7etji
.la6eti
.la6kwa
Expand Down Expand Up @@ -376,6 +379,7 @@
.lui5sl
.l6üder
.m2
.m'7etji
.m’7etji
.ma6cdo
.ma6nal
Expand Down Expand Up @@ -520,6 +524,7 @@
.pyp5r
.py7thon
.r2
.r'7etji
.r’7etji
.r6aard
.ra7dart
Expand Down Expand Up @@ -8099,6 +8104,7 @@ ry4ta
ry5tra
s2
2s.
s'9ie.
s’9ie.
1sa
3sa.
Expand Down Expand Up @@ -10179,6 +10185,7 @@ wys3k
wys3p
wys5ta
wyt7raak
x'9ie.
x’9ie.
x1a
xe1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
''
ʼʼ
ΐΐ
άΆ
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,76 +148,76 @@
4φ.
4χ.
4ψ.
4
4'
4᾿
'
4βʼ
4β᾿
'
4γʼ
4γ᾿
'
4δʼ
4δ᾿
'
4ζʼ
4ζ᾿
'
4θʼ
4θ᾿
'
4κʼ
4κ᾿
'
4λʼ
4λ᾿
'
4μʼ
4μ᾿
4μπ
4μπ'
4μπʼ
4μπ᾿
'
4νʼ
4ν᾿
4ντ
4ντ'
4ντ’
4ντ᾿
'
4ξʼ
4ξ᾿
'
4πʼ
4π᾿
'
4ρʼ
4ρ᾿
'
4σʼ
4σ᾿
'
4ϲʼ
4ϲ᾿
'
4τʼ
4τ᾿
4τζ
4τζ'
4τζʼ
4τζ᾿
4τσ
4τσ'
4τσʼ
4τσ᾽
4τϲ
4τϲ'
4τϲʼ
4τϲ᾿
'
4φʼ
4φ᾿
'
4χʼ
4χ᾿
'
4ψʼ
4ψ᾿
.β4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
''
ʼʼ
ΐΐ
άΆ
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,76 +395,76 @@
6φ.
6χ.
6ψ.
6
6'
6᾿
'
6βʼ
6β᾿
'
6γʼ
6γ᾿
'
6δʼ
6δ᾿
'
6ζʼ
6ζ᾿
'
6θʼ
6θ᾿
'
6κʼ
6κ᾿
'
6λʼ
6λ᾿
'
6μʼ
6μ᾿
6μπ
6μπ'
6μπʼ
6μπ᾿
'
6νʼ
6ν᾿
6ντ
6ντ'
6ντ’
6ντ᾿
'
6ξʼ
6ξ᾿
'
6πʼ
6π᾿
'
6ρʼ
6ρ᾿
'
6σʼ
6σ᾿
'
6ϲʼ
6ϲ᾿
'
6τʼ
6τ᾿
6τζ
6τζ'
6τζʼ
6τζ᾿
6τσ
6τσ'
6τσʼ
6τσ᾽
6τϲ
6τϲ'
6τϲʼ
6τϲ᾿
'
6φʼ
6φ᾿
'
6χʼ
6χ᾿
'
6ψʼ
6ψ᾿
.β6
Expand Down
3 changes: 2 additions & 1 deletion hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-fr.chr.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
''
’’
aA
bB
cC
Expand Down Expand Up @@ -35,4 +37,3 @@ zZ
ôÔ
ûÛ
œŒ
’’
Loading

0 comments on commit 312c62d

Please sign in to comment.