summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2007-01-23 13:32:00 +0100
committerHans Hagen <pragma@wxs.nl>2007-01-23 13:32:00 +0100
commit8cb3c59f58c0d69f99c451485eaabcb9f5347372 (patch)
treea360072a833e831832a525d9730e4e61f9fe5847 /scripts
parentff1d9ea45aeb4b9a0bc12a40b38621b6d7e8eed0 (diff)
downloadcontext-8cb3c59f58c0d69f99c451485eaabcb9f5347372.tar.gz
stable 2007.01.23 13:32
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/ruby/base/ctx.rb14
-rw-r--r--scripts/context/ruby/ctxtools.rb4
2 files changed, 13 insertions, 5 deletions
diff --git a/scripts/context/ruby/base/ctx.rb b/scripts/context/ruby/base/ctx.rb
index f33bf63a5..d09be55d4 100644
--- a/scripts/context/ruby/base/ctx.rb
+++ b/scripts/context/ruby/base/ctx.rb
@@ -187,6 +187,14 @@ class CtxRunner
end
REXML::XPath.each(root,"/ctx:job//ctx:preprocess/ctx:files") do |files|
REXML::XPath.each(files,"ctx:file") do |pattern|
+ suffix = @@suffix
+ begin
+ suffix = REXML::XPath.match(root,"/ctx:job//ctx:preprocess/@suffix").to_s
+ rescue
+ suffix = @@suffix
+ else
+ if suffix && suffix.empty? then suffix = @@suffix end
+ end
preprocessor = pattern.attributes['processor']
if preprocessor and not preprocessor.empty? then
begin
@@ -221,10 +229,10 @@ class CtxRunner
if command = commands[pp] then
# a lie: no <?xml ...?>
command = REXML::Document.new(command.to_s) # don't infect original
+ # command = command.deep_clone() # don't infect original
command = command.elements["ctx:processor"]
- begin
- newfile = "#{oldfile}.#{suf}" if suf = command.attributes['suffix']
- rescue
+ if suf = command.attributes['suffix'] then
+ newfile = "#{oldfile}.#{suf}"
end
begin
newfile = File.basename(newfile) if @local
diff --git a/scripts/context/ruby/ctxtools.rb b/scripts/context/ruby/ctxtools.rb
index b306ee5dc..1e1158d44 100644
--- a/scripts/context/ruby/ctxtools.rb
+++ b/scripts/context/ruby/ctxtools.rb
@@ -1602,7 +1602,7 @@ class Commands
@@languagedata['da' ] = [ 'ec' , ['dkspecial.tex','dkcommon.tex'] ]
# elhyph.tex
@@languagedata['es' ] = [ 'ec' , ['eshyph.tex'] ]
- @@languagedata['fi' ] = [ 'ec' , ['ethyph.tex'] ]
+ @@languagedata['et' ] = [ 'ec' , ['ethyph.tex'] ]
@@languagedata['fi' ] = [ 'ec' , ['fihyph.tex'] ]
@@languagedata['fr' ] = [ 'ec' , ['frhyph.tex'] ]
# ghyphen.readme ghyph31.readme grphyph
@@ -1622,7 +1622,7 @@ class Commands
@@languagedata['pl' ] = [ 'ec' , ['plhyph.tex'] ]
@@languagedata['pt' ] = [ 'ec' , ['pthyph.tex'] ]
@@languagedata['ro' ] = [ 'ec' , ['rohyph.tex'] ]
- @@languagedata['sl' ] = [ 'ec' , ['sihyph.tex'] ]
+ @@languagedata['sl' ] = [ 'ec' , ['slhyph.tex'], ['sihyph.tex'] ]
@@languagedata['sk' ] = [ 'ec' , ['skhyphen.tex','skhyphen.ex'] ]
# sorhyph.tex / upper sorbian
# srhyphc.tex / cyrillic