From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31474 Path: news.gmane.org!not-for-mail From: "Richard Gabriel" Newsgroups: gmane.comp.tex.context Subject: Hardcoded options in the Ruby scripts Date: Mon, 23 Oct 2006 13:24:54 +0200 Message-ID: <20061023112454.9e201cbe@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="===============1206264636==" X-Trace: sea.gmane.org 1161602729 11075 80.91.229.2 (23 Oct 2006 11:25:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 11:25:29 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 23 13:25:28 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 1Gbxve-0006zU-BD for gctc-ntg-context-518@m.gmane.org; Mon, 23 Oct 2006 13:25:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E9B7D1FDDD; Mon, 23 Oct 2006 13:25:13 +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 21956-04-3; Mon, 23 Oct 2006 13:25:04 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0D41F1FDDE; Mon, 23 Oct 2006 13:25:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C17521FDE6 for ; Mon, 23 Oct 2006 13:25:01 +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 21956-04-2 for ; Mon, 23 Oct 2006 13:24:56 +0200 (CEST) Original-Received: from mx1.kerio.com (mx1.kerio.com [195.39.55.2]) by ronja.ntg.nl (Postfix) with SMTP id 5AC671FDDD for ; Mon, 23 Oct 2006 13:24:56 +0200 (CEST) Original-Received: from 192.168.44.100 ([192.168.44.100]) by mx1.kerio.com for ntg-context@ntg.nl; Mon, 23 Oct 2006 13:24:54 +0200 Original-To: ntg-context@ntg.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:31474 Archived-At: This is a multi-part message in MIME format. --===============1206264636== Content-Type: multipart/alternative; boundary="-----------d1f501413716ad6db992d44796f5ba3c" This is a multi-part message in MIME format. -------------d1f501413716ad6db992d44796f5ba3c Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Hans, I'm still wondering why there are certain formats hardcoded in your scri= pts and how the "make all formats" feature does (not work). See scripts/ruby/base/tex.rb: Lines 131-137: Here are a few languages predefined which texexec "knows". If I want to = add a format for another language, I have to add a new line here. Line 339:=20 Here are the "default" TeX formats defined. No problem to consider somet= hing as default ;-), but the point is that "texexec --make --all" actual= ly does "make all DEFAULT formats", NOT "make all AVAILABLE formats". :-= ( 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 do= ne 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.=20 [Note: cont-usr.tex is a good analogy to this] 2. "Make all" should make ALL the defined ConTeXt formats, not the defau= lt ones. Thanks, Richard -------------d1f501413716ad6db992d44796f5ba3c Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Hans,

I'm still wondering why there are certain formats har= dcoded in your scripts and how the "make all formats" feature does (not = work).

See scripts/ruby/base/tex.rb:

Lines 131-137:
Her= e are a few languages predefined which texexec "knows". If I want to add= a format for another language, I have to add a new line here.

Li= ne 339:
Here are the "default" TeX formats defined. No problem to co= nsider something as default ;-), but the point is that "texexec --make -= -all" actually does "make all DEFAULT formats", NOT "make all AVAILABLE = formats". :-(

Anyway, the main problem I see is altering of a scr= ipt which comes with the ConTeXt distribution - the changes made into th= is scripts must be done again and again after each update.

My sug= gestion is:
1. To put the format definition into a separate file (lik= e user.rb or so) which won't be owerwritten in any case.
[Note: cont= -usr.tex is a good analogy to this]

2. "Make all" should make ALL= the defined ConTeXt formats, not the default ones.

Thanks,
Ri= chard

-------------d1f501413716ad6db992d44796f5ba3c-- --===============1206264636== 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 --===============1206264636==--