6

Is there a way an ebook gets converted to azw3 and hyphenated when I press "Upload to device" button in Calibre?

7
  • 1
    I'm not very familiar with azw3, but can't you resize the font while reading? Wouldn't that change the hyphenation?
    – beaker
    Jul 30, 2015 at 21:44
  • @beaker it's not azw3 format but other languages with words longer that in english you are not familiar with :) Aug 2, 2015 at 3:11
  • Fair enough, but 1) shouldn't that context be in the question, and 2) that still doesn't address what happens when the font size is increased to the point that the pre-hyphenated words no longer fit on a line.
    – beaker
    Aug 2, 2015 at 3:21
  • @beaker should it? The question is not about why do I need hyphenation, but about how to do it. Aug 2, 2015 at 3:23
  • @beaker has a good question. Why won't you answer it? In order to hyphenate you need to format pages, and that depends on the current font size when reading.
    – babou
    Jan 16, 2016 at 18:51

1 Answer 1

3

Hyphenating a text that is not in a fixed presentation (page shape, or ratio page size/ font size) makes little sense as the words may change position on a line. Hence, I am assuming that what you are asking is how to automatically do soft hyphenation, so that the reader of the file can modify the font size and still get proper hyphenation where needed.

Soft hyphenation consist in marking with a special character (e.g. SHY) all the places in the text where a word can be hyphenated. Then the displaying device does not have to know hyphenation rules, which vary from language to language, and can simply use the markers to cut words when needed, which may vary depending the fonts chosen by the reader.

Can this be done by Calibre. I never had to do it myself, but Calibre does have a plugin that will do it. It is called Hyphenate This! and works for AZW3 and for EPUB. It is described in some details in this article of the-ebook-reader.com(with a download address), and is also discussed on mobileread.com. It can also be downloaded from Softpedia.

From what I have seen in the files, the whole code is in Python, so it is likely to be platform independent (Mac, Linux, Windows).

Now, if the question was whether soft hyphenation can be done without pushing an extra button, I cannot answer. But the OP does not seem very willing to add more details to his question.

4
  • I know about that plugin but it doesn't convert and hyphen (it was bold selected in the question!) and upload in one click. Feb 11, 2016 at 23:46
  • @SmitJohnth If you knew about that plugin, you should have said so. In a good question one is supposed to state what one already knows about the issue. That makes the question more precise and saves time for everyone. You also did not bother clarifying that you mean soft hyphenation, which was apparently not understood. ----- Afaik, the ebook converters are implemented as plugins, like much of Calibre functionality. Hyphenate This! is also a plugin. So the answer to your question is yes. You simply have to merge the two plugins into a single one. Should I add this to my answer?
    – babou
    Feb 12, 2016 at 0:43
  • Well, an anwser answers the question and your answer haven't did it. Yes, I meant soft hyphens, english is not my native language. Is there a way to merge 2 plugins in one and still have all the functionality and settings from both? Feb 13, 2016 at 17:42
  • @SmitJohnth Regarding the merge of two plugins, I have no experience. Theoretically, it is always possible. In preactice, the two concerned plugins seem sufficiently close that it should be possible. They both transform an e-book from one form into another. Seem to be the kind of thing that can be pipelined. The main problem is getting into Calibre as it is a sizeable piece of software.
    – babou
    Feb 13, 2016 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.