Hi folks, There is a setting: min-symbol-scale M That allows you to hide all symbols of S or XS scale. That's useful when you want to show only the most important symbols in a low resolution survey. But is there a way to control this differently only for certain symbols? Eg. I want to be able to hide all "point label" symbols of scale M-XS but I don't want all my cave walls or breakdown choke symbols to disappear (which are at the default M scale). Essentially I want something like this: min-symbol-scale point label L min-symbol-scale point anchor:foo M Some of this I can of course do with MetaPost. But labels (the thing I care most about) don't allow you to easily redefine the MetaPost macro ... or at least the syntax is so weird that I don't understand it. Thanks for any advice. Tarquin
Yes, I wouldn't mind some more refinement. Here are my comments from a while back (some of which may have been resolved since). [Therion] min-symbol-scale and fonts-setup https://www.mail-archive.com/therion@speleo.sk/msg06651.html [Therion] scaling line ornamentation - metapost https://www.mail-archive.com/therion@speleo.sk/msg07032.html [Therion] next level therion symbol strategy https://www.mail-archive.com/therion@speleo.sk/msg07860.html Not much help, but hopefully adding something meaningful to the conversation. Bruce -----Original Message----- From: Therion <therion-bounces@speleo.sk> On Behalf Of Tarquin Wilton-Jones via Therion Sent: Tuesday, 29 June 2021 01:40 To: Therion <therion@speleo.sk> Subject: [Therion] Minimum symbol scale Hi folks, There is a setting: min-symbol-scale M That allows you to hide all symbols of S or XS scale. That's useful when you want to show only the most important symbols in a low resolution survey. But is there a way to control this differently only for certain symbols? Eg. I want to be able to hide all "point label" symbols of scale M-XS but I don't want all my cave walls or breakdown choke symbols to disappear (which are at the default M scale). Essentially I want something like this: min-symbol-scale point label L min-symbol-scale point anchor:foo M Some of this I can of course do with MetaPost. But labels (the thing I care most about) don't allow you to easily redefine the MetaPost macro ... or at least the syntax is so weird that I don't understand it. Thanks for any advice. Tarquin _______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
On 28/06/2021 20:33, Bruce Mutton wrote:
Yes, I wouldn't mind some more refinement. Here are my comments from a while back (some of which may have been resolved since). [Therion] min-symbol-scale and fonts-setup https://www.mail-archive.com/therion@speleo.sk/msg06651.html
This looks like a very familiar situation indeed. Perhaps we can work out an appropriate syntax, and see if someone might possibly take it on. I know that I suggested one format below, but thinking about it more, this might be better: min-symbol-scale <scale> [<point/line/area/group/special> <symbol-type>] That means no fussing around with the parameter ordering. But it is then inconsistent with symbol-colour.
[Therion] scaling line ornamentation - metapost https://www.mail-archive.com/therion@speleo.sk/msg07032.html [Therion] next level therion symbol strategy https://www.mail-archive.com/therion@speleo.sk/msg07860.html
Ah yes, some excellent proposals you had there. Would be nice to revisit those ideas. I wonder if devs can be bribed ;)
I know that I suggested one format below, but thinking about it more, this might be better: min-symbol-scale <scale> [<point/line/area/group/special> <symbol-type>]
That means no fussing around with the parameter ordering. But it is then inconsistent with symbol-colour.
I have run into this one again, and really need this functionality. Andrew (or perhaps this is Bruce's originally) has a partial solution in MetaPost: if abs(llcorner txt - ulcorner txt ) > 3pt: The trouble with this is that it only works if the text is all on one line. It breaks with this because it sees the outer dimensions as huge: point label -text [foo<br>bar>] The text has already been converted into a "picture" by the use of the "btex" operator. I tried using the "textpart" operator to get back to the original (so I could use a substring operator to look for the \thlabel\thlargesize substring), but that didn't work, unfortunately. Any other thoughts about how to analyse it? Obviously I could construct my own btex picture objects and compare the sizes to see if it perfectly matches a known size, but that gets confused by "L" and "g" being different sizes due to "g" descending below the line, so it would be prone to errors, and would need a lot of tests with different text. There has to be a MetaPost solution in here somewhere...
Andrew (or perhaps this is Bruce's originally) has a partial solution in MetaPost: if abs(llcorner txt - ulcorner txt ) > 3pt:
I borrowed from Thomas Holder https://therion.speleo.sk/wiki/metapost#scale_dependant_visualization_of_sym bols Good luck with your quest Tarquin. Bruce
participants (2)
-
Bruce Mutton -
Tarquin Wilton-Jones