Mobileread
Koreader running on Kobos (all of them, hopefully!)
#3231  mirage 01-08-2021, 08:14 PM
Quote Frenzie
I'm not sure why that one doesn't include the error code.

https://github.com/koreader/koreader/blob/602e0b3feb83737d511a43722813c889b20e55bc/plugins/wallabag.koplugin/main.lua#L591

You could try quickly replacing that line with this so we know what the server's saying:
[code] text = "Response code: "..code, })

Given your other message, it'll probably be something like 401 unauthorized though.

Could you double check the wallabag settings in a text editor on your PC? That's in /mnt/onboard/.adds/koreader/settings/wallabag.lua.
The wallabag.lua settings are as they should be. Interestingly, there's a URL in the download queue representing the most recent page I saved to Wallabag a few days ago. So there's some sort of connection being made. I don't think I've ever seen anything in the download queue there before.

EDIT: I had a typo related to copying and pasting the code you provided into main.lua. I fixed it in the KOReader editor and now Wallabag is still present in the menu. But I get the same error messages I was getting to begin with. I'm not getting the toast that I'd have anticipated with

Code
text = "Response code: "..code, })
Reply 

#3232  mirage 01-09-2021, 02:45 PM
I got this working for reasons I don't really understand.

Since the code in main.lua that was displaying the two error message toasts I was getting were in lines 390 and 603, I commented the original code out of those lines and replaced it with your suggested

Code
text = "Response code: "..code, })
Then, when I asked the Wallabag plugin to download articles, it did. Strange since I was only editing the messages that would pop up in the events triggered for those two lines, not the processing of the events themselves. But now, for the first time, I have 30 articles in my /Wallabag directory.
Reply 

#3233  Frenzie 01-09-2021, 05:42 PM
There must've been a communication issue then. Did you try something else like Wikipedia at the time?
Reply 

#3234  mirage 01-09-2021, 06:23 PM
I don't remember if, in the past, I've tried other online connections after Wallabag had failed. But I have successfully connected to sources like Wikipedia before while I'd never succeeded in connecting to Wallabag after at least 25-30 tries over the last 6 months or so.

Works now, though. I'll see if it keeps working after the next update of KOReader overwrites my edits to main.lua. Right now, I'm on the current nightly. I'll update in the next couple of days and will see what happens.
Reply 

#3235  jberd 01-29-2021, 02:43 AM
What controls the dictionary font?
I played around with frontend/ui/font.lua to use more serif fonts,
and the dictionary popup was using serif fonts. Then I downloaded
the gcide dictionary, and that pops up with a sans-serif font (while
the other dictionary still uses serif). I poked around looking for
something to control the font, with no luck. (The gcide dictionary
uses some html-style markup while my older dictionary doesn't, but
I didn't find any font directives in gcide.)
Is there a way to have the dictionaries all use a serif font?

Thanks, Jay
Reply 

#3236  pazos 01-29-2021, 06:24 AM
Quote jberd
What controls the dictionary font?
I played around with frontend/ui/font.lua to use more serif fonts,
and the dictionary popup was using serif fonts. Then I downloaded
the gcide dictionary, and that pops up with a sans-serif font (while
the other dictionary still uses serif). I poked around looking for
something to control the font, with no luck. (The gcide dictionary
uses some html-style markup while my older dictionary doesn't, but
I didn't find any font directives in gcide.)
Is there a way to have the dictionaries all use a serif font?

Thanks, Jay
It's the "font size" setting under "Dictionary settings". Some dicts can have different font faces in their css, and that can make them look bigger or smaller.

Default css code is in https://github.com/koreader/koreader/blob/master/frontend/ui/widget/dictquicklookup.lua#L739-L754
2021-01-29_11-18.png 
Reply 

#3237  Uncle Robin 01-29-2021, 07:25 PM
I'm loving the autoturn function, just brilliant! Is there a way to assign a screen tap to pause it? Currently, if I tap the screen, it advances a page, and I have to long press to bring up a menu (any menu) to pause the autoturn. Being able to tap the screen to pause would be very handy.
Reply 

#3238  NiLuJe 01-29-2021, 07:58 PM
I don't *think* it's currently wired into Dispatcher/Gestures, so that would probably make a great FR on GitHub .
Reply 

#3239  jberd 01-29-2021, 08:00 PM
Quote pazos
Default css code is in https://github.com/koreader/koreader/blob/master/frontend/ui/widget/dictquicklookup.lua#L739-L754
Fantastic; thanks!

I hadn't updated Koreader for a while, since it seemed to do everything already, but now it seems to do more! For example, I don't think it would download dictionaries before, but now it will (that's how I came across the gcide font puzzle).

Amazing program.
Reply 

#3240  Uncle Robin 01-30-2021, 06:57 AM
Quote jberd
I don't think it would download dictionaries before, but now it will
Where do I find this functionality?
Reply 

 « First  « Prev Next »  Last »  (324/327)
Today's Posts | Search this Thread | Login | Register