View Single Post
Old 03-31-2023, 02:11 PM   #70
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,894
Karma: 12981955
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by rkomar View Post
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
Attached Files
File Type: txt edit-epub.txt (2.2 KB, 230 views)
neil_swann80 is offline   Reply With Quote