Hello everyone - This has been annoying me for a while. Time to see if there is a fix ...
I have defined quite a few custom symbols, and I have redefined some of the
symbols that are included with Therion. When Therion prints the legend, those
symbols get labels like "area u:pavement".
I added some text lines to the thconfig file, but that has no effect. A close
reading of the Therion Book tells me that text substitution only works for text
strings that are part of the language pack. That implies it does NOT work to
re-label symbols in the legend. Is that true?
The attached file is a sample cave. The PDF file shows the incorrect strings
in the legend. The two custom symbols on this map are defined below.
code metapost
# Define an area fill for pavement
beginpattern(pattern_pavement);
draw (-0.7u, -0.2u)--(-0.1u, 0.2u) withpen pensquare scaled (0.04u);
draw (0.1u, 0.2u)--(0.7u, -0.2u) withpen pensquare scaled (0.04u);
patternxstep(1.6u);
patternystep(0.50u);
endpattern;
def a_u_pavement (expr Path) =
T:=identity;
thclean Path;
thfill Path withpattern pattern_pavement;
enddef;
# Define an area fill for tiled floor
beginpattern(pattern_tiles);
draw (-0.1u, -0.1u)--(-0.1u, 0.1u)--(0.1u, 0.1u)--(0.1u, -0.1u)--cycle;
patternxstep(0.3u);
patternystep(0.3u);
endpattern;
def a_u_tiles (expr Path) =
T:= identity;
thclean Path;
thfill Path withpattern pattern_tiles;
enddef;
# Initialize the new symbols
initsymbol ("a_u_pavement");
initsymbol ("a_u_tiles");
endcode
Thanks!
--
Bill Gee
<<attachment: TestMap.zip>>
_______________________________________________ Therion mailing list [email protected] https://mailman.speleo.sk/listinfo/therion
