Quote:
Originally Posted by rkomar
sh_ivtool uses the OpenContents() InkView API function to display the lists of files. PocketBook recently ripped that function out of the library, so no programs that use it will work properly anymore. They haven't provided a replacement as far as I know, so there isn't anything I can do about it.
|
Ah, I see. That's a shame. Thanks for the swift reply though.
For anyone interested I've written a rather clumsy workaround to the "edit-epub.app" using the pi text editor to list and select the files to be edited. The section of code I've changed is shown below and the full code attached as a text file.
Code:
# Edit whatever files are chosen
$SH_IVTOOL -s "Add a . character to the end of the file(s) you wish to edit, then save and quit"
if [ "$EXT" == "" ]; then EXT=""; elif [ "${EXT:0:1}" != "." ]; then EXT=".${EXT}"; fi
for f in `find "./" -iname "*${EXT}" -type f -print`; do echo "${f:1}" >> "edit_epub.txt"; done
if [ -e "edit_epub.txt" ]; then $PI "${TMPDIR}/edit_epub.txt"; fi
for f in `grep '[.]$' "edit_epub.txt"`; do echo "${f%.}" >> "edit_epub2.txt"; done
if [ -e "edit_epub2.txt" ]; then
lines=$(cat "edit_epub2.txt"); for line in $lines; do $PI "${TMPDIR}${line}"; done
else
$SH_IVTOOL -s "No changes made. Deleting temporary files."
exit -1
fi
if [ -e edit_epub.txt -o -e edit_epub2.txt ]; then rm edit_epub*; fi