Nice solution, Alain, and simple indeed.
Nevertheless, I want to learn how to access such a two-dimensional array. So I hope that I can learn that tomorrow (today I have to go to the museum, expo about the eighties: https://museumkwartier.nl/event/de-jaren-80-noord-brabants-museum/?gclid=Cj0KCQjwgb3OBRDNARIsAOyZbxAb3jnAM9MYyr2e6UPmSkqd_8c9e1cFiWJJenKkcPRL2DrnA78_OcAaAqe0EALw_wcB).
I just realised that this technique can also be used for masking sensitive info before sending a segment to all-knowing DeepL.
I'd be interested to learn the speed, e.g. with 100 lines of replacements, or with 1000 (names of companies I work for, their street names and towns, postal codes etc.).
I just wonder if JMichaelTX will also smell a two-dimensional wet fart.
H.
Dear colleague, Mr. Hans van den Broek,
I'd be much obliged if you could refrain from further posting to this thread.
If you have nothing positive to contribute and just want to take me down or ventilate your dirty language here, please hush.
You're an adult person, so please behave as one!
Best,
HL
Hi Alain, could you please repost here the macro that you have tested? I seem to have downloaded a previous version, in my the regular expression part is missing :(.
Hi Hans,
Here it is... the only version I downloaded (this morning, Japan time).
Since a couple of days, DeepL started adding the translation of the German word 'nahe' to every sentence. It turned out that the culprit was a trailing whitespace. So I added two commands:
HL
Now it's possible to get DeepL's translation directly in CafeTran's target editor, without any screen flickering etc.
Note that the used API is temporarily!
See: https://forum.keyboardmaestro.com/t/translate-via-deepl/7910/2
Thank you very much, Tom!!!
And watch: https://youtu.be/S_AV4K0O2k0