Thread: Comparing epubs
View Single Post
Old 05-01-2013, 01:45 PM   #11
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
Quick solution for single .(x)html file would be to use Sigil feature "Open With". You have to open two Sigils with books to compare, right click in both of them the section you want to compare and open with something like this script:
Code:
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

if [ -e "$HOME/.CmpFiles" ] 
then
  echo -e "${1}\n">>$HOME/.CmpFiles
  files=`cat $HOME/.CmpFiles`
  xxdiff $files
  rm $HOME/.CmpFiles
 else
 echo -e "${1}\n">$HOME/.CmpFiles
fi

IFS=$SAVEIFS
Instead of xxdiff you could use program of your choice.
This is for Linux of course but must be doable in Windows too.
varlog is offline   Reply With Quote