Here are some tips for using
Search and Replace Plugin V2.1.
Plain Text Settings
On the
Major Options tab enter a
comma (
,) into the
Search box and a
tab into the
Replace box.
The other
Search Mode options are unimportant except
Confirm the action for every item found should be ticked.
On the
Extra Filters tab click
Exclude All Short Text and
Exclude All Long Text buttons.
Ensure all the tick box options are cleared.
Tick the
Text From Source fields option and choose
Source (SOUR.TEXT) from the dropdown list.
This will restrict the
Search & Replace to just the
Source Record -
Text From Source fields.
You will be able to review each proposed change and either perform the
Replace or
Skip it.
The above assumes you are using
Source Record -
Text From Source fields for your
Census transcripts.
Watch out for
commas in text such as lists and addresses that use
commas as separators and don't need to be changed to
tab.
LUA Pattern Settings
Do you have many
non-Census transcripts in
Text From Source fields that use
commas extensively?
Do these usually have a
space character after each
comma?
Do your
Census transcripts NOT have a
space character after each
comma?
If the answer to each is
Yes, the following will avoid all the
non-Census transcript
commas:
On the
Major Options tab enter
,([^ ]) in the
Search box and a
tab followed by
%1 into the
Replace box.
Select the
LUA Pattern Mode option on the right, then use
Search & Replace.
This means search for a
comma followed by any character except a
space, and capture that character, then replace with a
tab and the captured first character.
Alternative Separator
See the how_to:tabulate_multiline_text_in_records_and_reports|> Tabulate Multiline Text in Records and Reports advice.
This suggests that
Tab Bar Space is a better separator than just
Tab.
To achieve that, just include the
| and
space characters in the
Replace box above.
In any case, that advice talks about needing extra
tab and sometimes
space characters to achieve tidy columns.
It also advise about how to achieve tidy
Report columns.
I am working on an update to the
Improve Website or CD DVD HTML Plugin so that web/CD/DVD pages also have tidy columns.