No, that won't do. You need to ignore what is in (... "*" ... "*"...) . Including the brackets ( ). You don't need to ignore anything without ( ).
$ "leave" the_person.draw_person(position="ignore", emotion="ignore") "leave". It's just an example.
It puts the original text in the untranslated lines. So the method you suggested will not work. Deepl. I'll make a video next time.
Well you are not being very clear. You putting "**" made me assume that's the bit you care about.
And again I'm now not sure how the formatting actually looks like.
If the * bit is the only variable you could simply do:
You must be registered to see the links
JavaScript:
\\(position=\"[^\"]*?\", emotion=\"[^\"]*?\"\)/g,
If you want all * in (*"*"*"*"*) to be variable you could do
You must be registered to see the links
JavaScript:
\\([^(\"]*?\"[^\"]*?\"[^\"]*?\"[^\"]*?\"[^)\"]*?\)/g,
To preserve the entire line when something like that is in it, you can just add .* in front and behind it.
As for DeepL, you cannot translate the exact same thing twice. Every time that happens you will just get the original input sent back.
You can't really fix that with DeepL itself because it's simply the service blocking your request.
What you could do is put DeepL as your default translator and then use the RedPiggyback translator from Reddo9999.
That way you "should" use the same cache system RedSugoi and RedGoogle have, which will automatically insert duplicate translations without even asking DeepL again.
Main downside of that is that is that you can no longer use the built in custom escaper, but instead you have to edit the addon file.