From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52559 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:47:07 +0200 Message-ID: <4A95049B.5030307@wxs.nl> References: <20090826085257.GP12901@katherina.student.utwente.nl> <4A94FC5E.9000203@wxs.nl> <20090826093704.GQ12901@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 1251280049 23157 80.91.229.12 (26 Aug 2009 09:47:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 09:47:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 26 11:47:22 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 1MgF68-0001VX-1x for gctc-ntg-context-518@m.gmane.org; Wed, 26 Aug 2009 11:47:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8355C9A1F; Wed, 26 Aug 2009 11:47:17 +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 D2sQDxVGYeQI; Wed, 26 Aug 2009 11:47:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBAD9C9A3D; Wed, 26 Aug 2009 11:47:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 39082C9A3D for ; Wed, 26 Aug 2009 11:47:14 +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 CpvgRlACw6d9 for ; Wed, 26 Aug 2009 11:47:09 +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 E524BC9A1F for ; Wed, 26 Aug 2009 11:47:08 +0200 (CEST) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 2664-1840426 for ; Wed, 26 Aug 2009 11:47:08 +0200 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <20090826093704.GQ12901@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:52559 Archived-At: Matthijs Kooijman wrote: > Hi Hans, > > >>> according to the wiki, and the current code, the arguments to >>> \installprettytype should be uppercased. E.g.: >>> >>> \installprettytype [PHP] [PHP] >> because want uppercase >> >> \startTEX >> \stopTEX > > Well, those would be coming from the first argument of definetyping. AFAIU, > neither argument to installprettytype is related to these commands. sure but they are somewhat related (also with the color palets then) >>> \definetyping[PHP] [option=PHP] > >> indeed. as i don't like casing in filenames, and function names > Agreed, me neither. > >> actually, the advice is that user definitions use uppercase >> >> \definehead[MySection][section] >> >> etc, just to avoid clashes with built in commands > That makes sense for commands, which is not what I'm proposing to change. I > would propose making it look like the following: > > \installprettytype [php] [php] > \definetyping [PHP] [option=php] > > Here, the second "php" refers to "pret-php.lua", the first and last "php" > refer to each other and to the "php" in newvisualizer("php"). > > The command defined is still \startPHP, but now the values that refer to other > lowercase things (filename, pretty printer name) are lowercase consistently. > > How's this? in order to get that working and remain compatible, we'd also need to redefine \definepalet [TEXcolorpretty] [colorpretty] \definepalet [TEXgraypretty] [graypretty] (ans use some nasty trickery to let texcolorpretty and TEXcolorpretty both be valid) etc and as users themselves seldom see the low level definitions it's not worth the trouble 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 ___________________________________________________________________________________