Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

Re: [IEEE 1788]: Post-ballot comment



On 2015-02-11 16:40:50 +0000, John Pryce wrote:
> Christian: I think this is a time when it would be very useful to do
> a "latexdiff" of this against the version that was submitted for
> sponsor ballot. Are you able to do that?

In the mean time, my pdfwdiff script (attached) can be useful to
see text changes between two PDF files. The output can be piped
to "less -R".

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
#!/usr/bin/env zsh

# Diffs two PDF files using pdftotext and wdiff.

emulate -LR zsh

if [[ $# -lt 2 ]] then
  echo "Usage: pdfwdiff [diff_options] file1.pdf file2.pdf" >&2
  return 1
fi

diff -u "$@[1,-3]" <(pdftotext "$@[-2]" -) <(pdftotext "$@[-1]" -) | \
  wdiff -n -w $'\033[30;41m' -x $'\033[0m' -y $'\033[30;42m' -z $'\033[0m' -d

# $Id: pdfwdiff 56518 2012-11-22 09:39:03Z vinc17/xvii $