View Single Post
Old 07-30-2013, 01:45 PM   #101
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Geeky View Post
Is there a way to prevent the firmware on overwriting the dictionaries upon syncing? At least that's the behaviour I encountered. Whenever the Kobo syncs, the custom dictionaries get replaced with the stock ones. Usually in a situation like this I'd go with a chattr or chflags command and set the files flag to immutable. Now I guess it won't be that easy on the Kobo. Anyone got a workaround for this problem?
I don't know how to prevent that the dictionaries get replaced, but this is how I deal with it.
I have a directory /mnt/onboard/customdict/ that contains my custom dictionaries, and this script
Code:
#!/bin/sh
DICTPATH="/mnt/onboard/.kobo/dict/"
CUSTOMDICTPATH="/mnt/onboard/customdict/"
for f in $CUSTOMDICTPATH*.zip; do
	if [ ! -e "$DICTPATH$(basename "$f")" ]; then
		cp "$f" "$DICTPATH"
	elif [ $(stat -c%s $f) -ne $(stat -c%s $DICTPATH$(basename "$f")) ]; then
		cp "$f" "$DICTPATH"
	fi
done
Previously, I used to start this script from rcS with every power circle. Since the introduction of kobo launcher, I use this application for starting it.
Quote:
Originally Posted by Geeky View Post
Some dictionaries offer to edit the search term (i.e. the marked word/phrase), by taping the arrow in the upper left corner. Some don't allow this. Now obviously when I install custom dictionaries, I'd like to replace only "editable" ones. Or is there a way to change that behaviour, f.e. by editing the mysql database file?
I don't know a solution for this.
tshering is offline   Reply With Quote