ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Matthias Wächter" <matthias.waechter@tttech.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \Word broken
Date: Tue, 29 Jul 2008 22:53:48 +0200	[thread overview]
Message-ID: <488F835C.4050106@tttech.com> (raw)
In-Reply-To: <48899D3E.10708@tttech.com>

On 7/25/2008 11:30 AM, Matthias Wächter wrote:
> On 7/24/2008 9:49 PM, Peter Münster wrote:
>> On Thu, Jul 24 2008, Matthias Wächter wrote:
>>> What am I doing wrong? \Word, \Words and \WORDS cannot be applied to
>>> synonyms, they are displayed unmodified which is a pity as these words
>>> should be capitalized at the beginning of a sentence. Is there a
>>> solution?
>> Try "texexec --luatex file" (luatex has to be installed).
> 
> Wow, it's always impressive to see what difference luatex makes … :-)
> 
> Only problem: \Word does the same as \Words (checked on live.contextgarden). Any hints?

This is the respective code from core-spa.mkiv, and it is obviously broken as it defines \Words to be the same as \Word (and it defines \Word wrongly in the first place).

[…]
\def\WORD{\groupedcommand{\setcharactercasing[\plusone  ]}{}}
\def\word{\groupedcommand{\setcharactercasing[\plustwo  ]}{}}
\def\Word{\groupedcommand{\setcharactercasing[\plusthree]}{}} % \plusfour

\let\WORDS\WORD
\let\words\word
\let\Words\Word
[…]

I just played a little bit with the lua code but get lost miserably considering all those nodes, linked lists etc.

It seems to be the hard part to skip the remaining words properly, so its implementation was postponed. Is this correct?

Hans, do you feel something about the issue?

Thanks,
- Matthias

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

  reply	other threads:[~2008-07-29 20:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-24 18:57 \word of synonyms Matthias Wächter
2008-07-24 19:49 ` Peter Münster
2008-07-25  9:30   ` Matthias Wächter
2008-07-29 20:53     ` Matthias Wächter [this message]
2008-07-29 21:22       ` \Word broken Hans Hagen
2008-07-30  8:23         ` Matthias Wächter
2008-08-05 10:56           ` Matthias Wächter
2008-08-05 16:37             ` Hans Hagen
2008-08-05 16:44               ` Matthias Wächter
2008-08-05 16:48                 ` Hans Hagen
2008-08-05 17:14                   ` Matthias Wächter
2008-08-05 20:48                     ` 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=488F835C.4050106@tttech.com \
    --to=matthias.waechter@tttech.com \
    --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).