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 03-09-2014, 07:29 AM   #1
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
Internal links not working after conversion

Hi there,

I think, no, I HOPE this is the right forum to post in

I have a test ODT file which I have converted into EPUB and MOBI, but in both cases the internal links are not working, but they are fine in the original.
This is what is happening:
in the ebook taht I have generated the index at the beginning and internal hyperlinks within the text are all pointing at the index page (so, the index is pointing to itself...).
External links work fine and so do the endnotes/footnotes.

I enclose a folder with all the info you require: original file, converted files and logs.

I am using Calibre 1.27.0 and Neooffice 3.4.1 (both are believe are the latest versions).

To start with I tried to save the file as docx, but the conversion would fail altogether.

I used to have word, but after moving to Mavericks (I have a Mac) it died and I am waiting for the new version to be released before buying it again (assuming I do decide to buy it... am not missing it a great deal).

TIA
Attached Files
File Type: zip debugging.zip (211.7 KB, 265 views)

Last edited by Arkadian; 03-09-2014 at 07:37 AM.
Arkadian is offline   Reply With Quote
Old 03-09-2014, 07:57 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: 45,260
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those aren't internal links they're links based on outline level. outline level is not supported by the library calibre uses for ODT. If you want links to work, you have to create proper internal links, by using the insert hyperlink tool and creating bookmarks in the document. Or use Word.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-09-2014, 08:04 AM   #3
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Those aren't internal links they're links based on outline level. outline level is not supported by the library calibre uses for ODT. If you want links to work, you have to create proper internal links, by using the insert hyperlink tool and creating bookmarks in the document. Or use Word.
Thanks for that. I feared that would be the case
Clearly saving as docx in NO is not an option either.

When you talk about the "insert hyperlink tool" what are you referring to?

Forgot to point out that a couple of internal links are located in "A chi è rivolto questo ebook?" at the beginning of the third paragraph.
Arkadian is offline   Reply With Quote
Old 03-09-2014, 08:08 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: 45,260
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I have no idea, I dont use NeoOffice. In LibreOffice there is a tool called Hyperlink in the insert menu. In that you can choose the hyperlink target. Dont use sections or heading, use bookmarks.

Your links in the paragraphs are also links to outline items.
kovidgoyal is offline   Reply With Quote
Old 03-09-2014, 08:16 AM   #5
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: 45,260
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Incidentally, when I open your test odt file in libreoffice and try to edit the hyperlink, I get the target for the hyperlink as !!br0ken!!

So I'm guessing the problem is really that NeoOffice is broken.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-09-2014, 08:19 AM   #6
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
OK, downloading libreoffice as we speak. I didn't know it existed at all.
Arkadian is offline   Reply With Quote
Old 03-09-2014, 08:20 AM   #7
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: 45,260
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Here is an odt file produced by libreoffice where the hyperlinks work when converted (they were created using the headings tool, not bookmarks) so I was wrong about the library not supporting outline items, it's just NeoOffice that appears to be broken.
Attached Files
File Type: zip t.zip (10.1 KB, 216 views)
kovidgoyal is offline   Reply With Quote
Old 03-09-2014, 08:26 AM   #8
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
Pardon the stupid question, but which format should I use within LibreOffice to make sure it works best with Calibre: ODT, DOCX or other?
Arkadian is offline   Reply With Quote
Old 03-09-2014, 08:34 AM   #9
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
Yep... saved the doc as docx (for no good reason, rather than I liked it...) in LO, loaded on calibre and it worked a treat, both index and internal hyperlinks
Arkadian is offline   Reply With Quote
Old 03-09-2014, 08:37 AM   #10
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: 45,260
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre has a custom DOCX->HTML conversion engine that I wrote that is much better than the library used for converting ODT->HTML. So unless there is some external reason for preferring odt, use docx.
kovidgoyal is offline   Reply With Quote
Reply

Tags
internal links, neooffice


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert external links to internal links sup Recipes 2 11-28-2013 09:39 AM
Internal links not working after Packaging (copying) indb file MHC ePub 6 03-09-2013 01:50 PM
Conversion from mobi (to mobi, or epub) breaks internal links bounder Conversion 1 10-09-2012 11:56 AM
Links to URLs work, internal links don't? NewDay ePub 36 10-27-2010 04:09 AM
Internal Links??? Guns4Hire PocketBook 11 04-18-2010 02:25 AM


All times are GMT -4. The time now is 10:49 PM.


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