Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel
> well, we can use: > > def validsomething(str,something)> if str then> list = [str].flatten.collect do |s|> something[s] || s # || s addedExcellent! Could you please add it to the distribution?Many thanks!-RichardP.S. I'll probably have to learn at basics of Ruby... I'm familiar with Perl, PHP

Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel
users [mailto:[EMAIL PROTECTED]Sent: Fri, 21 Jul 2006 14:49:34 +0200Subject: Re: [NTG-context] base/tex.rb comments Richard Gabriel wrote: > > I'm attaching the complete context.cnf file for reference. context.cnf is not actually used by any programs. It is only provided as a sa

Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Taco Hoekwater
Richard Gabriel wrote: > > I'm attaching the complete context.cnf file for reference. context.cnf is not actually used by any programs. It is only provided as a sample of how texmf.cnf could be set up. Greetings, Taco ___ ntg-context mailing list ntg

Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Vit Zyka
Hans Hagen wrote: > Richard Gabriel wrote: >> Hello Hans and others, >> >> I'd have two comments to the texmf/scripts/context/ruby/base/tex.rb >> script. >> >> 1. I find quite impractical that the formats (cont-en, cont-nl etc.) >> are hardcoded in the scripts. When one wants to add a new format,

Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Hans Hagen
Richard Gabriel wrote: > Hello Hans and others, > > I'd have two comments to the texmf/scripts/context/ruby/base/tex.rb > script. > > 1. I find quite impractical that the formats (cont-en, cont-nl etc.) > are hardcoded in the scripts. When one wants to add a new format, then > he must add it on

[NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel
Hello Hans and others,I'd have two comments to the texmf/scripts/context/ruby/base/tex.rb script.1. I find quite impractical that the formats (cont-en, cont-nl etc.) are hardcoded in the scripts. When one wants to add a new format, then he must add it on 4 or 5 places in the script, and do it a