ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re[2]: Broken catcodes
Date: Sun, 26 May 2002 19:39:59 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20020526193620.02cd4058@remote-1> (raw)
In-Reply-To: <191782546.20020525234603@bigfoot.com>

At 11:46 PM 5/25/2002 +0200, Giuseppe Bilotta wrote:

>Saturday, May 25, 2002 Hans Hagen wrote:
>
>HH> At 08:14 PM 5/25/2002 +0200, Giuseppe Bilotta wrote:
> >>Hello,
> >>
> >>I'm testing ConTeXt 2002.05.17 and found out that even at
> >>protection-level 0 ! ? and @ have catcode 11 instead of 12. I
> >>wasn't able to see where the messing up occurred, though.
>
>HH> can you test the current version?
>
>Still bugged in 2002.05.24 --to be precise, @ has catcode 12, but
>! and ? have catcode 11.

Well, this one took me a while to uncover (btw, one can trace these things 
by setting \protectionthreshold to zero)

The problem was introduced when adding support for french active : ; etc. 
The reset code was generated under an unprotected regime, so the patch goes 
into lang-spe.tex;

\protect % added

\deactivatelanguagespecific "
\deactivatelanguagespecific /
\deactivatelanguagespecific :
\deactivatelanguagespecific ;
\deactivatelanguagespecific ?
\deactivatelanguagespecific !

\unprotect % added

Hans

========

For Oblomov's eyes only:

I also took the opportunity to extend the protection report code a bit

\def\reportunprotection   {\message{<unprotect \protectionstate>}}
\def\reportprotection     {\message{<protect   \protectionstate>}}

\def\protectionstate
   {\the\protectionlevel
    \ifcase\protectionthreshold=0\else
      :\space
      @=\the\catcode`@\space\space
      !=\the\catcode`!\space\space
      ?=\the\catcode`?%
    \fi}

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


  reply	other threads:[~2002-05-26 17:39 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-25 18:14 Giuseppe Bilotta
2002-05-25 20:17 ` Hans Hagen
2002-05-25 21:46   ` Re[2]: " Giuseppe Bilotta
2002-05-26 17:39     ` Hans Hagen [this message]
2002-05-26 20:38       ` Re[3]: " Giuseppe Bilotta
     [not found]       ` <pragma@wxs.nl>
2001-03-12 16:50         ` fonts fonts and fonts Hans Hagen
2001-03-12 17:07           ` Frans Goddijn
2001-03-12 23:11           ` Christoph Dreyer
2001-03-13  9:33             ` S2P development
2001-03-13 10:12               ` Han The Thanh
2001-03-13 10:35               ` Hans Hagen
2001-03-14 21:32               ` H. Ramm
2001-03-13  7:12           ` Steve Lumos
2001-03-13  9:13             ` Hans Hagen
2001-03-14  0:29             ` Uwe Koloska
2001-03-13 14:35           ` Ed L Cashin
2001-03-14  0:18           ` Uwe Koloska
2001-03-15 21:55           ` H. Ramm
2002-05-27 15:27         ` Re[2]: Broken catcodes Daniel Flipo
2002-05-27 15:32           ` Hans Hagen
     [not found] <Your message of "Mon, 27 May 2002 17:32:51 +0200." <5.1.0.14.1.20020527173210.03bb2ea8@server-1>
     [not found] ` <200205271544.RAA15353@lps.univ-lille1.fr>
2002-05-27 16:44   ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2001-05-30 11:40 Environments, Projects, Products, Components Giuseppe Bilotta
2001-05-30 15:14 ` Taco Hoekwater
2001-05-30 18:01   ` Re[2]: " Giuseppe Bilotta
2001-05-31  7:51     ` Taco Hoekwater
2001-05-31  9:34       ` Hans Hagen
2001-08-30 17:54         ` Steve Lumos
2001-08-31  7:19           ` Hans Hagen
2001-05-31  8:11     ` Re[2]: " Hans Hagen
2001-02-22  7:24 Horizontal centering \startlines...\stoplines Steve Lumos
2001-02-22  8:47 ` Horizontal centering \startlines...\stoplines / poems Hans Hagen
2001-03-03  9:22   ` Steve Lumos
2001-03-04 21:09     ` Hans Hagen
2001-03-07  4:08       ` Steve Lumos
2001-03-07  8:14         ` Hans Hagen
2000-08-19 12:21 Setting up footnotes Joop Susan
2000-08-21 11:00 ` Hans Hagen
2000-08-21 18:19   ` Joop Susan
2000-08-22  6:59     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.0.14.1.20020526193620.02cd4058@remote-1 \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).