diff options
Diffstat (limited to 'Master/texmf-dist/source/generic/hyph-utf8/generate-webpage.rb')
-rw-r--r-- | Master/texmf-dist/source/generic/hyph-utf8/generate-webpage.rb | 104 |
1 files changed, 53 insertions, 51 deletions
diff --git a/Master/texmf-dist/source/generic/hyph-utf8/generate-webpage.rb b/Master/texmf-dist/source/generic/hyph-utf8/generate-webpage.rb index aa3dec8d0f2..5086adf728f 100644 --- a/Master/texmf-dist/source/generic/hyph-utf8/generate-webpage.rb +++ b/Master/texmf-dist/source/generic/hyph-utf8/generate-webpage.rb @@ -57,58 +57,60 @@ end language_groups.sort.each do |language_name,language_list| first_line_printed = false language_list.each do |language| - if not first_line_printed then - puts "<tr>\n\t<td><b>#{language_name.capitalize}</b></td>" - first_line_printed = true; - else - puts "<tr>\n\t<td> </td>" + if language != nil then + if not first_line_printed then + puts "<tr>\n\t<td><b>#{language_name.capitalize}</b></td>" + first_line_printed = true; + else + puts "<tr>\n\t<td> </td>" + end + + # synonyms + if language.synonyms != nil and language.synonyms.length > 0 then + synonyms=", #{language.synonyms.join(', ')}" + else + synonyms="" + end + puts "\t<td>#{language.name}#{synonyms}</td>" + + # if language.use_old_patterns == false then + if language.use_new_loader == true then + url_patterns = "#{$ctan_url}/patterns/tex/hyph-#{language.code}.tex" + code = "<a href=\"#{url_patterns}\">#{language.code}</a>" + else + url_patterns = "" + code = language.code + end + + puts "\t<td>#{code}</td>" + + # lefthyphenmin/righthyphenmin + if language.hyphenmin == nil or language.hyphenmin.length == 0 then + lmin = '' + rmin = '' + elsif language.filename_old_patterns == "zerohyph.tex" then + lmin = '' + rmin = '' + else + lmin = language.hyphenmin[0] + rmin = language.hyphenmin[1] + end + puts "\t<td>(#{lmin},#{rmin})</td>" + # which file to use + if language.use_new_loader then + file = "loadhyph-#{language.code}.tex" + else + file = "#{language.filename_old_patterns}" + end + #puts "\t<td>#{file}</td>" + if language.encoding == nil then + encoding = "" + else + encoding = language.encoding.upcase + end + puts "\t<td>#{encoding}</td>" + puts "</tr>\n" end - - # synonyms - if language.synonyms != nil and language.synonyms.length > 0 then - synonyms=", #{language.synonyms.join(', ')}" - else - synonyms="" - end - puts "\t<td>#{language.name}#{synonyms}</td>" - -# if language.use_old_patterns == false then - if language.use_new_loader == true then - url_patterns = "#{$ctan_url}/patterns/hyph-#{language.code}.tex" - code = "<a href=\"#{url_patterns}\">#{language.code}</a>" - else - url_patterns = "" - code = language.code - end - - puts "\t<td>#{code}</td>" - - # lefthyphenmin/righthyphenmin - if language.hyphenmin == nil or language.hyphenmin.length == 0 then - lmin = '' - rmin = '' - elsif language.filename_old_patterns == "zerohyph.tex" then - lmin = '' - rmin = '' - else - lmin = language.hyphenmin[0] - rmin = language.hyphenmin[1] - end - puts "\t<td>(#{lmin},#{rmin})</td>" - # which file to use - if language.use_new_loader then - file = "loadhyph-#{language.code}.tex" - else - file = "#{language.filename_old_patterns}" - end - #puts "\t<td>#{file}</td>" - if language.encoding == nil then - encoding = "" - else - encoding = language.encoding.upcase - end - puts "\t<td>#{encoding}</td>" - puts "</tr>\n" end end |