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

Python 3 (and Cython) on Kobo

$
0
0
Since I'm using python for creating a little program for kobo, I'll post here this package, for anyone interested.

It contains the python 3.4.1 libraries. Not all modules are included, since the size is too much for our poor little Kobo. If you want to use additional modules, you have only to copy them to /usr/local/lib/python3.4 . I suggest you to copy .pyc files only, to save space.

The package contains also a simple "Hello world" executable, created using Cython and embedding the python interpreter. It's for this reason that there's no python interpreter in this package.
If you don't know Cython, it's a Python "dialect" that allow you to use static typing and compilation. It could speed up your Python code a lot. To test the exe you have only to telnet your kobo and launch "/hello".

I compiled it using debian 7 on an emulated arm machine. A faster method is to use an user emulation. Since I already created a VM, I'm using it now. If someone will successfully create a chroot with a user emualted debian, let me know :)

Attached Files
File Type: zip python_3.4.1_kobo.zip (2.61 MB)

Automatically open last book when powering on.

$
0
0
I have searched all over the place for an answer to this. If it is on the forum it has eluded me and I apologize in advance if this has already been answered.

Is there a simple way I can modify my Kobo Mini to automatically load the last book I was reading when I power on the device?

I noticed that Koreader has this option but I can't seem to find an option to start Koreader on startup (which would then load the book).

I am pretty good with computers and programing so I am not worried about setting this all up. I was just wondering if there was a simple way of adding this feature without installing a bunch of stuff I probably won't ever use.

Ideally I just want the default reader to start automatically when I power on my Kobo Mini (and if possible go directly to sleep afterwards...).

Thank you!

Aura HD Serial terminal program for use on Kobo?

$
0
0
I am trying to get this working on my AuraHD. I seem to have the Bluetooth part working but I don't have anything running on the Kobo serial side, that shows a response.

So anyone know of some sort of terminal that will run on the kobo?

Luck;
Ken

Screen replacement options

$
0
0
I am the proud owner of an Aura and an Aura HD, both with a broken screen.
I cannot seem to order new screens from Kobo to replace them myself and the repair is as expensive as a new unit, so I am stuck with ordering on aliexpress.com.

Now I can order a replacement for the aura's screen ED060XH3, but I can't find a replacement for the Aura HD's screen ED068OG1.

What I can find is a nice 9.7" screen for the Kindle (ED097OC1) which is even cheaper than the new Aura replacement.

Would anybody know what the restrictions are for a replacement screen? Are the connection ribbons all the same? Or can you identify them?

I assume I would have to install new screen drivers, is that correct? Where could I look for those?

Touch Cannot change display on hacked Touch

$
0
0
My Kobo Touch is on firmware 3.3.0. I have hacked it so I can use Telnet.

I start the web browser (to force Wifi) and use PuTTY to get into it. This all works fine. From Telnet I try a simple
Code:

zcat /etc/images/ghostbuster.raw.gz | /usr/local/Kobo/pickel showpic
and expect the display to change. However, nothing happens at all. No error message but also no change in the dispay.
I tried doing a killall nickel first but that does not seem to make a difference.

Am I overlooking something obvious?

Koreader: How to get metadata to device?

$
0
0
I'm working right now on an enhancement to add a search function to Koreader that allows a user to search for any text in any of Calibre's columns and then select a book from the list of results and open the book.
The first part works already, I can search for books and it automatically opens the first book it finds, I "just" have to work on the second part, to show the search results. I will work in the next days on that.

But there is still the question, how to get the metadata on the device?
I can see a few options for that.
I could read the data from the build-in reader. I will not follow this way since it has a few disadvantages: First, different databases for Kobo and Kindle, and none for Android devices. Second, hidden directories. I have all my books in one of those to make sure Nickel does not see my books, so my Kobo database does not have any metadata.

Another way is to use Calibre.
I guess all of us use Calibre, but still there are different ways how we put our books to the device. Some will send the files to Kobo, some to Kindle, and I choose a third way by connecting my library to a folder and load all the files into this folder and copy them via robocopy to my Kobos.
One way to use Calibre is to use the file .metadata.calibre that Calibre puts into the folder with your books. But this file is pretty huge and difficult to read, that's why I right now do not use this one neither.

What I use is Calibre's export catalog to CSV function. I upload this CSV file to my reader and read all the necessary info out of that one.
In my opinion necessary are: author, title, path to book. Once I have those it should not be a problem at all to add nearly every other of Calibre's columns, actually in my solution so far you can already use any column.

But my question, is there a better way to get the metadata to the device?
Something that is easy to handle for the end user?
There are some problems involved in this, e.g. the path to the book. Right now I have created a column in Calibre that repeats the setting from "Send to device" ({author_sort[0]}/{authors}/{title}), but since the default setting is to also change the characters to English equivalents this becomes {author_sort[0]:transliterate()}/{authors:transliterate()}/{title:transliterate()}, and if you have more complicated settings the string here will also get more complicated. Another problem is that this way I will not find out which format the book has (e.g. epub or pdf). Right now I don't care, I just check if I find either an epub or a pdf, I probably have to enhance this by all other possible file types.

Any suggestions?

Hints for javascript in epub ?

$
0
0
Hi all,

Just checking to see if one of the developers here had any visions of a foreseeable future way to do javascript in epubs on kobo?

What I am looking for:
- tap text or button to change display properties of paragraphs (eg:hiding or displaying translations / versions of text)

Regards

François

Android for Kobo v2 - improved reading mode

$
0
0
Hi!

If anyone is in doubt if Android can fully replace original Kobo software for reading I did a few changes to give you best reading experience!
  1. Modified version of coolreader3 has full screen refreshes after (configurable) number of page turns. No more "ghosts" during reading!!
  2. You can modify any other open source reader software (like FBReader) to behave the same - to know how to do it just look at my changes to coolreader on git-hub.
  3. For not open sourced software (MoonReader etc.) - there is a new option in the kobo service (you can open kobo service using "photo" button) to enable/disable full refreshes for every screen update. It works pretty good when reading (no ghosts) but is very disturbing in other places (too much flickering).
  4. Experimental monochrome and monochrome dithered modes.
  5. USB Mass-storage support.

Sample SD card images:
Note! There may be accidentally left commercial software in the sample images for which you may not have license so either buy it, uninstall it or replace it with a free version.

Source codes:
Look at my changes to CoolReader3 and make your favorite Android application e-Ink optimized !!! :)

Best performing 64GB cards for Kobo?

$
0
0
I'd like to get a dedicated 64GB card for my kobo aura HD (which would contain android and a partition containing pdfs and cbz files which average around 50MB-200MB, and also contain 1000s of images averaging 100kb-1MB)

I've found threads here mentioning that class 4 cards perform better than class 10 cards, but as far as I'm aware, class 4 64gb cards don't exist? or is it a matter of brand in this case?

Mini custom FONT after Update firmware3.4.1

$
0
0
Hi, :help:
My new kobo mini updated the new firmware 3.4.1 from 2.6.1 today,
But i didn't custom my fonts by placing some fonts into /fonts directory.

By the way i use some Chinese fonts for Chinese book.

i need some help. Thanks!

Mini how to do after delete .kobo directory?

$
0
0
Hi,
i have deleted the .kobo directory carelessly.

My mini is dead.
How to live again?

thanks.

Hyphenation Engine

$
0
0
Hello there,

I recently got a kobo touch reader and I'm loving it.
However, I'm having issues with hyphen (for french books)

I know I can upgrade the hyph_fr.dic with a custom KoboRoot.tgz. The thing is, I still have quite lot of bad hyphens. I thought it was the dictionnary, but then i download "altlinuxHyph" and tested some words. Turned out words hyphened incorrectly by the kobo are hyphened correctly by altlinuxHyph using the very same hyph_dict.

So I guess the Kobo hyph engine is not good enough ? Or am I doing something wrong ? Is it supposed to work just like any other hyphenation engine (it's supposed to be the same algorithm, after all).

Thanks !

Also, I tried "hyphenate this", but as far as I could say, it didn't change anything. Do you think the soft-hyphens are ignored when kobo is trying to hyphen by itself ? I so, I could try to load an empty dictionnary...

EDIT : I tried loading an empty hyphens dictionnary (with a custom KoboRoot), and it remove every single hyphen.
I then created a dictionnary myself with very basic rules, ignoring any complicated text to be sure it would only create good, simple hyphen (I don't need it to find all possible hyphenations, after all). I loaded this dictionnary, and it created bad hyphens AGAIN, that didn't followed any rule I wrote.
Something is definitely bugged.

Instructions for patching firmware 3.8.x

$
0
0
Before starting:

1. Make sure your Kobo ereader is already running one of the following firmware versions:
3.8.0 (048bb0b071)

2. Check that your battery is well charged.


Patching from Windows, Linux (i386/x86_64), or Mac (OS X 10.8-10.9, i386/x86_64):

1. Download and extract patch_kobo_38.zip attached.

2. Download the appropriate Kobo firmware archive version 3.8.0 to match the firmware version already on your device (See this thread) into the corresponding 3.8.x_source subdirectory. (Don't extract.) Throughout these instructions 3.8.x refers to the firmware version already on your device.

3. Read and edit all the *.patch files in the 3.8.x_source subdirectory in order to: choose which patches to enable (patch_enable=`yes`) or disable (patch_enable=`no`); and to change some of the replacement values to suit your device and preferences. (See the section below on customising the patches.)

4. In Windows double-click 3.8.x.bat; For Linux/mac run ./3.8.x.sh from the command line.

5. If there were no errors, copy the resulting KoboRoot.tgz from the 3.8.x_target subdirectory to the .kobo directory on your ereader.

6. Safely eject and unplug the device, which will then update and restart.


To return your ereader to its original unpatched state:

1. Edit all the 3.8.x_source/*.patch files to disable all patches (set patch_enable = `no` for every patch).

2. Repeat steps 4-6 of the procedure above.


Customising the patches to suit your preferences and device

Some patches require no customisation, you can choose simply to enable them or not. But the following patches allow more customisation and their initial values should be considered examples only.

1. Custom reading footer style: There are three example styles, comment out the styles you don't want by adding a "#" character at the beginning of the line beginning with replace_, and leave the style you want uncommented.

More complex customisation is possible by editing the replacement css text, see the Kobo Patcher thread for examples.

2. My 15 line spacing values: Change the lines of the enabled patch starting with replace_float: the middle number is the original spacing value, the number to change is on the right.

The values are the line spacings set by the adjustment slider. The actual spacing depends on the font used, but for most fonts a value of 0.7 gives very tight spacing with ascenders/descenders overlapping, a value of about 0.9 gives a spacing similar to that of a mass-market paperback. The smallest value available in the unpatched firmware is 1.0.

3. Custom font sizes: Change the lines starting with replace_int. The middle number is the original value, the number to change is on the right.

The values are the font sizes set by the adjustment slider, they are in pixels so the absolute size depends on the device: size 20 on the Glo is about the same as size 25 on the AuraHD. Some books change the base font size, so you may need font sizes that are larger or smaller than your normal reading size to allow for adjusting such books.

4. Custom left & right margins: Change the lines starting with replace_int. The middle number is the original value, the number to change is on the right.

The values are the margin widths (in units of about 1% screen width I think) set by the adjustment slider. The margin size is added to whatever margin is fixed in the book (if any) and in reading software (The kepub reader has a base margin of about 2 units, the epub reader has a base margin of zero).

5. Brightness fine control: Change the lines starting with replace_int. The middle number is the original value, the number to change is on the right.

The values are the percentage amounts that the brightness slider changes when the small or large sun symbols are tapped. (Both should probably be set to the same value).

6. ePub adjustable top/bottom margin (disabled by default): Comment out one of the replace_string lines (i.e. add a '#' character to the beginning of the line) and leave the other uncommented to select whether both top and bottom, or just the top margin, should be made adjustable. Change the right-most number of the replace_int line to set the size of the top/bottom margins relative to the left/right margins, depending on your device. (The suggested values should make the top/bottom margins roughly equal to the left/right margins).

Attached Files
File Type: zip patch_kobo_38.zip (463.9 KB)

Glo My Kobo Glo keeps losing books

$
0
0
Hi all - I'm a newbie here, and not very tech-savvy I'm afraid, but hoping someone can help me. :help:

I've had my Kobo Glo for around 2 years and been very happy with it, but recently it keeps losing my books. Sometimes just the ones I've loaded from Calibre, but sometimes the Kobo store ones as well. It happens after I connect to my computer to charge up - I load books, but when I disconnect my Kobo it says my library is empty. I've tried looking inside its folders next time I connect it to my computer, and the books are still there - I just can't access them from the Kobo.

I've lost count of how many times I've done a factory reset, and I've also tried uninstalling both Calibre and the Kobo software and re-installing. That's about the limit of my expertise!

Any ideas, anyone? Or is it time to go shopping for a new e-reader? :(

ETA: Apologies if this is in the wrong forum/thread/thingy - I'm afraid I'm not very forum-savvy either. *facepalm*

Can I translate kobo Reader Menu into Chinese ?

$
0
0
HI,
I have decompression kobo-update-3.3.1.zip and I can not find any po files for translate kobo Reader menu , Can any one help me ?

Touch N905 Demo Unit shocked back to life?!

$
0
0
Having already acquired the knowledge that the N905 (no B or C) has no internal sd card, I decided to take a gamble on that guy who sells demo unit Kobo Touch on ebay.

$20 can't be that bad, right? and there's probably a serial port, and i can figure out the serial port and be the hero who figures out how this works.

Well, the spots on the board that looked like they might be surface mount pads for the serial ports that are there on later revisions? Those are just, pads. There's no serial port there. There's no voltage either. They may do something, but they don't appear to.

Eventually I got out a usb to ttl serial, taped the ground lead to a ground pad, and probed around the test points with the rx lead. I did find a test point that at 115200 is pulsing at a rate that looks like the number six over and over but it's probably just a clock, and just coincidence.

And then i turned it off by holding the slide switch until the screen went dark.

And then i held down the 'home' button and held the slide switch out.

And then it displayed the "restoring to factory defaults" screen.

And then it booted up and connected to usb on my laptop as a mass storage device.

It now appears to be a completely normal N905.

It's possible that my frustrated probing corrupted a flash image and triggered a reload. This is generally the most foolish way to restore firmware but people do it on routers and settop boxes and the like. It's a time-honored, really stupid way of reviving electronics.

Or maybe it turns out that these demo units will re-flash themselves if you hold down home and the slide switch while turning them on.

Touch Kobo Touch: Corrupted?!

$
0
0
Hello all,

I have a Kobo Touch N905B, which I believe is corrupted somehow. When I factory reset it, it works but when updating to the latest version via the Kobo Desktop App, it glitches up somehow - the update is successful, however, the software is extremely glitchy. Pressing the reset button takes me to a Language select screen, and when I press English, the device freezes until I reset it again. I cannot connect it to the computer like that, so it's completely unusable until factory reset.

I talked to support and they walked me through multiple factory resets, but unfortunately could not help me any further, as I still had the same problem.

Is it possible for someone to help me, possibly via a factory image? If so, it would be really appreciated if you could also send me a guide on how to use it.

Thanks for reading :)

reload document with modified css

$
0
0
Hi,

This is for patchers!!:bookworm:

Still wondering if we are far of the "onclick" event ;) :xmas::xmas::xmas:

Each time I change the size of the font, the document seems to be re-parsed.

Is there a possibility for a patch making the same with an "onclick" for css change like "display:none" on some elements. :chinscratch:

Regards

François

Using the kobo as a external eInk monitor

$
0
0
Hi,

I just managed to use my Kobo Aura HD as an external eInk monitor for my laptop, using VNC (i.e. kvncviewer) over WLAN... more details on my blog.

The setup is still very manual, but I hope to automate that a bit later on. It seems the trickiest part is to find a non-intrusive way to actually start something on the kobo.

Kobo touch screen in "Restarting"

$
0
0
Hello!

I have some issues with my white kobo touch.

It was connected to PC, loading ebooks from PC. Then, after unplugging it, the screen got frozen, showing "Restarting" in many languages and showing a big "check". The upper led turned"blue". Since that, it became frozen.

Hope you can help me (I apologize for my english). Thanks!
Viewing all 1561 articles
Browse latest View live


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