[Therion] Setting Scrap Colours

2016-04-05 Thread Bruce Mutton


Vladimir, OllyI have not tested the map colour patch. It looks like you have 
done a good job. I second Vladimir's suggestions and requests and look forward 
to the precompiled update!
Bruce
Sent from my Samsung device, hence the typo's
-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] Setting Scrap Colours

2016-04-04 Thread Wookey
+++ Olly Betts [2016-03-27 09:44 +0100]:
> On Mon, Mar 14, 2016 at 09:23:39PM +1300, Bruce wrote:
> > Colour by map works just fine, as does colour by scrap or altitude.
> > 
> > In the context of your question I thought you were trying to SPECIFY
> > which colour a particular scrap (or map or altitude) would be
> > assigned.
> 
> I was "commissioned" to implement the ability to specify the colour
> used for each map - patch attached.

I've included this, in the latest therion upload to Debian
5.3.16-10 which has now migrated to Testing.

One with Geogiev's v8 3D (co-ordinate system export in 3D file)
changes has been prepared but I need to fix a couple of other things
before uploading. Soon, if I don't get too distracted...

Wookey
-- 
Principal hats:  Linaro, Debian, Wookware, ARM
http://wookware.org/
-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: 



[Therion] Setting Scrap Colours

2016-04-04 Thread Владимир Георгиев
Olly

This is a very nice addition indeed.
I tested it and it works with single level maps, but it doesn't seem to
work with nested maps, or I missed something about the usage.

It works with several map definitions, not being merged in an overall map
like:

*  map M1 -colour [60 70 80]*

*  endmap*

*  map M2 -colour [60 70 80]*


*  endmap  ...*


*  export map  pdf*
However when I group M1 and M2 in a larger map(without specifying a colour)
it overrides the colours and they do not appear.

*  map MGlobal*

*M1*

*M2*

*  endmap*

To me it seems better that the lower level map colors are kept, unless the
global one explicitly specifies a colour.
I guess the example above was done with several map defs without grouping
them in a larger one.

​Also, when I have several map defs(without colours and without a global
map) and specify "colour map-fg map"​ the pieces get colored randomly.
Maybe this is the expected behavior, but to me it sounds more logical to
use the default map-fg colour until a map specifies one explicitly.
The moment I set a global map (without colour) the default map-fg steps in.

Am I asking too much :)

Vladimir


On Mon, Mar 28, 2016 at 5:37 AM, Olly Betts  wrote:

> On Sun, Mar 27, 2016 at 09:44:37AM +0100, Olly Betts wrote:
> > On Mon, Mar 14, 2016 at 09:23:39PM +1300, Bruce wrote:
> > > Colour by map works just fine, as does colour by scrap or altitude.
> > >
> > > In the context of your question I thought you were trying to SPECIFY
> > > which colour a particular scrap (or map or altitude) would be
> > > assigned.
> >
> > I was "commissioned" to implement the ability to specify the colour
> > used for each map - patch attached.
> >
> > With this (surprisingly small) change you can specify the colour for
> > each map, which then overrides the automatic choice when the layout
> > specifies "colour map-fg [map]".  Any maps without one get the same
> > automatic colour they would before.
> >
> > Usage example:
> >
> > map 2012.map -projection plan
> >   colour [0 70 0]
> >   # etc
> > endmap
>
> You can also specify the colour on the "map" line (which is probably
> clearer):
>
> map 2012.map -projection plan -colour [0 70 0]
>   # etc
> endmap
>
> Jenny Black produced an example showing what you can do with this patch:
>
> https://survex.com/~olly/107-plan-col-year.pdf
>
> Cheers,
> Olly
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>
-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] Setting Scrap Colours

2016-03-28 Thread Olly Betts
On Mon, Mar 28, 2016 at 07:47:49AM +0100, Andrew Atkinson wrote:
> Excellent, this has been needed for some time, and opens up lots of
> possibilities.
> 
> Not tested it yet, as I am up mountains.
> 
> Just a thought, would it be possible to assign colour when adding maps to
> another map, so things like water paths can be shown on an overview without
> having to change the maps individually
> 
> Eg
> 
> map detail
> Map1 -colour[100 0 0]
> Map 2 -colour [0 100 0]
> Map3 -colour [0 0 100]
> endmap

That would also naturally extend to support colouring scraps within maps
too.

It probably isn't too hard if you know the code well, but therion
doesn't currently parse options in that position and I'm not sure how to
hook it up to do so.  The current patch just adds a new option to a
place they were already accepted.

Cheers,
Olly



[Therion] Setting Scrap Colours

2016-03-28 Thread Andrew Atkinson
Excellent, this has been needed for some time, and opens up lots of
possibilities.

Not tested it yet, as I am up mountains.

Just a thought, would it be possible to assign colour when adding maps to
another map, so things like water paths can be shown on an overview without
having to change the maps individually

Eg

map detail
Map1 -colour[100 0 0]
Map 2 -colour [0 100 0]
Map3 -colour [0 0 100]
endmap

map Flow
Map1 -colour[70 0 0]
Map 2 -colour [70 0 0]
Map3 -colour [0 0 100]
endmap

Thanks

Andrew
On 28 Mar 2016 3:38 a.m., "Olly Betts"  wrote:

> On Sun, Mar 27, 2016 at 09:44:37AM +0100, Olly Betts wrote:
> > On Mon, Mar 14, 2016 at 09:23:39PM +1300, Bruce wrote:
> > > Colour by map works just fine, as does colour by scrap or altitude.
> > >
> > > In the context of your question I thought you were trying to SPECIFY
> > > which colour a particular scrap (or map or altitude) would be
> > > assigned.
> >
> > I was "commissioned" to implement the ability to specify the colour
> > used for each map - patch attached.
> >
> > With this (surprisingly small) change you can specify the colour for
> > each map, which then overrides the automatic choice when the layout
> > specifies "colour map-fg [map]".  Any maps without one get the same
> > automatic colour they would before.
> >
> > Usage example:
> >
> > map 2012.map -projection plan
> >   colour [0 70 0]
> >   # etc
> > endmap
>
> You can also specify the colour on the "map" line (which is probably
> clearer):
>
> map 2012.map -projection plan -colour [0 70 0]
>   # etc
> endmap
>
> Jenny Black produced an example showing what you can do with this patch:
>
> https://survex.com/~olly/107-plan-col-year.pdf
>
> Cheers,
> Olly
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>
-- next part --
An HTML attachment was scrubbed...
URL: 



[Therion] Setting Scrap Colours

2016-03-28 Thread Olly Betts
On Sun, Mar 27, 2016 at 09:44:37AM +0100, Olly Betts wrote:
> On Mon, Mar 14, 2016 at 09:23:39PM +1300, Bruce wrote:
> > Colour by map works just fine, as does colour by scrap or altitude.
> > 
> > In the context of your question I thought you were trying to SPECIFY
> > which colour a particular scrap (or map or altitude) would be
> > assigned.
> 
> I was "commissioned" to implement the ability to specify the colour
> used for each map - patch attached.
> 
> With this (surprisingly small) change you can specify the colour for
> each map, which then overrides the automatic choice when the layout
> specifies "colour map-fg [map]".  Any maps without one get the same
> automatic colour they would before.
> 
> Usage example:
> 
> map 2012.map -projection plan
>   colour [0 70 0]
>   # etc
> endmap

You can also specify the colour on the "map" line (which is probably
clearer):

map 2012.map -projection plan -colour [0 70 0]
  # etc
endmap

Jenny Black produced an example showing what you can do with this patch:

https://survex.com/~olly/107-plan-col-year.pdf

Cheers,
Olly



[Therion] Setting Scrap Colours

2016-03-27 Thread Olly Betts
On Mon, Mar 14, 2016 at 09:23:39PM +1300, Bruce wrote:
> Colour by map works just fine, as does colour by scrap or altitude.
> 
> In the context of your question I thought you were trying to SPECIFY
> which colour a particular scrap (or map or altitude) would be
> assigned.

I was "commissioned" to implement the ability to specify the colour
used for each map - patch attached.

With this (surprisingly small) change you can specify the colour for
each map, which then overrides the automatic choice when the layout
specifies "colour map-fg [map]".  Any maps without one get the same
automatic colour they would before.

Usage example:

map 2012.map -projection plan
  colour [0 70 0]
  # etc
endmap

You can say "color" instead, if you really must.

Cheers,
Olly
-- next part --
A non-text attachment was scrubbed...
Name: allow-map-colour-to-be-specified.patch
Type: text/x-diff
Size: 2208 bytes
Desc: not available
URL: 



[Therion] Setting Scrap Colours

2016-03-11 Thread Footleg
Does colour by map not work? I thought it was an option specified in the
Therion book in this section:

• colo[u]r   ◃ customize colour for special map items
(map-fg, mapbg,
preview-above, preview-below, label). Colour range is 0–100 for grayscale,
[0–100
0–100 0–100] triplet for RGB colours.
For map-fg, you can use altitude, scrap or map as colours. In this case the
map is
coloured according to altitude, scraps or maps.
For map-bg, you can use transparent to omit page background completely.
For labels, you can switch colour on/off. If on, labels are coloured using
the colour of
associated scrap.

Footleg

On Thu, Mar 10, 2016 at 6:21 PM Bruce Mutton  wrote:

> I use colour by scrap quite often as a drawing aid. Random is fine for
> that. Colour by map would be the more useful to be able to specify for
> 'finished presentations'.
>
> Colour by map has been discussed and requested from time to time.
>
> Bruce
>
> Sent from my Samsung device, hence the typo's
>
>
>  Original message 
> From: Footleg 
> Date: 11/03/2016 02:25 (GMT+12:00)
> To: List for Therion users 
> Subject: [Therion] Setting Scrap Colours
>
> I've been doing some more work on my Therion Tutorial, which has led me to
> explore more options than I typically use. One of these is to colour scraps
> different colours. All I can find in the Therion Book is how to specify to
> colour map-fg by altitude or by scrap. If I do either of these then the
> colours are assigned automatically. I've searched my email history and seen
> that colour by altitude has been discussed before, but I can't work out if
> there is supposed to be a way to set the colour for a scrap?
>
> If this isn't currently possible, then if would be ideally implemented in
> the layout so that if is not coded into the drawings of the scraps
> themselves. Perhaps a syntax to let you specify as follows:
>
> colour  
>
> Am I missing a way to do this in the existing release?
>
> Footleg
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20160311/e39c892a/attachment.html>


[Therion] Setting Scrap Colours

2016-03-11 Thread Bruce Mutton


I use colour by scrap quite often as a drawing aid. Random is fine for that. 
Colour by map would be the more useful to be able to specify for 'finished 
presentations'. 
Colour by map has been discussed and requested from time to time.
Bruce
Sent from my Samsung device, hence the typo's

 Original message 
From: Footleg <drfoot...@gmail.com> 
Date: 11/03/2016  02:25  (GMT+12:00) 
To: List for Therion users  
Subject: [Therion] Setting Scrap Colours 

I've been doing some more work on my Therion Tutorial, which has led me to 
explore more options than I typically use. One of these is to colour scraps 
different colours. All I can find in the Therion Book is how to specify to 
colour map-fg by altitude or by scrap. If I do either of these then the colours 
are assigned automatically. I've searched my email history and seen that colour 
by altitude has been discussed before, but I can't work out if there is 
supposed to be a way to set the colour for a scrap?
If this isn't currently possible, then if would be ideally implemented in the 
layout so that if is not coded into the drawings of the scraps themselves. 
Perhaps a syntax to let you specify as follows:
colour  
Am I missing a way to do this in the existing release?
Footleg
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20160311/b438f3bd/attachment.html>


[Therion] Setting Scrap Colours

2016-03-10 Thread Footleg
I've been doing some more work on my Therion Tutorial, which has led me to
explore more options than I typically use. One of these is to colour scraps
different colours. All I can find in the Therion Book is how to specify to
colour map-fg by altitude or by scrap. If I do either of these then the
colours are assigned automatically. I've searched my email history and seen
that colour by altitude has been discussed before, but I can't work out if
there is supposed to be a way to set the colour for a scrap?

If this isn't currently possible, then if would be ideally implemented in
the layout so that if is not coded into the drawings of the scraps
themselves. Perhaps a syntax to let you specify as follows:

colour  

Am I missing a way to do this in the existing release?

Footleg
-- next part --
An HTML attachment was scrubbed...
URL: