|11-18-2009, 05:31 AM||#1|
Join Date: Oct 2009
Location: Kiel, Germany
Device: SONY PRS-T1
How is smoothly justified text achieved?
I'm pretty new to ebooks in general and EPUB especially,
and wondered how devices, or creators of EPUBs, achieve smoothly justified formatting on-screen?
As far as I know, EPUB's output on the screen is based on XHTML. Browsers at least cannot hyphenate text without external help from scripting libs, so how is it done? Without hyphenation, there are bound to be ugly gaps in-text if there are longish words present in narrower columns, aren't there?
Looking forward to tipps and pointers.
Last edited by polyfragmentiert; 11-18-2009 at 06:32 AM.
|11-18-2009, 08:23 AM||#2|
Join Date: Feb 2008
Device: Sony PRS-600, Fujitsu Stylistic ST-4121
If one wants nicely set text, use a .pdf, where one can use a decent H&J engine, and then manually tweak the text formatting to get the best possible results.
If doing epub, one is at the mercy of the formatting capabilities of whatever viewer the user has chosen and how that interacts w/ screen size / font size &c.
- manually tie together words or bits one believes shouldn't be broken (Dr. Livingston)
- put things which should not be broken, but might be into a no-break state (didn't)
- manually add discretionary hyphens where there's a possibility of the computer getting it wrong (pres-ent (a gift) vice pre-sent (to give to)) --- this won't work for instances in languages where the spelling has to change depending on whether or no it's hyphenated of course --- see above for a solution for that
- set the text ragged right
Above all, remove any manual line breaks which some idiot (or tormented Quark XPress user) inserted to force a particular linebreak
|11-18-2009, 08:48 AM||#3|
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Aura, Kobo Mini, Kobo Aura HD, iPhone, iPad, Galaxy Tab3 8
|11-18-2009, 09:24 AM||#4|
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|11-19-2009, 09:36 PM||#6|
Join Date: Apr 2009
Device: BeBook One, Pocketbook Touch
In my youth, there was this book series that I really loved. Now I got all this books in pdf files, but I prefer epub. So at first I converted all the pdf files to html, edit them and then convert them epub so I can read them on my Bebook. (But to add this: I started to prove read, so I got all the paper books through ebay - when you think about it: I got the Bebook to reduce the amount of books in my house, but now it got bigger)
But then I noticed many errors and started to edit the html files.
The converter that I use (Calibre) justifies the text if you want, but of course, this still needs some work. Also, if you want, it adds a text intent on every new paragraph, so it really looks like in a real book.
One of the biggest problems however are the line breaks. Sometimes there is a line break in the middle of a sentence. And sometimes, a line break is missing, even though there should been one. So right now, when I read one of this ebooks and I see a line where a line break is missing or where there is one too much, I write this line down on paper and edit it later at home.
As for long words: I am not sure, but I think my e-reader (the Bebook 1) doesn't support hyphenation. I tried to add soft hyphenation on some long words, but somehow I never got it to work properly.
For example: a word like "Racecar" ... it was supposed to look like: Race- car, but in the end, it looked like Race car (the dash was missing).
I also tried the opposite. Words like e-commerce or Mary-Joe shouldn't be separated (at least imho), so I tried non breaking hyphen. Somehow this didn't work either. But I got it fixed with <nobr> tags. In all of the 27 books of the series, there is a guy named "Hans-Jürgen". A few times, the 2nd part of his name was moved to the next line, because of the "-" ... so now I edit all my ebooks to look like <nobr>Hans-Jürgen</nobr> ...
When I think about it: before I started to work with epub, I knew NOTHING about html ... but right now I am really getting into it (but of course I am still a novice)
|11-20-2009, 12:13 AM||#7|
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
The problem is that novel length PDF never converts without errors. Even Adobe Acrobat cannot convert error free. This is why PDF is a terrible source format to convert to anything else.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Firmware Update K2i 2.5.3 no "justified" text ?!||Balerion||Amazon Kindle||11||07-14-2010 02:13 PM|
|6.31 and 2 not working smoothly||DennisDoyle||Calibre||12||03-16-2010 05:45 PM|
|Epub books text justified with update?||Mayr||Sony Reader||28||09-23-2009 05:36 PM|
|calibre: HTML to LRF conversion, problem with justified text||Juggle4Evr||Sony Reader||6||07-12-2009 08:19 PM|
|Justified text in ePub?||kiwik||ePub||5||03-07-2009 03:35 PM|