See https://github.com/koreader/koreader/pull/11900/files/316c6a0624a504e1ef8645dfbcfb068a73384d3b#r1615314584