emacs-devel
[Top][All Lists]
Advanced

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

Re: Doc-view resizing


From: David Kastrup
Subject: Re: Doc-view resizing
Date: Thu, 15 Nov 2007 17:21:05 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> For the resizing: I didn't test the patch, but +/- will reconvert the
>> whole doc, right?  I think that's inacceptable slow.  Let's say you're
>> reading page 333 and now you hit `+'.  That will make page 1 current and
>> it'll need too much time till page 333 has been converted again.
>
> Yes, that's a problem, but the same problem occurs when the file
> gets modified and the buffer needs to be reverted (e.g. if you use
> auto-revert-mode).  I.e. the `reconvert' functionality would benefit
> from being able to transform page 333 first and the rest afterwards.

AUCTeX's preview-latex does that kind of thing.  This necessitates
talking to Ghostscript and, in the case of PostScript, parsing the DSC
comments.  While this sort of parsing should not be required for PDF,
I do not know enough about it and the Ghostscript interaction with
PDF, preview-latex uses pdf2dsc in order to convert PDF into a
pseudo-structured PostScript file including DSC comments, and then
basically works with that.

I would think that some of the code talking to Ghostscript and the
stuff parsing the DSC comments should be possible to be recycled from
there: the whole of preview-latex is copyright-assigned to the FSF.

-- 
David Kastrup




reply via email to

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