blob: d135392142f473fe6e41605ea63c31ce8b9b42e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env ruby
# this file auto-generates data for docs for hyphenation patterns - to be improved
load 'languages.rb'
$package_name="hyph-utf8"
# TODO - make this a bit less hard-coded
$path_doc="../../../doc/generic/#{$package_name}"
# TODO: should be singleton
languages = Languages.new.list
puts "languages = {"
languages.each do |language|
puts "\t{"
puts "\t\t code = '#{language.code}',"
puts "\t\t name = '#{language.name}',"
puts "\t},"
end
puts "}"
|