* [NTG-context] Can context automatically italicize foreign words?
[not found] <1469291957.3483451.1742488123765.ref@mail.yahoo.com>
@ 2025-03-20 16:28 ` Joel via ntg-context
2025-03-20 18:12 ` [NTG-context] " Henning Hraban Ramm
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Joel via ntg-context @ 2025-03-20 16:28 UTC (permalink / raw)
To: Mailing List for ConTeXt Users; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 494 bytes --]
Its common convention to italicize words that are of a different language. I've tried marking these words, but then when they also appear in the glossary and index, they are not appearing in the correct placement--somehow the italicized words appear under the "s" category, no matter what letter they start with.
Is there any way in ConTeXt to just give it a list of words, and it will italicize them wherever they are found in the text, no matter they are in the body, some index, etc.?
--Joel
[-- Attachment #1.2: Type: text/html, Size: 861 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: Can context automatically italicize foreign words?
2025-03-20 16:28 ` [NTG-context] Can context automatically italicize foreign words? Joel via ntg-context
@ 2025-03-20 18:12 ` Henning Hraban Ramm
2025-03-20 21:59 ` Max Chernoff via ntg-context
2025-03-20 22:29 ` jbf
2 siblings, 0 replies; 5+ messages in thread
From: Henning Hraban Ramm @ 2025-03-20 18:12 UTC (permalink / raw)
To: ntg-context
Am 20.03.25 um 17:28 schrieb Joel via ntg-context:
> Its common convention to italicize words that are of a different
> language. I've tried marking these words, but then when they also appear
> in the glossary and index, they are not appearing in the correct
> placement--somehow the italicized words appear under the "s" category,
> no matter what letter they start with.
You’re looking for "processors":
https://wiki.contextgarden.net/References_notes_and_floats/Registers_and_index#Processors
> Is there any way in ConTeXt to just give it a list of words, and it will
> italicize them wherever they are found in the text, no matter they are
> in the body, some index, etc.?
There are several ways for replacements, I don’t know which fits.
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: Can context automatically italicize foreign words?
2025-03-20 16:28 ` [NTG-context] Can context automatically italicize foreign words? Joel via ntg-context
2025-03-20 18:12 ` [NTG-context] " Henning Hraban Ramm
@ 2025-03-20 21:59 ` Max Chernoff via ntg-context
2025-03-20 22:29 ` jbf
2 siblings, 0 replies; 5+ messages in thread
From: Max Chernoff via ntg-context @ 2025-03-20 21:59 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Max Chernoff
Hi Joel,
On Thu, 2025-03-20 at 16:28 +0000, Joel via ntg-context wrote:
> Is there any way in ConTeXt to just give it a list of words, and it
> will italicize them wherever they are found in the text, no matter they
> are in the body, some index, etc.?
You should be able to use either \translateinput or \replaceword:
https://wiki.contextgarden.net/Command/replaceword
https://tex.stackexchange.com/a/17024
Thanks,
-- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: Can context automatically italicize foreign words?
2025-03-20 16:28 ` [NTG-context] Can context automatically italicize foreign words? Joel via ntg-context
2025-03-20 18:12 ` [NTG-context] " Henning Hraban Ramm
2025-03-20 21:59 ` Max Chernoff via ntg-context
@ 2025-03-20 22:29 ` jbf
2025-03-21 2:05 ` Rik Kabel
2 siblings, 1 reply; 5+ messages in thread
From: jbf @ 2025-03-20 22:29 UTC (permalink / raw)
To: Joel via ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1357 bytes --]
At least for the Index, Joel, here is how I achieved that:
\defineprocessor[special][style=italic]
And then by way of an example in the text referring to a newspaper:
\index{special->Age, The} {\em The Age} of 31 July 2018
Julian
On 21/3/25 03:28, Joel via ntg-context wrote:
> Its common convention to italicize words that are of a different
> language. I've tried marking these words, but then when they also
> appear in the glossary and index, they are not appearing in the
> correct placement--somehow the italicized words appear under the "s"
> category, no matter what letter they start with.
>
> Is there any way in ConTeXt to just give it a list of words, and it
> will italicize them wherever they are found in the text, no matter
> they are in the body, some index, etc.?
>
> --Joel
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist :ntg-context@ntg.nl /https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage :https://www.pragma-ade.nl /https://context.aanhet.net (mirror)
> archive :https://github.com/contextgarden/context
> wiki :https://wiki.contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2870 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: Can context automatically italicize foreign words?
2025-03-20 22:29 ` jbf
@ 2025-03-21 2:05 ` Rik Kabel
0 siblings, 0 replies; 5+ messages in thread
From: Rik Kabel @ 2025-03-21 2:05 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1004 bytes --]
On 2025-03-20 18:29, jbf wrote:
>
> At least for the Index, Joel, here is how I achieved that:
>
> \defineprocessor[special][style=italic]
>
> And then by way of an example in the text referring to a newspaper:
>
> \index{special->Age, The} {\em The Age} of 31 July 2018
>
> Julian
>
> On 21/3/25 03:28, Joel via ntg-context wrote:
>> Its common convention to italicize words that are of a different
>> language. I've tried marking these words, but then when they also
>> appear in the glossary and index, they are not appearing in the
>> correct placement--somehow the italicized words appear under the "s"
>> category, no matter what letter they start with.
>>
>> Is there any way in ConTeXt to just give it a list of words, and it
>> will italicize them wherever they are found in the text, no matter
>> they are in the body, some index, etc.?
>>
>> --Joel
One can also use a construct such as
\index[New York Times]{{\em The New York Times}}
--
Rik
[-- Attachment #1.2: Type: text/html, Size: 2688 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-03-21 2:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1469291957.3483451.1742488123765.ref@mail.yahoo.com>
2025-03-20 16:28 ` [NTG-context] Can context automatically italicize foreign words? Joel via ntg-context
2025-03-20 18:12 ` [NTG-context] " Henning Hraban Ramm
2025-03-20 21:59 ` Max Chernoff via ntg-context
2025-03-20 22:29 ` jbf
2025-03-21 2:05 ` Rik Kabel
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).