From: Ville Voipio <ville.voipio@kpatents.com>
Subject: RE: Capitalized headings
Date: Wed, 4 May 2005 00:32:59 +0300 [thread overview]
Message-ID: <98D0564335EC4848A87BEDEFF4EA056B55C2@posti.kpatents.com> (raw)
> The bad news is that now I have a lot more questions concerning the
It really seems that I do... I played around with the capitalization
commands and got some interesting results.
My test file is (works in live.contextgarden.net if required):
---
\enableregime[il1]
\starttext
abcABCåäöÅÄÖ
\cap{abcABCåäöÅÄÖ}
\uppercased{abcABCåäöÅÄÖ}
\WORD{abcABCåäöÅÄÖ}
\uppercase{abcABCåäöÅÄÖ}
\stoptext
---
So, the test string is: abcABC\aumlaut\aring\oumlaut\Aumlaut\Aring\Oumlaut
(just in case it does not display correctly). It gives:
\cap -> ABCABCÅÄÖÅÄÖ (in \tfx size), just as expected
\uppercased -> ABCABCåäöÅÄÖ (ABC's in \tfx, rest untouched)
\WORD -> ABCABCÅÄÖxxx (where xxx's are gibberish)
\uppercase -> ABCABCÅÄÖxxx
The plain TeX \uppercase seems to be known for its nasty behaviour
with anything else than US characters. \WORD seems to be a thin
wrapper around it, so similar behaviour is to be expected.
\uppercased makes interesting things, as it does uppercase the
abc's well but does not touch the accented characters in any
way.
Only \cap seems to do exactly what it should.
---
Things become even stranger, when the regime is switched to
UTF-8. Then \WORD and \uppercase give some errors and refuse
to compile. \uppercased and \cap work as described above.
---
As \uppercase is a plain TeX macro, fixing it is not a good
choice, especially because it is known to be bad. However,
if \WORD could be built on \cap but without the font size
changing, it would work fine. The odd behaviour of \uppercased
(and the reasons to use it instead of the other choices) remains
unclear to me.
- Ville
next reply other threads:[~2005-05-03 21:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-03 21:32 Ville Voipio [this message]
2005-05-03 22:58 ` Adam Lindsay
-- strict thread matches above, loose matches on Subject: below --
2005-05-03 16:56 Ville Voipio
2005-05-02 17:49 Ville Voipio
2005-05-02 22:53 ` Adam Lindsay
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=98D0564335EC4848A87BEDEFF4EA056B55C2@posti.kpatents.com \
--to=ville.voipio@kpatents.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).