From: Hans Hagen <pragma@wxs.nl>
Subject: Re: counting the words in a TeX document
Date: Tue, 08 Aug 2006 09:54:42 +0200 [thread overview]
Message-ID: <44D84342.6030001@wxs.nl> (raw)
In-Reply-To: <6faad9f00608071431v3a097f38u86534b806896a996@mail.gmail.com>
Mojca Miklavec wrote:
> On 8/7/06, Hans Hagen wrote:
>
>>> (I'll spare you the fun with sections for some other time,) but since
>>> you reminded me that I might have some questions left, here you have
>>> another one: how do I replace hyphens, en-dashes and em-dashes with
>>> "spaces/line breaks"?
>>> \catcode`~=13\let~=\space
>>> does what I want, but none of the following works:
>>> \def\-{\space}
>>> \def-{\space}
>>> \let\-=\space
>>>
>>>
>> \catcode`-=\active \def-{ }
>>
>
> I tried that one already, but it didn't work. Now I figured out that
> it was because of nesting the definitions (perhaps even some
> interference with negative numbers?), not because of wrong definition
> on itself.
>
> I'm sorry.
>
> Mojca
>
> (But my fear is that the whole problem is too complex anyway (tables,
> ....) to be solved elegantly.)
>
i'm nearly 100% sure that you will never manage to make that working ;
if you want to count words, you need to intercept them at the input
stage and/or interpret the output
Hans
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
prev parent reply other threads:[~2006-08-08 7:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-05 16:45 Mojca Miklavec
2006-08-05 17:02 ` Aditya Mahajan
2006-08-05 17:52 ` gnwiii
2006-08-05 20:07 ` Hans Hagen
2006-08-06 0:31 ` Mojca Miklavec
2006-08-06 15:00 ` Hans Hagen
2006-08-06 17:27 ` Aditya Mahajan
2006-08-07 8:24 ` Mojca Miklavec
2006-08-07 9:22 ` Hans Hagen
2006-08-07 18:54 ` Mojca Miklavec
2006-08-07 20:55 ` Hans Hagen
2006-08-07 21:31 ` Mojca Miklavec
2006-08-08 0:49 ` Aditya Mahajan
2006-08-08 7:54 ` Hans Hagen [this message]
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=44D84342.6030001@wxs.nl \
--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).