Hi Bill, 

I had a quick look on you thconfig. The definition of the new custom legend 
seems OK. 
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. 

See the thconfig in attachement. 

Cheers, 

Xav 


De: "Bruce Mutton via Therion" <[email protected]> 
À: "List for Therion users" <[email protected]> 
Cc: "Bruce Mutton" <[email protected]> 
Envoyé: Vendredi 8 Février 2019 18:07:23 
Objet: Re: [Therion] Changing text on the legend 



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 <[email protected]> On Behalf Of Bill Gee via Therion 
Sent: Saturday, 9 February 2019 10:01 
To: [email protected] 
Cc: Bill Gee <[email protected]> 
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 



_______________________________________________ 
Therion mailing list 
[email protected] 
https://mailman.speleo.sk/listinfo/therion 

Attachment: thconfig
Description: Binary data

_______________________________________________
Therion mailing list
[email protected]
https://mailman.speleo.sk/listinfo/therion

Reply via email to