[Therion] Custom Metapost label can't display newlines or accents
Martin Budaj
m.budaj at gmail.com
Mon Apr 25 21:31:17 CEST 2022
On Sat, Apr 23, 2022 at 9:56 PM Rhys Tyers <rhystyers1 at gmail.com> wrote:
> Just in case a simplification makes the question/answer clearer, I'll
> retry my question from above:
>
> I define a user label:
>
> def p_u_label (expr P,R,S,A)=
> lab:=thelabel(ATTR_text, P)
> process_label(P, R)
> enddef;
> initsymbol("p_u_label");
>
> This for example will not print a Č character, but the standard Therion
> label will.
>
> How do I make this display text the same way that a normal Therion label
> does?
>
> I’ve read through a lot of the Therion source trying to find out where
> this happens but in the relevant bit
> <https://github.com/therion/therion/blob/master/mpost/thText.mp> there
> seems to be no extra magic happening.
>
Hi, sorry for a late answer -- there was some issue with our mailing list
and the posts from the last few weeks were sent in a batch last Saturday.
Regarding ATTR_text, therion doesn't do any special processing of special
sequences like <br> or accented characters. Maybe it should (the same way
as it does for standard -text attributes), I'll think about it.
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20220425/53a61c93/attachment.htm>
More information about the Therion
mailing list