Re: [Therion] point:passage-height
Footleg - I'm not using the symbol to control the passage height, I'm using it to show the depth of a trench in a gravel bank. Vasily - I'm already using base-scale to control the size of other symbols but this one is too big. I need to make it smaller without changing all the symbols. The size is probably related to the font size but again I'm happy with the font size for labels etc, I just want to change this particular symbol. Dave Clucas daveclucas.com mycaves.org.
Dave The key to modifying the symbol definition may lie in the file thText.mp in the sources Ie Here is the code from 5.3.9 as an example vardef p_label@#(expr txt,pos,rot,mode) = if (mode=1) or (mode=7): interim labeloffset:=(u/8) fi; lab:=thelabel@#(txt, pos); if mode>1: pickup PenD fi; if mode=1: pickup pencircle scaled (u/6); drawdot(pos); process_label(pos,0); elseif mode=2: process_uplabel; elseif mode=3: process_downlabel; elseif mode=4: process_updownlabel; elseif mode=5: process_circledlabel; elseif mode=6: process_boxedlabel; elseif mode=7: process_label(pos,rot); % station name elseif mode=8: process_filledlabel(pos, rot); else: process_label(pos,rot); fi; enddef; I have not looked into how it works, but I'm guessing the 'point height' and 'point passage-height' labels are one of the 'modes' above, and that the processes called are default metapost routines. Too complicated for me to unravel. BTW shouldn't you be using 'point height' to indicate the height of cobble banks, rather than 'point passage-height'? (Probably the same symbol size issue will apply). Also, as a path to a possible work around, I think the AUT symbol set includes the option to label 'line pit' (or is it 'line wall:pit')? I have never managed to get it to work - but have not tried too hard either. Bruce _____ From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Dave Clucas Sent: Sunday, 13 January 2013 12:59 a.m. To: therion@speleo.sk Subject: Re: [Therion] point:passage-height Footleg - I'm not using the symbol to control the passage height, I'm using it to show the depth of a trench in a gravel bank. Vasily - I'm already using base-scale to control the size of other symbols but this one is too big. I need to make it smaller without changing all the symbols. The size is probably related to the font size but again I'm happy with the font size for labels etc, I just want to change this particular symbol. Dave Clucas daveclucas.com <http://daveclucas.com/> mycaves.org. <http://mycaves.org>
hi bruce, passage-height goes with modes 2, 3, 4, and 5 dave might redefine the mpost macros scaling the label (lab) in a custom layout. marco ________________________________ From: Bruce <bruce@tomo.co.nz> To: 'List for Therion users' <therion@speleo.sk> Sent: Saturday, January 12, 2013 7:57 PM Subject: Re: [Therion] point:passage-height Dave The key to modifying the symbol definition may lie in the file thText.mp in the sources Ie Here is the code from 5.3.9 as an example vardef p_label@#(expr txt,pos,rot,mode) = if (mode=1) or (mode=7): interim labeloffset:=(u/8) fi; lab:=thelabel@#(txt, pos); if mode>1: pickup PenD fi; if mode=1: pickup pencircle scaled (u/6); drawdot(pos); process_label(pos,0); elseif mode=2: process_uplabel; elseif mode=3: process_downlabel; elseif mode=4: process_updownlabel; elseif mode=5: process_circledlabel; elseif mode=6: process_boxedlabel; elseif mode=7: process_label(pos,rot); % station name elseif mode=8: process_filledlabel(pos, rot); else: process_label(pos,rot); fi; enddef; I have not looked into how it works, but I’m guessing the ‘point height’ and ‘point passage-height’ labels are one of the ‘modes’ above, and that the processes called are default metapost routines. Too complicated for me to unravel. BTW shouldn’t you be using ‘point height’ to indicate the height of cobble banks, rather than ‘point passage-height’? (Probably the same symbol size issue will apply). Also, as a path to a possible work around, I think the AUT symbol set includes the option to label ‘line pit’ (or is it ‘line wall:pit’)? I have never managed to get it to work – but have not tried too hard either. Bruce ________________________________ From:therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Dave Clucas Sent: Sunday, 13 January 2013 12:59 a.m. To: therion@speleo.sk Subject: Re: [Therion] point:passage-height Footleg - I'm not using the symbol to control the passage height, I'm using it to show the depth of a trench in a gravel bank. Vasily - I'm already using base-scale to control the size of other symbols but this one is too big. I need to make it smaller without changing all the symbols. The size is probably related to the font size but again I'm happy with the font size for labels etc, I just want to change this particular symbol. Dave Clucas daveclucas.com mycaves.org. _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
On Jan 14, 2013, at 2:36 PM, Martin Sluka <martinsluka@mac.com> wrote:
It looks the xs s and m scale are not enough differenced
The definition is in file thpoint.cxx from line 959 if (postprocess) { this->point->export_mp(out); double scl = 1.0; switch (this->scale) { case TT_2DOBJ_SCALE_L: scl = 1.414; break; case TT_2DOBJ_SCALE_XL: scl = 2.0; break; case TT_2DOBJ_SCALE_S: scl = 0.707; break; case TT_2DOBJ_SCALE_XS: scl = 0.5; break; So the scales are: 2.0, 1.414, 1.0, 0.707, 0.5 Try to change them and compile therion. without any guaranty ;) m.
participants (4)
-
Bruce -
Dave Clucas -
Marco Corvi -
Martin Sluka