Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 09-01-2020, 10:14 AM   #1
owl-sorcerer
Junior Member
owl-sorcerer began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2020
Device: none
Formatting issues

Hi,

I have an EPUB with entries like this:

<div class="entry">
<p>
<span class="entryname" id="id123">Object name.</span>
</p>
<div class="sense">
<p>Definition</p>
</div>
</div>

I am converting it to docx and I have some formatting issues.

Sometimes my source is prettyprinted so there is a new line before "Object name". It seems to translate into a space in the docx. Is there a way to avoid this?

I also have some css like the one I paste below to create indents but the indents are lost. Is there any way to keep them?

Thanks in advance.

.entry {
color: #000;
display: block;
font-family: Times New Roman, serif;
line-height: 100%;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 1.5em;
orphans: 2;
text-align: justify;
widows: 2
}
.sense {
margin-bottom: 0;
margin-left: 1em;
margin-right: 0;
margin-top: 0;
}
p {
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0.5em;
}
owl-sorcerer is offline   Reply With Quote
Old 09-01-2020, 10:31 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No whitespace inside inline tags is never completely ignored, new lines become spaces and multiple spaces become a single space. For your second question I need a complete example showing the problem.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-01-2020, 10:39 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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
I don't know if this will work any better, but it cannot hurt to try.

Convert to HTMLZ and then load the contents of that into Word.

Change .htmlz to .zip and unzip the contents. Then load the file index.html into Word.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having Formatting Issues in Calibre Ebon Hand Calibre 1 06-19-2017 11:13 PM
Formatting Issues With Ebook insane9 Conversion 3 01-16-2013 03:29 AM
formatting issues pvdbogaard Onyx Boox 8 06-21-2012 03:26 PM
iPad formatting issues Mygrrls Calibre 11 03-25-2012 04:48 AM
Formatting issues solloron1 Kindle Formats 5 04-12-2011 01:01 PM


All times are GMT -4. The time now is 12:56 PM.


MobileRead.com is a privately owned, operated and funded community.