[Therion] Strange scale-dependent Metapost error

2009-03-09 Thread Duncan Collis
Turns out that this one:

> Removing non-selected maps (if comment out in the master .th file for
> the area maps that aren't selected in the .thconfig file that causes
> the problem, it compiles without errors).

wasn't true - I've managed to shrink the problem down to a data set
consisting of:

custom symbol definitions
survex .3d file
.th2 files for one cave
.th2 file containing a surface grid
stripped-down .thconfig file
a couple of .th files that tie things together.

The whole thing now fits in a <200K .zip file, which I will send to
Martin Budaj  It's quite a large minimal sample, but I'm struggling to
find anything else that I can remove or change without the error
vanishing.

to Martin B: thanks for offering to look into this!

Duncan.



[Therion] NotePad++ Therion user defined language style

2009-03-09 Thread Bruce Mutton
I have built on Duncans survex example to develop NotePad++ user defined
language styles for Therion.



The simple one is a bit trivial, but is effective in making Therion data
files easy to understand when editing with NotePadd++.

The other is comprehensive but rather busy and colourful.  It shows up the
limitations of the NotePad++ styles format.  Simplifying it would perhaps be
an improvement.



Still someone might find them useful.

An improvement would be to have slightly different styles for *.th, *.th2,
*.thc (my version of thconfig*) files.  But three files are harder to keep
consistent.



Bruce

-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20090309/86573887/attachment.html>
-- next part --
A non-text attachment was scrubbed...
Name: userDefineLang_Therion-Simple.xml
Type: text/xml
Size: 2543 bytes
Desc: not available
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20090309/86573887/attachment.xml>
-- next part --
A non-text attachment was scrubbed...
Name: userDefineLang_Therion.xml
Type: text/xml
Size: 5155 bytes
Desc: not available
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20090309/86573887/attachment-0001.xml>


[Therion] How to produce outputs integrating various types of maps ?

2009-03-09 Thread Bruce Mutton
>Is there a way to specify a "mixed" layout?  (plans, elevations)

Eric

I think the simple answer is no.
But there is a workaround I have been trialling for a few months.

#Make elevation first so that it's pdf can be added to the plan

export map   -projection [elevation 270 deg] \
  -layout LayoutMapBulmer_System \
  -layout LayoutMapBulmer_SystemElev   \
  -output ./Output/MapBulmerSystem_Elev.pdf  

export map -projection plan  \
  -layout LayoutMapBulmer_System \
  -layout LayoutMapBulmer_SystemPlan \
  -output ./Output/MapBulmerSystem_Plan.pdf

The plan layout then includes a line for each map to be included like;

map-image 1.6 103 sw "./Output/MapBulmerSystem_Elev.pdf"

This example places the elevation above the plan on the page.  
You would include a map-header and legend only on the plan view in the above
example.

The downside is that the secondary maps added this way become rasta images,
you can not search the text or turn their layers independently on or off.
Also the image positioning is a percentage of the main map page size.  If
any images or changes to the survey data or output parameters change the
size of the page, the relative position of the various components will
change.  Tolerable for a one-off creation, but for long term management of
an evolving cave system a nightmare.  At least the scales are preserved.

Probably better to make single projection maps with Therion and use some
other application to patch together the various pdfs??

Other ideas?

Bruce




[Therion] Strange scale-dependent Metapost error

2009-03-09 Thread Duncan Collis
On Mon, Mar 9, 2009 at 7:51 PM, Martin Budaj  wrote:
> I think that it is not related to the bug in the dataset of Martin
> Sluka. Could you send (to list or to me) some minimal sample?

It may be difficult to reduce the problem to a minimal sample; if I
change anything the survey compiles without errors.  I have tried:

Changing the scale (problem only at 1:1000)
Commenting out scraps (problem goes away if any scrap is commented out)
Using different symbol set (problem goes away if default symbols are
used rather than my customised ones)
Commenting out custom symbol definitions (problem goes away if any
custom symbol definition is commented out)
Selecting more maps (a map that contains the 'problem' map compiles at
1:1000 without errors)
Removing non-selected maps (if comment out in the master .th file for
the area maps that aren't selected in the .thconfig file that causes
the problem, it compiles without errors).
Compiling other parts of the system or area works OK.

So - it looks like if you want to see the problem for yourself, I'll
have to send you my whole data set (which I'm quite happy to do) along
with my symbol definitions.

>> The new snapshot has changed (improved) the MetaPost and TeX macros, so
>> there should be a problem.
>
> Unfortunately, latest fixes are not yet released.

FYI I'm using 5.2.7 on WinXP

Duncan.



[Therion] How to produce outputs integrating various types of maps ?

2009-03-09 Thread Xavier Pennec
Inkscape can now import and combine the pdfs porduced by therion but it 
does not export back correctly all features in pdf (I used the save as 
pdf with cairo lib). In particular, lines that are clipped at the 
outline are not any more (and so are grid crosses outside the page 
space) and filling patterns (e.g. water) are screwd up. Does anyone have 
a trick to get around that?

Xavier

roger at r-schuster.de a écrit :
> Hi all,
>
>   
>> So my problem is that I would like to produce 
>> a single output (typically pdf), including
>> several maps, usually one standard map, 
>> plus one extended elevation, but there 
>> could be several of them.
>> 
>
> You may produce one PDF for each projection and merge / arrange them with 
> Inkscape. http://www.inkscape.org It can import the PDFs generated by Therion.
>
> Roger
> ___
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>   

-- next part --
A non-text attachment was scrubbed...
Name: Xavier_Pennec.vcf
Type: text/x-vcard
Size: 166 bytes
Desc: not available
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20090309/7a807556/attachment.vcf>


[Therion] Chinese characters in Therion.

2009-03-09 Thread Stelios Zacharias

I was struggling with Greek text until the latest snapshot. Greek is 
more western than not, though.

Stelios


At 03:11 09/03/2009, you wrote:
>On Mon, Mar 9, 2009 at 4:21 AM, Martin Budaj  wrote:
> > It should work with the new font setup (you need latest snapshot). You
> > just need to set pdf-fonts in therion.ini file (search thbook for
> > pdf-fonts keyword) to reference Chinese fonts (you can enter the same
> > font name for all styles).
>
>It works !!  I was expecting this to be difficult, but it just works
>(on Win32, I'll try on my Linux system later).
>
>However, while all Chinese fonts contain western characters, it' not
>unusual for the typography to suck when using western characters from
>a Chinese font.  Thus, if I specify that Therion should use a Chinese
>font for all typefaces (, , ,  and ), it means
>that I will likely get ugly text for things that are in western
>script.  Of course, I can mark all Chinese text as, say , and
>specify a Chinese font only for that style, but that means the 
>style is no longer available for use for western text.
>
>Ideally I'd like to do something like:
>
>This is western text in a Roman font This is western text in a
>Sans-Serif font [This is Chinese text in a Song font] lang=zh>[This is Chinese text in a Hei font]
>
>... and specify fonts per language. Then it could be possible to have
>multilingual Therion source files, and to choose the output language
>in the thconfig file.
>
>In fact, for a Chinese user (I don't think there are any yet), ,
>, ,  and  mightn't make a whole lots of sense anyway;
>while Hei script is kind of like sans-serif and Song is similarly a
>bit like using a serif font, italics and boldface aren't really used
>in Chinese.  Probably there are similar issues in other languages.
>Maybe it would make more sense (and be more generally applicable) to
>specify fonts according to use, ie, label, comment, title, with
>variants for emphasis, etc, and allow the user to specify an
>appropriate font for each?
>
>Does anyone else use Therion in either a multilingual environment or
>with a non-western language?
>
>Duncan.
>___
>Therion mailing list
>Therion at speleo.sk
>http://mailman.speleo.sk/mailman/listinfo/therion




[Therion] Strange scale-dependent Metapost error

2009-03-09 Thread Duncan Collis
On Mon, Mar 9, 2009 at 1:09 PM, Duncan Collis  
wrote:

> The problem disappears when a particular scrap is commented-out in the
> map definition, although I can't see anything particularly strange
> about that scrap.

In fact, further investigation shows that commenting out any one of
the 18 scraps in the survey makes the error go away; also it works
without any scraps commented out at 1:999, 1:999.9, 1:1000.1 and
1:1001.

So - it looks like I can work around the problem by either omitting a
small part of the survey or by outputting at not-quite 1:1000, but it
seems to me that something is wrong here!

Duncan.



[Therion] Strange scale-dependent Metapost error

2009-03-09 Thread Duncan Collis
Hi,

I have a survey which compiles correctly at 1:500 or 1:2000, but at
1:1000 produces the following error from Metapost:

This is MetaPost, Version 0.641 (Web2c 7.5.2) (mem=mpost 2004.3.2)  9
MAR 2009 13:06
**data.mp
(data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007]
[4008] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]
[17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31]
[32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46]
[47] [48] [49] [50] [51] [52] [53] [54] [55]
! I can't find file `mptextmp'.
 input mptextmp


   endgroup

   ,
s_scalebar->...mal((EXPR0))&"\thinspace"&(EXPR2)),
  origin);endgroup
l.10077 ...ar(100, 1, "\thfb\char109 \mainfont{}")
  ;
Please type another input file name
! Emergency stop.
 input mptextmp


   endgroup

   ,
s_scalebar->...mal((EXPR0))&"\thinspace"&(EXPR2)),
  origin);endgroup
l.10077 ...ar(100, 1, "\thfb\char109 \mainfont{}")
  ;
*** (job aborted, file error in nonstop mode)




The problem disappears when a particular scrap is commented-out in the
map definition, although I can't see anything particularly strange
about that scrap.

How should I go about debugging this?

Duncan.



[Therion] Strange scale-dependent Metapost error

2009-03-09 Thread Martin Budaj
On Mon, Mar 9, 2009 at 9:53 AM, Martin Sluka  wrote:
>
> On 9.3.2009, at 6:58, Duncan Collis wrote:
>
>> So - it looks like I can work around the problem by either omitting a
>> small part of the survey or by outputting at not-quite 1:1000, but it
>> seems to me that something is wrong here!
>
> It is a bug, I discovered it yesterday too.

I think that it is not related to the bug in the dataset of Martin
Sluka. Could you send (to list or to me) some minimal sample?

> The new snapshot has changed (improved) the MetaPost and TeX macros, so
> there should be a problem.

Unfortunately, latest fixes are not yet released.

Martin



[Therion] Strange scale-dependent Metapost error

2009-03-09 Thread Martin Sluka

On 9.3.2009, at 6:58, Duncan Collis wrote:

> So - it looks like I can work around the problem by either omitting a
> small part of the survey or by outputting at not-quite 1:1000, but it
> seems to me that something is wrong here!

It is a bug, I discovered it yesterday too.

The new snapshot has changed (improved) the MetaPost and TeX macros,  
so there should be a problem.

m.



[Therion] Chinese characters in Therion.

2009-03-09 Thread Martin Sluka

On 9.3.2009, at 2:11, Duncan Collis wrote:

> Does anyone else use Therion in either a multilingual environment or
> with a non-western language?

Exactly the same problem:

A map which should be generated in English (for general purposes), in  
Albanian (the cave is in Kosovo) and in Slovakian (explorers and  
surveyors are Slovaks).

To three sets of .th2 files is not the best idea. :)

m.



[Therion] RES: How to produce outputs integrating various types of maps ?

2009-03-09 Thread Fabio Kok Geribello
Eric,
 Last December, Paul Karoshi sent us an very good example on how to arrange
plan and profile in the same pdf file...

Search in the archives and you find his e-mail... I think the subject was
something like: two scraps one river

Regards,
Fabio

-Mensagem original-
De: therion-bounces at speleo.sk [mailto:therion-bounces at speleo.sk] Em nome 
de
Eric Madelaine
Enviada em: segunda-feira, 9 de março de 2009 04:40
Para: List for Therion users
Assunto: [Therion] How to produce outputs integrating various types of maps
?

Hello guys,

The question is in the title...
I don't remember having seen this already on the list, and I have been 
through the wiki with no success.
So my problem is that I would like to produce a single output (typically 
pdf), including several maps, usually one standard map, plus one 
extended elevation, but there could be several of them.

One way to do this is to produce svg, and to use an external svg tool to 
assemble stuff together. However the svg output is not always 100% 
perfect... and it would not solve all problems , like having a single 
legend, etc.
Is there a way to specify a "mixed" layout ?

Eric.

___
Therion mailing list
Therion at speleo.sk
http://mailman.speleo.sk/mailman/listinfo/therion




[Therion] Chinese characters in Therion.

2009-03-09 Thread Duncan Collis
On Mon, Mar 9, 2009 at 4:21 AM, Martin Budaj  wrote:
> It should work with the new font setup (you need latest snapshot). You
> just need to set pdf-fonts in therion.ini file (search thbook for
> pdf-fonts keyword) to reference Chinese fonts (you can enter the same
> font name for all styles).

It works !!  I was expecting this to be difficult, but it just works
(on Win32, I'll try on my Linux system later).

However, while all Chinese fonts contain western characters, it' not
unusual for the typography to suck when using western characters from
a Chinese font.  Thus, if I specify that Therion should use a Chinese
font for all typefaces (, , ,  and ), it means
that I will likely get ugly text for things that are in western
script.  Of course, I can mark all Chinese text as, say , and
specify a Chinese font only for that style, but that means the 
style is no longer available for use for western text.

Ideally I'd like to do something like:

This is western text in a Roman font This is western text in a
Sans-Serif font [This is Chinese text in a Song font] [This is Chinese text in a Hei font]

... and specify fonts per language. Then it could be possible to have
multilingual Therion source files, and to choose the output language
in the thconfig file.

In fact, for a Chinese user (I don't think there are any yet), ,
, ,  and  mightn't make a whole lots of sense anyway;
while Hei script is kind of like sans-serif and Song is similarly a
bit like using a serif font, italics and boldface aren't really used
in Chinese.  Probably there are similar issues in other languages.
Maybe it would make more sense (and be more generally applicable) to
specify fonts according to use, ie, label, comment, title, with
variants for emphasis, etc, and allow the user to specify an
appropriate font for each?

Does anyone else use Therion in either a multilingual environment or
with a non-western language?

Duncan.



[Therion] How to produce outputs integrating various types of maps ?

2009-03-09 Thread Eric Madelaine
Hello guys,

The question is in the title...
I don't remember having seen this already on the list, and I have been 
through the wiki with no success.
So my problem is that I would like to produce a single output (typically 
pdf), including several maps, usually one standard map, plus one 
extended elevation, but there could be several of them.

One way to do this is to produce svg, and to use an external svg tool to 
assemble stuff together. However the svg output is not always 100% 
perfect... and it would not solve all problems , like having a single 
legend, etc.
Is there a way to specify a "mixed" layout ?

Eric.




[Therion] Chinese characters in Therion.

2009-03-09 Thread Duncan Collis
> It should work with the new font setup (you need latest snapshot). You
> just need to set pdf-fonts in therion.ini file (search thbook for
> pdf-fonts keyword) to reference Chinese fonts (you can enter the same
> font name for all styles).

Great!  I'll give it a try and report back...

Duncan.