From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52556 Path: news.gmane.org!not-for-mail From: Matthijs Kooijman Newsgroups: gmane.comp.tex.context Subject: Why are pretty printer names uppercased? Date: Wed, 26 Aug 2009 10:52:57 +0200 Message-ID: <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: multipart/mixed; boundary="===============1655269435==" X-Trace: ger.gmane.org 1251276839 13784 80.91.229.12 (26 Aug 2009 08:53:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 08:53:59 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 26 10:53:49 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 1MgEFk-00073Q-Q5 for gctc-ntg-context-518@m.gmane.org; Wed, 26 Aug 2009 10:53:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3F3A5C9A1F; Wed, 26 Aug 2009 10:53:12 +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 I1uBIQGdg8PF; Wed, 26 Aug 2009 10:53:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58987C9A68; Wed, 26 Aug 2009 10:53:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5168C9A47 for ; Wed, 26 Aug 2009 10:53:00 +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 MP7PlTbK9Z65 for ; Wed, 26 Aug 2009 10:52:58 +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 15920C9A1F for ; Wed, 26 Aug 2009 10:52:58 +0200 (CEST) Original-Received: from matthijs by katherina.student.utwente.nl with local (Exim 4.69) (envelope-from ) id 1MgEFV-0007CB-QA for ntg-context@ntg.nl; Wed, 26 Aug 2009 10:52:57 +0200 Mail-Followup-To: ntg-context@ntg.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:52556 Archived-At: --===============1655269435== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XMHqbYJb993HXwLR" Content-Disposition: inline --XMHqbYJb993HXwLR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, according to the wiki, and the current code, the arguments to \installprettytype should be uppercased. E.g.: \installprettytype [PHP] [PHP] Referring to them should be uppercased as well: \definetyping[PHP] [option=3DPHP] \setuptyping[option=3DPHP] 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=3D argument that p= oints to a pretty printer is lowercased by setvisualizer in lua before being used. If everything is lowercased, why do we still recommend the arguments to \installprettytype and option=3D 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.=20 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 mo= re predictable? Gr. Matthijs --XMHqbYJb993HXwLR 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) iEYEARECAAYFAkqU9+kACgkQz0nQ5oovr7xImQCgv4KQXr6TSkTyS3aV03gosb7g ZcgAnigqB7KuP2vYTXjmLiAaMxy55puI =9Z7j -----END PGP SIGNATURE----- --XMHqbYJb993HXwLR-- --===============1655269435== 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 ___________________________________________________________________________________ --===============1655269435==--