Hi Bill

Not sure what is going wrong (just perused your files, I have not compiled them).

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.

 

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).

text en "line u:rope"            "rope" #text to appear in legend

text mi "line u:rope"            "taura"

text fr "line u:rope"            "corde"

text en "line u:heyphone"        "hey phone antenna"

 

In the particular case of rope, have small differences associated with symbol definition, that I don’t expect are relevant, but maybe…

  1. 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).
  2. I have defined the ‘shape’ of the symbol in the legend.

 

initsymbol("l_u_rope")

 

def l_u_rope_legend =

                l_u_rope(((.2,.2) -- (.8,.8)) inscale)

enddef;

 

Don’t expect this will help, but maybe…

Bruce

 

-----Original Message-----
From: Therion <therion-bounces@speleo.sk> On Behalf Of Bill Gee via Therion
Sent: Saturday, 9 February 2019 10:01
To: therion@speleo.sk
Cc: Bill Gee <bgee@campercaver.net>
Subject: [Therion] Changing text on the legend

 

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