Internal link in ebook

Sorry if it is redundant, but I’m not finding anything in Windows version about conversion of internet links (“scrivener link”) to hyperlinks when converting in ebook format. I usually do it manually in sigil, but I have a very “link intensive” book here and I do not know if there is an easyier way than redoing each link manually (what means for each : go to destination, put an anchor, go to source, put a link, for hundreds of links…)
Any “super fast easy hidden technique” ? Please ? :slight_smile:

Currently the ebook converters don’t support Scrivener links to internal references, so there’s not a way in Scrivener to do this. You could try something like compiling to RTF or to DOC using the Microsoft Office converters, which do support the links as RTF bookmarks, and then converting that to epub and cleaning it up in Sigil. I’m not sure if using Word as an intermediary would help more or hinder, but it might be worth experimenting given that you have a lot of links.

Trying this, thank you.

Could you advice any? I tried Calibre and some cloud ones - do not work - there are hyperlinks in .epub, but clicking on them does not redirect to an assigned place of text.

As I can see it a two-layer problem on Scrivener`s side.

First, Scrivener does not provide a direct way to compile a text to any ebook format with internal hyperlinks support. Ok, then. There is appear to be a workaround - compiling a .rtf (with hyperlinks saved) and converting it to .epub. Nope, because of the second Scrivener problem - the hyperlinks in the .epub do not work properly. Yes, they are in the text, but they redirect just to one place - “Untitled_Section” bookmark in .rtf, that looks like no redirection at all in .epub. On the contrary, if I manually set bookmarks and hyperlinks in .rtf and convert the file to .epub the hyperlinks work as a charm.

My book contains a lot of internal links (which is Scrivener`s default feature) and being installing a Scrivener copy I could hardly ever imaging the would not be any way to automatically transfer them to ebook.

So, dear Scrivener, I cannot see any way to compile the book with hyperlinks, except setting tons of them manually after compiling in Scrivener. Any suggestions?

Thanks.

I’m not sure what problem you’re running into when converting the Scrivener-compiled RTF to an ebook format. If you’ve enabled the RTF bookmarks in compile’s formatting (on by default), internal links to other documents in your compiled project should work when opened in Word. Do they not? Further conversion from that point is obviously apart from Scrivener, so I don’t understand what you mean by saying that this is “because of the second Scrivener problem”.

As far as Scrivener not supporting internal links when compiling directly to epub, we do intend to add this in the future. It’s just technical complications that have prevented it thus far, not a lack of interest.

Thanks for a rapid reply, MM!

Let me clarify my point.

The problem I am running into when converting the Scrivener-compiled RTF to an ebook format is (as I said in a previous post) the internal hyperlinks do not work, although they are in the ebook (underlined and with hand appearing after mouse hovering).

IMHO, it is the problem induced solely by Scrivener because (as I said in a previous post) the problem appears just if I convert an intact Scrivener-compiled RTF to an ebook, whereas the same RTF file after me re-setting bookmarks manually would be converted to .epub with hyperlinks working without a hitch. The same flawless picture shows up if I create an RTF with hyperlinks form scratch and convert it to .epub. That is why I wrote “because of the second Scrivener problem”.

Have you encountered the problem, while testing?

Thanks.

P.S.

I have note changed anything, but just in case - where in settings can I check it?

I haven’t used Calibre much, but taking a look at its help file, RTF conversion doesn’t appear to be the best option anyway, because it’s going through more steps. If you have Microsoft Office 2003-2013 installed, I’d try compiling to DOCX from Scrivener using the Microsoft Office converters (probably set by default, but you can check in the Import/Export section of Tools > Options; click “Export Converters” and select “DOCX” from the left drop-down menu and “Microsoft Office” from the right). The latest version of Calibre will convert DOCX automatically, and in my quick test it appeared to do this cleanly and maintain the internal links.

When you compile, an “Include in RTF bookmarks” checkbox appears in the Formatting tab of Compile for each document/folder row in the table if the compile format supports them.

Thanks for a reply and help, MM!

I have MS Office installed, so Scrivener-compiled DOCX hyperlinks really work now!

So it does not work from Scrivener-compiled RTF, but works from Scrivener-compiled DOCX. I still think you`d better check RTF compiling process to make hyperlinks work, because I have tried to convert Scrivener-compiled RTF not just in Calibre, but in CloudConvert too with no result. I am not sure the problem is on converters side.

Anyway, thanks for a workaround - it works for me.

  • I could not set “DOCX” in drop-down - after selecting “DOCX” and clicking “Apply” - just “DOC” is sitting there. Please check it.

I agree the setup here isn’t entirely clear; this will be redesigned for a future version based on the converters we have available. To change a converter, select the format from the left drop-down, then select the converter from the right. The options on the right change based on what you’ve selected from the left dropdown. When you click Apply, it applies your settings for all the formats, so although when you next open it will show “DOC” on the left again, because it is the top item in that menu, it doesn’t mean it hasn’t applied your settings. If you choose DOCX again, you’ll see that it should say “Microsoft Office” on the right.

Thanks for an answer, MM!

With 5-line explanation it is crystal clear at the moment :slight_smile:

So, to recap for all: here is how I see it - to get internal links work in EPUB or MOBI you should:

1.Install MS Office
2.Install a software converter (something like Calibre) or use a cloud one
3.Compile DOCX in Scrivener (Note: compiling an RTF will not work correct)
4.Add the DOCX to Calibre and convert in to EPUB or MOBI

Hope it helps!