Add nonbreaking spaces between initials
This issue relates to the UCP cleanup macro (#21 (closed)).
Spaces between initials should be replaced with non-breaking spaces.
The search should look for:
- uppercase letter (A-Z) + period + space + uppercase letter (A-Z) + period
and replace it with:
- uppercase letter (A-Z) + period + nbsp (00A0) + uppercase letter (A-Z) + period
As a bonus, it would be nice if we could detect initials without spaces between the letters. So, before the above replacement would take place, we should look for the following pattern:
- space +
- any number of repetitions of a capital letter (A-Z) + a period + capital letter + period, etc.
- a space
and add nbsps between the letters.
THEN, catch the following common abbreviations that would have been erroneously sucked up by the above rule. All of these should not have spaces between the letters: