Quantcast
Channel: MobileRead Forums - Kobo Developer's Corner
Viewing all 1568 articles
Browse latest View live

Better Hyphenation Dictionary sticky?


Forma Can the Kobo operating system be completely customized?

$
0
0
Is there a way to completely customize the Kobo's operating system? I know and I use the patches, but I would like greater freedom to do what I want with my Kobo.

Workaround lingering dirty bit on Mk.7 USBMS partition

$
0
0
As people with a Mk.7 device are probably aware, there's been a recurrent glitch which sometimes leaves the FAT filesystem of the partition exported over USBMS with the dirty bit set.

This makes most OS complain loudly about it when trying to mount it (and might cause the most stringent of 'em to refuse to mount it with write access).

I'm still not quite sure what's triggering the issue in the first place (but I figure Nickel is sometimes a bit hasty with how it unmounts the partition), but there are mechanisms in place to attempt to fix minor issues with the FAT partition automatically. These rely on the fsck tool from dosfstools. Unfortunately, like most of the sysroot, the version Kobo ships is *hilariously* old. So much so, that it doesn't actually know how to deal with the dirty bit.
Which means the existing fail-safe mechanisms are powerless to "fix" this issue.

I stumbled onto this entirely by chance (c.f., this post for more details), but the good news is that replacing that old binary with a recent version should take care of the problem (well, not the root cause, of course, but at least the built-in "fix" will now actually work).

So, here it is, in the form of a custom update package (i.e., a KoboRoot tarball), which you'll find inside the attached ZIP. As usual, put it (the tgz, not the zip) in the .kobo folder to install it.

----

fsck.fat -> dosfsck: DOSFSTools, c.f., individual source files for detailed Copyright attribution,
Released under the GNU General Public License version 3+ (https://www.gnu.org/licenses/gpl.html),
(https://github.com/dosfstools/dosfstools)

Attached Files
File Type: zip KoboRoot-dosfstools.zip (31.2 KB)

Aura H2O2 Trying to put Online Wikipedia onto Kobo Aura H2O2

Parsing error

$
0
0
I received following error when uploading my Calibre converted epub file.
1st I get this error
1 OPF file failures
1 instance(s) similar to The file '%1$s' does not appear to match the media type %2$s, as specified in the OPF file. :Format specifier '%2$s'
1 Packaging failures
1 instance(s) similar to Wrong file extension for image. The image is a '%1$s' file but has the file extension '%2$s'. :Format specifier '%2$s'

Then when I fix the errors listed above I got the following

there was an error when parsing the epub version: [version not supported].

Strange I used the free epub conversion software on Kobo's website how did they convert it to an unsupported format? So I am assuming it has something to do with my original file. I tried saving as docx and odt.

My searches show this may actually be an old problem that should have been fixed. Does anyone know what that fix was? I feel a conspiracy theory coming on but if you guys suggest my skills are limited and I should just pay the $89 for Kobo's third party conversion service Aptara I won't be offended. :help:

Plugging and unplugging via USB

$
0
0
Is there a hack to avoid plugging and unplugging the Kobo from USB when we are working on Calibre?

Does this hack exist or is it possible?

I always had this same doubt about the kindle...

What's up with availability?

NickelTC: A prebuilt, relocatable, fully-functional toolchain using NiLuJe's scripts

$
0
0
NickelTC
A prebuilt, relocatable, fully-functional toolchain using NiLuJe's scripts.
___

I've had this on GitHub for a while, but I've still received messages from people asking about this kind of thing, so I thought I might as well make a post for it here.

The work on this started when we (NiLuJe and I) were experimenting with Kobo plugins in September 2019, and this part was made public on GitHub around the time we (NiLuJe, sherman, and I) started working on NickelMenu in April 2020.

You can download it as a Docker image from Docker Hub, or you can get it as a tarball for modern-ish glibc Linux systems (basically, the last few versions of Debian or Ubuntu, and it'll probably work on Arch and Fedora too) from here (you'll need a GitHub account).

NiLuJe's scripts provide an output which would be almost identical to the ones from the official build scripts if they actually worked. It produces a toolchain which will be binary-compatible with Kobo stuff, including all kobo-specific patches. It also fixes some of the ancient tooling to work on modern Linux distros. NiLuJe did the majority of the hardest parts with the initial build (thanks!).

My Dockerfile builds on NiLuJe's scripts (source), and: fixes the DESTDIR/prefix variables, makes it fully relocatable without any additional steps, makes the builds reproducible (almost), uses versioned dependencies (almost, I'm working on the last bit of that now), reduces host dependencies, patches tooling config files and creates wrappers where necessary, does some basic tests, fixes Qt sysroot stuff, and does a few other improvements.

This toolchain should be usable as-is for building apps which integrate with Nickel (plugins, LD_PRELOAD wrappers, Qt things, etc) or other stuff which needs binary-compatibility with native libs. It is also suitable for being passed to things like buildroot to build other software.

For a lot more info about this, see the README on GitHub.

Instructions for patching firmware 4.22.15190

$
0
0
This patch thread is for firmware 4.22.15190 (efcb227b40228eba2d7cd9565e892f19332faf16):

Instructions for patching on Windows, Linux, or macOS with kobopatch:
  1. Download the Kobo firmware release
    You can find the download links here here.
  2. Download and extract the patch zip
    Download and unzip kobopatch_4.22.15190.zip from here.
  3. Copy the firmware file to the src folder
    Copy the original firmware you just downloaded into the kobopatch src folder.
  4. Install the firmware if needed
    Install the firmware on your kobo BEFORE proceeding with the next steps. You can do this by extracting the contents of the firmware zip into the .kobo folder and ejecting.
  5. Choose your patches from the files in the src folder
    Enable patches in the files in the src folder (or use the overrides in kobopatch.yaml to keep your options separate).
  6. Run kobopatch
    Double-click kobopatch.bat on Windows, or run ./kobopatch.sh on Linux or macOS. On macOS, you can drag it into the terminal and press enter (you may need to go to System Preferences - Security and Privacy - General to confirm that you actually want to run it).
  7. Install the patches by copying KoboRoot.tgz into the .kobo folder of your device
    If the patching succeeded, a file named KoboRoot.tgz will be created in the out folder. Copy it to the .kobo folder of your device. Safely remove your device once you are finished. On Linux, you may have to press Ctrl+H to show the .kobo folder.
Download

[Q] Python Unicodeencodeerror in Kobo device

$
0
0
Hi, I'm a newbie here and kobo programming...

I installed Python 3.4 with reference to Lucas Malor's post(https://www.mobileread.com/forums/sh....php?p=2885820)

And wrote some python scripts, but met exceptions while handling non-alphabetical characters - Korean.
My simple code is below.
Quote:

#!/usr/bin/python3
# -*- coding: utf-8 -*-

import os
import sys

path = '/mnt/onboard/Library'
for sub in os.listdir(path):
print(sub)

Result:
Quote:

<_io.TextIOWrapper name='<stderr>' mode='w' encoding='ANSI_X3.4-1968'> <_io.TextIOWrapper name='<stdout>' mode='w' encoding='ANSI_X3.4-1968'>
...
Traceback (most recent call last):
File "./ta.py", line 11, in <module>
print(sub)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 16-27: ordinal not in range(128)
Alphabet-named-files are printed normally, but Non-alphabet-named-files occurred exceptions.

So, I tried to set PYTHONIOENCODING,

Quote:

export PYTHONIOENCODING="UTF-8"
Result:
Quote:

<_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
...
Traceback (most recent call last):
File "./ta.py", line 11, in <module>
print(sub)
UnicodeEncodeError: 'utf-8' codec can't encode character '\udceb' in position 16: surrogates not allowed
Ofcourse, I can use decode() or encode(), but in this case, there will be other problems like save or web-requesting non-alphabetic-named files.

What can I do to solve this problem?

Mini Looking for a way to run Android apps on Mini

$
0
0
Hello.

I just got a Mini and I was wondering if I could run android apps on it somehow? :)
Thanks.

Mini Question about Mini firmware

$
0
0
Hello. I have a question about the Kobo Mini. Since it's running on firmware 3.19.5761, is it possible to manually update it to the newest firmware?

Thanks.

Forma When I long-tap on some text, I want to immediately get option to "Search in Book"

$
0
0
When I long-tap on the screen on some text, a context menu pops up with three things:

Code:

Undo Highlight
Edit/Create note
Search...

When I choose Search...
I'm given another three options:
Code:

Search in book
Search in Google
Search in Wikipedia

I don't ever use Search in Google or Search in Wikipedia. Is there a way to change "Search..." to "Search in Book"? That means, when I long-tap on some text, I immediately get:
Quote:

Undo highlight
Edit/create note
Search in Book

Glo Please help. Unable to skip registration on Kobo Glo

$
0
0
Hi

Following the instructions from this forum, I have managed to skip registration on the Clara (it was extremely difficult but I got there in the end) Thank you!

Now I wish to attempt the same on the Kobo Glo.

I followed the command codes from https://www.mobileread.com/forums/sh...d.php?t=171664

I used both

INSERT INTO "user" VALUES('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa','aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa','xxxx@xxxx.xx','xxxx@xxxx.xx','2aaaa aaaaaaaaaaaaa==');

and also tried

INSERT INTO "user" VALUES('foo','foo','foo','foo','foo');

However, I received the following error
Error: table user has 26 columns but 5 values were supplied

I thought it was because it had the latest 4.22... firmware, so I downgraded to 3.19... but still came up with the same error.

Please advise. Thank you

How can I refresh/update library in Python?

$
0
0
I've been writing a Python script to sync Dropbox for my Kobo Aura One.
I succeeded to download files, but I don't know how to refresh or update library.

Anyone help me?

Aura H2O2 Question about telnet/ftp/ssh

$
0
0
Is there a simple way to enable telnet, ftp, and ssh on aura h2o2 with a simple KoboRoot?

Instructions for patching firmware 4.22.15268

$
0
0
This patch thread is for firmware 4.22.15268 (bcc730b18caba9ce2478a9dd4a62bcdc3b67ce67):

Instructions for patching on Windows, Linux, or macOS with kobopatch:
  1. Download the Kobo firmware release
    You can find the download links here here.
  2. Download and extract the patch zip
    Download and unzip kobopatch_4.22.15268.zip from here.
  3. Copy the firmware file to the src folder
    Copy the original firmware you just downloaded into the kobopatch src folder.
  4. Install the firmware if needed
    Install the firmware on your kobo BEFORE proceeding with the next steps. You can do this by extracting the contents of the firmware zip into the .kobo folder and ejecting.
  5. Choose your patches from the files in the src folder
    Enable patches in the files in the src folder (or use the overrides in kobopatch.yaml to keep your options separate).
  6. Run kobopatch
    Double-click kobopatch.bat on Windows, or run ./kobopatch.sh on Linux or macOS. On macOS, you can drag it into the terminal and press enter (you may need to go to System Preferences - Security and Privacy - General to confirm that you actually want to run it).
  7. Install the patches by copying KoboRoot.tgz into the .kobo folder of your device
    If the patching succeeded, a file named KoboRoot.tgz will be created in the out folder. Copy it to the .kobo folder of your device. Safely remove your device once you are finished. On Linux, you may have to press Ctrl+H to show the .kobo folder.
Download

NickelSeries: Integrated EPUB/KEPUB series metadata support

$
0
0
NickelSeries
.
I've been working on a small mod to add built-in support for parsing series metadata on sideloaded books.

To install it, copy KoboRoot.tgz to KOBOeReader/.kobo the same way you would with a firmware update.
.
Features:
  • Works on EPUB and KEPUB files.
  • Compatible with the Calibre Kobo plugin.
  • Compatible with Calibre or EPUB3 series metadata (Calibre takes precedence).
  • Will not override Nickel if Kobo ends up implementing it.
  • Compatible with firmware 3.19.5761+.
  • Survives firmware updates.
  • Does not modify any system files, single file only.
  • Easy to uninstall (either delete it over telnet/ssh or create a file named `ns_uninstall` in the KOBOeReader partition).
  • Metadata appears instantly.

Troubleshooting:
  • How do I uninstall NickelSeries?
    Create a file named `ns_uninstall` (without any extension) in the KOBOeReader partition and reboot.
  • How do I uninstall NickelSeries manually?
    Connect over Telnet/SSH and delete `/usr/local/Kobo/imageformats/libns.so`. A
    hard factory reset will also remove it.
  • Series metadata is incorrect or missing for imported books.
    Please report the issue and post a copy of the OPF document from within the EPUB.
  • I installed NickelSeries and nothing changed!
    NickelSeries doesn't parse metadata for existing books. To do this, you can use seriesmeta with the argument `--no-persist`.
  • The series metadata changes after a reboot or USB connection.
    If you use Calibre or seriesmeta, those will take precedence.
  • Will this conflict with Calibre or Kobo-UNCaGED?
    No. For the initial import, NickelSeries prioritizes the `calibre:series` meta tags. For changes afterwards, NickelSeries doesn't override them.
  • My Kobo crashes when I try and import a book.
    This issue is unlikely to occur, but if it does, you can uninstall NickelSeries the usual way (see above). If possible, it would also be helpful if you could report the error and post the syslog.

Changelog:
  • v1 (2020-07-19, 8c5d318): First stable version, all features implemented.

Source Code | Download
.

Attached Files
File Type: zip NickelSeries_v1-8c5d318.zip (54.3 KB)

Execute a shell script triggered by sleep event

$
0
0
Hi!

Is it possible to trigger the execution of a shell script when the e-reader goes to sleep?

If not, can we have cron jobs running while the device is awake?
I found a crond link in busybox, but I don't think it is active...


Thanks!

Clara HD Messed up touch on my Clara HD? Can I fix this?

$
0
0
Long story short, I had done the electrical tape light bleed fix on my Clara, then went in today to remove it everywhere but the bottom left corner, and this happened? I'm not sure if I cut it while trimming the tape initially, but this crinkly thing that goes from the back to connect to the screen on the right is definitely, and completely, ripped on my device now :(


I didn't think anything of it initially because it was like that underneath the tape, and it had been working. Then, when I put the device back together, touch no longer registered. I'm not really techy, I can just do things if I have a tutorial or instructions, so granted I'm only guessing those two instances are related and this is the issue? I did try to tape it together as best I could with electrical tape and touch still wasn't registering. Failed tape attempt:


Is this fixable? Maybe just keep trying to get it right with the electrical tape? Can I maybe replace the part (I scanned the QR code but nothing came up when googled). Or if it's not this part that's the issue, what should I be troubleshooting?

Feeling really dumb right now, mobileread forums, but I figured if anyone would know what to do, it'd be you folks. Sorry for the dumb questions, and that's what I get for opening up my device again and messing around without actually needing to, I guess. (Also mods, I posted in here because this falls under hardware changes to me, but if this is in the wrong forum I can move the post). Thank you for your help!!
Viewing all 1568 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>