Re: Conversion problems using Grace files

2002-02-18 Thread Herbert Voss
Angus Leeming wrote: > string const getFormatFromContents(string const & filename) > examines the file, and if it recognises the contents returns a string that is > the format name for those contents. You may think of those strings it returns > as extensions but really they aren't, they're form

Re: Conversion problems using Grace files

2002-02-18 Thread Angus Leeming
On Monday 18 February 2002 11:07 am, Herbert Voss wrote: > > Also, if you can't determine the format name from either > > getFORMATfromContents or from the list of currently available formats and > > their extensions, then you're screwed anyway. Best to just return string() > > and enable the rest

Re: Conversion problems using Grace files

2002-02-18 Thread Herbert Voss
On Mon, 18 Feb 2002, Angus Leeming wrote: > > this should be much more easier: > > > > instead of "user", I will return the file-extension, if present. > > Only when we can not detect a file type from the contents and > > have no extension than I return "user" > > Also, if you can't determine the

Re: Conversion problems using Grace files

2002-02-18 Thread Herbert Voss
On Mon, 18 Feb 2002, Angus Leeming wrote: > On Monday 18 February 2002 9:19 am, Herbert Voss wrote: > > On Mon, 18 Feb 2002, Angus Leeming wrote: > > > > > On Saturday 16 February 2002 5:31 pm, Herbert Voss wrote: > > > > I have no problem with > > > > > > > > \converter "user" "eps" "xmgrace -ha

Re: Conversion problems using Grace files

2002-02-18 Thread Angus Leeming
On Monday 18 February 2002 9:19 am, Herbert Voss wrote: > On Mon, 18 Feb 2002, Angus Leeming wrote: > > > On Saturday 16 February 2002 5:31 pm, Herbert Voss wrote: > > > I have no problem with > > > > > > \converter "user" "eps" "xmgrace -hardcopy -hdevice EPS $$i" "" > > > > > > Herbert > > > >

Re: Conversion problems using Grace files

2002-02-18 Thread Angus Leeming
On Monday 18 February 2002 9:19 am, Herbert Voss wrote: > On Mon, 18 Feb 2002, Angus Leeming wrote: > > > On Saturday 16 February 2002 5:31 pm, Herbert Voss wrote: > > > I have no problem with > > > > > > \converter "user" "eps" "xmgrace -hardcopy -hdevice EPS $$i" "" > > > > > > Herbert > > > >

Re: Conversion problems using Grace files

2002-02-18 Thread Herbert Voss
On Mon, 18 Feb 2002, Angus Leeming wrote: > On Saturday 16 February 2002 5:31 pm, Herbert Voss wrote: > > I have no problem with > > > > \converter "user" "eps" "xmgrace -hardcopy -hdevice EPS $$i" "" > > > > Herbert > > Sure, Herbert, but it is still rather ugly, specifying user1, user2 etc. If

Re: Conversion problems using Grace files

2002-02-18 Thread Angus Leeming
On Saturday 16 February 2002 5:31 pm, Herbert Voss wrote: > I have no problem with > > \converter "user" "eps" "xmgrace -hardcopy -hdevice EPS $$i" "" > > Herbert Sure, Herbert, but it is still rather ugly, specifying user1, user2 etc. If Rob wants to define an agr format, then let's let him.

Re: Conversion problems using Grace files

2002-02-17 Thread Herbert Voss
R. Lahaye wrote: > Herbert Voss wrote: > >>I have no problem with >> >>\converter "user" "eps" "xmgrace -hardcopy -hdevice EPS $$i" "" >> >> > > Neither have I. Thanks!! > Apparently I was not enough familiar with this type of conversion configuration. > It works fine now. it was a question o

Re: Conversion problems using Grace files

2002-02-17 Thread Kayvan A. Sylvan
On Mon, Feb 18, 2002 at 11:13:40AM +0900, R. Lahaye wrote: > files. In other words, the following is not possible: > > \converter "user1" "eps" "xmgrace -hardcopy -hdevice EPS $$i" "" > \converter "user2" "eps" "gnuplot -what_ever_option_to_EPS $$i" "" > > Regards, > Rob. I don't think that

Re: Conversion problems using Grace files

2002-02-17 Thread R. Lahaye
Herbert Voss wrote: > > I have no problem with > > \converter "user" "eps" "xmgrace -hardcopy -hdevice EPS $$i" "" > Neither have I. Thanks!! Apparently I was not enough familiar with this type of conversion configuration. It works fine now. Are my following conclusions correct (I can't find

Re: Conversion problems using Grace files

2002-02-16 Thread Herbert Voss
R. Lahaye wrote: >>lyx gets the filetype from its contents, not from the >>extension. If it's an unknown one, like your grace >>than it returns "user". You can define a converter >> >>\converter "user" "eps" "gracebat -hdevice EPS $$i" "" >> > > Still doesn't work; but leave it at this point; wi

Re: Conversion problems using Grace files

2002-02-15 Thread Allan Rae
On Fri, 15 Feb 2002, R. Lahaye wrote: > Still doesn't work; but leave it at this point; will do > the manual version instead since I'm running out of time :(. Just take a look at the bitmap stuff for the external inst and use that instead. No converter support so you need to say explicitly in th

Re: Conversion problems using Grace files

2002-02-14 Thread R. Lahaye
Herbert Voss wrote: > > lyx gets the filetype from its contents, not from the > extension. If it's an unknown one, like your grace > than it returns "user". You can define a converter > > \converter "user" "eps" "gracebat -hdevice EPS $$i" "" Still doesn't work; but leave it at this point; will

Re: Conversion problems using Grace files

2002-02-14 Thread Allan Rae
On Fri, 15 Feb 2002, Herbert Voss wrote: > R. Lahaye wrote: > > > I was wondering whether the Preferences/Conversion can already be > > used to load directly Grace-format files (a 2D graphics package), > > and have these converted to EPS (from where LyX can take over). > > I tried but failed. > >

Re: Conversion problems using Grace files

2002-02-14 Thread Herbert Voss
R. Lahaye wrote: > I was wondering whether the Preferences/Conversion can already be > used to load directly Grace-format files (a 2D graphics package), > and have these converted to EPS (from where LyX can take over). > I tried but failed. getExtFromContents() returns "user" as ext when it's n

Conversion problems using Grace files

2002-02-14 Thread R. Lahaye
Hi, I'm running LyX CVS. I was wondering whether the Preferences/Conversion can already be used to load directly Grace-format files (a 2D graphics package), and have these converted to EPS (from where LyX can take over). I tried but failed. I did following in Prefences/Conversion: Add a new f