Finding and replacing tab characters

I'm using Pages and noticed that it can do a find and replace. I have a document with too many tab characters. I asked Pages to show them and it did. Then I told it to replace every "two tabs" with "one tab". It can neither find the tabs nor replace them. It can find one paragraph mark and then gives up and can't find any more when I ask it to find "next". Something seems very wrong, but I'm not sure what it is. I don't want to have to open Text Wrangler to do something Pages seems to think it can do.

PowerMac G5, Mac OS X (10.4.11)

Posted on Mar 10, 2009 11:34 AM

Reply
9 replies

Mar 10, 2009 11:55 AM in response to Pamela Mullen2

Pamela,

Sampling what you are searching for is always a good idea.

As is clearing out your Find and replace fields by tabbing into them, selecting all (cmd A) and deleting. It is very easy to have an extra line or character in there that you can't see.

Your original text could also have subtle variations in the character order or spaces between tabs that don't match your search criteria.

Best is to search on one pattern of tabs or whatever, then when searching doesn't catch anymore, sample the next set that won't replace and search on that again. Progressively eliminating all variants.

Peter

Mar 13, 2009 8:17 AM in response to Pamela Mullen2

Using "Use selection for find" doesn't work either. I can see that I have at least 15 incidences of the ^t^t and it can't find them.

However, they were created when I copied something from the Internet and it came as a table when I pasted it into Pages. So I "converted Table to Text". Added into the table at various points were small no line, no fill boxes. The boxes cannot be seen (even using Show Invisibles) but only when I attempt a selection do they show up. Search and Find cannot handle those boxes. I solved the problem by copying the entire table into Text Edit and then copying it back into Pages. Then the double tabs without the mysterious boxes could be found and replaced.

Mar 13, 2009 10:36 AM in response to Pamela Mullen2

No matter what DTP application you are using, it is always a good idea to clean up your text in a pure text program such as TextEdit, iTextExpress, BBedit or TextWrangler. They get rid of non-conforming characters and any spacer images, usually containing 1 white pixel, that some web designers use to position text within a page.

They also have GREP to automate the clean up process.

Pages does not have the equivalent of *Indesign's StoryEditor* to handle this task, so using the 3rd party software in *Text Only* mode does the job.

Peter

PS Letting us know you copied and pasted this from a web page would have resolved this much faster.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Finding and replacing tab characters

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.