It would be nice to have a chance to put your own (localized) text in personal info instead of "If found,...". (cover-extract could read the text from a file).
And converting those ugly unicode escape sequences in com.lab126.booklet.settings.preferences to UTF-8 would be nice as well:
Code:
# Extract the info from the settings (convert linefeeds to semicolons to avoid ending up with an unreadable mess for LF heavy strings. Remember that 60px is *small*! ImageMagick takes care of wordwrapping
if [ -x /usr/bin/uconv ] ; then
UCONV=uconv -x 'Hex/Java-Any' -f iso-8859-1 -t utf-8
else
UCONV=cat
fi
if [ -f "${LINKSS_BASEDIR}/pinfo_header" ] ; then
pinfo_header=$(cat "${LINKSS_BASEDIR}/pinfo_header")
else
pinfo_header="If found, please contact: "
fi
pinfo_msg="${pinfo_header} $(grep PERSONAL_INFO /var/local/java/prefs/com.lab126.booklet.settings.preferences | $UCONV | cut -d= -f2 | sed 's/\\n/; /g')"