[Therion] Height numbers in square boxes
Martin Sluka
martinsluka at mac.com
Thu Sep 20 22:19:53 CEST 2018
There is the problem that passage-height is hard coded, not defined in Metapost.
Martin S.
Odesláno z iPhonu
20. 9. 2018 v 21:38, Bruce Mutton via Therion <therion at speleo.sk>:
> One of the developers added a NZSS symbol set some years ago, based on a few symbol definitions I posted on this forum.
> I have some more symbol definitions I would like to add to it, btw.
> If someone points me to the general code location, I might try to cut my teeth on git and add those extra definitions.
>
> A new symbol set can include as little as a single symbol, so it should not be a big job Bill. You can simply reassign symbols from other symbol sets for those not defined in your chosen symbol set. ie
>
> symbol-assign line gradient UIS
> symbol-assign point gradient UIS
>
> Maybe some learning we can do together Bill (on adding to symbol sets).
>
> Also for what it is worth, I made this clumsy attempt at text within boxes (or sorts). Not quite what you are after, but might give some ideas.
>
> A more generally useful thing I have been wondering about for point labels and point remarks (or line labels for that matter) would be the ability to add a box around the text, as a simple property of that entity, activated in the same way as we specify -align left or -scale xs. And even a -hyperlink [path|url] would be useful
>
> <image001.png>
>
> # Define an experimental label symbol for graffiti
>
> code metapost
> def p_u_graffiti (expr pos,theta,sc,al)=
> U:=(.2u,.5u);
> T:=identity aligned al rotated theta scaled sc shifted pos;
>
> %# pos and al work fine in label below, but theta and sc transformed about far off point???
> %# so have been disabled for label component. Plan rotation seems to have no further detrimental effect
> label (btex Gr etex, pos) aligned al; % rotated theta scaled sc aligned al; % btex and etex are wrappers around code to be process by tex
>
> thdraw unitsquare scaled u shifted (-0.5u,-0.5u) rotated 45 withpen PenD; % diagonal box with thin pen
> thdraw fullcircle scaled u withpen PenD;
> enddef;
>
> initsymbol("p_u_graffiti")
>
>
> endlayout LayoutMapThisCave
>
> #legend entries for custom entities
>
> text en "point u:graffiti" "Historic graffiti" #text to appear in legend
>
>
> Regards
> Bruce
>
> -----Original Message-----
> From: Therion <therion-bounces at speleo.sk> On Behalf Of Martin Sluka via Therion
> Sent: Friday, 21 September 2018 00:09
> To: List for Therion users <therion at speleo.sk>
> Cc: Martin Sluka <martinsluka at mac.com>
> Subject: Re: [Therion] Height numbers in square boxes
>
> 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?
> >
> > --
> > Bill Gee
> >
> >
> >
> > 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/20180920/ed6ab9a9/attachment.htm>
More information about the Therion
mailing list