Documentation

SAI Find and Replace

Runs multiple Replace All actions.

This has all the features of Word’s Find and Replace but provides easier access to certain search items and formats. It allows you to save searches and run multiple replacements at once and on more than one document at a time. Replacements may be font and/or style changes, real title case changes, as well as text and Wildcard changes. You can also insert image callouts (IM).

If multiple replacements are selected to run, they will run in the order specified. For example, you may choose to first replace the word “taste” with “test,” and then (with the Whole Word option selected) apply the i (italic) ScML style to all instances of the word “test.”

This tool has two views:

  • Routine View: See an overview of all Find/Replaces to be executed. Enable/disable individual searches. Add and delete searches from the routine. Save/Load routines. Run Replace All routine.
  • Find/Replace View: Modify an individual search within the routine. Run a single find/replace.

To enter the Find/Replace View from the Routine View, you can add a search by clicking the New Search button or by double-clicking an existing search to edit it. To return to the Routine View, click Add/Update Search or Cancel.

Routine View

The tool opens to the Routine View. From here, manage search routines, load and save routines, and enable or disable routines.

Manage Search Routines

Load: Select a saved search routine from the drop-down menu. Doing so will load all the searches in the routine to the table.

Save: If you use certain replacements regularly, you can save them so you don’t have to remember them and type them in every time. Enter the replacements you wish to save, then click this button. Enter a memorable name when prompted. Save over an existing routine by selecting a previously created routine from the drop-down prior to clicking this button. The replacements do not necessarily have to be ones you would run together; they could be individual replacements that you simply select or deselect as appropriate.

Delete: Select a saved search routine from the drop-down menu, then click this button to remove the routine from your list of saved routines. This action cannot be undone.

Import/Export: Routines can be imported and exported in text files and shared within or between organizations using the SAI.

Routines can sometimes have their text garbled when importing/exporting between Mac and PC. After importing a search made by somebody else, review the search text prior to running to ensure the characters don’t appear corrupted.

Modify Search Routine

New Search: Add a new search to the end of the document.

Delete Search: Select a search from the list box, then click this button to remove it from the routine.

Disable/Enable Search: To prevent a search from being run without deleting it from the routine entirely, select a search and toggle the Enable/Disable Search button.

Change Search Order: Select a search from the list box, then click the arrow buttons to the right of the document to move a search up or down in the routine order.

Update Search: Double-click on a search in the list box to be taken to the Find/Replace View to modify or run a single search.

Run Search Routine: Run all enabled searches in the Routine in order. Runs on the scope determined by File Selection. You can also run replacements on multiple documents (select under this tool’s File Selection tab).

Load Last Routine Run: Load the last routine run to the Find and Replace tool. This can be especially useful if you just ran a new or updated search and wanted to save it for future use.

Find/Replace View

The Find/Replace View has most of the features available in Word’s default Find/Replace tool, including a few special SAI-only features. You can also test out and execute searches here. Running Find Next, Replace, or Replace All from this window will act on the portion of the document where your cursor is currently located: main text, footnotes, or endnotes.

Users of Word 2011 (Mac) may have trouble running replacements in this view. The document may be changed, but Word will not necessarily refresh after execution. For this reason, running replacements on this screen in this version of Word, while permitted, is not encouraged.

Word Find/Replace Options

  • Match Case: Only find/replace instances that match the case of the entered text.
  • Find Whole Words Only: Only find/replace instances that match the entered text as a whole word rather than as part of a word. For example, check this box if you want all instances of the word “test” to have a style applied but do not wish to apply a style to words like “tested” or “testing” (i.e., test but not tested or testing).
  • Wildcard: Use Word’s wildcard text (similar to regular expressions).
  • Format: Search for or apply formatting, highlighting, and styles.
  • Default Paragraph Font: Search for or change specified text to Default Paragraph Font (actually a character style). This formatting is often used to change bold or italic text to plain text. Click your cursor into either the Find or Replace text bar, and then click this button to apply this formatting to the desired field.
  • No Formatting: Remove formatting details (style, font, or paragraph) from Find or Replace fields. These details appear under each text bar if they have been selected. Click your cursor into either the Find or Replace text bar, and then click this button to remove the formatting of the desired field.
  • Special: Obtain Find/Replace search symbols to use for special characters. The drop-down list changes when Wildcard is selected.

SAI Find/Replace Options

  • Real Title Case: When the cursor is within a Replace text box, this button will be available. It will apply “intelligent” title case to specified text. For example, to make all a-heads title case, select the ah ScML style for the Find box and click this when in the Replace box, then run the replacement.
  • Image Insert: Use to insert Scribe-formatted, consistent image callouts using the figure file names. For example, if your figures are already called out as “Figure 1.4 goes here” or “Figure 10.6 goes here” and your project is named “scr-tester,” you can use the following search (Wildcard selected):
    • Find: Figure ([0-9]{1,2}).([0-9]) goes here
    • Replace: Click the Image Insert button. Formatting style: img will be applied and {~?~IM: insert [fig file name] here.} will appear in the text bar. Where [fig file name] is, type in scr-tester-fig0\10\2 for single-digit chapters or scr-tester-fig\10\2 for double-digit chapters.
    • Your output would look like this:
      {~?~IM: insert scr-tester-fig0104 here.}
      {~?~IM: insert scr-tester-fig1006 here.}