User:Susanskinner

From DPWiki
Jump to navigation Jump to search

On this page, you'll find guides to how I use some of the Guiguts 2 tools when CP'ing projects before uploading them to DP. The guides are based on Guiguts 2.1.1 and may or may not be updated if the functionality changes in later versions.

Guide to using the Guiguts 2 dehyphenator

This is a walkthrough of how I use the Guiguts 2 dehyphenator functionality when CP'ing. There may be other (better) ways but hopefully this will help others get started. The relevant manual section has more details of how the tool works.

Overview

The dehyphenator is accessed via File -> Content Providing -> Run Dehyphenator. A list of hyphenated words that are split across lines will be shown. These will be categorised as either "Keep" or "Remove". "Keep" means that the hyphen will be kept when the parts of the word are rejoined and "Remove" that it will be removed.

The first set of buttons can be used to change the category of one or more entries:

  • "Keep <=> Remove" will change the selected entry's category from "Keep" to "Remove" or vice versa.
  • "All <=> Remove" or "All <=> Keep" will change every item in the list to the selected category.

There are a series of buttons that act on either a single entry in the list or a group of entries as described below:

  • "Hide" removes an entry from the list without taking any action. Previously hidden entries will be re-added to the list if "Re-run" is used.
  • "Hide All" removes all entries in the same category as the selected entry.
  • "Fix" rejoins the parts of the word, keeping or removing the hyphen according to the entry's category but leaving it on the list.
  • "Fix All" does the same as "Fix" but for all entries in the same category as the selected entry.
  • "Fix & Hide" fixes the selected entry as described above and then removes it from the list.
  • "Fix & Hide All" does the same as "Fix & Hide" but for all entries in the same category as the selected entry.

As well as the buttons at the top of the dehyphenator window, you can also use combinations of mouse and keyboard actions. See the manual or hover-over tooltips in GG2 for details of these.

There are three ways of approaching using the dehyphenator:

  1. work through each entry individually checking its category and applying the appropriate action
  2. make sure every entry in a category has been correctly categorised and use the "All" buttons to apply the appropriate actions
  3. a combination of 1 and 2.

I use approach 3 as described in the walkthrough below.

Walkthrough

The following screenshots and descriptions explain how I used the tool on an example project.

I open the tool and start scrolling down the list of "Keep" entries. Clicking on an entry takes me to where it appears in the text.


"irrefragable" should not be hyphenated so I click "Keep <=> Remove" to change its category.


Elsewhere on the list, are a couple of entries where it wants to join a footnote marker to the hyphenated last word in the body of the text. I don't want it to do anything with these, so I click "Hide" to remove them from the list. (The screenshot shows how they appear on the list, before they are removed.)


Once I'm sure that all of the "Keep" entries are correct, I make sure that I have one of them selected and then click "Fix & Hide All". This will rejoin the words, keeping the hyphen and remove those entries from the list. Nothing will be done with any words marked "Remove" or that were previously hidden.

I then work through the list of "Remove" entries to check that I agree that they should all be rejoined with the hyphens removed.


I think the hyphen in "to-morrow" should probably be kept so I click "Keep <=> Remove" to change it to "Keep" as shown. At this point, I'm also just going to go ahead and click "Fix & Hide" on that one to rejoin it, keeping the hyphen, and remove it from the list.

The rest of the list looks fine though so I click "Fix & Hide All" and am left with an empty list.

If I click "re-run" at this point, GG2 will check for any remaining unjoined hyphenated words at the end of a line. In this case, it's found the ones that I "hid" earlier because I didn't want them rejoined. Since I still don't want those ones rejoined, I can just close the dialogue box now and get on with the rest of my process.


Guide to using Guiguts 2 to remove page headers/footers

This is a walkthrough of how I use the Guiguts 2 page header/footer removal functionality when CP'ing. There may be other (better) ways but hopefully this will help others get started. The relevant manual section has more details of how the tool works.

Overview

The functionality is accessed via File -> Content Providing -> Remove Headers/Footers. A list of the first and last lines on every page will be shown. These will be categorised as "Even" or "Odd" (according to page number) and "Headers" or "Footers" with some further sub-categories (for example, "Page Number") if they match certain criteria. You can use the check boxes near the top of the window to show only certain categories and to change how the list is sorted.

There are a series of buttons that act on either a single entry in the list or a group of entries as described below:

  • "Hide" removes an entry from the list without taking any action. Previously hidden entries will be re-added to the list if "Re-run" is used.
  • "Hide All" removes all entries in the same category as the selected entry.
  • "Fix" deletes the selected header or footer from the relevant page plus any blank lines after it and adds the next non-blank line of text at the top or bottom of the page to the list.
  • "Fix All" does the same as "Fix" but for all entries in the same category as the selected entry.
  • "Fix & Hide" fixes the selected entry as described above and then removes it from the list.
  • "Fix & Hide All" does the same as "Fix & Hide" but for all entries in the same category as the selected entry.

As well as the buttons at the top of the window, you can also use combinations of mouse and keyboard actions. See the manual or hover-over tooltips in GG2 for details of these.

There are three ways of approaching using the header/footer removal functionality:

  1. work through each entry individually checking its category and applying the appropriate action
  2. make sure every entry in a category has been correctly categorised and use the "All" buttons to apply the appropriate actions
  3. a combination of 1 and 2.

I use approach 3 as described in the walkthrough below.

Walkthrough

The following screenshots and descriptions explain how I used the tool on an example project.

I open the tool and start scrolling down the list of entries. Clicking on an entry takes me to where it appears in the text. If possible, I want to make sure that every entry in a single category (described by the red text at the start of the line) is in the same state so that I can apply a single action to the group.

In the screenshot below, all the "Even Footer Page Number" and "Even Footer Page Num?" entries are page numbers (you can click on each to be taken to the right point in the file to check). This means that I can click "Fix All" and GG2 will delete those rows from the file. If I click "Fix & Hide All", the new bottom line of the page won't be added to the list. This is generally more helpful for footers than headers, since footers are almost always just one line that needs to be removed whereas my OCR software tends to split headers across multiple lines.

Scrolling down and looking at the updated list of "Even Footer:" entries, I can see that these are all part of the actual text and not footers, so I click "Hide All" to remove them from the list without deleting any text.

Starting to work through the "Even Header Page Num?" entries, if I click the first entry on the list, I can see that "i6" is indeed a page number but that the OCR has split the header so that the "FAMOUS SCOTS" part of it is showing on a different line.


Since I'll want to remove both bits, I'll click "Fix" on this entry, which will delete the page number but re-add this page to the list showing the "FAMOUS SCOTS" text as the new potential header. You can see that in the image below. (Note that it will also now appear in a different section of the list since GG2 no longer thinks that it's a page number so I've had to scroll down the list to find it.)

I could now click "Fix & Hide" on this entry to delete the "FAMOUS SCOTS" row and remove this page from the list since I can see that there are no other bits of header to remove. Alternatively, I can leave it on the list for now and deal with it as part of the "Even Header" category when I get to it.

I'm now confident that all of the "Even Header Page Num?" and "Even Header Page Number" entries are actually page numbers and can be removed so I click "Fix All" to delete those headers but keep those pages on the list with the next non-blank row as the new header text.

Now, I start working through the "Even Header" list. Looking at the first entry, I can see that that is actual text, not a header so I click "Hide" to remove that page from the list without deleting the text.


I then work through the list, checking each individual entry. For any where the text shown in the "Header/Footer Removal" tool is clearly the only header or footer text to remove, I use "Fix & Hide". For any where the header or footer has been split over multiple lines, I use "Fix" to remove the first part of the header and then "Fix & Hide" to remove the last part and remove that entry from the list.

For groups like the "Odd Footers" where entries are mostly "wrong" (in that they are text that should be kept and not footers), I scroll down the list without clicking any buttons until I spot one that looks like it might be a footer (like the "es" entry in the screenshot below). I then take the appropriate action for that one ("Fix" if it looks like there might be multiple footer lines to be removed or "Fix & Hide" if there's just one and I'm happy that that page can be removed from the list). Once I'm happy that all actual footers have been removed from the list, I click "Hide All" to remove the rest without deleting any text.

Similarly but conversely, for "Odd Headers", most of the entries will need to be removed so I can scroll down the list, clicking "Hide" for any that need to be kept (the chapter headers in the screenshot below) and then, when I'm confident that only headers that need to be removed are left, I can click "Fix All".


I'm not using "Fix & Hide All" here since I think my OCR has split the headers again so I want to see what's left at the top of these pages after these lines have been removed, in case there are also page numbers that need to be removed. Sure enough, there are a number of what GG2 thinks are page numbers left, so I can quickly double check that I agree and then click "Fix & Hide All" on these.


I keep going in this way until there are no entries left on the list.