2013-07-10 07:10:38 +00:00
|
|
|
#!/bin/sh
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
|
|
|
|
# we're always starting from our working directory
|
|
|
|
cd /mnt/onboard/.kobo/koreader/
|
|
|
|
|
|
|
|
# export trained OCR data directory
|
|
|
|
export TESSDATA_PREFIX="data"
|
|
|
|
|
|
|
|
# export dict directory
|
|
|
|
export STARDICT_DATA_DIR="data/dict"
|
|
|
|
|
2013-12-16 10:34:02 +00:00
|
|
|
# stop Nickel
|
|
|
|
killall -STOP nickel
|
|
|
|
|
2014-02-09 21:10:29 +00:00
|
|
|
# store the content of the framebuffer
|
2014-03-10 15:01:29 +00:00
|
|
|
#dd if=/dev/fb0 of=.last_screen_content
|
2014-02-09 21:10:29 +00:00
|
|
|
|
2013-07-10 07:10:38 +00:00
|
|
|
# finally call reader
|
2013-08-06 10:03:10 +00:00
|
|
|
./reader.lua /mnt/onboard 2> crash.log
|
2013-07-10 07:10:38 +00:00
|
|
|
|
|
|
|
# continue with nickel
|
2014-03-10 15:01:29 +00:00
|
|
|
#cat .last_screen_content | /usr/local/Kobo/pickel showpic
|
|
|
|
#rm .last_screen_content
|
2013-12-16 10:34:02 +00:00
|
|
|
killall -CONT nickel
|