[Therion] Changing text on the legend
Bill Gee
bgee at campercaver.net
Fri Feb 8 22:01:10 CET 2019
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestMap.zip
Type: application/zip
Size: 35403 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20190208/afdfdafc/attachment.zip>
More information about the Therion
mailing list