Thread: Touch .kepub.epub
View Single Post
Old 04-14-2013, 06:45 AM   #190
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
Quote:
Originally Posted by comercializado View Post
** If you mean the dictionary: es_ES.es; hyph.dic should rename it and where I install it?
Quote:
  1. Copy the hyphenation dictionary to the KoboTouchExtended configuration directory
    1. To find the configuration directory, open calibre's preferences, choose Miscellaneous, and click Open calibre configuration directory
    2. Go to the plugins directory
    3. Go to the KoboTouchExtended directory, creating it if it does not exist.
So, what is the path to your calibre configuration directory? Did you go into the plugins directory? Did you see a directory named KoboTouchExtended? If not, did you create it?


Quote:
Originally Posted by comercializado View Post
** If in this case refers to hyph_es_ANY.es, that changed in this extension?
Quote:
  1. Unzip the OXT file and look for the file named as hyph_[language].dic.
  2. ...
  3. Copy the hyphenation dictionary as hyph.dic to use this as the default hyphenation dictionary if no language-specific dictionary can be found
    1. This is also a good choice if you only read in one language. You may still enable other languages if required using the directions in the next step.
  4. Enable extra hyphenation languages by copying the hyphenation dictionaries as hyph_[lang].dic, where [lang] is the ISO 639 3-letter language code (ISO 639-3, or ISO 639-2/T if no ISO 639-3 code exists)
Perhaps those last two items are not clear?

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:
  1. Get the ISO 639 3-letter language codes from calibre's metadata
  2. For each language code found ("$LANG"):
    1. If hyph_$LANG.dic exists then use it and stop looking
  3. If a file has not been found yet, and the file hyph.dic exists, use this file
  4. If no file was found, do not hyphenate

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.
jgoguen is offline   Reply With Quote