See https://github.com/Frenzie/koreader/commit/75d02a90380a813b14bb39dac028c894dc4d589a#commitcomment-36008019