towards draft 3 / virtio 1.0

From
Michael S. Tsirkin
Date
2014-06-25T12:24:00+00:00
ID
Thread
towards draft 3 / virtio 1.0
On Wed, Jun 25, 2014 at 01:17:53PM +0100, Pawel Moll wrote:
> On Tue, 2014-06-24 at 18:22 +0100, Michael S. Tsirkin wrote: >
> Interesting. >
> I am guessing this won't cover all cases as well >
> as my hack does though. >
> For example: > >  >
> DIFaddbegin item[DEVICE_NEEDS_RESET (64)] DIFadd{Indicates that the >
> device has experienced >
>
an error from which it can't recover. > > } > >  >
> DEVICE_NEEDS_RESET won't be blue, will it? >
> Correct, it wouldn't. But I think I found an answer to this as well. We
> need to add extend FLOATENV to cover tabular environment as well, so the
> latexdiff invocation looks like this:  OK I will try this but I note this gives us back DIFaddbegin/DIFaddend. You are saying with egingroup/endgroup color stack overflow errors go away?  How about footnotes? Is there a way to fix them without an external script? Would be nice if the footnote mark was also crossed-out ...  And since I'm asking for ponies anyway ... do you happen to understand why does latexdiff do this: DIFdelbegin DIFdel{.}footnote{DIFdeltext{In this case, deflation advice is merely a courtesy }}
%DIFAUXCMD addtocounter{footnote}{-1}%DIFAUXCMD DIFdelend DIFaddbegin footnote{DIFaddtext{In this case, deflation advice is merely a courtesy. }}DIFadd{.
}DIFaddend  why does it not detect that we merely added a single dot at the end?  It seems to do if fine in other cases.
> 8<

-----------
> latexdiff-fast -p diffpreamble.tex old/flat.tex new/flat.tex --config "FLOATENV=(?:figure table tabular plate)[wd*@]*"
> virtio-diff.tex
> 8<

-----------

>
> and the diffpreamble.tex like this: >
> 8<

-----------

> %DIF FONTSTRIKE PREAMBLE
> RequirePackage[normalem]{ulem}
> providecommand{DIFaddtex}[1]{sf #1}
> providecommand{DIFdeltex}[1]{footnotesize sout{#1}} > %DIF END FONTSTRIKE PREAMBLE > %DIF COLOR PREAMBLE
> RequirePackage{color}
> providecommand{DIFaddbegin}{egingroupcolor{blue}}
> providecommand{DIFaddend}{endgroup}
> providecommand{DIFdelbegin}{egingroupcolor{red}hypersetup{linkcolor=red,urlcolor=red}}
> providecommand{DIFdelend}{hypersetup{linkcolor=green,urlcolor=green}endgroup} > %DIF END COLOR PREAMBLE > % Standard DIFadd and DIFdel are redefined as DIFaddtex and DIFdeltex > % when hyperref package is included. > %DIF HYPERREF PREAMBLE
> providecommand{DIFadd}[1]{	exorpdfstring{DIFaddtex{#1}}{#1}}
> providecommand{DIFdel}[1]{	exorpdfstring{DIFdeltex{#1}}{}} > %DIF END HYPERREF PACKAGE >  > %DIF FLOATSAFE PREAMBLE: SEEMS UNUSED BUT JUST IN CASE
> providecommand{DIFaddFL}[1]{{color{blue}DIFadd{#1}}}
> providecommand{DIFdelFL}[1]{{color{red}DIFdel{#1}}}
> providecommand{DIFaddbeginFL}{}
> providecommand{DIFaddendFL}{}
> providecommand{DIFdelbeginFL}{}
> providecommand{DIFdelendFL}{} > %DIF END FLOATSAFE PREAMBLE
> 8<

-----------

>
> Pawel