-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BookMap on devices with useDPadAsActionKeys() #11916
Conversation
frontend/ui/widget/bookmapwidget.lua
Outdated
Book map displays an overview of the book content. | ||
The book map provides a summary of the book's content, showing chapters and pages visually. If statistics are enabled, black bars represent pages already read (gray for pages read in the current session), with varying heights based on reading time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I somehow read "Book map" as a thing, like "iPad Air", so "The book map" sounds odd to me.
Also, "provides a summary" feels misleading, summary implying a bunch of words to me.
"overview" (as a view over, from above, like a plan) feels more true to the feature.
"showing chapters and pages visually" summarize with less info the 2 list items you removed below. I get someone will understand that anyway, but still, again, style vs. precision.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is not always the case that the sum of its parts equals the meaning of a word, regarding overview: yes it originally meant that (view from above) but now that is archaic, on its way out, and the word means primarily “ to review, summarise, take an overview of.”
summary is “the essence or essential part of something”
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me, provided it's all technically accurate but you'd have said something about that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're ok with?
-Book map displays an overview of the book content
+The book map provides a summary of the book's content
You don't share my non-native-english feelings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Define
it
. The current wording, or the diff chunk in question in this PR? (i.e., ack or nack on the change ;)).
I wouldn't change "book map" myself because it's a thing we decided on a couple of years ago that I'm fine with. It's like how in Excel you'd say "AutoSum does this and that" rather than "The AutoSum." But "the book map" sounds fine too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't buy these the shoes street cred/crap subtleties. That's now how we do marketing here !
Anyway, the only reason for going with "The book map" is that translators already went that way :/
"De paginakaart toont een overzicht van de boekinhoud.\n"
"O mapa do livro exibe uma visão geral do conteúdo do livro.\n"
"Die Buchkarte zeigt eine Ã~\bersicht über den Inhalt des Buches.\n" (at least, German kept the Uppercase :))
"El mapa del libro muestra una visión general del contenido del libro.\n"
"La carte du livre affiche un aperçu du contenu du livre.\n"
"Il navigatore delle pagine mostra miniature delle pagine.\n" (Italian mixed Book map with Page browser)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so what is the final verdict here then...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do I change it or what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go with "Book map" without the determiner. @poire-z wrote it after all. ;-)
and adding scrolling on emulator
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
I'm mildly confused. Doesn't the PR imply you've already tested it? But anyway, so you're done with it? |
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Yes, done here. by testing i mean, testing it for real, as a golden master or release candidate as apple calls them. Not just locally. |
Alright, I'll leave the "Left" situation unresolved. |
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
thank god we are testing this, so there is a problem: KOReader won't open any ePubs or PDFs, I'm getting the following error "No reader engine for this file or invalid file"
|
How do you test when you make changes to an open PR ? |
Looks like you just need to change the base class (and change - local ReaderThumbnail = WidgetContainer:extend{}
+ local ReaderThumbnail = InputContainer:extend{ InputContainer does create |
The issue probably lies in keeping track of changes without git. It's a good thing to try to gain a little bit more familiarity with. |
What i think happened here, was that this 'impromptu' change never actually made it to my local build. But chill, this is why I wanted to test the actual release. I will update it in a bit once back home. |
No, an "actual release" is not for that. You should check your Lua files on your device(s) before we merge and ship it to the world of nightliy users. So no more "impromptus"... We asked you if you had tested it, you should have tested it. |
I just want to make something very clear. I have been testing all of it. I have exclusively used the K4 for the last two or three weeks, putting everything through its paces. I am glad to have found issues and to have been able to fix them before other people get to update their devices. Having said, as I said, the move from readerUI to rederthumbnail (which is what I called the "impromptu change") wasn't originally planned and somehow I missed doing it on my Kindle. I am not blaming anyone of course, but yes, I should have caught it earlier, but alas, here we are. So what is the point of testing things if not to find issues? I am genuinely confused by that. In any case, thank you! (once again) should I remove - local WidgetContainer = require("ui/widget/container/widgetcontainer") ? |
fixing bug reported here #11916 (comment)
Merging a PR is never without danger and niche conditions can fly under the radar, but such basic testing should occur prior to merging a PR. |
I’ll consider this my “lesson learnt” moment and will make sure that it does not happen again. and well, at least we can print on a Tuesday. |
Does this help? diff --git a/frontend/apps/reader/modules/readerhighlight.lua b/frontend/apps/reader/modules/readerhighlight.lua
index 57c9c5489..ab665ddca 100644
--- a/frontend/apps/reader/modules/readerhighlight.lua
+++ b/frontend/apps/reader/modules/readerhighlight.lua
@@ -639,7 +639,7 @@ Except when in two columns mode, where this is limited to showing only the previ
table.insert(menu_items.long_press.sub_item_table, {
text_func = function()
local highlight_non_touch_interval = G_reader_settings:readSetting("highlight_non_touch_interval") or 1
- return T(N_("Speed-up rate interval: %1 second", "Speed-up rate interval: %1 seconds", highlight_non_touch_interval), highlight_non_touch_interval)
+ return T(N_("Speed-up rate interval: 1 second", "Speed-up rate interval: %1 seconds", highlight_non_touch_interval), highlight_non_touch_interval)
end,
enabled_func = function()
return not self.view.highlight.disabled and G_reader_settings:nilOrTrue("highlight_non_touch_spedup") |
yeah, there were two things actually, PRing the fix now, the other was with the |
Fixes bug reported in #11916 (comment) and an issue where back button would not close widget in file manager.
as first discussed here #11908. This PR brings the book map to non-touch devices that
useDPadAsActionKeys()
.Book map can be accessed from the menu or by using the following shortcut:
ScreenKB
+Down
orShift
+Down
depending on whether you use a K4 device or a kindle with keyboard respectively.Inside the book map, a user can toggle the hamburger menu by pressing the
Menu
key and make any adjustment from there.ScreenKB
(orShift
) +Up/Down
allows it to scroll and Page turn buttons to move by whole full page turns.Back
key allows user to exit the map.This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)