<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><style><!--
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
@list l0
{mso-list-id:1809392493;
mso-list-type:hybrid;
mso-list-template-ids:1823622732 336134159 336134169 336134171 336134159 336134169 336134171 336134159 336134169 336134171;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style></div><div>Hi Bill,</div><div><br data-mce-bogus="1"></div><div>I had a quick look on you thconfig. The definition of the new custom legend seems OK. </div><div>But, in your layout "MainMapNoColor" and "MainMapColorized", you need to add the language definition with the option "language en_US". If you do not add this option, therion seems to not use the en_US by default, and thus your custom legend is not taken in account.</div><div><br data-mce-bogus="1"></div><div>See the thconfig in attachement.</div><div><br data-mce-bogus="1"></div><div>Cheers,</div><div><br data-mce-bogus="1"></div><div>Xav</div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Bruce Mutton via Therion" <therion@speleo.sk><br><b>À: </b>"List for Therion users" <therion@speleo.sk><br><b>Cc: </b>"Bruce Mutton" <bruce@tomo.co.nz><br><b>Envoyé: </b>Vendredi 8 Février 2019 18:07:23<br><b>Objet: </b>Re: [Therion] Changing text on the legend<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div class="WordSection1"><p class="MsoPlainText">Hi Bill</p><p class="MsoPlainText">Not sure what is going wrong (just perused your files, I have not compiled them).</p><p class="MsoPlainText">I have had no such problems, and cannot see any significant differences to what I am doing for symbols that do not exist as a Therion default , although I have only user defined points and lines, not areas.</p><p class="MsoPlainText"> </p><p class="MsoPlainText">Here are some examples that work in my thconfig file just fine (rope is perhaps a bad example, as I think it is now a default symbol, however it was not when I first created this many years ago).</p><p class="MsoPlainText" style="margin-left: 36.0pt;" data-mce-style="margin-left: 36.0pt;">text en "line u:rope" "rope" #text to appear in legend </p><p class="MsoPlainText" style="margin-left: 36.0pt;" data-mce-style="margin-left: 36.0pt;"><span lang="FR">text mi "line u:rope" "taura"</span></p><p class="MsoPlainText" style="margin-left: 36.0pt;" data-mce-style="margin-left: 36.0pt;">text fr "line u:rope" "corde"</p><p class="MsoPlainText" style="margin-left: 36.0pt;" data-mce-style="margin-left: 36.0pt;">text en "line u:heyphone" "hey phone antenna" </p><p class="MsoPlainText"> </p><p class="MsoPlainText">In the particular case of rope, have small differences associated with symbol definition, that I don’t expect are relevant, but maybe…</p><ol style="margin-top: 0cm;" start="1" type="1" data-mce-style="margin-top: 0cm;"><li class="MsoPlainText" style="mso-list: l0 level1 lfo1;" data-mce-style="mso-list: l0 level1 lfo1;">No semi colon after initsymbol (seems like it is a mistake on my part, but it seems like it has not ever caused me problems).</li><li class="MsoPlainText" style="mso-list: l0 level1 lfo1;" data-mce-style="mso-list: l0 level1 lfo1;">I have defined the ‘shape’ of the symbol in the legend.</li></ol><p class="MsoPlainText"> </p><p class="MsoPlainText" style="margin-left: 36.0pt;" data-mce-style="margin-left: 36.0pt;"><span lang="FR">initsymbol("l_u_rope")</span></p><p class="MsoPlainText" style="margin-left: 36.0pt;" data-mce-style="margin-left: 36.0pt;"><span lang="FR"> </span></p><p class="MsoPlainText" style="margin-left: 36.0pt;" data-mce-style="margin-left: 36.0pt;"><span lang="FR">def l_u_rope_legend =</span></p><p class="MsoPlainText" style="margin-left: 36.0pt;" data-mce-style="margin-left: 36.0pt;"><span lang="FR"> l_u_rope(((.2,.2) -- (.8,.8)) inscale)</span></p><p class="MsoPlainText" style="margin-left: 36.0pt;" data-mce-style="margin-left: 36.0pt;">enddef;</p><p class="MsoPlainText"> </p><p class="MsoPlainText">Don’t expect this will help, but maybe…</p><p class="MsoPlainText">Bruce</p><p class="MsoPlainText"> </p><p class="MsoPlainText"><span lang="EN-US">-----Original Message-----<br>From: Therion <therion-bounces@speleo.sk> On Behalf Of Bill Gee via Therion<br>Sent: Saturday, 9 February 2019 10:01<br>To: therion@speleo.sk<br>Cc: Bill Gee <bgee@campercaver.net><br>Subject: [Therion] Changing text on the legend</span></p><p class="MsoPlainText"> </p><p class="MsoPlainText">Hello everyone -</p><p class="MsoPlainText"> </p><p class="MsoPlainText">This has been annoying me for a while. Time to see if there is a fix ...</p><p class="MsoPlainText"> </p><p class="MsoPlainText">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".</p><p class="MsoPlainText"> </p><p class="MsoPlainText">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?</p><p class="MsoPlainText"> </p><p class="MsoPlainText">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.</p><p class="MsoPlainText"> </p><p class="MsoPlainText">code metapost</p><p class="MsoPlainText"># Define an area fill for pavement</p><p class="MsoPlainText"> beginpattern(pattern_pavement);</p><p class="MsoPlainText"> draw (-0.7u, -0.2u)--(-0.1u, 0.2u) withpen pensquare scaled (0.04u);</p><p class="MsoPlainText"> draw (0.1u, 0.2u)--(0.7u, -0.2u) withpen pensquare scaled (0.04u);</p><p class="MsoPlainText"> patternxstep(1.6u);</p><p class="MsoPlainText"> patternystep(0.50u);</p><p class="MsoPlainText"> endpattern;</p><p class="MsoPlainText"> </p><p class="MsoPlainText"> def a_u_pavement (expr Path) =</p><p class="MsoPlainText"> T:=identity;</p><p class="MsoPlainText"> thclean Path;</p><p class="MsoPlainText"> thfill Path withpattern pattern_pavement;</p><p class="MsoPlainText"> enddef;</p><p class="MsoPlainText"> </p><p class="MsoPlainText"># Define an area fill for tiled floor</p><p class="MsoPlainText"> beginpattern(pattern_tiles);</p><p class="MsoPlainText"> draw (-0.1u, -0.1u)--(-0.1u, 0.1u)--(0.1u, 0.1u)--(0.1u, -0.1u)--cycle;</p><p class="MsoPlainText"> patternxstep(0.3u);</p><p class="MsoPlainText"> patternystep(0.3u);</p><p class="MsoPlainText"> endpattern;</p><p class="MsoPlainText"> </p><p class="MsoPlainText"> def a_u_tiles (expr Path) =</p><p class="MsoPlainText"> T:= identity;</p><p class="MsoPlainText"> thclean Path;</p><p class="MsoPlainText"> thfill Path withpattern pattern_tiles;</p><p class="MsoPlainText"> enddef;</p><p class="MsoPlainText"> </p><p class="MsoPlainText"> </p><p class="MsoPlainText"># Initialize the new symbols</p><p class="MsoPlainText"> initsymbol ("a_u_pavement");</p><p class="MsoPlainText"> initsymbol ("a_u_tiles");</p><p class="MsoPlainText"> </p><p class="MsoPlainText">endcode</p><p class="MsoPlainText"> </p><p class="MsoPlainText"> </p><p class="MsoPlainText">Thanks!</p><p class="MsoPlainText">-- </p><p class="MsoPlainText">Bill Gee</p><p class="MsoPlainText"> </p></div><br>_______________________________________________<br>Therion mailing list<br>Therion@speleo.sk<br>https://mailman.speleo.sk/listinfo/therion<br></div></div></body></html>