View Single Post
Old 08-08-2013, 10:12 AM   #591
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
"Hyphenation
Both - (? I only know the Extended)[/QUOTE]
As per my last post, the current README is for the new code being tested. The first post has the README you'll want to read hidden behind a SPOILER tag.

Quote:
Originally Posted by Leonatus View Post
plugins includes the ability to add a CSS file to each book enabling KePub hyphenation. The standard hyphenation dictionaries provided on Kobo devices are somewhat deficient for some languages; fixing this (or adding your own dictionary) requires a little work and requires that you can create gzipped tarballs (.tgz files). - Do I need to create one? How do I do it?
If you want to update the hyphenation dictionary, then you must be able to create .tgz files. If you don't want to update the hyphenation dictionary, then it doesn't matter.

Quote:
Originally Posted by Leonatus View Post
Somewhere - (o. k. I guess I'll find a place)
Specifically where isn't important. You can do it on your Desktop, in your Downloads folder, under My Documents, in your temporary files directory, on a USB key... literally anywhere you want, just pick a spot that makes sense to you.

Quote:
Originally Posted by Leonatus View Post
on your computer, create the directory structure usr/local/Kobo/hyphenDicts - How do I create this? Do I need to create folders with those names?
Yes.

Quote:
Originally Posted by Leonatus View Post
Add the usr folder to KoboRoot.tgz - (where do I find this? Indeed, on my KT there is no KoboRoot.tgz file - you may call me an idiot, but I didn't find)
The 'usr' folder that you just created above, that gets added to a new file 'KoboRoot.tgz'. This is where you need to be able to properly create .tgz files. As I state in the README:
Quote:
Originally Posted by Leonatus View Post
UNIX users (Linux, Solaris, BSD, Mac) can, from the command line, run tar czf KoboRoot.tgz usr/ from wherever you put the usr directory.
Windows users, you're on your own. Contributions of reliable Windows directions are welcome!
So...
Quote:
Originally Posted by Leonatus View Post
- (Hm, indeed, I'm Windows user. Help! Please!)
You'll need to wait for someone else who's a Windows user to chime in, I'm afraid I'm not much help. Perhaps Google could help you, a quick search I did suggests that a program called 7Zip may be of use to you.

Quote:
Originally Posted by Leonatus View Post
Someone has an instruction for Dummies?
Not really, but anyone who can make the README easier to understand is welcome to contribute

Quote:
Originally Posted by BobC View Post
I have tried to add the Conversion output plugin, both by using the attached zip and by creating one from the Github files and in both cases I get an error :

calibre, version 0.9.42
ERROR: Unhandled exception: <b>ImportError</b>:cannot import name KEPubOutput

Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 310, in add_plugin
File "site-packages\calibre\customize\ui.py", line 361, in add_plugin
File "site-packages\calibre\customize\ui.py", line 53, in load_plugin
File "site-packages\calibre\customize\zipplugin.py", line 167, in load
File "site-packages\calibre\customize\zipplugin.py", line 150, in load_module
File "calibre_plugins.kobotouch_extended.__init__", line 7, in <module>
ImportError: cannot import name KEPubOutput
Interesting... I'll try removing the plugin and re-adding it. As it stands right now, it works fine for me. Which __init__.py did you add? Did you add the empty one that's there or did you rename conversion_init.py to __init__.py and then add a non-empty __init__.py?

Quote:
Originally Posted by BobC View Post
I notice that in your attachment the sql folder is included though it isn't called for in your "roll your own" recipe. I guess this is just an oversight in your build.
Actually the SQL folder should be gone. It shouldn't get added to any ZIP files, it shouldn't be in the attached ZIP files, and I should have deleted it from the Git repo.
jgoguen is offline   Reply With Quote