[Therion] Slope symbol needed

2006-05-05 Thread Martin Budaj
On 5/4/06, Wookey  wrote:

> It must be possible to have an external symbols library. I know you built
> everything in to avoid people having problems with paths, but it is a
> horrible hack. At least for the debian version I would really like to move
> the metpost and tex stuff back into the places it should be, then I hope
> adding new symbols would be something that could be by users.
>

--use-extern-libs command line option will do it

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



[Therion] Slope symbol needed

2006-05-05 Thread Stacho Mudrak
> AMER is the suffix for American.  I dont believe it is an "official" NSS 
> symbol but it shows up on ever american map I own.  I really need to learn 
> Metapost and tex so I can do what ever I want to therion.

If you would like to have macros for something special, please just let 
us know. We are now preparing some set of generic macros that will 
simplify usage of TeX. For example - insertion of texts, insertion of 
other PDFs or Bitmap images to maps etc...

S.




[Therion] Slope symbol needed

2006-05-05 Thread Stacho Mudrak
>>> In any case, we should probably create BCRA symbol set in standard therion
>>> distribution. We will try...
> 
> That would be great!

Is there any site that shows all BCRA symbols?

S.




[Therion] Slope symbol needed

2006-05-05 Thread Stacho Mudrak
> Yes I suppose so. Possibly only point gradient and line slope. I don't
> really understand what the difference between line gradient and line slope is?

Line gradient is a simple arrow. Line slope defines in fact an area and 
should draw a lot of arrows perpendicular to the given line.

>> In any case, we should probably create BCRA symbol set in standard therion
>> distribution. We will try...
> 
> That would be nmarvellous. I've just downloaded JD Hobby's metpost book, and
> read the relevant section of the thbook but it all looks rather scary. A way
> to create new symbols with something mere mortals can understand, like SVG
> would be nice, although I can see that SVG->metpost is probably not possible. 

I have also huge problems with metapost, but drawing simple symbols is 
really easy, when you just modify existing ones. There are just two 
important commands:

thdraw - which draws a path
thfill - which fills a path with color

and path is defined like: (X1,Y1) -- (X2, Y2) .. (X3,Y3) .. cycle
-- means straight line
.. means some sort of spline
cycle (not neaded) means that path is closed

With this, you are able to draw most of the symbols. Some lines or area 
symbols are more complicated, but I think that basic things in metapost 
are not more complicated than in SVG.

Regards, S.




[Therion] Slope symbol needed

2006-05-05 Thread Stacho Mudrak
Wookey wrote:
> And there needs to be some
> way for users to find out symbol names. (I looked in mpost dir in source and
> grepped, but that is not suitable for users that want to change a symbol).

See "New map symbols" section in therion book. Symbol name is derived 
from its type and subtype.

> Guys - how do we add new symbols like this? If the answer is 'rebuild
> therion from source' then something is wrong in the design...
> Maybe an extrernal path is checked as well as the internal library?

> It must be possible to have an external symbols library. I know you built
> everything in to avoid people having problems with paths, but it is a
> horrible hack. At least for the debian version I would really like to move
> the metpost and tex stuff back into the places it should be, then I hope
> adding new symbols would be something that could be by users. 

This is not needed. You may do it via layout and thconfig files. Just 
define your symbol definitions for example in layout BCRA in BCRA.config 
file. Put this file into some of therion directories (listed in THERION 
env variable). Then in your particular thconfig you just write:

input BCRA.config
export map -layout BCRA

Regards, S.




[Therion] Slope symbol needed

2006-05-04 Thread John Pybus
Wookey wrote:
> +++ Stacho Mudrak [06-05-04 08:31 +0200]:

>> In any case, we should probably create BCRA symbol set in standard therion
>> distribution. We will try...

That would be great!

> That would be nmarvellous. I've just downloaded JD Hobby's metpost book, and
> read the relevant section of the thbook but it all looks rather scary. A way
> to create new symbols with something mere mortals can understand, like SVG
> would be nice, although I can see that SVG->metpost is probably not possible. 

You could look at http://www.pstoedit.net/pstoedit/ which claims to 
support both SVG and MetaPost.  I've never used it for MetaPost though, 
so have no idea how good a job it does.

John



[Therion] Slope symbol needed

2006-05-04 Thread Andrew Atkinson
Thanks

Eventually got it to work, you also need to the line

symbol-set UIS

which I had in the layout, and seems to override the replace.

Andrew

Jenny Black wrote:
>> I thought, you have already changed at least some of these symbols
>> (see Jenny's map of Eislufthohle
>> http://cucc.survex.com/expo/plateau/76/76_final_col_small.png).
> 
> I kind of cheated to do this, I noticed that the BCRA slope symbol is
> similar to the UIS entrance arrow symbol.  I also noticed that the BCRA
> clay symbol is the same as the UIS flowstone symbol.  So as the cave i
> was drawing had no flowstone, but some clay (and I didn't mind not
> being able to use the UIS entrance arrow symbol), Olly helped me to add
> the following to the thconfig file:
> 
> code metapost
>   let p_gradient = p_entrance_UIS;
>   let p_clay = p_flowstone_UIS;
> 
> which successfully worked for the point symbols anyway.  Presmambly it
> wouldn't be too hard to get therion to have an option for BCRA symbols,
> as many of them already exist, although sometimes for different things.
> 
> Thanks,
> Jenny
> ___
> Therion mailing list
> Therion at speleo.cz
> http://www.speleo.cz/mailman/listinfo/therion
> 
> 
> 




[Therion] Slope symbol needed

2006-05-04 Thread Wookey
+++ Stacho Mudrak [06-05-04 08:31 +0200]:
> > Long thin ones are used for very steep slopes. Short fat ones for more 
> > normal
> > sloping floors.
> >
> > Can you help, or give me a lcue for where to start doing it myself?
> 
> If I have understood, you would like to change following symbols:
> 
> point gradient
> line gradient
> line slope

Yes I suppose so. Possibly only point gradient and line slope. I don't
really understand what the difference between line gradient and line slope is?

> In any case, we should probably create BCRA symbol set in standard therion
> distribution. We will try...

That would be nmarvellous. I've just downloaded JD Hobby's metpost book, and
read the relevant section of the thbook but it all looks rather scary. A way
to create new symbols with something mere mortals can understand, like SVG
would be nice, although I can see that SVG->metpost is probably not possible. 

> > Also I just noticed there is a therion 0.3.10. Did I miss an announcement
> > for this? I'll do a debian upload now I know about it, anyway.
> 
> There was an announcement on Wed, 5 Apr 2006 17:10:42 +0200 :)

Ah yes I was on holiday then.

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/ play: http://www.chaos.org.uk/~wookey/



[Therion] Slope symbol needed

2006-05-04 Thread Philip Schuchardt
AMER is the suffix for American.  I dont believe it is an "official" NSS 
symbol but it shows up on ever american map I own.  I really need to learn 
Metapost and tex so I can do what ever I want to therion.

Philip Schuchardt

On Thursday 04 May 2006 4:04 pm, Wookey wrote:
> +++ Philip Schuchardt [06-05-04 14:56 -0400]:
> > This is how you overload metapost symbols.
>
> snip example. Thanx very much for the quick and complete response -that
> works.
>
> I now see the gradient symbol you have used is a
> strange kind of 'crows-foot' thing. I am not familiar with that one. Is the
> 'AMER' suffix 'American'? IS this NSS symbols or something else?
>
>
> Wookey



[Therion] Slope symbol needed

2006-05-04 Thread Wookey
+++ Philip Schuchardt [06-05-04 14:56 -0400]:
> 
> This is how you overload metapost symbols.

snip example. Thanx very much for the quick and complete response -that works. 

I now see the gradient symbol you have used is a
strange kind of 'crows-foot' thing. I am not familiar with that one. Is the
'AMER' suffix 'American'? IS this NSS symbols or something else?


Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/ play: http://www.chaos.org.uk/~wookey/



[Therion] Slope symbol needed

2006-05-04 Thread Wookey
+++ Philip Schuchardt [06-05-04 09:16 -0400]:
> 
> This is my overloaded symbol for gradient point.  I want to make a line 
> symbol 
> for gradient but I havent gotten around to it. 
> 
> code metapost
> def p_gradient_AMER (expr pos,theta,sc,al) =

snip. OK, thanx a lot for that. Now I just need to know what to do with it
in order to use it:

I have an example of overriding a symbol in a thconfig file
# bodge to make floor-steps look sensible
 code metapost
  let l_floorstep = l_border_visible_SKBB;

This goes inside the layout/endlayout.  

so we want something like
 code metapost
 let p_slope = p_gradient_AMER;

What I don't know is where we put the files (or how to find out the symbol
names we want to override). There should be a load of symbol files, but they
seem to be compiled into the therion excutable. And there needs to be some
way for users to find out symbol names. (I looked in mpost dir in source and
grepped, but that is not suitable for users that want to change a symbol).

It looks like we need to add the snippet provided to the symbols in
mpost/thPoint.mp file and then rebuild therion.

Guys - how do we add new symbols like this? If the answer is 'rebuild
therion from source' then something is wrong in the design...
Maybe an extrernal path is checked as well as the internal library?

It must be possible to have an external symbols library. I know you built
everything in to avoid people having problems with paths, but it is a
horrible hack. At least for the debian version I would really like to move
the metpost and tex stuff back into the places it should be, then I hope
adding new symbols would be something that could be by users. 

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/ play: http://www.chaos.org.uk/~wookey/



[Therion] Slope symbol needed

2006-05-04 Thread Philip Schuchardt

This is how you overload metapost symbols.

# thconfig file ###
input layout.th
source main.th

#One page map
export map -layout plan -output ABC.pdf
export map -layout print -output ABC_Printable.pdf

## Heres my layout.th 
layout plan
  scale 1 200 #Working map scale
  #scale 1 400
  #scale 1 600 #1" to 50'
  #base-scale 1 600
  units imperial
  legend on
  color map-fg altitude
  transparency on
  debug station-names

  #PDF DOCUMENTION
  doc-author "Philip Schuchardt"
  code tex-map
\cavename={Alva Blankenship Cave (WORKING COPY }
\comment{Cartography By: Philip Schuchardt and Philip Balister  \copyright 
2006 VPI Cave Club}
  endcode


code metapost
def l_wall_bedrock_AMER (expr P) =
  T:=identity;
  pickup PenA;
  thdraw P;
enddef;  

def p_gradient_AMER (expr pos,theta,sc,al) =
U:=(.15u, .4u);
T:=identity aligned al rotated theta scaled sc shifted pos;
pickup PenC;

#Left Hand side
thdraw (-.3u, -.2u) -- (-.7u, .1u);
thdraw (-.2u, -.1u) -- (-.4u, .6u);

#Centerline
thdraw (0u, 0u) -- (0u, .9u);

#Right side
thdraw (.3u, -.2u) -- (.7u, .1u);
thdraw (.2u, -.1u) -- (.4u, .6u);

enddef;

def a_sand_AMER (expr p) =
  T:=identity;
  %  thclean p;
  pickup PenC;
  path q; q = bbox p;
  picture tmp_pic; 
  tmp_pic := image(
for i = xpart llcorner q step .3u until xpart urcorner q:
  for j = ypart llcorner q step .3u until ypart urcorner q:
draw origin shifted ((i,j) randomized 0.2u) withpen PenC;
  endfor;  
endfor;
  );
  clip tmp_pic to p;
  draw tmp_pic;
enddef;

def a_debris_AMER (expr p) =
T:=identity;
pickup PenC;
path q, qq; q = bbox p;
picture tmp_pic; 
tmp_pic := image(
  for i = xpart llcorner q step u until xpart urcorner q:
   for j = ypart llcorner q step u until ypart urcorner q:
  qq := punked 
(((-.2u,-.2u)--(.2u,-.2u)--(.2u,.2u)--(-.2u,.2u)--cycle) 
 randomized (u/2))
 rotated uniformdeviate(360) 
 shifted ((i,j) randomized u);
   if xpart (p intersectiontimes qq) < 0:
thclean qq;
thdraw qq;
   fi;
endfor;  
  endfor;
);
clip tmp_pic to p;
draw tmp_pic;
  enddef;

  initsymbol ("a_sand_AMER");
  initsymbol ("a_debris_AMER");
  initsymbol ("p_gradient_AMER");
  initsymbol ("l_wall_bedrock_AMER");
  endcode

  symbol-assign area sand AMER
  symbol-assign area debris AMER
  symbol-assign line wall:bedrock AMER
  symbol-assign point gradient AMER


endlayout

Philip Schuchardt




[Therion] Slope symbol needed

2006-05-04 Thread Jenny Black
>I thought, you have already changed at least some of these symbols
>(see Jenny's map of Eislufthohle
>http://cucc.survex.com/expo/plateau/76/76_final_col_small.png).

I kind of cheated to do this, I noticed that the BCRA slope symbol is
similar to the UIS entrance arrow symbol.  I also noticed that the BCRA
clay symbol is the same as the UIS flowstone symbol.  So as the cave i
was drawing had no flowstone, but some clay (and I didn't mind not
being able to use the UIS entrance arrow symbol), Olly helped me to add
the following to the thconfig file:

code metapost
  let p_gradient = p_entrance_UIS;
  let p_clay = p_flowstone_UIS;

which successfully worked for the point symbols anyway.  Presmambly it
wouldn't be too hard to get therion to have an option for BCRA symbols,
as many of them already exist, although sometimes for different things.

Thanks,
Jenny



[Therion] Slope symbol needed

2006-05-04 Thread Philip Schuchardt

This is my overloaded symbol for gradient point.  I want to make a line symbol 
for gradient but I havent gotten around to it. 

code metapost
def p_gradient_AMER (expr pos,theta,sc,al) =
U:=(.15u, .4u);
T:=identity aligned al rotated theta scaled sc shifted pos;
pickup PenC;

#Left Hand side
thdraw (-.3u, -.2u) -- (-.7u, .1u);
thdraw (-.2u, -.1u) -- (-.4u, .6u);

#Centerline
thdraw (0u, 0u) -- (0u, .9u);

#Right side
thdraw (.3u, -.2u) -- (.7u, .1u);
thdraw (.2u, -.1u) -- (.4u, .6u);

enddef;

 initsymbol ("p_gradient_AMER");
endcode

Philip Schuchardt


On Wednesday 03 May 2006 11:34 pm, Wookey wrote:
> British cavers are complaining that therion doesn't have a BCRA-type slope
> symbol. I know I know learn metafont and do one myself but time is short
> and i'm hoiping it's easy for an expert so I can get MArtin to do it :-)
>
> Here:
>  http://cucc.survex.com/expo/smkridge/161/300dpi/balley.png and
>  http://cucc.survex.com/expo/smkridge/161/300dpi/knoss.png
>  are examples showing typical use - the filled black triangles in boulder
> alley and the smaller ones at over the rainbow, then more in knossos
> chamber, tower blocks,tower hamlets and waterfall chamber.
>
> Long thin ones are used for very steep slopes. Short fat ones for more
> normal sloping floors.
>
> Can you help, or give me a lcue for where to start doing it myself?
>
> Also I just noticed there is a therion 0.3.10. Did I miss an announcement
> for this? I'll do a debian upload now I know about it, anyway.
>
> Wookey



[Therion] Slope symbol needed

2006-05-04 Thread Stacho Mudrak
> Long thin ones are used for very steep slopes. Short fat ones for more normal
> sloping floors.
>
> Can you help, or give me a lcue for where to start doing it myself?

If I have understood, you would like to change following symbols:

point gradient
line gradient
line slope

I thought, you have already changed at least some of these symbols
(see Jenny's map of Eislufthohle
http://cucc.survex.com/expo/plateau/76/76_final_col_small.png).
In any case, we should probably create BCRA symbol set in standard therion
distribution. We will try...

> Also I just noticed there is a therion 0.3.10. Did I miss an announcement
> for this? I'll do a debian upload now I know about it, anyway.

There was an announcement on Wed, 5 Apr 2006 17:10:42 +0200 :)

S.



[Therion] Slope symbol needed

2006-05-04 Thread Martin Sluka

On 4.5.2006, at 5:34, Wookey wrote:

> Long thin ones are used for very steep slopes. Short fat ones for  
> more normal sloping floors.

Wookey, I apologize myself, but this is not very logical. Isn't it  
reverse?

Martin



[Therion] Slope symbol needed

2006-05-04 Thread Wookey
British cavers are complaining that therion doesn't have a BCRA-type slope
symbol. I know I know learn metafont and do one myself but time is short and
i'm hoiping it's easy for an expert so I can get MArtin to do it :-)

Here:
 http://cucc.survex.com/expo/smkridge/161/300dpi/balley.png and
 http://cucc.survex.com/expo/smkridge/161/300dpi/knoss.png
 are examples showing typical use - the filled black triangles in boulder
alley and the smaller ones at over the rainbow, then more in knossos
chamber, tower blocks,tower hamlets and waterfall chamber. 

Long thin ones are used for very steep slopes. Short fat ones for more normal 
sloping floors. 

Can you help, or give me a lcue for where to start doing it myself?

Also I just noticed there is a therion 0.3.10. Did I miss an announcement
for this? I'll do a debian upload now I know about it, anyway.

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/ play: http://www.chaos.org.uk/~wookey/