05-10-2018, 05:14 AM | #1 |
the rook, bossing Never.
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Paragraph indent problem
The first line indent of a paragraph is half size on the Kobo.
I'm nearly sure there must two different CSS methods for indent of first line. I didn't use to have the problem. It's happened either since a Kobo update, a LibreOffice update or a Calibre update eReader: Kobo Aura H2O (original). Conversion: Calibre (up to date) Source: ODT format from LibreOffice writer (from distro) OS: Linux Mint 18.3 with Mate Desktop and TraditionalOK theme Basically if I use original document paragraph in Calibre Conversion, I get an indent half of what it should be on the Kobo. The indent is correct on ancient Binatone ReadMe Daily (if the ePub is in the Digital Editions folder). The indent is correct on Calibre's own PC eReader using ePub. The indent is correct converted to Mobi on Kindle DXG and correct on If I use "remove blank lines" and forced 1.5em I get the "correct indent" on the Kobo, same as on the Binatone & Calibre eReader, the sort of size I used to get. If I double the Point size of Indent in LibreOffice Writer, then the indent is correct on the Kobo, but x2 on everything else (approximately). If I convert a mobi or AZW file from Amazon, Smashwords or Gutenberg, or use an ePub from Smashwords or Gutenberg, the indent seems sensible. Obviously Calibre has two different ways of setting the indent, one of which is used for Wordprocessor source. Something has changed in either the Kobo, Calibre or LibreOffice. Since exact ePub with wrong Indent on Kobo is OK on the Binatone Readme and the Calibre eReader, I suspect a Kobo update. I've had a number of updates, now on 4.7.10413 (I avoided the 4.8 after reading thread here). Any ideas how to fix this or get round it other than forcing the 1.5em indent which can cause issues for text with a deliberately different indent to main body? |
05-10-2018, 01:27 PM | #2 | |
Bibliophagist
Posts: 35,430
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I haven't seen that issue with a Kobo update though I send sideloaded books to my Kobo as epubs so I am not sure if this issue would show with kepubs. |
|
05-10-2018, 01:44 PM | #3 | |
the rook, bossing Never.
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
I'll try chopping a short text from gutenberg that's been converted from mobi and a page of LibreOffice ODT converted to ePub. Also same text with the Calibre working 1.5em option (which isn't always what you'd want, so not a workaround, my workaround is to double the point size on indents in LibreOffice for a copy saved specifically for Kobo. I use paragraph and page styles, so easy to make a custom version of a 125K book. I should have looked at the css in Calibre, I suppose. |
|
05-11-2018, 11:58 AM | #4 | |
Bibliophagist
Posts: 35,430
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
05-14-2018, 02:46 PM | #5 |
the rook, bossing Never.
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I looked at the CSS of the ePub.
It's not complicated. The 16pt indent for the main body text was being "converted" to 15.99pt. Or if it was set to 32pt to make it look right on the Kobo, it was also fractionalised. Then the Kobo displays half the size of indent approximately. When explicitly set EXACTLY 16pt in the Calibre ePub CSS file, the Kobo H2O Aura displays correctly. Also even just setting the one body text size to 1.5em is about the same. 16pt is maybe a little more than 1.5em. Aldiko and Binatone Readme Daily cope with indents in pt with two decimal places. (15.99pt looks like 16pt, not 8pt) The Kobo obviously sometimes doesn't. Conclusions: 1) It's a bit weird that Calibre is slightly adjusting point sizes. Loads of things like 6.01 or 15.99 or something.34pt 2) Kobo FW 4.7.10413 doesn't like 15.99pt, it does about an 8pt indent, but a 16pt indent does display correctly. Other eBook readers and Apps don't seem to mind 15.99pt. Weird. At least I have a reasonable work around. Only takes a couple of minutes to replace all fractional margins & indents etc with whole numbers. Though I THINK my LibreOffice source is consistent (and doesn't allow em), the CSS had %, pt, px, em and 'medium' for sizes of stuff! |
05-14-2018, 06:53 PM | #6 | |
Bibliophagist
Posts: 35,430
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
05-14-2018, 07:22 PM | #7 |
Wizard
Posts: 1,142
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
The fraction sizes might be the result of Calibre Font Size scaling, you can try disabling that when you are converting to epub.
The pt size for indents is a little odd.. Libre office generally defines indents in in. or cm. not pt. Are your documents indented with tabs?? |
05-14-2018, 10:05 PM | #8 | |
Bibliophagist
Posts: 35,430
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
05-15-2018, 03:58 AM | #9 | |
the rook, bossing Never.
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
pt makes more sense for my paper versions, though em would be best for HTML and eBooks, but you can't enter em. Entering % for font size is possible. I'm a bit baffled. Another conversion, after changing 15.99pt to 16pt in CSS has about half desired indent. Only wrong on Kobo. I've ALSO discovered that "removing" a book, even on the Kobo, must not remove everything. If the "new" version "sideloaded" via USB has a different CSS to the last version the display can be totally messed up. You have to reset via the little hole at the bottom. I'm baffled. |
|
05-15-2018, 04:32 AM | #10 | |
the rook, bossing Never.
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
You do have to reset to reliably see any change. However whatever I did earlier now isn't working, the indent on Kobo looks like about 8pt rather than 16pt for body text. P.S. I never enter tabs, more than one space or blank newlines. I use styles. The only exception being direct italics or bold within a sentence as the "character" styles seem to create a problem converting between different programs and formats. I use page styles (only important for printed, i.e. title, front papers, index, first page, default pages, endpapers) and paragraph styles (Heading 1 for Chapter Titles). I will later put some short sample ePubs, source in .doc & .odt and the css of various options on one of my websites. I'll include the pages from Title to 2nd chapter of several books so all aspects are covered. |
|
05-29-2018, 04:04 AM | #11 |
the rook, bossing Never.
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Still investigating.
It's also made hard by fact that Kobo H2O seems to "remember" the old CSS if you delete and reload same title. A power cycle or reset usually updates. There must be a CSS cache? |
05-29-2018, 05:59 AM | #12 |
Resident Curmudgeon
Posts: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Your indents should be in ems, not pts. I use 1.2em and that looks good without being too wide an indent. So change these ##.##pt indents to 1.2em and see what you think. Yo can change from there if you don't like 1.2em. 1.5em (to me) seems to be the largest size to use without being overly large.
|
05-29-2018, 05:59 AM | #13 |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
05-29-2018, 07:16 AM | #14 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
|
|
05-30-2018, 04:54 AM | #15 | |
the rook, bossing Never.
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
However, the word processor only uses absolute (except for fonts which can be %), such as metric, imperial or points. It's not possible to specify indents in ems in the source. I do edit the styles in the source and save different versions for paperback (export PDF), Smashwords (save As .doc), Amazon (save As .doc)and Google (I edit the Smashwords ePub). The Smashwords converted ePub and Amazon mobi from .doc exported from Libre Office is fine. There IS an option to remove blank lines and put an indent based on ems in Calibre. However that messes up some aspects. Editing the css for the body text to 1.5em is better, Calibre seems to do it to all styles. Sometimes (whatever it is), the Kobo H2O DOES do correct indent for the body text. Note that it's not a problem on Calibre's own eReader, or on other ePub ereaders or conversion to Mobi. So though whatever it is due to Calibre conversion, only my Kobo H2O is "sensitive" to this issue. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Css code to indent first paragraph? | shootist | Editor | 14 | 12-30-2015 06:17 AM |
How do I set paragraph indent? | pargoo | Sigil | 17 | 11-09-2013 06:38 PM |
Selective paragraph indent | Leonatus | Writer2ePub | 8 | 10-31-2013 04:22 PM |
HTML- Paragraph indent w/ no spaces? Help please? | Joseph Picard | Workshop | 36 | 07-20-2012 12:35 PM |
Preference: Paragraph indent or a little paragraph spacing? | 1611mac | General Discussions | 48 | 11-11-2011 12:43 AM |