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 01-07-2016, 03:16 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
About pop-up endnotes

Hi

Forgive me if I have some trouble explaining my question.

Calibre converts beautifully docx to EPUB and EPUB to docx.It works very well and I can only but very sincerely congratulate you.

I am looking for information about what I believe is originally a docx feature: it's about pop-up endnotes (maybe they have a more technical name for it).

It can be converted from docx to odt using LibreOffice and keep working.
Calibre viewer makes a systematic use of them for some months for all endnotes.
Calibre converts it from docx (or odt) to epub perfectly.

However the open-source converter (odt to EPUB) I use do not know yet how to convert the link at the return part of pop-up endnotes. It's just left missing. It means I should have to correct all of them manually. The author is currently unavailable (he may come back any time) so I turn to you for advice.

When I looked at the odt to understand what can be so different to make the conversion fail, I really did see nothing. I had to unzip the odt and go under the hood to look at the content.xml to see this code.

It's seems to be made out of two consecutive blocks in content.xml (without smileys...) from what I could read from an odt file (converted from an original docx file).

Quote:
</text><text text:style-name="P14">—*Non. Appelle le commandant des pompiers de Montelusa. C’est un truc pour eux, dis-lui que le terrain est très friable, il faut qu’ils amènent du matériel pour creuser et sonder. Et surtout pas de sirène, pas de bruit, les journalistes ne doivent pas le savoir. Je veux pas refaire Vermicino <text:note text:id="ftn1" text:note-class="endnote"><text:note-citation>1</text:note-citation><text:note-body><text text:style-name="P15">Localité proche de Rome où, en juin 1981, un enfant tombé (ou jeté) dans un puits fut l’objet d’une tentative de sauvetage suivie en direct à la télévision pendant dix-huit heures par 21 millions de personnes, au terme de laquelle l’enfant mourut. Cf. le roman <text:span text:style-name="T2">Dies Irae</text:span>, de Giuseppe Genna.</text></text:note-body></text:note>.
which are converted as it should be in your EPUB in two separate parts (text file and endnote)

Quote:
<p class="block17"><span class="text">—*Non. Appelle le commandant des pompiers de Montelusa. C’est un truc pour eux, dis-lui que le terrain est très friable, il faut qu’ils amènent du matériel pour creuser et sonder. Et surtout pas de sirène, pas de bruit, les journalistes ne doivent pas le savoir. Je veux pas refaire Vermicino </span><sup class="text1"><sup class="calibre3" id="back_note_1"><a href="index_split_022.html#note_1" title="1" class="calibre4">1</a></sup></sup><span class="text">.</span></p>
Quote:
<dl class="notes"><dt id="note_1" class="calibre6">[<a href="index_split_005.html#back_note_1" title="1" class="calibre7">←1</a>]</dt><dd class="calibre8" id="calibre_pb_25"><p class="block17"><sup class="text1"></sup><span class="text"> Localité proche de Rome où, en juin 1981, un enfant tombé (ou jeté) dans un puits fut l’objet d’une tentative de sauvetage suivie en direct à la télévision pendant dix-huit heures par 21 millions de personnes, au terme de laquelle l’enfant mourut. Cf. le roman Dies Irae, de Giuseppe Genna.</span></p></dd>
</dl>
As I am absolutely not a code specialist, but would like to be helpful to a would-be converter, could you just provide some comments, say if the above findings are right or if I missed something important? It would allow to find and implement a quicker solution.

Last edited by roger64; 01-07-2016 at 03:55 AM.
roger64 is offline   Reply With Quote
Old 01-07-2016, 05:42 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: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm afraid I know nothing about the internals of ODT files, since calibre uses a third party library for ODT. As for footnotes in DOCX, they are clearly marked in the DOCX file using semantic markup, so I would be very surprised if the same is not true for ODT.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-07-2016, 06:59 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thanks your reply. It shows a way to begin.

Is your "third party library" for ODT open-source? If so, could you name it?

Last edited by roger64; 01-07-2016 at 07:02 AM.
roger64 is offline   Reply With Quote
Old 01-07-2016, 07:25 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: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
odfpy
kovidgoyal is offline   Reply With Quote
Old 01-07-2016, 08:15 PM   #5
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thank you.
roger64 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pop-up endnotes roger64 Calibre 34 11-23-2014 08:46 PM
pop-up endnotes: glory in action roger64 ePub 7 10-29-2014 07:32 PM
Pop-up endnotes crutledge ePub 16 06-17-2014 04:41 AM
Endnotes Siam Sigil 14 03-17-2013 03:05 PM
difficulty with endnotes Oldpilot Sigil 5 11-16-2010 04:17 PM


All times are GMT -4. The time now is 11:48 AM.


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