[bksvol-discuss] FW: A method to always get the correct page count of a file

  • From: "Kim Friedman" <kimfri11@xxxxxxxxxxx>
  • To: <bksvol-discuss@xxxxxxxxxxxxx>
  • Date: Tue, 02 Aug 2011 15:24:42 -0700

Here's the second message sent me by Mr. Costa. Regards, Kim Friedman.
-----Original Message-----
From: Rick Costa [mailto:rickc@xxxxxxxxxxxx] 
Sent: Tuesday, August 02, 2011 3:00 PM
To: Kim Friedman
Cc: Scott Rains
Subject: A method to always get the correct page count of a file



*  The method assumes the book was scanned correctly, ie the scan
contains the correct number of hard page breaks to begin with.

*  To determine the page count of a file, Bookshare counts only hard
page breaks. Soft page breaks are not included in the count.

 

This method gives you a count of all the hard page breaks in a file.

 

OVERVIEW

1) We will do a "dummy global replace" in order to get Word to tell us
how many replaces it made.

This number will be the page count of the file. Said another way, this
will be the number of hard page breaks in the file.

2) Next we will do an "Undo", exactly once. This undoes the global
replace we just did.

3) Then we'll do one quick test to make sure the Undo we did, was
successful!

 

===

DO A DUMMY GLOBAL REPLACE:  REPLACE ALL HARD PAGE BREAKS WITH A UNIQUE
STRING

1. Start at the very beginning of the file by doing the keystroke
combination:  Control + Home.

2. Bring up the "Find and Replace" dialog box by doing the keystroke
combination:  Control + h.

3. In the "Find what" box, type "^m" (without the quotes).

    This is a caret, followed by a lower case letter 'm'.

4. In the "Replace with" box, type a unique string. We will suggest:
"%%%%" (without the quotes).

    This is four percent signs with no spaces between.

5. In a moment, Word will tell you how many replaces it made. Be ready
to remember this number.

6. Do a Replace All with the keystroke combination:  Alt + a. (Or, click
"Replace All".)

7. Record or remember the number of replaces Word made. Then click "OK".

8. Be sure to exit the Find and Replace dialog box by either hitting the
Escape key, or by clicking "Cancel".

 

DO "UNDO" ONCE, PUTTING BACK ALL THE HARD PAGE BREAKS

9. Do an "Undo" just once. One way is to do the keystroke combination:
Control + z.

     This one Undo will undo the global replace we just did. Now, all
the hard page breaks should be back.

 

TEST TO MAKE SURE THE UNDO WORKED

10. Bring up the "Find" dialog box by doing the keystroke combination:
Control + f.

11. In the "Find what" box, type the exact string you used before.

       If you used the suggestion, then type "%%%%" (four percent signs
with no spaces between).

12. We are hoping *not* to find this string, indicating that the Undo we
did was successful!

       Click "Find Next".

13. If you get "The search item was not found", then we know the Undo we
did was successful.

 

 

The file has been returned to the state we want it in, and now we have a
correct page count.

 

Other related posts:

  • » [bksvol-discuss] FW: A method to always get the correct page count of a file - Kim Friedman