
reverse the sequence of all words in the text.Sort the rows (ascending or descending).Get all URLs out of a text and then attach them as a list to the original text.
#Text cleaner add on mac
An “iphone” then automatically becomes an “iphone” – even if the Mac itself usually offers this as a correction when typing. There are even features that correct the spelling of product names from major tech companies.
#Text cleaner add on software
The Mac software TextSoap, on the other hand, is a small marvel for this area of application, because it offers so many ready-made cleaning functions that hardly anything is left to be desired.

If you move the mouse pointer over a function, a small hint appears that explains what the function does exactly. The editor window of TextSoap has various areas: the button at the top right opens the editor with which you can put together your own text cleaning functions In the box on the right you can find an excerpt of the existing routines (the scroll bar shows how many options there are) and at the top left is the button with which you can start your personal favorites cleaning routine. But it is at least time-saving than in Word or Pages use the "search and replace" function to gradually resolve the problem cases. This is of course really cumbersome and really only worthwhile if you have a lot of texts that you then clean up by copying and pasting. You shouldn't actually tell it at all, but I had programmed a PHP script for this from time to time, which solved several tasks at the same time for me using search and replace. Sir Apfelot recommendation: Clean up your Mac hard drive with CleanMyMac My previous solution: Search and replace via PHP script or in PagesĪs you can see, if you often work with other people's texts, you get a lot of possible problems that you have to solve. With TextSoap, any text can be searched and corrected automatically for many typographical and formal elements at the same time.

#Text cleaner add on code
Read the source code if you are sure about what's going on. * *ranges*: iterable of instances of *UnicodeRange*.įollowing processors are defined by *UnicodeRange* and regex. *UnicodeRangeProcessor(ranges, replace\_text=DEFAULT\_REPLACE\_TEXT)* * *end*: *int*, the end of unicode range. * *begin*: *int*, the begin of unicode range. * *verify(self, text)*: return *True* if text match *regex*, otherwise returns *False*. * *keep(self, text)*: keep only the occurences of *regex*, remove all unmatched components from *text*. * *remove(self, text)*: remove all occurences of *regex* from *text*. * *replace(self, new\_replace\_text)*: create a new processor, with new *replace\_text* is set. * contruct a regex processor for *regex*, replace unmatched components with *replace\_text*. *RegexProcessor(regex, replace\_text=DEFAULT\_REPLACE\_TEXT)* *DEFAULT\_REPLACE\_TEXT*: `' '`, single space. * same as *remove*, but invoke `keep` method of processors instead. *remove* invokes `remove` of each processor to handle *text*. * *text*: `str` or `bytes` (`unicode` or `str` for Python 2). **WARNING FOR PYTHON 2.7 USERS**: Only UCS-4 build is supported(`-enable-unicode=ucs4`), UCS-2 build (()) is **NOT SUPPORTED** in the latest version.įrom text_ import ASCIIįrom text_ import CHINESE, CHINESE_SYMBOLS_AND_PUNCTUATIONįrom text_ import RESTRICT_URL # text-cleaner, simple text preprocessing tool
