Skip to main content
Participant
July 18, 2008
Question

Prob: Word2003 internal hyperlinks imported as visible <XREF> Options

  • July 18, 2008
  • 7 replies
  • 639 views
Hi, <br />I have a very large Word document that is extensively hyperlinked to <br />locations within the same document. <br />The links are Character formatted as 'Hyperlink' style and are <br />functional in the Word document. <br /><br />This document is eventually going to be targeted to PDF. <br /><br />When I import into Framemaker 7.1, each link has a <XREF> field <br />immediately preceding it that contains the cross-reference information <br />that was hidden in Word. <br /><br />Example:<br />MSWord: AA. See Adipic acid. (where "Adipic acid" is underlined and <br />hot) <br />Framemaker: AA. See <XREF>Adipic acid. (where "Adipic acid" is <br />underlined and NOT hot, but <XREF> is) <br /><br />If I hold down Ctrl+Alt over <XREF>, the cursor changes to a hand and <br />will jump to the correct document location if the mouse is clicked. <br /><br />How do I hide the <XREF> and make the word "Adipic acid" into the <br />hypertext as it was in MSWord?
    This topic has been closed for replies.

    7 replies

    Legend
    July 23, 2008
    Observation: I had something that looked very like what's being described, and tracked it down to a problem with character styles. The cross-reference format had a building-block for a character-style [angle bracket]xref[angle bracket] that had been deleted, so FM decided I wanted literal text "xref" at the start of the cross-reference.

    For once, this wasn't Word's fault ...
    Known Participant
    July 23, 2008
    Nils,<br />You're right, but that doesn't explain why the cross-ref ends<br />after "<XREF>"... That's why I want to know what the defintion<br />is of the cross-ref format used. Let's see if Mike responds.
    Participant
    July 20, 2008
    "source type"="cross-ref markers" NOT "paragraph tags"<br />If I click "Go to source" it jumps to the correct place in the document that was "Bookmarked" in Word.<br />The cursor is to the right of the T-marker located there:<br /><br />TAdipic Acid¶ <br />Where: <br />1. "T" is the T-marker <br />If I right-click and select Marker...<br />The Marker dialog appears:<br />Marker Type=Cross-Ref<br />Marker Text: is empty<br /><br />RE:>>Another thing: if you select the "T"-shaped marker ahead of the<br />cross-ref...<br />Cannot select T-marker by itself. If I try, T<XREF> gets selected.<br />The Marker dialog says<br />Marker Type=Index<br />Marker Text: <XREF><br /><br />Please note: I have tried this several times and seem to getting Different results when I select "T<XREF>" and right-click for the Marker Dialog.<br /><br />I have gotten:<br />Marker Type=Index<br />Marker Text: <XREF><br /><br />Marker Type=Conditional Text<br />Marker Text: <XREF><br /><br />Marker Type=Conditional Text<br />Marker Text: +910622<br /><br />Marker Type=Cross Ref<br />Marker Text: <XREF><br /><br />Something seems flakey! However the jump still works.<br />Thanks for all your trouble.
    Known Participant
    July 20, 2008
    > Thanks for all your trouble.

    The turn-around time in this conversation is a bit too long,
    and I have to get to bed now...

    I think I know a way to get your links right, but you need
    to give me the following info:

    What is the "format" used in the cross-reference (name and definition)?

    Is this a unique cross-ref format for the "Word" links?

    The paragraphs that contain the linked text, the ones you
    identify by "TAdipic Acid¶", do they always contain just
    the text to include in the link, or do they sometimes contain
    more text that you don't want to include in the link, such as
    "TAdipic Acid some more text¶"?
    If the former, there is a way to solve this, provided the
    cross-refs use a unique format.
    If the latter, each link has to be fixed manually...

    BTW, you can select a marker by putting the cursor just before
    the marker (press "Home" if at the beginning of a line) and
    then press Shift+RightArrow to select the next "character"
    (which may be a marker). Have the Marker window open and
    continue selecting until you get the Marker info.

    /Thomas
    Participant
    July 20, 2008
    Yes. If I double-click, the FM Cross-Reference dialog appears, with the correct Word-defined Bookmark location highlighted.<br /><br />In FM with Text-symbols displayed:<br /><br />AA. See T<XREF>Adipic Acid<br /><br />Where:<br />1. "T" is the text-symbol<br />2. <XREF> is the FM Cross-Reference mapped to a Word-defined Bookmark<br />3. "Adipic Acid: is character formatted (underlined, blue)<br /><br />All this happens when I import the Wprd doc.<br />Mike
    Known Participant
    July 20, 2008
    I would like you to be a little bit more specific regarding
    the cross-ref:

    Open the cross-ref dialog and tell me:
    Is the "source type" set to "paragraph tags" or "cross-ref markers"?
    If paragraph tags, what does the "paragraph tags" list say?
    What is the "format" used in the reference (name and definition)?

    If you click "Go to source", do you end up in a paragraph (a heading
    perhaps?) that contains the text "Adipic Acid"? If not, what does
    the text of the paragraph say?

    I'm not sure how much you know about FM cross-refs, so I want
    to go through this step by step.

    Another thing: if you select the "T"-shaped marker ahead of the
    cross-ref and open the Marker dialog, what is the content of
    the Index marker?

    /Thomas
    Participant
    July 20, 2008
    Thanks<br />I attempted the procedures you outlined.<br />The markers that were imported from Word were of type "Index".<br />The only way I could get the Find/Change to locate the "<XREF>" portion was by selecting "Cross-Reference of Format:" in the Find drop-down list and entering <XREF> in the text to find box.<br />The "By-pasting" does change the char format of <XREF> as you specified, but it still remains the only "hot" portion of the link.<br />Can't get Find/Change to locate <XREF> by selecting "Marker Text"<br />Mike
    Known Participant
    July 20, 2008
    Your findings surprises me, even though I realize that Word does<br />things in weird ways...<br /><br />There's no way that a marker of type "Index" can result in a<br />workable link to another place in the document. So, either<br />there are multiple markers in the same place, or the text "<XREF>"<br />is indeed a FrameMaker cross-reference. The problem is that a<br />FM cross-ref always picks up the contents of the cross-ref'd<br />text or paragraph, so I cannot understand how all your cross-refs<br />from Word could say "<XREF>".<br /><br />Are the "<XREF>" texts cross-refs? (double-click to see if you<br />get the cross-ref dialog) What is the definition of the cross-<br />ref format used?<br /><br />Are the Index markers you find placed directly in front of the<br />"<XREF>" text, or where in the text are they located?<br /><br />The "by-pasting" method I described would only work if you managed<br />to get rid of the "<XREF>" texts. It was not intended to change<br />the format of the "<XREF>" text, but the format of the (presumed)<br />hypertext marker.<br /><br />By your description I get the following idea on how your link looks:<br /><br />AA. See [Index marker][Cross-ref saying "<XREF>"][Underlined text<br />"Adipic acid" using some character format].<br /><br />If not, try to describe how it looks.<br /><br />/Thomas
    Known Participant
    July 20, 2008
    Assuming you cannot get this working by importing the Word<br />document in some other way, I would take a closer look on<br />how the resulting hyperlinks look in FM.<br /><br />It sounds like the link you get is a working Hypertext link<br />rather than a cross-ref. Turn on Text Symbols so that you can<br />see the marker symbols (looks like a "T").<br />Hopefully, you have a marker symbol just at the beginning<br />of the "<XREF>" text. Select it and open the Marker window<br />to check that it's a Hypertext marker of the form "gotolink"<br />or "openlink".<br /><br />Try this: put the cursor before the link, search for "<XREF>"<br />and replace by nothing. Do not manually delete the text, use<br />the Find & Replace function in FM, and only do it for a single<br />link. The end result should be that the Hypertext marker is<br />now placed just at the beginning of the underlined text, without<br />anything in between. If that's the case, try the link in FM.<br />If it works, you may have found a simple Find & Replace that<br />hopefully will work for all the Word-created links.<br /><br />If the link doesn't work (I suspect it won't), it's probably<br />because the Hypertext marker has a different character formatting<br />compared to the link text (no underline). A Hypertext link in<br />FM starts at the Hypertext marker and ends as soon as any change<br />in character formatting is encountered, which in your case may<br />be immediately...<br /><br />There is a possible way to solve this problem without manually<br />having to edit each link. First, check if the underlining in<br />the link text is applied using a character format, or if it's<br />a manual override to the formatting (select parts of the underlined<br />text and look in the Character Designer).<br />If it's a character format, add it to the Catalog by clicking Apply.<br />You will have a greater chance of success if it's a named format.<br />Next, select a part of the underlined text and then choose<br />Edit > Copy Special > Character formatting<br />Once again, place the cursor before the link and open the Find<br />dialog. If you think you only got Hypertext markers coming from<br />Word, search for "Marker of type" and enter "Hypertext".<br />Alternatively, search for "Marker text" and enter "gotolink" or<br />"openlink" or whatever you found in the Marker window earlier.<br />In the replace field, select "By pasting" (this is the trick!)<br /><br />Do the Find & Replace for the single link. Now try the link in<br />FM again. If it works, you have found a second Find & Replace<br />that will make your links working. In the ideal situation, you<br />can now perform both of the Find & Replace actions on each<br />document to make all links working. Just watch out for any<br />other Hypertext links in the documents, like the links in the<br />TOC or manually created links to web pages etc. You don't want<br />to change those...<br /><br />Let us know if it works.<br /><br />-- <br />/Thomas Michanek
    Participant
    July 19, 2008
    I tried that. Everything still appears the same.
    Thanks
    Inspiring
    July 18, 2008
    Have you cleaned out the hidden Word characters by saving the FM file as MIF and opening that?

    Art