05-30-2018, 05:01 AM | #16 | |
the rook, bossing Never.
Posts: 11,150
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Short stories don't usually have chapters. Though I always have chapters. Best workaround currently is to edit the css of the epub, rather than use Calibre's remove blank lines option. Though I don't put blank lines. LibreOffice Writer: I use ^$ regex to find them in source. ^[ ] finds a leading space and [ ]$ finds a trailing space. I replace all multiple spaces with a single space and never use tabs. I stopped using MSOffice over two years ago, even before moving completely to Linux. |
|
05-30-2018, 08:24 AM | #17 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
And reading through this thread, could you post a sample epub? Or the actual code that is a problem. You describe the problem, but, to test it, I would have to write the code myself. And I might not create the same code that you have. A sample of what you have makes sure we are all looking at the same thing. |
|
Advert | |
|
05-30-2018, 08:42 AM | #18 | |
Resident Curmudgeon
Posts: 73,946
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-31-2018, 05:57 AM | #19 |
the rook, bossing Never.
Posts: 11,150
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Updated from 4.7xxxx to 4.8.11073 (b628114af7 08/05/2018) today.
Still have the problem with indent. The sort order within a series is still erratic when a title replaced or added. The odt file converted by Calibre has correct indent on every ePub reader except the Kobo H2O (original). Most noticeable on the body text as the indent is about half what it should be (whatever it's set to). Editing to 1.5em in CSS fixes it (indent about the same on everything). Still there is the bug that removal of the file (either via Calibre or on the Kobo Home Screen) somehow the old css is used till a complete power cycle (or reset, easier if you have a paperclip), then the new css of the new file is used. Paging to a new chapter, marking it unread, or sleep etc doesn't "recognise" the different CSS in new file. Only reset or power cycle. |
05-31-2018, 07:25 AM | #20 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Can you please post a sample file. As I said above, I am not seeing these issues, so would like to test with a book that is producing them. A screenshot or photo would also be good as that would actually show how different the book looks on different devices.
|
Advert | |
|
05-31-2018, 11:51 AM | #21 |
the rook, bossing Never.
Posts: 11,150
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
It's perfect and identical on EVERYTHING with a 17pt indent set in LibreOffice Writer. Matching appearance of source text and Calibre Viewer, except on the Kobo it looks about 1/2 size. If you set to about 34pt, then it looks about right. Basically if the Calibre css has xxpt for the body text indent the appearance on the Kobo, unlike Apps, Binatone Readme, PRS350 or mobi on a Kindle is about half what it should be, i.e. xx/2
Manually setting to 1.5em (also the default offered by Calibre) in the CSS looks about right, maybe a little more than the 17pt. You can't use "ems" in the Wordprocessor. I'll have to chop up some files. Can't be uploading an entire book. I've not checked other things. I do separately have a formatting issue that is very intermittent were titles, headings, images etc supposedly central are sometimes left justified. |
05-31-2018, 12:07 PM | #22 | |
Bibliophagist
Posts: 35,356
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As for uploading the book, use the ebook scrambler plugin for calibre or it's standalone cousin. See [GUI Plugin] ScrambleEbook: Getting help with copyrighted books for more information. For the standalone version, see Scrambling copyright ebooks to help troubleshoot problems ???. |
|
05-31-2018, 03:12 PM | #23 |
Resident Curmudgeon
Posts: 73,946
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
All you need do is load the ePub in the Calibre editor and search/replace. Try 1.2em since you say 1.5em is too large.
|
05-31-2018, 04:06 PM | #24 |
the rook, bossing Never.
Posts: 11,150
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Yes, I have a table now of Points to Em. though it's a simple ratio.
16pt approx 1.4em It seems points/12 = ems Examination of text with no first line indent, but a left margin (the body text = zero margin) is also spaced half the expected distance on a Kobo compared to every other reader and app. Thus Kobo are maybe dividing points by 24 if they "really" use ems (since the fonts rescale, obviously the Kobo converts points). All the ePubs that I have that display same on the Kobo as everything else use em for left margin or indent. The Kobo GUI replacement for indent is too much a blunt hammer, as it will not fix margins and sets ALL < p > tag indents to same settting. So workaround is to edit the CSS. I use the same small range of point sizes for everything so not hard. It's annoying that: 1) The Kobo H2O obviously using the wrong factor to convert pt in CSS to whatever it really uses. 2) That Calibre doesn't convert ALL points to ems, because eBooks are basically a sort of HTML, and unlike paper or PDF, supposed to scale, which is what "em" is for. Wordprocessors still assume paper, hence Inch/Centimetre/Points and not "em" which are not really absolute. PDFs are the ultimate evil unless you print everything or have a mythical pull out screen that does 1/2 A4, A4 portrait, A3 landscape. Or a 19" 4K screen and a desk. PDFs invented to preview and interchange for paper output. |
05-31-2018, 08:18 PM | #25 | |||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
I have to say that each time you make a statement about how this is working for you, it just makes me want to see the actual code you are using. |
|||
05-31-2018, 11:12 PM | #26 |
Wizard
Posts: 1,142
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
You can't really convert pt to em though.. the absolute size of em will scale with the base font size... pt does not.
Using pt, or in, is useful when you want indents to line up regardless of font size. On the H2O, I can confirm that 1in, or 72pt (which should also be 1 inch) both come out to somewhere around .5 in on the Kepub reader. The inch is measured out almost perectly on the epub reader, so the device knows it's own DPI. This is clearly a bug/feature of the Kepup rendering. I really have no idea what's up with your observation of having to power off the kobo to make changes. I've *never* seen that problem. Although, since the Calibre Kobo driver goes out of it's way to prevent the Kobo from detecting when a book file has changed, I almost always delete a book directly off the kobo device itself before connecting usb to replace it. Last edited by rashkae; 05-31-2018 at 11:17 PM. |
06-01-2018, 12:23 AM | #27 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
But, as I stated above, I have never had a problem with changes to the CSS not being seen when I resent and reopened a book. Except when I realise I forgot to save the change before resending the book. And I did that the other night when testing this. Of course, then I connected the device and forgot to send the book |
|
06-21-2018, 06:06 AM | #28 |
the rook, bossing Never.
Posts: 11,150
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
My conclusion is that if the css for my Kobo H2O original uses other than ems for margins, (i.e. inches or points used), then there is about a 50% mismatch between point size of text and margin, i.e, approximately first line indent on body text will be 1/2 as many characters and also all other margins that are not main body are about 1/2, such as top margin before a heading or additional indent for a block of non-body text.
It's happened some time before 4.7 firmware, I think. Simply leaving text point sizes alone and changing left indent (and left margin of non-body text) to official ems (point size / 12) works. Half size top margins or bottom margins on headings or other non-body text isn't an issue. It's not a Calibre conversion issue. Happens on other sources not using "ems". Obvious when comparing to other apps, Sony or Binatone ePubs. Also Mobi on three generations of kindle are as expected (1.4em approx is same as 16pt & approx 3 characters of body text indent, but on Kobo the 16pt or 0.2" is about 1.5 characters indent, 1.4em is about correct) |
06-21-2018, 06:16 AM | #29 |
the rook, bossing Never.
Posts: 11,150
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
The issue of CSS not updated on book removal and replace has gone. No need to reset/power off. Perhaps that was a driver setting in Calibre.
|
06-21-2018, 09:45 AM | #30 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
|
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 |