Re: Hiding references to pages in Word ?

Word-2-CHM Converter

Hiding references to pages in Word ?


bouki0 02-08-2008, 6:18 AM
Hello, In my Word document, I have references such as "see 'text' on page '##'". Since the page numbers have no meaning in CHM, is it possible to also hide the corresponding text "on page" ?. Thank you.

Re: Hiding references to pages in Word ?


Peter 02-18-2008, 6:10 PM
The feature is not supported currently. We'll list it in our development plan.

Re: Hiding references to pages in Word ?


snowman 08-17-2009, 3:10 PM
This feature would be very useful to us too, if fully implemented like this:

1. Convert the page number to the topic name.

2. Only hide "page " ("page" plus the one space that preceeds the page number cross reference) as it is the only fixed part of the cross reference prefix.

For example, if Word has "See page 23." where the Word cross reference is to topic "How to open the file", it would be converted to "See How to open the file.".

Re: Hiding references to pages in Word ?


Peter 08-20-2009, 4:25 PM
We havn't a good solution for this yet. We'll keep trying to find a way.

Re: Hiding references to pages in Word ?


stman 11-16-2009, 1:20 PM
Probably best to run a Word macro before converting to CHM. I do something similar: My Word 2003 documents have heading numbers and I use many cross-references like see Section '#'. There's no page reference because it's easy enough to find the heading by its number. But in the CHM file, there are no heading numbers because it doesn't make sense in an online document. So I use a macro to convert the cross references (removing the "\r " in the reference code) so that it changes to the heading text, resulting in See Section 'Heading', which becomes a hyperlink in the CHM.

Re: Hiding references to pages in Word ?


David 11-17-2009, 6:43 PM
Thank  stman  so much for sharing your solutions.

That's a good solution for heading number.

But we can not find a solution for page number yet.
The page number doesn't associate to any element of the .chm.
In .chm, no "page" and "page number"!

PS: In .doc, "page" and "page number" mean "print in a special size".
     When you change the page size, the "page number" will be changed.

Re: Hiding references to pages in Word ?


stman 11-18-2009, 8:47 AM
Page numbers don't associate with anything in the .chm because there is no concept of pages in the Online Help. So I don't think it's even worth bringing page number references into the Word-2-CHM conversion process. Strip them out beforehand.

 bouki0 wrote:
I have references such as "see 'text' on page '##'".


So a macro (or do it manually) should change this to just "see 'text'", removing the "on page '##'" portion. And if the 'text' is a cross-reference, it should become a link in the .chm.

Re: Hiding references to pages in Word ?


David 11-18-2009, 7:01 PM
It's so easy to remove the "on page '##'".
But it's so hard to convert the "See page 23." to "See How to open the file.".

PS: Using "HTML Replace" addin, you could remove the "on page '##'", it supports regular expressions also.
      Use Regex:    yes
      Find HTML:    on page '\d+'
      Replace With: (blank)
Or: Add the following code to <Addins> node in .word2chm project file:
    <Addin __File="HtmlReplace.Addin" __Path="Addins\HtmlReplace\" __Enabled="True" UseRegex="True" FindHTML="on +page +'\d+'"/>

Re: Hiding references to pages in Word ?


stman 11-19-2009, 10:45 AM
Where can I find information on Addins? The web site seem to contains only a ContentRemover addin. Aslo, I'm still using version 7. Does it support addins?

Re: Hiding references to pages in Word ?


David 11-19-2009, 10:27 PM
Dear stman, I'm so sorry the version 2007 can not support addins.

Version 2008 and 2009 support addins, please take a look at version 2009:
  http://www.macrobject.com/en/word-2-chm/index.htm

PS: There are more than 10 addins built in version 2009. Of course, you could write your own by yourself.

Re: Hiding references to pages in Word ?


David 11-19-2009, 10:28 PM
The document online about addins:
  http://www.macrobject.com/en/word-2-chm/doc2008/topics/AddIns.htm

Re: Hiding references to pages in Word ?


snowman 12-03-2009, 3:57 PM
The workaround we use is to cross reference using both heading text and page number.

For example, in the following "Calculations" is a Heading text cross reference and "23" is a Page number cross reference.

         See Calculations, page 23, for more details.

We then hide (CTRL/SHIFT/H) the text ", page 23," so that it does not appear in the CHM output. When you want to print the Word document, select all (CTRL/A) and unhide (CTRL/SHIFT/H twice) so that it prints as displayed above.

Powered by Community Server, by Telligent Systems