Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-29-2018, 04:45 AM   #151
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
hi baskerville,
Just to say I got some issues with a DRM-locked epub book in the last release even though I remove the DRM of it to modify its css (got no problem to read it with nickel and koreader).

Last edited by cramoisi; 03-29-2018 at 05:10 AM.
cramoisi is offline   Reply With Quote
Old 03-29-2018, 05:23 AM   #152
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by cramoisi View Post
Just to say I got some issues with a DRM-locked epub book even though I remove the DRM of it to modify its CSS.
mupdf will fail to open an ePUB document if it finds any of the following files in the archive:
  • META-INF/rights.xml
  • META-INF/encryption.xml

If it happens, the following error will appear in info.log: EPUB is locked by DRM.

I found some ePUBs with a META-INF/encryption.xml referencing fonts not used by any of the CSS files and sometimes the encrypted fonts were missing from the archive!

What you can do is remove:
  • The links (within the CSS files) to the encrypted files.
  • The aforementioned XML files.
  • The encrypted files referenced by the aforementioned XML files.
  • The references to the aforementioned XML or encrypted files in content.opf.

There's a related bug report.

Last edited by baskerville; 04-02-2018 at 05:57 AM.
baskerville is offline   Reply With Quote
Advert
Old 03-29-2018, 05:32 AM   #153
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
Thanks ! I didn't remove the drm-remanent. I'll add this in my workflow.
cramoisi is offline   Reply With Quote
Old 04-08-2018, 12:44 PM   #154
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
I've released 0.3.9.

The way cropping margins are stored has changed, you'll need to remove the corresponding property in your .metadata.json:

Code:
jq '[.[]|del(.reader.croppingMargins)]' < .metadata.json > .metadata-new.json
mv .metadata.json .metadata-old.json
mv .metadata-new.json .metadata.json
The mupdf bug mentioned in a previous post regarding the end of the chapters being randomly swallowed was recently fixed.

New features:
  • A long press on the margin cropper icon should now bring up a menu.
  • Books can be removed, categories can be added and removed. You can either long press a book, or tap the (lower left) matches label. The Undo entry is in the matches label's menu.
  • The frontlight edges interaction can be enabled through the reader.frontlightEdges setting.
  • Within the reader, the search direction can be set via the menu brought by long pressing the search icon.
baskerville is offline   Reply With Quote
Old 04-09-2018, 03:23 PM   #155
DobermanS
Junior Member
DobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-books
 
Posts: 7
Karma: 846
Join Date: Mar 2018
Device: Kobo Aura One
Hello
First of all,great work,the app feels much faster than others
A question, is PDF reflow /scaling in future to do list?
Thanks .
DobermanS is offline   Reply With Quote
Advert
Old 04-12-2018, 03:35 AM   #156
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by DobermanS View Post
A question, is PDF reflow /scaling in future to do list?
It might be if I find myself needing it.
baskerville is offline   Reply With Quote
Old 04-12-2018, 03:43 AM   #157
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Could someone owning an H₂O 2 provide the outputs of the following commands:

Code:
ls /sys/devices/virtual/input/*/als*
cat /sys/devices/virtual/input/*/name
baskerville is offline   Reply With Quote
Old 04-12-2018, 04:07 AM   #158
traycold
Connoisseur
traycold doesn't littertraycold doesn't litter
 
Posts: 63
Karma: 196
Join Date: Oct 2010
Device: Kobo Glo Hd, Kobo H2O2
Quote:
Originally Posted by baskerville View Post
Could someone owning an H₂O 2 provide the outputs of the following commands:

Code:
ls /sys/devices/virtual/input/*/als*
cat /sys/devices/virtual/input/*/name
here you are

Code:
[root@(none) ~]# ls /sys/devices/virtual/input/*/als*
ls: /sys/devices/virtual/input/*/als*: No such file or directory
[root@(none) ~]# cat /sys/devices/virtual/input/*/name
cat: can't open '/sys/devices/virtual/input/*/name': No such file or directory
[root@(none) ~]# ls /sys/devices/virtual/input/
mice
[root@(none) ~]# ls /sys/devices/virtual/input/mice
dev        power      subsystem  uevent
traycold is offline   Reply With Quote
Old 04-12-2018, 05:17 AM   #159
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Thanks traycold.

Here's what you might do (the strace binary is attached):
  • Within Nickel, open the frontlight dialog.
  • Set both AUTO switches to off.
  • Run the following command: ./strace -t -y -o strace.log -p $(pidof nickel).
  • Set the first AUTO switch to on.
  • Wait for 5 seconds.
  • Stop the aforementioned command with Ctrl-C.
  • Post the resulting strace.log.
Attached Files
File Type: zip strace-kobo.zip (144.8 KB, 218 views)

Last edited by baskerville; 04-12-2018 at 06:10 AM.
baskerville is offline   Reply With Quote
Old 04-12-2018, 06:07 AM   #160
traycold
Connoisseur
traycold doesn't littertraycold doesn't litter
 
Posts: 63
Karma: 196
Join Date: Oct 2010
Device: Kobo Glo Hd, Kobo H2O2
Quote:
Originally Posted by baskerville View Post
Thanks traycold.

Here's what you might do (the strace binary is attached):
  • Within Nickel, open the frontlight dialog.
  • Set both AUTO sliders to off.
  • Run the following command: ./strace -t -y -o strace.log -p $(pidof nickel).
  • Set the first AUTO slider to on.
  • Wait for 5 seconds.
  • Stop the aforementioned command with Ctrl-C.
  • Post the resulting strace.log.
H2O2 only has a single slider "auto", related to "natural light" (the one that changes light color at a certain time of the day).
Is your test still relevant? If yes, what exactly should I do?

Last edited by traycold; 04-12-2018 at 06:13 AM.
traycold is offline   Reply With Quote
Old 04-12-2018, 06:19 AM   #161
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by traycold View Post
Is your test still relevant?
No it isn't, sorry about that. I wrongly assumed that the H₂O 2 had a light sensor.
baskerville is offline   Reply With Quote
Old 04-12-2018, 12:14 PM   #162
DobermanS
Junior Member
DobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-books
 
Posts: 7
Karma: 846
Join Date: Mar 2018
Device: Kobo Aura One
Quote:
Originally Posted by baskerville View Post
It might be if I find myself needing it.
Hope so... Cause PDF's book fonts always to tiny for comfortable reading
Another thing, with smart case reader goes to sleep but don't wakes up,it's
by design ?

Last edited by DobermanS; 04-12-2018 at 12:16 PM.
DobermanS is offline   Reply With Quote
Old 04-12-2018, 02:39 PM   #163
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by DobermanS View Post
PDF's book fonts are always too tiny for comfortable reading
I can think of three things that might help:
  1. Crop the margins.
  2. Fit to width.
  3. Landscape mode.

The last two features aren't there yet.

Quote:
Originally Posted by DobermanS View Post
With smart case the reader goes to sleep but don't wakes up, is it by design ?
No, it isn't. I've found a related thread.
baskerville is offline   Reply With Quote
Old 04-13-2018, 01:07 AM   #164
DobermanS
Junior Member
DobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-booksDobermanS has learned how to read e-books
 
Posts: 7
Karma: 846
Join Date: Mar 2018
Device: Kobo Aura One
Quote:
Originally Posted by baskerville View Post
No, it isn't. I've found a related thread.
Sorry mate,but the part of "don't wakes up" happens only when in Plato.
DobermanS is offline   Reply With Quote
Old 04-13-2018, 03:37 AM   #165
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by DobermanS View Post
The "don't wakes up" part only happens in Plato.
If you try to wake a device that was sent to sleep less than 17 seconds ago then it will fail. This is a known problem and it will be fixed.
baskerville is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PocketBook-KOReader: a document reader for PDF, DJVU, EPUB, FB2, CBZ, ... (AGPLv3) chrox KOReader 566 04-19-2024 05:28 AM
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1268 02-27-2024 11:49 AM
Kindle -- KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill KOReader 1219 01-27-2024 02:29 PM
v3 vs. v3+ as a pdf/DjVu reader hedonism_bot HanLin eBook 7 11-02-2010 08:16 PM


All times are GMT -4. The time now is 03:09 PM.


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