View Single Post
Old 02-25-2014, 10:47 AM   #957
dsmid
Linux devotee
dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.
 
dsmid's Avatar
 
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
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')"
dsmid is offline   Reply With Quote