Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-21-2023, 08:16 PM   #1
luke
Junior Member
luke began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2023
Device: none
Docx output forces tab before Headings styles

For some reason, when I convert a document to docx, then open it with LO Writer and invoke one of the Heading styles (Heading 1, Heading 2, etc.), a tab is inserted at the begging of the line. This happens only on docx documents that I have created by converting epub and pdf to docx in Calibre.
luke is offline   Reply With Quote
Old 05-21-2023, 09:34 PM   #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,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You would need to ask LO developers why it does that. If you can get a clear answer from them, I will take a look.
kovidgoyal is offline   Reply With Quote
Old 05-22-2023, 05:39 AM   #3
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 10,793
Karma: 83992591
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
I've never seen that behaviour.

I've no tabs anywhere.

Do Save As in odt after opening a docx.

Do check the styles your LO Writer is using. You can create a new default template.

1) Search and replace all Tabs with one space.
2) Search and replace all two spaces with one, till done.
3) Switch to Regex mode
4) Replace $[ ] with nothing (deletes trailing space)
5) Replace ^[ ] with nothing (deletes leading space)
6) Replace ^$ with nothing (deletes empty paragraphs)
7) Cancel Regex mode
8) Set styles, links, anchors as desired.

Only indent with margins in styles.
Never add blank lines to space paragraphs. Use margin before/after.

Ebooks may have tabs, multiple spaces, blank lines etc due to inept formatting.

No Word or LO Writer document or ebook should ever have:
Tabs
Multiple spaces (only ever one)
Trailing space
Leading space
Blank lines
Quoth is offline   Reply With Quote
Old 05-22-2023, 06:30 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Is the OP confusing Indent with Tab (the key many of us antiques, used to start a Paragraph)?
theducks is offline   Reply With Quote
Old 05-22-2023, 07:20 AM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 10,793
Karma: 83992591
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Certainly the default style may have an indent, which isn't a tab. That's easily set to 0 in the Style editor, which it should be for flushed right or Centred headings, or if you want the heading at the left margin.

Indeed, for an indent on first line of a paragraph, edit the style, which maps to CSS when converting docx to epub in Calibre, never enter a Tab.

A tab key should only be used to navigate forms, or enter an indent in programming, never used in documents / wordprocessing.

Aside Edit: I wonder can I make Tab and Shift Tab in LO Writer simply navigate next & prior heading instead of inputting?

Last edited by Quoth; 05-22-2023 at 07:23 AM.
Quoth is offline   Reply With Quote
Reply

Tags
conversion, docx output

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter Titles as <ol> Styles in docx-->epub Conversion retiredbiker Conversion 3 01-24-2021 12:06 AM
Converting from EPUB to DOCX - styles tage fredheim Conversion 2 10-16-2019 11:21 AM
DOCX paragraphs listed as headings in navigation window tage fredheim Conversion 2 07-26-2019 07:11 AM
.docx --> epub - Heading styles not translating to <h1> <h2> Gary Friedman Conversion 6 06-20-2018 07:27 PM
assigning styles to headings kamanza Sigil 9 11-14-2011 04:41 AM


All times are GMT -4. The time now is 08:47 AM.


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