ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* asciimode
@ 2011-01-25  8:39 Wolfgang Schuster
  2011-01-25 10:29 ` asciimode Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2011-01-25  8:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

\stopasciimode does always switch to \donknuthmode what is nonsense when \nonknuthmode will be the default in the future, wouldn’t something like this make more sense

\unexpanded\def\stopasciimode
  {\popcatcodetable
   \ifconditional\knuthmode\else\donknuthmode\fi}

and set \knuthmode to true and false with \every(don|non)knuthmode.

Wolfgang

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: asciimode
  2011-01-25  8:39 asciimode Wolfgang Schuster
@ 2011-01-25 10:29 ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2011-01-25 10:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 25-1-2011 9:39, Wolfgang Schuster wrote:
> Hi,
>
> \stopasciimode does always switch to \donknuthmode what is nonsense when \nonknuthmode will be the default in the future, wouldn’t something like this make more sense
>
> \unexpanded\def\stopasciimode
>    {\popcatcodetable
>     \ifconditional\knuthmode\else\donknuthmode\fi}
>
> and set \knuthmode to true and false with \every(don|non)knuthmode.

ok
-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: asciimode
  2010-10-29 11:15 ` asciimode Peter Rolf
@ 2010-10-29 11:52   ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2010-10-29 11:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 29-10-2010 1:15, Peter Rolf wrote:
> Am 29.10.2010 12:52, schrieb Steffen Wolfrum:
>> Hi,
>>
>> if I only want to benefit of asciimode in controlled situations (inline?) ... how do I completely switch it off again (see below)??
>>
>> Steffen
>>
>> -------
>>
>> \starttext
>>
>> test: {\asciimode http://europa.eu/rapid/pressReleasesAction.do?reference=IP/05/1156&format=HTML&aged=0&language=EN&guiLanguage=en} text.
>>
> % [math-ini.mkiv]
> % \def\asciimode{\catcodetable\txtcatcodes\nonknuthmode}
>
> So I guess the proper way is to use

\catcodetable\ctxcatcodes % \donknuthmode

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: asciimode
  2010-10-29 11:07 ` asciimode Taco Hoekwater
@ 2010-10-29 11:27   ` Peter Münster
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Münster @ 2010-10-29 11:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Oct 29 2010, Taco Hoekwater wrote:
> >
> >if I only want to benefit of asciimode in controlled situations (inline?)
> >... how do I completely switch it off again (see below)??
> 
> \donknuthmode, I assume

Perhaps something like this could be added to the core:

\def\ctxmode{\catcodetable\ctxcatcodes\doknuthmode}
\let\noasciimode\ctxmode

Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: asciimode
  2010-10-29 10:52 asciimode Steffen Wolfrum
  2010-10-29 11:07 ` asciimode Taco Hoekwater
@ 2010-10-29 11:15 ` Peter Rolf
  2010-10-29 11:52   ` asciimode Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Peter Rolf @ 2010-10-29 11:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 29.10.2010 12:52, schrieb Steffen Wolfrum:
> Hi,
> 
> if I only want to benefit of asciimode in controlled situations (inline?) ... how do I completely switch it off again (see below)??
> 
> Steffen
> 
> -------
> 
> \starttext
> 
> test: {\asciimode http://europa.eu/rapid/pressReleasesAction.do?reference=IP/05/1156&format=HTML&aged=0&language=EN&guiLanguage=en} text.
>
% [math-ini.mkiv]
% \def\asciimode{\catcodetable\txtcatcodes\nonknuthmode}

So I guess the proper way is to use

\donknuthmode


Best wishes,  Peter


> &% <- this should give an error again
> 
> \stoptext
> 
> ___________________________________________________________________________________
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: asciimode
  2010-10-29 10:52 asciimode Steffen Wolfrum
@ 2010-10-29 11:07 ` Taco Hoekwater
  2010-10-29 11:27   ` asciimode Peter Münster
  2010-10-29 11:15 ` asciimode Peter Rolf
  1 sibling, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2010-10-29 11:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Steffen Wolfrum

On 10/29/2010 12:52 PM, Steffen Wolfrum wrote:
> Hi,
>
> if I only want to benefit of asciimode in controlled situations (inline?) ... how do I completely switch it off again (see below)??

\donknuthmode, I assume

> Steffen
>
> -------
>
> \starttext
>
> test: {\asciimode http://europa.eu/rapid/pressReleasesAction.do?reference=IP/05/1156&format=HTML&aged=0&language=EN&guiLanguage=en} text.
>
> &%<- this should give an error again
>
> \stoptext
>
> ___________________________________________________________________________________
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* asciimode
@ 2010-10-29 10:52 Steffen Wolfrum
  2010-10-29 11:07 ` asciimode Taco Hoekwater
  2010-10-29 11:15 ` asciimode Peter Rolf
  0 siblings, 2 replies; 7+ messages in thread
From: Steffen Wolfrum @ 2010-10-29 10:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

Hi,

if I only want to benefit of asciimode in controlled situations (inline?) ... how do I completely switch it off again (see below)??

Steffen

-------

\starttext

test: {\asciimode http://europa.eu/rapid/pressReleasesAction.do?reference=IP/05/1156&format=HTML&aged=0&language=EN&guiLanguage=en} text.

&% <- this should give an error again

\stoptext

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-25 10:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25  8:39 asciimode Wolfgang Schuster
2011-01-25 10:29 ` asciimode Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2010-10-29 10:52 asciimode Steffen Wolfrum
2010-10-29 11:07 ` asciimode Taco Hoekwater
2010-10-29 11:27   ` asciimode Peter Münster
2010-10-29 11:15 ` asciimode Peter Rolf
2010-10-29 11:52   ` asciimode Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).