[Therion] Height numbers in square boxes

Bill Gee bgee at campercaver.net
Fri Sep 21 22:24:21 CEST 2018


Hi Andrew -

I think I have opened another can of unanswered questions with my original 
question!

Looking through the data.mp file from my system, I see "ATTR__height := -1" on 
almost every object type including l_flowstone, l_rockborder, l_rockedge, 
invisible borders and more.  I don't know what that means ...  perhaps an 
unimplemented feature?  Although I cannot image what the use would be of a 
height parameter on a rock edge.

There is a pit in the cave I am working on, so I added "-height [6 ft]" to its 
definition and recompiled the map.  I cannot see where that value shows up on 
the map.

One more thing I see is in the legend.  When I use a regular "p_height" 
object, it draws a number on the map which is not enclosed in anything.  In 
the legend it is called out as "floor step height", which is exactly what I 
want it to say.  I understand why the Missouri standard calls for these to be 
in a box.  The unadorned number get buried in the other stuff on the map.

-- 
Bill Gee



On Thursday, September 20, 2018 4:16:25 PM CDT Andrew Atkinson via Therion 
wrote:
> Yes the Missouri set would be even better.
> 
> > A common convention around Missouri cave mapping is to indicate the
> > height
> > change of a floor step by enclosing the value in a square box.  This is
> > not
> > the same as ceiling height which is enclosed in a circle or oval
> 
> The therion book indicates that height can be added to pit or wall:pit
> p29
> "height <value> ▷ height of pit or wall:pit; available in METAPOST as a
> numeric variable ATTR__height."
> 
> I guess that would also make sense for a floor-step, however if you try
> it you get the error
> -height not valid with type floor-step
> When you use an altitude on a wall it adds a label but does not seem to
> with pits maybe the same should happen with steps and pits, currently I
> have no idea what happens to the height attribute on a pit. Looking at
> data.mp the l_floorstep does have a ATTR__height and it is set to -1!
> 
> Yes I'm having similar problems to you defining a box, my skills are
> generally limited to copying existing definitions and adjusting them
> slightly. My guess is that it is not a metapost, it is tex as it is a
> label, in tex you can put a box round text  with
> 
> \fbox{4}
> 
> but how or if you can use that in therion I do not know.
> 
> It is a problem that is interesting me, as I think it is something that
> I might want to use.
> 
> Andrew
> 
> On 20/09/18 13:09, Martin Sluka via Therion wrote:
> > Please contact Martin Budaj.
> > 
> > Odesláno z iPhonu
> > 
> > 20. 9. 2018 v 13:32, Bill Gee via Therion <therion at speleo.sk>:
> >> Hi Martin -
> >> 
> >> Now that is an interesting idea!  Most of the symbols used in Missouri
> >> are
> >> UIS, so that would serve as the starting point.
> >> 
> >> Is there any documentation on how to create an entire symbol set?
> >> 
> >> And my original question is still there ...  How can I create a symbol
> >> that
> >> puts a number inside a square box?
> >> 
> >> 
> >> 
> >> 
> >> On Thursday, September 20, 2018 12:37:42 AM CDT Martin Sluka via Therion
> >> 
> >> wrote:
> >>> The correct way could be to define “Missoury symbol set” as one of
> >>> defaults
> >>> for Therion.
> >>> 
> >>> It should be more simple than user symbol, because it will work with
> >>> contents menus.
> >>> 
> >>> Martin S.
> >>> 
> >>> Odesláno z iPhonu
> >>> 
> >>> 20. 9. 2018 v 1:05, Bill Gee via Therion <therion at speleo.sk>:
> >>>> Hi Andrew -
> >>>> 
> >>>> I have defined several of my own symbols such as a pendant and popcorn
> >>>> with
> >>>> hollow circles.  I could easily define a custom point that would
> >>>> display a
> >>>> square box.
> >>>> 
> >>>> But then how to get the value displayed inside the box?  And how to
> >>>> make
> >>>> the box scale according to the number of digits it contains?  And will
> >>>> Therion do unit conversions like it does for the passage-height object?
> >>>> That's why I was looking for the existing code.  If I can find it, then
> >>>> it is probably pretty easy to modify.
> >>>> 
> >>>>> Yes that is probably possible, however, using a defined symbol for
> >>>>> something else is probably not the right answer. Therion allows you to
> >>>>> define your own points.
> >>>>> 
> >>>>>> From the wiki
> >>>>> 
> >>>>> point u:xxxx where xxxx is the name of a user defined symbol that you
> >>>>> have
> >>>>> defined or referenced in a layout.
> >>>>> 
> >>>>> The actual definition seems to be beyond me at the moment, let me
> >>>>> sleep
> >>>>> on
> >>>>> it, but hopefully a more skillful person will have the answer.
> >>>>> 
> >>>>> Andrew
> >>>>> 
> >>>>>> On Wed, 19 Sep 2018, 22:28 Bill Gee via Therion, <therion at speleo.sk>
> >>>>>> wrote:
> >>>>>> Hello everyone -
> >>>>>> 
> >>>>>> A common convention around Missouri cave mapping is to indicate the
> >>>>>> height
> >>>>>> change of a floor step by enclosing the value in a square box.  This
> >>>>>> is
> >>>>>> not
> >>>>>> the same as ceiling height which is enclosed in a circle or oval.
> >>>>>> 
> >>>>>> I have been using the object "point height" for this.  It works
> >>>>>> except
> >>>>>> there
> >>>>>> is nothing around the value.  It just hangs out in space, so to
> >>>>>> speak.
> >>>>>> 
> >>>>>> I used the "-d" option to dump all the MetaPost and TeX code.  I find
> >>>>>> no
> >>>>>> references in any of the files to objects of type height or
> >>>>>> passage-height,
> >>>>>> which implies that these two objects are not generated by MetaPost.
> >>>>>> 
> >>>>>> Is it possible to redefine the "point height" symbol so it draws a
> >>>>>> square
> >>>>>> box
> >>>>>> around the value?
> >>>>>> 
> >>>>>> Thanks!
> >>>>>> --
> >>>>>> Bill Gee
> >>>>>> 
> >>>>>> 
> >>>>>> 
> >>>>>> 
> >>>>>> _______________________________________________
> >>>>>> Therion mailing list
> >>>>>> Therion at speleo.sk
> >>>>>> https://mailman.speleo.sk/listinfo/therion
> >>>> 
> >>>> _______________________________________________
> >>>> Therion mailing list
> >>>> Therion at speleo.sk
> >>>> https://mailman.speleo.sk/listinfo/therion
> >>> 
> >>> _______________________________________________
> >>> Therion mailing list
> >>> Therion at speleo.sk
> >>> https://mailman.speleo.sk/listinfo/therion
> >> 
> >> _______________________________________________
> >> Therion mailing list
> >> Therion at speleo.sk
> >> https://mailman.speleo.sk/listinfo/therion
> > 
> > _______________________________________________
> > Therion mailing list
> > Therion at speleo.sk
> > https://mailman.speleo.sk/listinfo/therion
> 
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> https://mailman.speleo.sk/listinfo/therion

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180921/ad2fde07/attachment.htm>


More information about the Therion mailing list