![]() |
#1 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2024
Device: Kobo, Clara
|
Strange problem with conversion from docx to epub- linebreaks
Dear friends,
I had a very weird, and hopefully small, problem with my conversion attempt. I am quite inexperienced with these kind of things, so please forgive me for asking a silly question. My sense is that this will be very easy for an experienced user to figure out. I was originally trying to convert a book, from pdf to epub, and I got a lot of issues from this. Then I learned that pdf is a terrible input format, so I tried the same project again, this time with docx as input format, and behold: it worked much better! However there is a new issues that arose: All the line breaks were removed from the book. No empty spaces between paragraphs. So I wonder, will I have to manually go through the entire document and add <br> everywhere, or is there a solution to this? ![]() I would be very grateful for a reply, and apologies that this post does not follow the guidelines for how to post new threads, but I hope that the, assumed, simplicity of the issue can atone for this. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,042
Karma: 78070360
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I believe the mistake is in trying to format in Word with blank lines. The normal solution is to utilize styles in Word and set the paragraph style to include spacing after it.
Sent from my Pixel 7a using Tapatalk |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,693
Karma: 58985420
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
A holdover from Typewriter days? 2 slaps at the return lever
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,091
Karma: 142517494
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What version of calibre are you using?
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2024
Device: Kobo, Clara
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2024
Device: Kobo, Clara
|
|
![]() |
![]() |
![]() |
#7 | |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2024
Device: Kobo, Clara
|
Quote:
Best regards, |
|
![]() |
![]() |
![]() |
#8 |
Reading till the spring
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,146
Karma: 97346127
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Never have blank lines. Use a paragraph style in MS Word or LO Writer.
Similarly never more than one space, never tabs and never a space at the start of a line or the end. Use paragraph styles etc. I actually search and delete them before a final save. |
![]() |
![]() |
![]() |
#9 | |
JCL Punch-Card Collector
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69
Karma: 34468
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
|
Quote:
If publishers would always mark section breaks with decoration (which is not how they will/have ever done for on-paper editions), this would be less of a problem and perhaps the default treatment could be different. Nope. |
|
![]() |
![]() |
![]() |
#10 |
Reading till the spring
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,146
Karma: 97346127
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
You can have a first-paragraph-is-scene break style in the MS Word or LO Writer with no first line indent and as much top margin space as you iike.
Or a scene-break style that has top, & bottom margins and is centered with 0 for left and right margin and put one of . . . * * * ~ - – — etc. in that scene break paragraph. There is no need ever in an ebook (or source wordprocessor file) to use directly entered empty lines, extra spaces or tabs. Not even for paper print. It's only for an MSS typed on a physical mechanical typewriter. Obsoleted 40+ years ago. Anything deliberately at the top of a page (like a heading that forces a new page) is better with padding-top as margin-top is often ignored for the first element on a new page. Web sites don't have pages like ebooks, except on the Print option. Last edited by Quoth; 05-10-2024 at 02:59 PM. |
![]() |
![]() |
![]() |
#11 | |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2024
Device: Kobo, Clara
|
Quote:
I just wonder about this thing with no more than one space. I assume that you mean how we structure the document aside from what we do with the paragraph style function? Or would it be complicated to create larger "empty spaces", for example around verse, to separate it a bit from the regular text. And also, if we use paragraph style in LO Writer, would that mean that each single paragraph would get particular HTML-coding in the final EPUB version? Sorry for asking, this is rather complicated for someone relatively inexperienced in this domain. Best wishes, |
|
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,042
Karma: 78070360
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Nothing prevents you having multiple pre defined paragraph styles; one for regular text and a different one for verse. Then it's just a question of assigning the correct style to a paragraph. Additionally modifying the style propagates the new styling to all paragraphs.
Sent from my Pixel 7a using Tapatalk |
![]() |
![]() |
![]() |
#13 |
Reading till the spring
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,146
Karma: 97346127
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Each MS Word or LO Writer "paragraph style" is mapped 1:1 to CSS in the converted to epub.
You can have as many styles as you want, and normally one is the default for ordinary paragraphs. Typically you might have a style for each of Title author headings that are new pages but not chapters (front and end matter pages) chapter headings (these are usually having a heading level of 1 or 2) other headings that don't make a new page First paragraph after a chapter heading quotations, letters etc a scene break paragraph a regular paragraph You would also have paragraph styles for lists, preambles, notes, marginalia etc. A paragraph or line in a different font gets a style. The ONLY things ever direct formatted (and character styles can be used) are some words in a paragraph in bold or italic (and bold in fiction is really only for headings and sub headings), superscripts and subscripts (best avoided). Never centre, left, right, fully justify by format tools, use a style. A text book or reference work is far more complicated. Basically, no direct formatting. Delete all from the formatting tool bar except italics if writing fiction. Use styles. The Enter/Return key only ends a heading (a short paragraph), list item or paragraph. Even lists are best as a simple paragraph style and manually enter the number, bullet or letter at the start of each item, because HTML lists are less flexible on ereaders than web pages. Never press tab, or space more than once, or Enter more than once. All spacing and layout for paper or ebook should be by styles. Tables are only 100% OK for paper. They are a hazard for ebooks. Images are best at one per line unless small and the same height and in a centred paragraph. Do not set line height. That's for paper. Only use margins and padding. No headers or footers: Only for paper. Only one page style and make it small to get an idea of what fits on a small screen, A5, or about 6″ x 4.5″ with about 10 to 18 pt margins all around. Most ebooks are read on phones! Remember the Wordprocessor defaults are likely for Letter or A4 size business reports. Save all your styles as a default template. You can have a different one for paper print and load it in Overwrite mode and then Save As a different name. If using LO Writer only edit & save ODT as opening a docx is a conversion. Do an extra Save As in docx. A poem might have multiple paragraph styles: first line of first verse, first lines, body lines, last lines and then last line of last verse. first line of first verse: bigger top margin to offset from main text. body lines: no top or bottom margin, or to tasts first lines: extra top margin last lines: extra bottom margin last line last verse: extra bottom margin to offset from main text. For a LtoR language they would all be left justified. A poem title might be centred and bold style. A regular paragraph has a larger first line indent than the body. A poem line or list item has a smaller first line indent than the left margin so if the screen is small and it wraps it looks like one wrapped line and not a regular paragraph. |
![]() |
![]() |
![]() |
#14 | |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2024
Device: Kobo, Clara
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: May 2024
Device: Kobo, Clara
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conversion problem Docx to epub font failure | sinbadalexandros | Conversion | 1 | 04-10-2020 04:17 AM |
Heading style problem at docx to mobi conversion | resolfe | Conversion | 2 | 04-18-2019 11:38 AM |
Epub to Docx conversion? | Hattie | Conversion | 14 | 09-13-2014 05:12 AM |
Conversion of Endnotes .docx to .epub | profjones | Conversion | 1 | 11-01-2013 09:05 AM |
Strange image conversion problem ePub to mobi | AlexBell | Conversion | 19 | 09-10-2011 03:42 AM |