Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
How to remove accents
-
I built a workflow to translate from Portuguese to English, using google translate.
It is working fine for languages without accent (ie, from English to portuguese).
In summary, I created this:- replace empty space between letters with %20 and create a variable [text].
- open the in app browser with the URL https://translate.google.com/#pt/en/[text]
But Portuguese has several accents and I need a simple way to remove all of them and replace with the same letter, but without accent.
Example:
Replace é to e
Replace à to a
EtcAnyone has some idea on how to do that?
Is there a regular expression method to handle this?
Or do I need to create a find and replace workflow for each of the words?Thanks
-
Instead of manually replacing spaces with
%20
and removing accents, you can just use the URL Escape action. Here's a working example:http://www.editorial-workflows.com/workflow/5906488551800832/bDlkYWOm0qE
This doesn't remove the accents, but it converts them to a percent-encoded form that can be used in the URL.
-
Perfect! Thank you!