From dda232091b98442362506b0d26d69c91ba207b07 Mon Sep 17 00:00:00 2001 From: Mojca Miklavec Date: Tue, 1 Jun 2010 14:59:52 +0000 Subject: updated docs, added dependency on hyph-utf8 git-svn-id: svn://tug.org/texlive/trunk@18673 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/generic/hyph-utf8/generate-offo.rb | 96 ---------------------- .../source/generic/hyph-utf8/generate-tl-files.rb | 3 +- 2 files changed, 2 insertions(+), 97 deletions(-) delete mode 100755 Master/texmf-dist/source/generic/hyph-utf8/generate-offo.rb (limited to 'Master/texmf-dist/source/generic/hyph-utf8') diff --git a/Master/texmf-dist/source/generic/hyph-utf8/generate-offo.rb b/Master/texmf-dist/source/generic/hyph-utf8/generate-offo.rb deleted file mode 100755 index f164c421aeb..00000000000 --- a/Master/texmf-dist/source/generic/hyph-utf8/generate-offo.rb +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env ruby - -# this file generates FOP XML Hyphenation Patterns - -# use 'gem install unicode' if unicode is missing on your computer -# require 'jcode' -# require 'rubygems' -# require 'unicode' - -load 'languages.rb' - -$path_OFFO="../../../../collaboration/offo" - -$l = Languages.new -# TODO: should be singleton -languages = $l.list.sort{|a,b| a.name <=> b.name} - -# TODO: we should rewrite this -# not using: eo, el -# todo: mn, no!, sa, sh -# codes = ['bg', 'ca', 'cs', 'cy', 'da', 'de-1901', 'de-1996', 'de-ch-1901', 'en-gb', 'en-us', 'es', 'et', 'eu', 'fi', 'fr', 'ga', 'gl', 'hr', 'hsb', 'hu', 'ia', 'id', 'is', 'it', 'kmr', 'la', 'lt', 'lv', 'nl', 'no', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'sr-cyrl', 'sv', 'tr', 'uk'] - -language_codes = Hash.new -languages.each do |language| - language_codes[language.code] = language.code -end -language_codes['de-1901'] = 'de_1901' -language_codes['de-1996'] = 'de' -language_codes['de-ch-1901'] = 'de_CH' -language_codes['en-gb'] = 'en_GB' -language_codes['en-us'] = 'en_US' -language_codes['zh-latn'] = 'zh_Latn' -language_codes['el-monoton'] = 'el' -language_codes['el-polyton'] = 'el_polyton' -language_codes['mn-cyrl'] = 'mn_Cyrl' -language_codes['mn-cyrl-x-2a'] = 'mn' -language_codes['sh-latn'] = 'sr_Latn' -language_codes['sh-cyrl'] = nil -language_codes['sr-cyrl'] = 'sr_Cyrl' - -languages.each do |language| - include_language = language.use_new_loader - code = language_codes[language.code] - if code == nil - include_language = false - end - if code == 'en_US' - include_language = true - end - - if include_language - puts "generating #{code}" - - $file_offo_pattern = File.open("#{$path_OFFO}/#{code}.xml", 'w') - - $file_offo_pattern.puts '' - $file_offo_pattern.puts '' - $file_offo_pattern.puts - - # 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 - patterns = language.get_patterns - exceptions = language.get_exceptions - - if code == 'nn' or code == 'nb' - patterns = "" - patterns = $l['no'].get_patterns - end - - $file_offo_pattern.puts "" - $file_offo_pattern.puts - $file_offo_pattern.puts '' - if exceptions != "" - $file_offo_pattern.puts exceptions - end - $file_offo_pattern.puts '' - $file_offo_pattern.puts - $file_offo_pattern.puts '' - patterns.each do |pattern| - $file_offo_pattern.puts pattern.gsub(/'/,"’") - end - $file_offo_pattern.puts '' - $file_offo_pattern.puts '' - - $file_offo_pattern.close - end -end diff --git a/Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb b/Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb index dc1c3245a70..417fa8a5c4b 100644 --- a/Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb +++ b/Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb @@ -85,7 +85,8 @@ language_groups.sort.each do |language_name,language_list| #$file_tlpsrc.puts "name hyphen-#{language_name}" $file_tlpsrc.puts "category TLCore" $file_tlpsrc.puts "depend hyphen-base" - + $file_tlpsrc.puts "depend hyph-utf8" + # external dependencies for Russian and Ukrainian (until we implement the new functionality at least) if language_name == "russian" then $file_tlpsrc.puts "depend ruhyphen" -- cgit v1.2.3