Clean text and set quotes

Build 1501 on 14/Nov/2017  This topic last edited on: 13/Sep/2015, at 13:45

A text pasted from non GN4 applications may contain inappropriate characters or text flow, wrong quotes and other problems such a multiple spaces, multiple returns, so the results may be not what you expected.

GN4 has a tool to clean the pasted text of inappropriate characters and set the correct quotes. You can call it from the Edit menu (Edit > Find > Clean Text and Set Quotes).

Note: when you paste a text from a PDF, it may result with a broken flow, i.e. every line became a single paragraph. This tool cannot fix that problem, as it is not possible to know where the original paragraphs were.To fix that, see Get rid of extra paragraphs.

If there's a highlighted block, it works on it, otherwise, it works on all text.

What get's cleaned?

Multiple returns are replaced with a single return.

Multiple space are replaced with a single space.

Every paragraph starts with three spaces.

All inline rules created by --- or === or ____ are removed.

Double hyphens (--) are replaced by medium dash (chr 150).

Two consecutive single quotes are replaced by a double quote.

Removed character > (chr 62) from pasted mails.

Note

The script name is CleanText.

See also

Get rid of extra paragraphs