[NTG-context] \setupinteraction v commas

Hans Hagen j.hagen at xs4all.nl
Sat Mar 28 13:20:26 CET 2020


On 3/27/2020 6:06 PM, Pablo Rodriguez wrote:
> On 3/26/20 6:54 PM, Tomas Hala wrote:
>> [...]
>> I would like to have commas in metadata attribute keywords
>> because space is confusing -- one cannot distinguish
>> a space as a separator from a space as a part of a keyword.
> 
> Hi Tomáš,
> 
> a workaround is contained in the following sample
> 
>      \def\comma{‚}
>      \enabledirectives
>          [interaction.identity.preroll]
> 
>      \setupinteraction
>        [title={a, b, c},
>         subtitle={a, b, c},
>         author={a, b, c},
>         keyword={a\comma\ b\comma\ c},
>      ]
> 
>      \starttext
>      \null
>      \stoptext
> 
> BTW, I’m faking the character with an opening single comma (such as the
> one used in German [and probably other languages 😅]).
> 
> I don’t know how to insert the actual comma there, since it gets
> replaced when using the command.
> 
> Just in case it might help,
It's no big deal to support

   keyword={{a, b, c}},

which then gives:

   <pdf:Keywords>a, b, c</pdf:Keywords>

but then you end up with

   keyword={{a, b, c},{d, e, d}},

becoming

   <pdf:Keywords>a, b, c d, e, f</pdf:Keywords>

i wonder what, after encountering this, the next request will be ...

anyway, I suppose you will check what different viewers make of that 
when they display/handle keywords and wikify it

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list