ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] whitespace inside synonym
@ 2024-12-31 17:18 Damien Thiriet via ntg-context
  2025-01-02 11:08 ` [NTG-context] " Bruce Horrocks
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Thiriet via ntg-context @ 2024-12-31 17:18 UTC (permalink / raw)
  To: ntg-context; +Cc: damien

Hello,

I am using the synonym mechanizm to design a glossary for my pupils.
I am stuck with this: how can I insert a whitespace inside a synonym 
definition?

What I achieved yet is:

\definesynonyms [vocabulaire] [vocabulaire] [\LaDef]
\starttext


\vocabulaire{Unionpersonnelle}{Deux États sont en union personnelle 
lorsqu’ils ont le même souverain}

\Unionpersonnelle\
\placelistofvocabulaire

\stoptext

I would like to typeset Union personnelle, without inserting a UTF-8 non 
breakable space.
I tried {{Union personnelle}}, but don't know how may I escape the space 
in the macro.
The answer may lay in lowlevel-macro, but I couldn't find it.


Happy new year everyone!

Damien Thiriet
___________________________________________________________________________________
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] 3+ messages in thread

* [NTG-context] Re: whitespace inside synonym
  2024-12-31 17:18 [NTG-context] whitespace inside synonym Damien Thiriet via ntg-context
@ 2025-01-02 11:08 ` Bruce Horrocks
  2025-01-02 11:29   ` Damien Thiriet via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Horrocks @ 2025-01-02 11:08 UTC (permalink / raw)
  To: ntg-context mailing list; +Cc: damien



> On 31 Dec 2024, at 17:18, Damien Thiriet via ntg-context <ntg-context@ntg.nl> wrote:
> 
> Hello,
> 
> I am using the synonym mechanizm to design a glossary for my pupils.
> I am stuck with this: how can I insert a whitespace inside a synonym definition?
> 
> What I achieved yet is:
> 
> \definesynonyms [vocabulaire] [vocabulaire] [\LaDef]
> \starttext
> 
> 
> \vocabulaire{Unionpersonnelle}{Deux États sont en union personnelle lorsqu’ils ont le même souverain}
> 
> \Unionpersonnelle\
> \placelistofvocabulaire
> 
> \stoptext
> 
> I would like to typeset Union personnelle, without inserting a UTF-8 non breakable space.
> I tried {{Union personnelle}}, but don't know how may I escape the space in the macro.
> The answer may lay in lowlevel-macro, but I couldn't find it.

Not sure this helps you much but there is:

\definesynonyms [vocabulaire] [vocabulaire] [\LaDef]
\starttext
\vocabulaire[UP]{Union personnelle}{Deux États sont en union personnelle lorsqu’ils ont le même souverain}

\UP\
\placelistofvocabulaire

\stoptext

—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
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] 3+ messages in thread

* [NTG-context] Re: whitespace inside synonym
  2025-01-02 11:08 ` [NTG-context] " Bruce Horrocks
@ 2025-01-02 11:29   ` Damien Thiriet via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Damien Thiriet via ntg-context @ 2025-01-02 11:29 UTC (permalink / raw)
  To: Bruce Horrocks; +Cc: ntg-context, damien

Hi Bruce,


This is exactly what I was looking for! Moreover I received your answer 
exactly when I was planning to spend some time on a workaround in Lua, 
so you might have saved me some headaches…

Thanks!

Damien

> Not sure this helps you much but there is:
> 
> \definesynonyms [vocabulaire] [vocabulaire] [\LaDef]
> \starttext
> \vocabulaire[UP]{Union personnelle}{Deux États sont en union
> personnelle lorsqu’ils ont le même souverain}
> 
> \UP\
> \placelistofvocabulaire
> 
> \stoptext
> 
> —
> Bruce Horrocks
> Hampshire, UK
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2025-01-02 11:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-31 17:18 [NTG-context] whitespace inside synonym Damien Thiriet via ntg-context
2025-01-02 11:08 ` [NTG-context] " Bruce Horrocks
2025-01-02 11:29   ` Damien Thiriet via ntg-context

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).