Welcome to Macrobject Community Login | Register | Faq  

    Macrobject Community
  Macrobject Software Knowledge Management and Collaboration Platform
Search    
   

Re: Hiding references to pages in Word ?
Started by bouki0 at 02-08-2008 6:18 AM. Topic has 11 replies.

Print Search « Previous Thread Next Thread »
  02-08-2008, 6:18 AM
bouki0 is not online. Last active: 2/15/2008 7:41:59 PM bouki0

Top 50 Posts
Joined on 02-08-2008
Posts 4
Hiding references to pages in Word ?
Reply Quote
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.
   Report 
  02-18-2008, 6:10 PM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Hiding references to pages in Word ?
Reply Quote
The feature is not supported currently. We'll list it in our development plan.
   Report 
  08-17-2009, 3:10 PM
snowman is not online. Last active: 7/26/2010 2:19:01 PM snowman

Top 50 Posts
Joined on 08-18-2009
Posts 5
Re: Hiding references to pages in Word ?
Reply Quote
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.".
   Report 
  08-20-2009, 4:25 PM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Hiding references to pages in Word ?
Reply Quote
We havn't a good solution for this yet. We'll keep trying to find a way.
   Report 
  11-16-2009, 1:20 PM
stman is not online. Last active: 11/19/2009 9:43:54 PM stman

Top 50 Posts
Joined on 12-13-2007
Posts 5
Re: Hiding references to pages in Word ?
Reply Quote
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.
   Report 
  11-17-2009, 6:43 PM
David is not online. Last active: 11/17/2011 8:07:51 AM David

Top 10 Posts
Joined on 01-26-2008
Posts 193
Re: Hiding references to pages in Word ?
Reply Quote
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.
   Report 
  11-18-2009, 8:47 AM
stman is not online. Last active: 11/19/2009 9:43:54 PM stman

Top 50 Posts
Joined on 12-13-2007
Posts 5
Re: Hiding references to pages in Word ?
Reply Quote
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.
   Report 
  11-18-2009, 7:01 PM
David is not online. Last active: 11/17/2011 8:07:51 AM David

Top 10 Posts
Joined on 01-26-2008
Posts 193
Re: Hiding references to pages in Word ?
Reply Quote
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+'"/>

   Report 
  11-19-2009, 10:45 AM
stman is not online. Last active: 11/19/2009 9:43:54 PM stman

Top 50 Posts
Joined on 12-13-2007
Posts 5
Re: Hiding references to pages in Word ?
Reply Quote
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?
   Report 
  11-19-2009, 10:27 PM
David is not online. Last active: 11/17/2011 8:07:51 AM David

Top 10 Posts
Joined on 01-26-2008
Posts 193
Re: Hiding references to pages in Word ?
Reply Quote
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.

   Report 
  11-19-2009, 10:28 PM
David is not online. Last active: 11/17/2011 8:07:51 AM David

Top 10 Posts
Joined on 01-26-2008
Posts 193
Re: Hiding references to pages in Word ?
Reply Quote
The document online about addins:
  http://www.macrobject.com/en/word-2-chm/doc2008/topics/AddIns.htm

   Report 
  12-03-2009, 3:57 PM
snowman is not online. Last active: 7/26/2010 2:19:01 PM snowman

Top 50 Posts
Joined on 08-18-2009
Posts 5
Re: Hiding references to pages in Word ?
Reply Quote
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.
   Report 
Post
Macrobject Comm... » Help Authoring ... » Word-2-CHM Conv... » Re: Hiding references to pages in Word ?

Powered by Community Server, by Telligent Systems