[NTG-context] \replaceword with spaces

Pablo Rodriguez oinos at gmx.es
Sun Apr 15 13:30:30 CEST 2018


Dear list,

I have the following sample:

    \replaceword[some][via ][Vía]
    \replaceword[some][calle ][c/ ]
    \replaceword[some][ calle][ Calle]
    \starttext
    \startTEXpage[offset=2em]
    This is what I get:

    \setreplacements[some]%
    calle via del viaducto de la calle

    \resetreplacements
    This is what I need:

    c/ Vía del viaducto de la Calle
    \stopTEXpage
    \stoptext

Is there any way to get spaces in the string to be replaced?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list