User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:nnels:etext:find-and-replace [2018/07/12 12:29]
leah.brochu created
public:nnels:etext:find-and-replace [2022/04/11 14:02] (current)
rachel.osolen
Line 3: Line 3:
 Microsoft Word's Find & Replace function is a powerful feature that can be used in a variety of ways while e-text editing. Microsoft Word's Find & Replace function is a powerful feature that can be used in a variety of ways while e-text editing.
  
 +You can use it to search for words and phrases, and increase precision by using the included options (i.e., Whole word only, ignore case, etc.). You can also search for patterns of text by searching for special characters in addition to text. You can access the codes for these special characters by selecting the item from the drop-down menu in the ''Find'' tool:
  
 +{{ :public:nnels:etext:findreplace2.png?300 |}}
  
-Below are a few examples of it in use; please feel free to add more as you come across them or come up with them!+A few that are used often in etext reformatting are: 
 +  * ''^p'' (Paragraph marker - ¶) 
 +  * ''^l'' (Newline Break - ↵) 
 +  * ''^w'' (White/Blank Space) 
 +  * ''^$'' (Any letter) 
 +  * ''^#'' (Any digit) 
 +  * [[http://accessinghigherground.org/handouts2013/HTCTU%20Alt%20Format%20Manuals/Formatting%20with%20Word/Old%20Material/Handouts/05%20Advanced%20Find%20and%20Replace%20in%20Microsoft%20Word.pdf|More]] 
 + 
 + 
 + 
 +Below are a few examples of Find & Replace in use; please feel free to add more as you come across them or come up with them! 
 + 
 +---- 
 + 
 +<WRAP center round box 80%> 
 +**PROBLEM**: ALL CAPITAL LETTERS. We have to [[public:nnels:etext:capitalization|change All Caps to Sentence Case or Capitalize Each Letter]] 
 + 
 +**SOLUTION**: 
 +  * Open ''Advanced Find & Replace'' and turn on ''wild cards''
 +  * Close ''Advanced Find & Replace'' 
 +  * Enter ''[A-Z]{2,}'' into the search bar and it will find all the all capital words. 
 + 
 +Note: This also finds acronyms and abbreviations, so you have to just scroll through all of the all cap instances and manually change any that are proper words and phrases into either Sentence case of Capitalize Each Word. You can also create a [[public:nnels:etext:keyboard-shortcuts|keyboard shortcut]] for change capitalization. 
 + 
 +Here is a quick video demo: [[https://somup.com/crl6bv0541]] 
 + 
 +</WRAP>
  
 ---- ----
Line 21: Line 49:
 Since all of the matches are listed in the sidebar, you will be able to go through each one and see which ones need fixing and which ones can be left alone.  Since all of the matches are listed in the sidebar, you will be able to go through each one and see which ones need fixing and which ones can be left alone. 
  
-This is not a perfect solution; it is impossible to be aware of every possible error that OCR might make from an older PDF, but it can help streamline some parts of the process. Scanning the entire text will still be necessary (like for the "13"s that become "B"s. Searching for a capital B will generally not be the best way to recognize the error, as there will likely be hundreds of Bs in the text.+This is not a perfect solution; it is impossible to be aware of every possible error that OCR might make from an older PDF, but it can help streamline some parts of the process. Scanning the entire text will still be necessary (like for the "13"s that become "B"s. Searching for a capital B will generally not be the best way to recognize the error, as there will likely be hundreds of Bs in the text) but using Find & Replace can help you solve some more readily searchable issues.
  
 </WRAP> </WRAP>
Line 35: Line 63:
  
 Replace with: ''^p'' Replace with: ''^p''
 +
 +If that doesn't work try:
 +
 +Find: ''^l''
 +
 +Replace with: ''^p''
 +
  
 In LibreOffice, replace all ''\n'' with ''\p'' to convert them to paragraphs. In LibreOffice, replace all ''\n'' with ''\p'' to convert them to paragraphs.
Line 40: Line 75:
  
 ---- ----
 +<WRAP center round box 80%>
 +**PROBLEM**: There are extra white/blank spaces in the document.
 +
 +**SOLUTION**: Find and remove all extra spaces and replace with a single space.
 +
 +Find: ''^w^w'' for double spaces ''^w^w^w'' for triple, and so on.
 +
 +Replace with: ''^w'' for a single space
 +
 +If that doesn't work try:
 +
 +Find: ''^032^032'' for double spaces ''^032^032^032'' for triple, and so on.
 +
 +Replace with: ''^032'' for a single space
 +
 +</WRAP>
 +
 +----
 +
  
 <WRAP center round box 80%> <WRAP center round box 80%>
Line 67: Line 121:
 <WRAP center round box 60%> <WRAP center round box 60%>
  
-{{:nnels:documentation:content:production:screen_shot_2015-08-06_at_6.10.55_pm.png?300|}}+{{z_archive:screen_shot_2015-08-06_at_6.10.55_pm.png?300|}}
  
 Find: ^#^pMacG_9781770494220_5p_all_r1.indd ^#^p10/27/14 11:56 AM^p Find: ^#^pMacG_9781770494220_5p_all_r1.indd ^#^p10/27/14 11:56 AM^p
Line 75: Line 129:
 </WRAP> </WRAP>
  
 +----
 +
 +<WRAP center round box 80%>
 +**PROBLEM**: After conversion, your etext document ended up with a number of section breaks throughout the text.
 +
 +**SOLUTION**: Find and remove all section breaks and replace with nothing.
 +
 +''Find'': ^b
 +
 +''Replace'': [Leave blank]
 +
 +One additional instance in which you might need to remove section breaks can be found on the [[public:nnels:etext:notes#advanced_tip|Footnotes and Endnotes page]].
 +
 +</WRAP>
 +
 +----
 +
 +<WRAP center round box 80%>
 +**PROBLEM**: Need to change a style in a large text, but don't want to search page-by-page for it.
 +
 +**SOLUTION**: Find and replace using the font settings in the advanced Find and Replace Box.
 +
 +''Find'': select the ''Format'' dropdown menu and select the font
 +''Replace'': select the ''Format'' dropdown menu and select the font
 +
 +For more information see [[https://www.youtube.com/watch?v=7j92Py8J3qg|this video]] for more information
 +
 +</WRAP>
 +
 +
 +----
 +
 +<WRAP center round box 80%>
 +**PROBLEM**: You need to find a specific applied style to edit.
 +
 +**SOLUTION**: You can either use Find to locate a style and change it manually with the style pane, or you can use Find & Replace.
 +
 +To ''Find'' a Style:
 +
 +  - Keep the ''Find'' box empty.
 +  - Click on the ''More'' button if it is available.
 +  - Click on the ''No Formatting'' button, if it is enabled.
 +  - Click on the ''Format'' button and select ''Style''
 +  - Select the style for which you want to search.
 +  - Click on ''OK''.
 +  - Click on ''Find Next''
 +
 +To ''Replace'' a style:
 +
 +  - Same directions as above for ''Find''
 +  - Repeat directions for ''Replace''
 +
 +</WRAP>
 +
 +
 +====== Q&A ======
 +
 +**Q: I have a book that has a vast number of subheadings for each chapter, and the book itself is very long.  Right now all the subheadings are set at H3, but should be H2.  Is there a quick way to do this?  Note:  I can not delete Heading 3 Style.  I am currently going through and manually changing them. I am changing the Chapters to H1 and the subheadings to H2.
 +**
  
 +A: You can use Advanced Find and Replace to search for all text that is styled as Heading 3 and replace that with Heading 2. Here is a screenshot of how that Find & Replace looks on my Mac:
 + 
 +{{:public:nnels:etext:findreplaceheadings.png?linkonly|}}
  
  
 +[[public:nnels:etext:start|Return to main eText Page]]
public/nnels/etext/find-and-replace.1531423767.txt.gz · Last modified: 2018/07/12 12:29 by leah.brochu