From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52558 Path: news.gmane.org!not-for-mail From: Matthijs Kooijman Newsgroups: gmane.comp.tex.context Subject: Re: Why are pretty printer names uppercased? Date: Wed, 26 Aug 2009 11:37:04 +0200 Message-ID: <20090826093704.GQ12901@katherina.student.utwente.nl> References: <20090826085257.GP12901@katherina.student.utwente.nl> <4A94FC5E.9000203@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0775322056==" X-Trace: ger.gmane.org 1251279446 21442 80.91.229.12 (26 Aug 2009 09:37:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 09:37:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 26 11:37:19 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 1MgEwR-00079s-HG for gctc-ntg-context-518@m.gmane.org; Wed, 26 Aug 2009 11:37:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A3408C9A70; Wed, 26 Aug 2009 11:37:18 +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 qLYE5G3vsuB8; Wed, 26 Aug 2009 11:37:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6FF7C9A3D; Wed, 26 Aug 2009 11:37:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28F01C9A3D for ; Wed, 26 Aug 2009 11:37: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 RM+4poKLgbyg for ; Wed, 26 Aug 2009 11:37:10 +0200 (CEST) Original-Received: from katherina.student.utwente.nl (katherina.student.utwente.nl [130.89.168.160]) by balder.ntg.nl (Postfix) with ESMTP id B3320C9A1F for ; Wed, 26 Aug 2009 11:37:05 +0200 (CEST) Original-Received: from matthijs by katherina.student.utwente.nl with local (Exim 4.69) (envelope-from ) id 1MgEwD-0007fl-BH for ntg-context@ntg.nl; Wed, 26 Aug 2009 11:37:05 +0200 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <4A94FC5E.9000203@wxs.nl> X-PGP-Fingerprint: 7F6A 9F44 2820 18E2 18DE 24AA CF49 D0E6 8A2F AFBC X-PGP-Key: http://katherina.student.utwente.nl/~matthijs/gpg_pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) 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:52558 Archived-At: --===============0775322056== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WYfJCIN5rqlfy3K0" Content-Disposition: inline --WYfJCIN5rqlfy3K0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. >> \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? Gr. Matthijs --WYfJCIN5rqlfy3K0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkqVAkAACgkQz0nQ5oovr7zzAgCgm5sch0s1+7Jpd0RaKTnm/gwI vdwAn1D766jULgUt6B2HPXgy8YG2IBk9 =dEmk -----END PGP SIGNATURE----- --WYfJCIN5rqlfy3K0-- --===============0775322056== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0775322056==--