old dvi file

David A. Bandel david.bandel at gmail.com
Thu Feb 5 05:14:48 PST 2015


Jorge,

file is recognizing it as an apple file.  This will be from one of two
things, the magic number (first two bytes of the file) or the line endings
(most likely cause).  It's been a long time since I've seen a dvi file, but
if it has mac line endings, this is probably what is making it choke.

Linux (UNIX) uses a newline (line feed)
Windows uses line feed carriage return
Mac uses carriage return

I would suggest trying to replace the mac line endings with linux line
endings.

Only thing that comes to mind.

David-

On Wed, Feb 4, 2015 at 6:50 PM, Jorge Almeida <jjalmeida at gmail.com> wrote:

> I have a few very old dvi files that I need to convert to pdf. The
> problem is that the files were produced in a Mac Classic, and it seems
> the format is not recognized in linux:
>
> $ file f.dvi
> f.dvi: AppleSingle encoded Macintosh file
>
> $ dvips f.dvi
> This is dvips(k) 5.993 Copyright 2013 Radical Eye Software (
> www.radicaleye.com)
> dvips: ! Bad DVI file: first byte not preamble
>
> $ unsingle f.dvi
> f.dvi has no name for the mac file.
>
> (using unsingle is the only suggestion I got out of googling...)
>
> Needless to say, viewers like okular choke on it.
>
> I would love being able to forget I ever used a mac...
>
> Anyone been there?
>
> Jorge Almeida
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> http://mailman.celestial.com/mailman/listinfo/linux-users
>



-- 
Two things are infinite: the universe and human stupidity; and I'm not sure
about the the universe. -- Albert Einstein
Visit my web page at: http://david.bandel.us/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/linux-users/attachments/20150205/1dea5a44/attachment.html>


More information about the Linux-users mailing list