From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52557 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Why are pretty printer names uppercased? Date: Wed, 26 Aug 2009 11:11:58 +0200 Message-ID: <4A94FC5E.9000203@wxs.nl> References: <20090826085257.GP12901@katherina.student.utwente.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251277945 17163 80.91.229.12 (26 Aug 2009 09:12:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 09:12:25 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 26 11:12:18 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MgEYB-0006As-96 for gctc-ntg-context-518@m.gmane.org; Wed, 26 Aug 2009 11:12:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2F31C9A97; Wed, 26 Aug 2009 11:12:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sWnUYLTVnV9l; Wed, 26 Aug 2009 11:12:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9BAC7C9A47; Wed, 26 Aug 2009 11:12:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C295AC9A47 for ; Wed, 26 Aug 2009 11:12:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id d+117coQ4V1o for ; Wed, 26 Aug 2009 11:12:03 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 26624C9A3D for ; Wed, 26 Aug 2009 11:12:03 +0200 (CEST) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 2653-1840426 for ; Wed, 26 Aug 2009 11:12:02 +0200 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <20090826085257.GP12901@katherina.student.utwente.nl> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:52557 Archived-At: Matthijs Kooijman wrote: > Hi all, > > according to the wiki, and the current code, the arguments to > \installprettytype should be uppercased. E.g.: because want uppercase \startTEX \stopTEX \startMP \stopMP \startLUA \stopLUA > \installprettytype [PHP] [PHP] > > Referring to them should be uppercased as well: > \definetyping[PHP] [option=PHP] defining indeed, as it is an instance, but option also accepts lowercase > However, the filename should be lowercase, e.g. pret-php.lua and the pretty > printer should register itself in lowercase as well: > buffers.newvisualizer("lua"). The first thing that happens to the arguments of > installprettytype is to lowercase them, and every option= argument that points > to a pretty printer is lowercased by setvisualizer in lua before being used. indeed. as i don't like casing in filenames, and function names > If everything is lowercased, why do we still recommend the arguments to > \installprettytype and option= to be uppercase? IMHO this makes things > confusing when trying to understand which PHP refers to which php or PHP in > the greater picture of things. because they generate commands and it's quite valid to say \definetyping[myphp] etc > Why not recommend people to use lowercase identifiers instead, since we're > changing everything into lowercase anyway? Or perhaps go a bit further and > remove the lowercasing code alltogether, since I don't see any real gain. If > the strings / filenames should just match exactly, things will get a lot more > predictable? actually, the advice is that user definitions use uppercase \definehead[MySection][section] etc, just to avoid clashes with built in commands 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________