|
|
|
@ -120,7 +120,9 @@ function ReaderHandMade:onToggleHandmadeFlows()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function ReaderHandMade:addToMainMenu(menu_items)
|
|
|
|
|
if Device:isTouchDevice() then
|
|
|
|
|
if not Device:isTouchDevice() then
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
menu_items.handmade_toc = {
|
|
|
|
|
text = _("Custom table of contents") .. " " .. self.custom_toc_symbol,
|
|
|
|
|
checked_func = function() return self.toc_enabled end,
|
|
|
|
@ -152,14 +154,14 @@ function ReaderHandMade:addToMainMenu(menu_items)
|
|
|
|
|
callback = function()
|
|
|
|
|
UIManager:show(InfoMessage:new{
|
|
|
|
|
text = _([[
|
|
|
|
|
If the book has no table of contents or you would like to substitute it with your own, you can create a custom TOC. The original TOC (if available) will not be altered.
|
|
|
|
|
If the book has no table of contents or you would like to substitute it with your own, you can create a custom TOC. The original TOC (if available) will not be altered.
|
|
|
|
|
|
|
|
|
|
You can create, edit and remove chapters:
|
|
|
|
|
- in Page browser, by long-pressing on a thumbnail;
|
|
|
|
|
- on a book page, by selecting some text to be used as the chapter title.
|
|
|
|
|
(Once you're done building it and don't want to see the buttons anymore, you can disable Edit mode.)
|
|
|
|
|
You can create, edit and remove chapters:
|
|
|
|
|
- in Page browser, by long-pressing on a thumbnail;
|
|
|
|
|
- on a book page, by selecting some text to be used as the chapter title.
|
|
|
|
|
(Once you're done building it and don't want to see the buttons anymore, you can disable Edit mode.)
|
|
|
|
|
|
|
|
|
|
This custom table of contents is currently limited to a single level and can't have sub-chapters.]])
|
|
|
|
|
This custom table of contents is currently limited to a single level and can't have sub-chapters.]])
|
|
|
|
|
})
|
|
|
|
|
end,
|
|
|
|
|
keep_menu_open = true,
|
|
|
|
@ -209,18 +211,18 @@ function ReaderHandMade:addToMainMenu(menu_items)
|
|
|
|
|
callback = function()
|
|
|
|
|
UIManager:show(InfoMessage:new{
|
|
|
|
|
text = _([[
|
|
|
|
|
Custom hidden flows can be created to exclude sections of the book from your normal reading flow:
|
|
|
|
|
- hidden flows will automatically be skipped when turning pages within the regular flow;
|
|
|
|
|
- pages part of hidden flows are assigned distinct page numbers and won't be considered in the various book & chapter progress and time to read features;
|
|
|
|
|
- following direct links to pages in hidden flows will still work, including from the TOC or Book map.
|
|
|
|
|
Custom hidden flows can be created to exclude sections of the book from your normal reading flow:
|
|
|
|
|
- hidden flows will automatically be skipped when turning pages within the regular flow;
|
|
|
|
|
- pages part of hidden flows are assigned distinct page numbers and won't be considered in the various book & chapter progress and time to read features;
|
|
|
|
|
- following direct links to pages in hidden flows will still work, including from the TOC or Book map.
|
|
|
|
|
|
|
|
|
|
This can be useful to exclude long footnotes or bibliography sections.
|
|
|
|
|
It can also be handy when interested in reading only a subset of a book.
|
|
|
|
|
This can be useful to exclude long footnotes or bibliography sections.
|
|
|
|
|
It can also be handy when interested in reading only a subset of a book.
|
|
|
|
|
|
|
|
|
|
In Page browser, you can long-press on a thumbnail to start a hidden flow or restart the regular flow on this page.
|
|
|
|
|
(Once you're done building it and don't want to see the button anymore, you can disable Edit mode.)
|
|
|
|
|
In Page browser, you can long-press on a thumbnail to start a hidden flow or restart the regular flow on this page.
|
|
|
|
|
(Once you're done building it and don't want to see the button anymore, you can disable Edit mode.)
|
|
|
|
|
|
|
|
|
|
Hidden flows are shown with gray or hatched background in Book map and Page browser.]])
|
|
|
|
|
Hidden flows are shown with gray or hatched background in Book map and Page browser.]])
|
|
|
|
|
})
|
|
|
|
|
end,
|
|
|
|
|
keep_menu_open = true,
|
|
|
|
@ -299,10 +301,8 @@ function ReaderHandMade:addToMainMenu(menu_items)
|
|
|
|
|
}
|
|
|
|
|
end,
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ReaderHandMade:updateHandmagePages()
|
|
|
|
|
if not self.ui.rolling then
|
|
|
|
|
return
|
|
|
|
|