Skip to main content
November 20, 2013
質問

Hyperlink word with bookmark not converted in HTML

  • November 20, 2013
  • 返信数 1.
  • 1451 ビュー

Hi,

I use RH10 to create an HTML help from several Word documents.

I have a problem with Word hyperlink that is not converted in the HTML output. In my RH10 project, i have 2 link word document. I created with Word an hyperlink with bookmark in a document called docA.docx on another Word document called docB.docx. The docB.docx document contains the bookmark called by the docA.docx document. The hyperlink property in Word is "docB.docx#myBookmark".

This hyperlink works fine with Word, when i clic on the link in the docA.docx the docB.docs document is open by Word.

Problem appears when i update the word document in RH10 to generate HTML document. The HTML hyperlink token href="" is generated so there is no hyperlink on the HTML output.

When i remove the bookmark in the Word document the HTML hyperlink token href="docB.docx" is generated. So i don't know if it's a RH10 bug or if this feature is not supported by RH10.

For information, i used hyperlink with bookmark because cross-reference is not allowed with multiple document.

Regards,

このトピックへの返信は締め切られました。

返信数 1

Peter Grainge
Community Expert
Community Expert
November 21, 2013

You cannot have links in Rh between two linked Word documents. Links within a single document are OK but that's it.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
November 21, 2013

I understand that links between two linked Word document can't be generated in the HTML output.

But i think there a bug because when i have an hyperlink in the Word document without any bookmark, the href tag is set with the value included in the Word document (for instance <a href="c:\docA.docx" >doc</a>). If i put a bookmark in the hyperlink included in the Word document the href tag generated by RH must be  <a href="c:\docA.docx#MyBookmark" >doc</a> and not an empty href tag like RH10 do.

If i replace in the hyperlink included in Word document the "#" character by any other character the href tag is generated with the good value. It means that RH use a special process when there is a "#" character in a hyperlink.

If this bug does not appears in RH i could use a script in RH to rename href tag with value ".docx" by ".html".

Peter Grainge
Community Expert
Community Expert
November 21, 2013

What is the hyperlink linking to if not a bookmark?

In Word, how are you seeing the path of the link? The dialog I am seeing shows me a list of bookmarks and using that I create a link. There are no path details.

In Rh, that gets converted as below and works as it should.

<p><a href="#paul">peter</a></p>

<p><a name="paul" id="paul"></a>paul</p>

I am not clear on what probllem you are having.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.