05-14-2017, 09:29 PM | #1 |
Enthusiast
Posts: 32
Karma: 43046
Join Date: Nov 2011
Device: None
|
Default Paragraph Style When Viewing HTML Files
I understand from reading the wiki that the Kindle can display an HTML file if it is renamed with a .txt or .nownow file extension.
Assuming that a well formed plain HTML file with no style information is used, what kind of paragraph formatting is displayed: indent or block paragraphs? |
05-14-2017, 11:17 PM | #2 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
|
|
Advert | |
|
05-15-2017, 06:36 PM | #3 |
Enthusiast
Posts: 32
Karma: 43046
Join Date: Nov 2011
Device: None
|
I don't have an eInk Kindle and I am trying to decide on getting one (as my eyes are starting to be bothered by backlit displays).
I have a lot of simple .html files I want to add to the device. My understanding is that if I were to use Kindlegen to convert those .html files to .mobi, I would get idented paragraphs. I was curious if it is the same for .html files renamed to .txt. |
05-15-2017, 09:02 PM | #4 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
No styling, only non-standard thing is the extension is: .txt Indented paragraphs is what you get with the reader. (Which is wrong, but there are a lot of things the reader does not get correct.) I did not check what the stock browser defaults to. Last edited by knc1; 05-15-2017 at 09:12 PM. |
|
05-15-2017, 09:03 PM | #5 | |
Guru
Posts: 920
Karma: 14000188
Join Date: Jan 2013
Location: Ely, Cambridgeshire, UK
Device: Kindle Oasis 3, Kindle Oasis 1
|
Quote:
You can fix it by fiddling with CSS text-indent and (IIRC, it's been a while) padding. |
|
Advert | |
|
05-15-2017, 09:13 PM | #6 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I used the top example code, without the {style} ... {/style} section. Some of the "stock" tests and scripts write css-free HTML rather than plain text (I.E: Amazon/Lab126 does use it their self). I wrote one add-in report generator that did the same. And I am here to tell you the hard-coded defaults in the reader are really strange. I think it is HTML-⅋ version that they wrote the defaults for. (That is, very broken html) Last edited by knc1; 05-16-2017 at 06:41 AM. |
|
05-15-2017, 09:45 PM | #7 |
Enthusiast
Posts: 32
Karma: 43046
Join Date: Nov 2011
Device: None
|
Thanks, Knc1, for checking for me. I appreciate it.
NullNix: I much prefer block paragraphs as I find them to be more readable. But like a lot of things, it comes down to personal preference. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Overriding style sheet for one paragraph | Alda | Sigil | 9 | 05-20-2015 10:25 AM |
Break Document at Paragraph Style | BatGrfx | Writers' Corner | 2 | 09-10-2011 03:46 PM |
How can I amend the style definition in HTML to fix Kindle default? | eggheadbooks1 | Kindle Formats | 6 | 06-28-2011 05:14 PM |
Paragraph Style Not Exporting / ePub | soulartist | Workshop | 5 | 12-11-2010 01:02 AM |
Viewing HTML files on the iLiad | HarryT | iRex | 3 | 08-23-2007 03:42 PM |