04-11-2013, 04:10 PM | #181 |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
|
04-11-2013, 04:28 PM | #182 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Lucky you I haven't had a single book yet properly remember its place on my Glo when bookmarking or highlighting or annotating.
|
04-11-2013, 05:35 PM | #183 |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
I do not use bookmarks, but do use annotations and highlights a lot: perhaps the bug is device dependent? Could the fact that the mini has no SD card play a role?
|
04-11-2013, 06:27 PM | #184 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
I would doubt that, all my books are on the main memory and it doesn't matter if I have a card in the micro-SD slot or not. It's possible that it's device-dependent, I believe the firmwares are slightly different (but I wouldn't think they'd be that different). I'd rather think that it's book-dependent, if the device can properly determine the right position to mark then it'll work fine.
|
04-14-2013, 04:56 AM | #185 |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2013
Device: Onyx N96CML
|
Hi jgoguen. First of all thank you for your work. I use the plug-in and I'm very happy with it. But I have a problem, I am trying to install the Hyphenation utility in the plugin, but I'm doing something bad because does not work. The dictionary I use is Spanish. I have the following files: hyph_es_ANY.es; es_ES.es; , what can I do with each of them? moreover the ISO code: hyph_es_ANY.es, is ISO8859. should I change it? I'd appreciate your help.
Thank you |
04-14-2013, 05:16 AM | #186 |
Zealot
Posts: 105
Karma: 37668
Join Date: Feb 2012
Device: Kobo Touch
|
I just tested the latest kepub.epub plugin with interesting results.
Highlighting works on some files,and doesn't on others, and I've found one where it works on some chapters but does not work on others (or maybe it's not chapter related but some parts of the text can be annotated, others not.) I've put the kobo.js in a book and referenced it in the htmls, and the highlighting bug healed. But the hyphenation messes things up. Every paragraph which has hyphenated word in it aligned to left, regardless of the kobo settings or the css style. And the hyphenation occurs way too "early". Highlighting in those paragraphs works strange: the selection have an "offset", it seems to work on the justified text, even if it's shown as left-aligned. After the highlight made, the row appears justified. I've attached some pictures to show this. |
04-14-2013, 05:26 AM | #187 | |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
https://github.com/jgoguen/calibre-k...er#hyphenation I don't believe the file encoding code should be changed. If you followed the README directions, you have the official LibreOffice/OpenOffice.org hyphenation dictionary and you should ask a maintainer of those projects whether they set the correct file encoding code if you feel it should be different. |
|
04-14-2013, 05:54 AM | #188 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Apr 2013
Device: Onyx N96CML
|
Quote:
1.Download the LibreOffice (or OpenOffice) hyphenation dictionary for your language will be to file 1.This With The 'oxt' extension. This is just a ZIP file with a different name. 2.Unzip the OXT file and look for the file named as hyph_ [language]. Dic. 3.Copy the hyphenation dictionary to the configuration directory KoboTouchExtended 1.To find the configuration directory, open caliber's preferences, choose Miscellaneous, and click Open caliber configuration directory 2.Go to the plugins directory KoboTouchExtended 3.Go to the directory, creating it if it does not exist. 4.Copy the hyphenation dictionary as hyph.dic hyphenation dictionary for the default if no other can be found ** If you mean the dictionary: es_ES.es; hyph.dic should rename it and where I install it? Extra 5.Enable languages by copying the hyphenation hyphenation dictionaries as hyph_ [lang]. Dic, where [lang] is the three-letter ISO 639 language code ** If in this case refers to hyph_es_ANY.es, that changed in this extension? |
|
04-14-2013, 06:01 AM | #189 | |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
I can't fix these things unless Kobo suddenly decides to allow third-party distribution of their CSS and JS files. Considering how specific the device support is for my plugin, I couldn't even justify adding an option to include "arbitrary" CSS and JS. calibre itself already let's you add CSS rules (but not a file) and the only JS that would be worth including is the Kobo JS. Also keep in mind that this plugin is enabling access to an internal renderer that is only intended to work with Kobo-supplied kepub files. Kobo has explicitly stated (on these forums, maybe even this very thread but I don't have the link right now) that they recommend not using the kepub renderer with side-loaded books. The renderer is likely coded to use features known to be present in Kobo kepub files, with sensible defaults. The hyphenation feature actually adds the Unicode soft hyphen character, which is not shown unless it's at the end if a line, so I suspect that these extra characters confuse the renderer in the absence of the expected JS functions and cause problems with highlighting and selecting being offset. EDIT: I found the post, #7 in this thread: https://www.mobileread.com/forums/sho...55&postcount=7 Last edited by jgoguen; 04-14-2013 at 06:05 AM. |
|
04-14-2013, 06:45 AM | #190 | ||||
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
Quote:
Quote:
Quote:
In the KoboTouchExtended plugin configuration directory, do you have a file named hyph.dic? This is the default hyphenation dictionary, used if the plugin cannot find any other language-specific dictionary. If you only read in Spanish, you may choose to use this name for your Spanish hyphenation dictionary. If you read in multiple languages, you may choose instead to have all hyphenation dictionaries named with their ISO 639 3-letter language code (hyph_eng.dic, hyph_fra,dic, hyph_gle.dic) of you may choose to have your primary language named hyph.dic and other languages named with their ISO 639 3-letter language code. The way the plugin finds the hyphenation dictionary is:
So you unpacked the OXT file and you found hyph_es_ANY.es? Based on the directions above, you know that this cannot be the right name to use with the KoboTouchExtended plugin because the extension is not .dic and es_ANY is not a valid ISO 639 3-letter language code. So you know that you need to rename it - what do you think you should rename it to and what is the full path to the directory where you should put it? EDIT: I've updated the README file to be (hopefully) a bit more clear about the naming of the hyphenation dictionary and what language code to use. The directions above have been updated to reflect the new version of the README in the hopes that it helps you find the answers. Last edited by jgoguen; 04-14-2013 at 06:53 AM. |
||||
04-14-2013, 06:59 AM | #191 |
Zealot
Posts: 105
Karma: 37668
Join Date: Feb 2012
Device: Kobo Touch
|
Sorry jgoguen, I didn't make myself clear: I'm not complaining, I'm really grateful for your work, even if it's not perfect and can't be perfect because of copyright issues, and because of the lack of information how the kobo-renderer works. I just wanted to say that the highlight-not-working issue solved for me when I put the js in the book. I know it violates some rights, and I don't ask you to do anything with it.
The "hyphenated paragraphs appears left-aligned" happens in books with no javascript in it, so it's not caused by the js. I understood that the plugin just inserts soft hyphens, but I thought it's worth mentioning, it does not work properly on some books (actually all the books I tried). Maybe it's something about the css files (I didn't use the kobo's), I don't know, but it makes this feature unusable to me. (I tried to replace the unicode soft hyphens to html-code (& #173 ; ), it just gotten worse: the paragraphs contain hyphenated words simply did not appear.) And I found it interesting that these two things (highlighting and aligning/justification) are not completely unrelated. |
04-14-2013, 08:55 AM | #192 |
Zealot
Posts: 105
Karma: 37668
Join Date: Feb 2012
Device: Kobo Touch
|
Here is another thing.
The readme file says that the files are processed during upload and the original files remain untouched, but I just realized that the "koboSpan" tags are saved in my epub files on my PC calibre library too. I can't reproduce it (tried to upload another book, and the modified file didn't save back), so it's not a bug but a kind of "user error", I just wondering what went wrong before... |
04-14-2013, 11:08 AM | #193 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
I really say everything about the renderer and copyright issues because a) I don't know how much you know about the details, and b) I don't know how much anyone else reading this knows about the details.
I'm not sure how the book in your library got updated, I have no code to do that and as far as I know I actually can't find the original book location without querying calibre's SQLite database. I had talked about doing it at one time, but Kovid (maybe davidfor?) pointed out that doing so would cause problems if anyone ever used a non-Kobo reader and uploaded the epubs. If you upload a book with my plugin and then save it to your library, I believe that would put the modified book into your library, not sure how else it could have happened. Maybe you added a book that had already been modified. |
04-14-2013, 11:29 AM | #194 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2013
Device: Kobo Glo
|
Hi clsdclsd, I'd like to try what you did to solve the highlighting issue, i.e., where you said,
"I've put the kobo.js in a book and referenced it in the htmls, and the highlighting bug healed." Could you help me a little with the procedure? 1) Do I merely take the kobo.js from another book and stick it into the book I'd like to enable for highlighting? 2) If I take the kobo.js from another book, there will be a lot of script already in the file (which to me is mostly gibberish). Is there any likelihood I can just apply that script to the target book as well? 3) And finally, how do I "reference it in the htmls"? I hope this is not too difficult too explain. Thanks. |
04-14-2013, 12:35 PM | #195 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
clsdclsd, depending on the laws of your country you may not be able to assist. Canadians can't, I believe Americans cannot either.
|
Tags |
epub, kepub, kobo |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Downloading kepub to ADE | scr212 | Kobo Reader | 14 | 10-14-2012 02:37 PM |
KePub Toolbox | Thasaidon | Kobo Reader | 1 | 08-08-2012 07:49 AM |
What will happen/I gain if I forced an ePub book to a KePub book? | andsoitgoes | Kobo Reader | 4 | 04-04-2012 04:33 PM |
Touch Any hack/work-around to sync bookmarks of non Kobo ePub (kepub) | andsoitgoes | Kobo Reader | 3 | 04-03-2012 03:56 PM |
Kobo Adobe Epub is a Kepub instead | rashkae | Kobo Reader | 61 | 01-13-2012 06:15 AM |