MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Conversion (https://www.mobileread.com/forums/forumdisplay.php?f=235)
-   -   preserving DOCX style system (https://www.mobileread.com/forums/showthread.php?t=315704)

quinta@ebf.cz 03-04-2019 09:58 AM

preserving DOCX style system
 
Quote:

Originally Posted by kovidgoyal (Post 3744050)
DOCX conversion do take class names from docx style names

I am sorry - isn't this information just inattention?

Preserving source styles system, when converting from docx, would be highly desirable. Can I achieve it somehow?

For me, common docx>epub conversion output contains recreated styles, named "calibre(1,2,...)" or "block_(1,2,...)"...

kovidgoyal 03-04-2019 10:12 AM

No you cannot, HTML and docx do not ave equivalent styling systems not to mention tahat calibre conversion flattens styles by design.

quinta@ebf.cz 03-04-2019 11:53 AM

I see. I have to misinterpreted the cited sentence. Thank you.

BetterRed 03-04-2019 03:44 PM

@quinta@ebf.cz - You might want to consider alternative DOCX->EPUB conversion tools.

The Mammoth DOCX->HTML converter will preserve the DOCX Styles, via user specified mappings - i.e it's not point-n-click. The Sigil DOCX-Import plugin is a wrapper around the Mammoth library. See ==>> [Plugin] DOCXImport - MobileRead

The Epub-tools add-in for Word can convert DOCX to EPUB and do a pretty good job of preserving styles, it also has other useful and in some cases unique features (e.g Dialogue Checking). See ==>> e-Book Tools: a Word add-in - MobileRead

BR

quinta@ebf.cz 03-05-2019 01:29 PM

Thanks for suggestions.
Web site of e-Book Tools - http://toxaris.nl/en - is currently not available.
I am trying to break through into DOCXImport. Seems the key there is something called "style map"...

BetterRed 03-05-2019 04:51 PM

Quote:

Originally Posted by quinta@ebf.cz (Post 3817614)
Web site of e-Book Tools - http://toxaris.nl/en - is currently not available.

Toxaris may not know that, if you post a msg in the MR ePub-Tools thread I'm pretty sure he will respond and fix it.

Curious -- if you're converting the DOCX to EPUB, and doing a DOCX->DOCX Compatibility convert in Word first fixes your image size issue, why not pre-convert the in-library DOCX file in Word to get rid of the Compatibility Mode state before doing the DOCX->EPUB conversion.

If you need to retain a copy of the original DOCX, either keep it somewhere outside the calibre library folder, or put it in a compressed archive file (e.g. a .7z) and drop that into the Book Details panel (on the right).

BR

quinta@ebf.cz 03-06-2019 04:12 AM

Quote:

Originally Posted by BetterRed (Post 3817711)
why not pre-convert the DOCX file in Word to get rid of the Compatibility Mode state before doing the DOCX->EPUB conversion.

Good point of view. Your solution is better then editation of converted epub. Thank you.

However, additional conversion step still means complication. Much better would be to do "something" :rolleyes: directly with original DOCX. The problem is somehow related to the way I create my DOCX compatibility mode documents… I just do not know how exactly. Not yet. :builder:

Toxaris 03-06-2019 04:04 PM

Quote:

Originally Posted by quinta@ebf.cz (Post 3817614)
Thanks for suggestions.
Web site of e-Book Tools - http://toxaris.nl/en - is currently not available.
I am trying to break through into DOCXImport. Seems the key there is something called "style map"...

That is correct, it is just http://toxaris.nl.

With the conversion in the tools you can set it to retain the stylenames. You can also let it try to create a stylesheet that copies (some of) the styling of the Word styles.


All times are GMT -4. The time now is 09:40 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.