Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 09-24-2020, 09:19 AM   #3211
binarymelon
Member
binarymelon began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Dec 2011
Device: Kobo Aura HD
Quote:
Originally Posted by NiLuJe View Post
I don't think we actually have a way to coerce an input field like that, so my gut feeling would say that yeah, that should work, as long as the device can actually resolve that hostname.

But, never tried it myself .
It doesn't seem to work. When I'm local I can connect fine by IP, but it doesn't seem to work remotely through my domain. I'll have to see If I can dig up some logs to see why it fails.
binarymelon is offline   Reply With Quote
Old 09-24-2020, 09:28 AM   #3212
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Ah. Remotely.

Then extra emphasis on *as long as the device can resolve that hostname*, plus, *as long as said Calibre instance (and specifically the Wireless thingy) is accessible remotely*.
The latter may be easier said than done (I have no knowledge of the actual implementation of the protocol, but there will surely be routing shenanigans required).
NiLuJe is offline   Reply With Quote
Old 09-25-2020, 10:41 AM   #3213
binarymelon
Member
binarymelon began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Dec 2011
Device: Kobo Aura HD
How can you override the supported calibre formats mentioned in this comment here (https://github.com/koreader/koreader...ensions.lua#L5). It looks like it tries to load a calibre-extensions.lua file from users data directory, but I'm not sure where that is.

Edit: I'm running on a Kobo if that's relevant.

Last edited by binarymelon; 09-25-2020 at 10:43 AM.
binarymelon is offline   Reply With Quote
Old 09-25-2020, 12:40 PM   #3214
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by binarymelon View Post
How can you override the supported calibre formats mentioned in this comment here (https://github.com/koreader/koreader...ensions.lua#L5). It looks like it tries to load a calibre-extensions.lua file from users data directory, but I'm not sure where that is.

Edit: I'm running on a Kobo if that's relevant.
The same folder where the program is installed (/mnt/onboard/.adds/koreader)
pazos is offline   Reply With Quote
Old 11-08-2020, 04:15 PM   #3215
mirage
Zealot
mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 2382428
Join Date: Feb 2013
Location: California
Device: OnePlus 6 phone, Kobo Clara HD, Libra H2O
Is it possible to use the version of the Oxford English Dictionary that Kobo implemented a month or so ago for its devices in KOReader on Kobo devices? Looking at that new dictionary's html files in a text editor, it strikes me that they're encrypted. But better to ask and find out from those who know more about this than I do.

FYI, I'm already using the OED that's been available online for KOReader for quite awhile now. But I'd add the aforementioned if it can be done successfully.
mirage is offline   Reply With Quote
Old 11-08-2020, 05:44 PM   #3216
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Yes, they are encrypted, so, no .
NiLuJe is offline   Reply With Quote
Old 11-08-2020, 07:31 PM   #3217
mirage
Zealot
mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 2382428
Join Date: Feb 2013
Location: California
Device: OnePlus 6 phone, Kobo Clara HD, Libra H2O
Quote:
Originally Posted by NiLuJe View Post
Yes, they are encrypted, so, no .
Thanks for letting me know.
mirage is offline   Reply With Quote
Old 11-09-2020, 08:43 AM   #3218
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 897
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
@mirage I've uploaded a Koreader optimized Oxford 2nd Ed. for you here.
You can even tweak the lua- and css-file further to your liking. The dictionary is based on the available Stardict dictionary in 2 parts and was processed by the script PocketBookDic with the toggles
Code:
# Shortcuts to Collection of settings.
my $Just4Koreader = 1;
my $Just4PocketBook = 0;

Last edited by Markismus; 11-20-2020 at 08:34 AM.
Markismus is offline   Reply With Quote
Old 11-09-2020, 12:46 PM   #3219
mirage
Zealot
mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 2382428
Join Date: Feb 2013
Location: California
Device: OnePlus 6 phone, Kobo Clara HD, Libra H2O
Quote:
Originally Posted by Markismus View Post
@mirage I've uploaded a Koreader optimized Oxford 2nd Ed. for you here.
You can even tweak the lua- and css-file further to your liking. The dictionary is based on the available Stardict dictionary in 2 parts and was processed by the script PocketBookDic with the toggles
Code:
# Shortcuts to Collection of settings.
my $Just4Koreader = 1;
my $Just4PocketBook = 0;
Thank you, @Markismus! I've been using a version of the OED 2nd edition for some months now, almost certainly the two part one that you mention. I'll add this and play around with it. Much appreciated.
mirage is offline   Reply With Quote
Old 11-10-2020, 11:41 AM   #3220
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quick hotfix so that it actually works:

Code:
return function(html)
    html = html:gsub('<img[^>]+>', '')
    html = html:gsub('</span>%)', ')')
    html = html:gsub('</span>', '<br/>')
    html = html:gsub('<span>', '')
    return html
end
Also, minor CSS tweak because I hate indents:

Code:
blockquote { margin: 0 0 0 0.15em }
NiLuJe is offline   Reply With Quote
Old 11-10-2020, 06:52 PM   #3221
mirage
Zealot
mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.mirage ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 2382428
Join Date: Feb 2013
Location: California
Device: OnePlus 6 phone, Kobo Clara HD, Libra H2O
Quote:
Originally Posted by NiLuJe View Post
Quick hotfix so that it actually works:

Code:
return function(html)
    html = html:gsub('<img[^>]+>', '')
    html = html:gsub('</span>%)', ')')
    html = html:gsub('</span>', '<br/>')
    html = html:gsub('<span>', '')
    return html
end
Also, minor CSS tweak because I hate indents:

Code:
blockquote { margin: 0 0 0 0.15em }
I'll use this and compare. Thanks!
mirage is offline   Reply With Quote
Old 11-14-2020, 08:23 AM   #3222
gogu1904
Connoisseur
gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 2112464
Join Date: May 2019
Device: Kobo Aura One LE
Quote:
Originally Posted by Markismus View Post
@mirage I've uploaded a Koreader optimized Oxford 2nd Ed. for you here.
Please let me know, using .dict files is equivalent to using .dict.dz files? I see you have used the decompressed file, which is five times larger. Is there a particular reason? Thank you.
gogu1904 is offline   Reply With Quote
Old 11-14-2020, 01:55 PM   #3223
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 897
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
It is a bit faster, was necessary for older Koreader version, but nowadays isn't. The dict-file can be zipped with dictzip* to dict.dz-file. (See line 1333 of PocketBookDic.pl.)

I've reupped the Oxford 2nd Ed with compressed dict.dz-file. It easier to decompress than to compress. The script also removed all the nested blockquotes, that needed extra styling in Koreader.



____________
* Under linux it is a package, under windows you can use this.

Last edited by Markismus; 11-20-2020 at 08:35 AM.
Markismus is offline   Reply With Quote
Old 11-20-2020, 04:09 AM   #3224
gogu1904
Connoisseur
gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 2112464
Join Date: May 2019
Device: Kobo Aura One LE
Thank you. Where did you reupload? The link from post #3221 has the same archive, with the expanded file.
gogu1904 is offline   Reply With Quote
Old 11-20-2020, 08:36 AM   #3225
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 897
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
I had to change online cloud storage providers. I've updated the link. It's now here. And I'll unshare the old cloud share.
Markismus is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1268 02-27-2024 11:49 AM
Touch Using two Kobos tkavan Kobo Reader 4 06-23-2017 02:47 AM
2 kobos at once tsarinaerika Kobo Reader 14 06-03-2013 04:13 AM
Syncing between two Kobos fx3000se Kobo Reader 4 01-24-2013 02:10 PM
2 kobos 1 account retired05 Kobo Reader 9 05-05-2012 08:25 AM


All times are GMT -4. The time now is 05:11 PM.


MobileRead.com is a privately owned, operated and funded community.