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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-11-2018, 01:51 PM   #1
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Feature Request: Preserve HTML Comments in EPUB->DOCX Conversion

In an EPUB->DOCX conversion, would it be possible add a checkbox to convert HTML comments into DOCX comments?

Example Input

Code:
<p>This is paragraph 1.</p>

<!-- This is a comment on Paragraph 2. -->

<p>This is paragraph 2.</p>

<!-- Capitalize this. -->

<p>this is paragraph 3.</p>
Example Output

Click image for larger version

Name:	EPUB.Comments.to.DOCX.Example.png
Views:	179
Size:	17.7 KB
ID:	162211
Attached Files
File Type: epub EPUB.Comments.to.DOCX.Example.epub (1.8 KB, 122 views)
File Type: docx EPUB.Comments.to.DOCX.Example.docx (13.9 KB, 93 views)
Tex2002ans is offline   Reply With Quote
Old 02-11-2018, 11:20 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,744
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's rather a lot of work, HTML comments and DOCX comments are implemented very differently. Why do you need it?
kovidgoyal is offline   Reply With Quote
Advert
Old 02-12-2018, 01:19 AM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Well my current workflow does a lot of:

1. EPUB/HTML Cleanup
--- I compile a list of fixes that the Editor may need to look at.
2. Calibre: EPUB -> DOCX
3. DOCX file gets sent over to an Editor
--- I send my notes as a separate TXT/email.
--- They may add Word Comments for things I need to correct in ebook.
4. Calibre: DOCX (Edited) -> EPUB
5. Finalize EPUB

Being able to pass these comments back/forth without clogging up the book with visible HTML or a separate document would be very helpful:

1. EPUB/HTML Cleanup
--- I leave HTML Comments as I spot things that may need correction.
2. Calibre: EPUB -> DOCX
--- DOCX has my comments
3. DOCX file gets sent over to an Editor
--- They add/remove Word Comments
4. Calibre: DOCX (Edited) -> EPUB
5. Finalize EPUB

Side Note: Also helpful because you don't have to touch the DOCX or an office suite. You can just stay completely in Calibre/Sigil.

* * *

Another use-case I can think of is formulas:

If there is an image of a formula, I tend to leave the LaTeX version of the equation as HTML Comments:

Code:
<!-- \vec{F}=m\vec{a} -->

<img src="Formula1.png" alt="Force equals mass times acceleration" />
This kind of information gets lost in an EPUB->DOCX conversion, but would be helpful if someone who works in Word (or other tools) has to recreate the image/equation.

* * *

This kind of stuff would be very helpful for getting it into DOCX comments, which can then be imported into Google Docs. Then multiple people could work on corrections simultaneously.

* * *

I may read an ebook on my phone and catch errors.

On the phone, I don't have access to a bloated office suite, nor would I want to read in one!

I tend to use HTML comments directly in the file instead of highlights:

Code:
<!-- Missing Year. -->

<p>Last, First. <i>Book Title</i>. London: Publisher, . p. 123.</p>
I could easily load that file into the computer and Calibre -> DOCX.

Highlights aren't typically very portable between devices/formats. While HTML Comments won't be going anywhere (but are invisible).

Last edited by Tex2002ans; 02-12-2018 at 01:30 AM.
Tex2002ans is offline   Reply With Quote
Old 02-12-2018, 01:54 AM   #4
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,744
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
OK open a ticket for it, and I'll look into it in detail when I have some time. I cant make any promises though as if the mismatch between the commenting models is too large, it might not be worth the effort.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy/preserve TOC in ePub to ePub conversion? Ghitulescu Calibre 5 10-30-2014 09:28 AM
Epub to Docx conversion? Hattie Conversion 14 09-13-2014 04:12 AM
DOCX conversion of images to EPUB/Mobi: preserve aspect ratio? tbrosz Conversion 3 03-31-2014 01:56 PM
Feature request during conversion Cool Javelin Conversion 3 08-18-2012 04:56 PM
feature request - combine files - output as html cybmole Conversion 1 01-22-2011 10:36 AM


All times are GMT -4. The time now is 04:03 AM.


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