Update 2018-06-05
In the section “Issues & Troubleshooting” of the post above I have mentioned a Perl workaround to make the Translate Shell script work correctly with non-ASCII chars from the DeepL engine.
As I have learned today, that workaround is no longer necessary if you use…
- the current version of the Translate Shell script (0.9.6.7) and
- install a current version of bash (4.4.23)
The bash that comes with macOS High Sierra is version 3.2.57. You can install bash 4 with Hombrew:
brew install bash
This will currently install bash 4.4.23. For the purpose of the macro it is not necessary to add anything to /etc/shells
If you prefer not to install bash 4 you can of course still use the Perl fix as shown in the post above.