Added two page spread detection, and a small cleanup. - #78
Conversation
…s wider than they are tall and assumes they are dual page spreads displaying them alone. Also a small cleanup in init.lua, duplicate action.
OGKevin
left a comment
There was a problem hiding this comment.
Thanks for the PR. It looks alright indeed.
Can you update the function documentations accordingly, with the new behaviour and update the user docs documenting the new setting.
Both for the dispatcher page and config page:
|
Added a second commit with the changes to documentation. Take a look. |
|
Can you fix the formatting linters and luacheck. Next to this, how does bookmarking work here? Would most likely need to be something along the lines of: comicreader.koplugin/src/readerpaging.lua Lines 1025 to 1029 in 7f61091 |
Added a "Detect Spreads" option in Document Settings. Checks for pages wider than they are tall and assumes they are dual page spreads displaying them alone. Also a small cleanup in init.lua, duplicate action.
I'm a python guy, I used Gemini to write the change. Looks ok to me and I tested it on my kobo.