From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3961 Path: main.gmane.org!not-for-mail From: "Giuseppe Bilotta" Newsgroups: gmane.comp.tex.context Subject: Re: Comments on \defineshortcut Date: Sat, 3 Feb 2001 00:18:00 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <001a01c08df6$0a1392a0$a3ccfea9@nuovo> References: <3.0.6.32.20010202100725.019aa100@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035394661 21629 80.91.224.250 (23 Oct 2002 17:37:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:37:41 +0000 (UTC) Cc: "ConTeXt" Original-To: "Hans Hagen" Xref: main.gmane.org gmane.comp.tex.context:3961 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3961 [the patch works perfect; about the other question:] > > >Second problem: ligs fail in some cases (if I \defineshortcut > >[--][o][style\overstrike] then the following lines misses a few beats: > > > >it seems -o:to work- well--does it?---really? > > see it this way: in --- the first - picks up everything uuntil the next - > so the third - triggers a new - which cannot find its matching - > > >Third problem: math fails too: > >> > >$(a+b)/(a-c-d)_{a+b}$ > >with -- and ++ defined as shortcuts fail (not on parenthesis, if I make those > >active too; depends on the fact that parenthesis are delimiters in math > mode?) > > Hm, this works ok here, unless of course you redefine + a few times since > then the last meaning is used. > I checked out--the problem was the "pending" - form the --- on the previous line. Anyway, note that -- should *not* just disappear, since -- is not a shorcut, but "-o:-" is; so maybe in these circumstances (when "pure" shortcut is note defined, but it is used) charactes should revert to their original meaning: In the previous example: -o:overstriken text- should be overstriked, but -- and --- should work normally (getting ligs and alike); with \defineshortcut[**][b][style=bold]: *b:bolded text* should be bold, but ** and *** should work normally (no ligs in this case); > PS. Actually i implemented shortcuts as a kind of joke. Then maybe such fuss is not to be wasted time upon. Giuseppe Bilotta Using Microsoft products is like having sex without condoms---but much less pleasurable