From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45870 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: modifying URL wrapping rules Date: Tue, 25 Nov 2008 15:47:19 +0100 Message-ID: References: <4926D553.4020803@sil.org> <96CA6B61-8532-483F-8810-9DD7306F1CF2@st.estfiles.de> <4926F77B.2000706@sil.org> <49270CA5.1070701@sil.org> <6faad9f00811211235s2ead7047ya4cd3d2d8c4b80db@mail.gmail.com> <49273BF6.8010605@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227624651 15082 80.91.229.12 (25 Nov 2008 14:50:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2008 14:50:51 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 25 15:51:52 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1L4zGO-0007dh-5y for gctc-ntg-context-518@m.gmane.org; Tue, 25 Nov 2008 15:51:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DCAA21FC1B; Tue, 25 Nov 2008 15:50:27 +0100 (CET) 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 19826-02-4; Tue, 25 Nov 2008 15:49:16 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8C7391FB82; Tue, 25 Nov 2008 15:49:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CFAB81FB8E for ; Tue, 25 Nov 2008 15:49:14 +0100 (CET) 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 22027-01-2 for ; Tue, 25 Nov 2008 15:48:12 +0100 (CET) Original-Received: from smtprelay08.ispgateway.de (smtprelay08.ispgateway.de [80.67.29.8]) by ronja.ntg.nl (Postfix) with ESMTP id 965BC1FB30 for ; Tue, 25 Nov 2008 15:47:22 +0100 (CET) Original-Received: from [89.247.83.99] (helo=[192.168.1.2]) by smtprelay08.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1L4zCC-0001GK-C3; Tue, 25 Nov 2008 15:47:21 +0100 In-Reply-To: <49273BF6.8010605@wxs.nl> X-Mailer: Apple Mail (2.929.2) X-Df-Sender: 698580 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:45870 Archived-At: Am 21.11.2008 um 23:53 schrieb Hans Hagen: > Mojca Miklavec wrote: > >> hack hack hack hack .... > > I tried solutions with special patterns sveral times but the problem > is > in mixed languages, i.e. english text mixed with url-language; there > are > some limitations (in pdftex for instance the same codes are used fo > rthe > whole par (i.e. mixed languages are possible but with the same lccodes > etc). Also, one needs to get rid of the - > > Anyhow, there is another trick, one that Aditya might love ... > > \bgroup > > \gdef\lettercolon{:} > > \catcode`\:=\active > \catcode`\^=\active > \catcode`\/=\active > \catcode`\~=\active > > \gdef\ForMojcaWhoLikesHacks#1% > {\dontleavehmode > \begingroup > \mathcode`\:="8000 > \mathcode`\^="8000 > \mathcode`\/="8000 > \mathcode`\~="8000 > \def:{\nobreak \hbox{\lettercolon}\allowbreak}% > \def^{\allowbreak\hbox{\letterhat }\nobreak}% > \def/{\nobreak \hbox{\letterslash}\allowbreak}% > \def~{\allowbreak\hbox{\lettertilde}\nobreak}% > \everymath\emptytoks > \mathsurround\zeropoint$\tttf#1$% > \endgroup} > > \egroup > > \hsize 1mm \ForMojcaWhoLikesHacks{http://www.sil.org/silesr/} Conclusion please: Is \ForMojcaWhoLikesHacks an improvement of \hyphenatedurls in terms of being closer to this "Chicago style" sort of standard? [And thus being part of next beta?] Or is it a personal hack, fitting Lars' needs? Steffen ___________________________________________________________________________________ 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 ___________________________________________________________________________________