texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] address@hidden: Bug#154150: command line export]


From: David Allouche
Subject: Re: [Texmacs-dev] address@hidden: Bug#154150: command line export]
Date: Sat, 28 Sep 2002 17:24:41 +0200
User-agent: Mutt/1.4i

On Thu, Aug 08, 2002 at 11:23:49PM +0200, Joris van der Hoeven wrote:
> 
> > I received the following feature request, which seems sensible to me.
> 
> Yes, we should indeed automize file conversions.
> Lyx has quite a clean system for this, which we might reproduce.
> David: can you put this on the wish list. There has been a contribution
> by Jorik Blaas too in "contributions" on the Wiki.

That is currently partially implemented. See:

http://alqua.com/tmresources/wish%20-%20TeXmacs%20import%20and%20export%20via%20command%20line

However, that was not my main point in posting this message...

 
> > BTW, did anyone contact the maintainer of the file(1) utility to
> > add texmacs files? 
> 
> No... Would you be willing to do so?

I would handle this (contacting Debian and upstream maintainers), but
first I would like the magic number definition to be validated.

To learn TeXmacs to the file(1) command, just add the following to
your /etc/magic file.

# TeXmacs
0       string  <TeXmacs|       TeXmacs document text

Similarly, the mime magic (as in /usr/share/misc magic.mime) is:

# TeXmacs
0       string  <TeXmacs|       text/texmacs

I tried to design smarter magic for file, in order to allow for
extraction of the version number as well. But I was unable to find
good way to prevent the trailing ">" at the end of the first line of
being globbed along, since file(1) currently lacks regexp support.

-- 
_.      _    .   GNU TeXmacs -- Writing is a pleasure.
 |\     |    |\       Home page -- http://www.texmacs.org
 | \ ,-.|,--.| \      Resources -- http://alqua.com/tmresources
 |  \|  |,-+||--\            TeXmacs is NOT a LaTeX front-end
-+--'`- \`-'\-   -           and is unrelated to emacs.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]