Converts all control characters, carriage returns, and tabs into spaces and then strips duplicate
spaces.
This is mainly intended for use with individual Scripture strings in USFM, USX, USJ, etc. format.
It is not intended to implement the USFM white space definition or reduction
rules but strictly follows Paratext 9's white
space rules. It is generally best suited to normalizing spaces within a Scripture marker as it
removes all newlines.
This function is a direct translation of UsfmToken.RegularizeSpaces from ParatextData.dll
Converts all control characters, carriage returns, and tabs into spaces and then strips duplicate spaces.
This is mainly intended for use with individual Scripture strings in USFM, USX, USJ, etc. format. It is not intended to implement the USFM white space definition or reduction rules but strictly follows Paratext 9's white space rules. It is generally best suited to normalizing spaces within a Scripture marker as it removes all newlines.
This function is a direct translation of
UsfmToken.RegularizeSpaces
fromParatextData.dll