From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31534 Path: news.gmane.org!not-for-mail From: "Richard Gabriel" Newsgroups: gmane.comp.tex.context Subject: Re: Hardcoded options in the Ruby scripts Date: Wed, 25 Oct 2006 09:00:43 +0200 Message-ID: <20061025070043.1182a70f@mx1.kerio.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1628062336==" X-Trace: sea.gmane.org 1161759666 27179 80.91.229.2 (25 Oct 2006 07:01:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 07:01:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 25 09:01:04 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gccl0-0003O4-54 for gctc-ntg-context-518@m.gmane.org; Wed, 25 Oct 2006 09:00:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C13BA1FE7D; Wed, 25 Oct 2006 09:00:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17701-03; Wed, 25 Oct 2006 09:00:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C04E11FD75; Wed, 25 Oct 2006 09:00:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 80C371FD37 for ; Wed, 25 Oct 2006 09:00:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17619-02-2 for ; Wed, 25 Oct 2006 09:00:46 +0200 (CEST) Original-Received: from mx1.kerio.com (mx1.kerio.com [195.39.55.2]) by ronja.ntg.nl (Postfix) with SMTP id 39DD31FCEF for ; Wed, 25 Oct 2006 09:00:45 +0200 (CEST) Original-Received: from 192.168.44.100 ([192.168.44.100]) by mx1.kerio.com for ntg-context@ntg.nl; Wed, 25 Oct 2006 09:00:43 +0200 Original-To: "mailing list for ConTeXt users" In-Reply-To: 453CB89D.3010703@wxs.nl X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060910 SeaMonkey/1.0.5 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31534 Archived-At: This is a multi-part message in MIME format. --===============1628062336== Content-Type: multipart/alternative; boundary="-----------73204a29ddd2d1fbe2d0049e3c5cb95b" This is a multi-part message in MIME format. -------------73204a29ddd2d1fbe2d0049e3c5cb95b Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Hans, thanks for the answer.=20 > (adding a user inferface is more that adding something to=20 > texexec) I understand, but I use the English interface for all languages anyway. Maybe I'm doing something wrong or in a non-standard way... For processing files with ConTeXt, I have a script which does (simplifie= d to the minimum): texmfstart texexec --interface=3Dcont-$1 $2 So when I started to experiment with Chinese and Japanese, for example, = I naturally wanted the processing to be consistent with other languages.= I've simply "cloned" the cont-en.tex format file into cont-cn.tex and c= ont-ja.tex and defined the default language, default encoding etc. in th= em. And created new formats. But I had to add these new formats into scr= ipts/ruby/base/tex.rb in order to generate and use them. In case of ConT= eXt update, I have to do this change again and again. That's the reason = why I've suggested to put these definitons into a separate (user) file. >> 2. "Make all" should make ALL the defined ConTeXt formats, not the=20 >> default ones. >--all means: all patterns=20 Mmm, sorry... I forgot that there are many formats other than cont-*... = :-/ What does "all patterns" mean=3F Before altering the tex.rb script, I've tried "texexec --make --all" sev= eral times, and it had always rebuilt the 'cont-en', 'cont-nl' and 'mpto= pdf' formats (maybe also 'metafun'(=3F); I'm not completely sure...). -Richard =20 =20 =5F=5F=5F=5F=5F =20 From: Hans Hagen [mailto:pragma@wxs.nl] To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl] Sent: Mon, 23 Oct 2006 14:42:05 +0200 Subject: Re: [NTG-context] Hardcoded options in the Ruby scripts Richard Gabriel wrote: > > Lines 131-137: > Here are a few languages predefined which texexec "knows". If I want= =20 > to add a format for another language, I have to add a new line here. such as ...=3F (adding a user inferface is more that adding something = to=20 texexec) > > Line 339: > Here are the "default" TeX formats defined. No problem to consider= =20 > something as default ;-), but the point is that "texexec --make --al= l"=20 > actually does "make all DEFAULT formats", NOT "make all AVAILABLE=20 > formats". :-( which would be quite a lot -) what do you mean with all=3F > > Anyway, the main problem I see is altering of a script which comes= =20 > with the ConTeXt distribution - the changes made into this scripts= =20 > must be done again and again after each update. > > My suggestion is: > 1. To put the format definition into a separate file (like user.rb o= r=20 > so) which won't be owerwritten in any case. > [Note: cont-usr.tex is a good analogy to this] hm, must think about it ; i don't like too many dependencies > > 2. "Make all" should make ALL the defined ConTeXt formats, not the= =20 > default ones. --all means: all patterns=20 =20 Hans=20 =20 =20 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- =20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context =20 =20 -------------73204a29ddd2d1fbe2d0049e3c5cb95b Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Hans,

thanks for the answer.

> (adding a user in= ferface is more that adding something to
> texexec)
I understa= nd, but I use the English interface for all languages anyway.
Maybe I= 'm doing something wrong or in a non-standard way...
For processing f= iles with ConTeXt, I have a script which does (simplified to the minimum= ):

texmfstart texexec --interface=3Dcont-$1 $2

So when I s= tarted to experiment with Chinese and Japanese, for example, I naturally= wanted the processing to be consistent with other languages. I've simpl= y "cloned" the cont-en.tex format file into cont-cn.tex and cont-ja.tex = and defined the default language, default encoding etc. in them. And cre= ated new formats. But I had to add these new formats into scripts/ruby/b= ase/tex.rb in order to generate and use them. In case of ConTeXt update,= I have to do this change again and again. That's the reason why I've su= ggested to put these definitons into a separate (user) file.

>= > 2. "Make all" should make ALL the defined ConTeXt formats, not the =
>> default ones.
>--all means: all patterns

Mmm, sorry... I forgot that there = are many formats other than cont-*... :-/
What does "all patterns" me= an=3F
Before altering the tex.rb script, I've tried "texexec --make -= -all" several times, and it had always rebuilt the 'cont-en', 'cont-nl' = and 'mptopdf' formats (maybe also 'metafun'(=3F);  I'm not complete= ly sure...).

-Richard
 




From: Hans Hagen [mailto:pragma@wxs.nl]
To: mailing list for ConTe= Xt users [mailto:ntg-context@ntg.nl]
Sent: Mon, 23 Oct 2006 14= :42:05 +0200
Subject: Re: [NTG-context] Hardcoded options in t= he Ruby scripts

Richard Gabriel wrote:
>
> Lines 131-137:
> Here are a few languages predefined which texexec "knows". If I wan= t
> to add a format for another language, I have to add a new line here= .
such as ...=3F (adding a user inferface is more that adding something to=
texexec)
>
> Line 339:
> Here are the "default" TeX formats defined. No problem to consider =
> something as default ;-), but the point is that "texexec --make --a= ll"
> actually does "make all DEFAULT formats", NOT "make all AVAILABLE <= br> > formats". :-(
which would be quite a lot -) what do you mean with all=3F
>
> Anyway, the main problem I see is altering of a script which comes =
> with the ConTeXt distribution - the changes made into this scripts =
> must be done again and again after each update.
>
> My suggestion is:
> 1. To put the format definition into a separate file (like user.rb = or
> so) which won't be owerwritten in any case.
> [Note: cont-usr.tex is a good analogy to this]
hm, must think about it ; i don't like too many dependencies
>
> 2. "Make all" should make ALL the defined ConTeXt formats, not the =
> default ones.
--all means: all patterns

Hans


-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------

=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

-------------73204a29ddd2d1fbe2d0049e3c5cb95b-- --===============1628062336== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1628062336==--