ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \textcomma (was Re: Comma separating multiple footnotes)
Date: Thu, 19 Apr 2012 18:11:57 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.02.1204191755380.19372@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4F907FC2.7090805@wxs.nl>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1951 bytes --]

On Thu, 19 Apr 2012, Hans Hagen wrote:

> On 19-4-2012 22:59, Wolfgang Schuster wrote:
>
>> Is there a reason the make them into math commands, I think it’s better the 
>> define them
>> as “contextname=…” to let them behave as in MkII where \textcomma is 
>> defined as
>> 
>> enco-def.mkii:\definecharacter textcomma         ,
>> enco-def.mkii:\definecharacter textperiod        .
>
> indeed, so what about math

I don't think that these are needed in math. We can simply delete lines 
443-445 from char-def:

    {
     class="punctuation",
     name="textperiod",
    },

and add

    contextname="textperiod",


The case with , (comma) is more tricky. Normally, in plain TeX comma is 
defined as punctuation. But since comma is used as a separator in Europe, 
ConTeXt deos something smart based on the setting of autopunction. I don't 
completely understand how that works.

If autopunction is ignored, then we simply need to map , to punctuation. I 
think that the definition of "mathcomma" can also be deleted. Thus, we can 
simply delete lines 408 onwards:

   mathspec={
    {
     class="punctuation",
     name="textcomma",
    },
    {
     class="ord",
     name="mathcomma",
    },
   },


Full patch:

@@ -404,17 +404,8 @@
    description="COMMA",
    direction="cs",
    linebreak="is",
+  contextname="textcomma",
    mathclass="punctuation",
-  mathspec={
-   {
-    class="punctuation",
-    name="textcomma",
-   },
-   {
-    class="ord",
-    name="mathcomma",
-   },
-  },
    unicodeslot=0x002C,
   },
   {
@@ -434,6 +425,7 @@
    description="FULL STOP",
    direction="cs",
    linebreak="is",
+  contextname="textperiod",
    mathclass="ord",
    mathspec={
     {
@@ -442,10 +434,6 @@
     },
     {
      class="punctuation",
-    name="textperiod",
-   },
-   {
-    class="punctuation",
      name="ldotp",
     },
    },


Aditya

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2012-04-19 22:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-10  1:14 Comma separating multiple footnotes Kip Warner
2012-04-10  9:21 ` Wolfgang Schuster
2012-04-12 21:34   ` Kip Warner
2012-04-13 13:58     ` Wolfgang Schuster
2012-04-14  0:38       ` Kip Warner
2012-04-17 20:13       ` Hans Hagen
2012-04-18  0:30         ` Kip Warner
2012-04-18  7:10           ` Wolfgang Schuster
2012-04-18 22:56             ` Kip Warner
2012-04-19 10:01               ` Wolfgang Schuster
2012-04-19 18:49                 ` Kip Warner
2012-04-19 19:06                 ` \textcomma (was Re: Comma separating multiple footnotes) Aditya Mahajan
2012-04-19 20:31                   ` Hans Hagen
2012-04-19 20:59                     ` Wolfgang Schuster
2012-04-19 21:12                       ` Hans Hagen
2012-04-19 22:11                         ` Aditya Mahajan [this message]
2012-04-20  7:01                           ` 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=alpine.LNX.2.02.1204191755380.19372@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).