-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More supported syntax #3
Comments
I wil try to fix this but it is always difficult to exclude or include specific syntax things from specific plugins. |
But I know the reason for your table issue: If you write |
Ok, I understand the problem. But why is |
Because you can also paste plain links in your WikiText and I need something to detect them. So I have used the |
But you can also write |
Instead of using regexes or string replacements to exclude parts of the wiki text from translation, the DokuWiki parser should be used. That parser knows what is a link and what isn't. deepl's API supports an XML mode AFAIK. A wiki text could be parsed and rendered to a custom XML representation, sent to DeepL and the resulting XML could be converted back to wiki syntax without any ambiguities. |
You already suggested that to me, but I didn't find an easy way to convert the output of the parser back into DokuWiki syntax (and I now work in full time and don't really have the time to refactor the whole escaping mechanism). |
Hi,
great plugin !!!
I have tested it today the first time and found some syntax elements that are not supported:
Normal tables:
| //Basismaschine://\\ siehe Spielplatz |
wird zu| //Basismaschine://\\ See playground |
--> "Basismaschine" isn't translated
imagecaption plugin::
Hier ist ein Bild mit Unterschrift:\\ <imgcaption image1|Unterschrift zum Bild>{{bild.jpg|}}</imgcaption>
wird zu:
Here is a picture with a signature:\\ <imgcaption image1|Unterschrift zum Bild>{{playground:bild.jpg|}}</imgcaption>
--> The text "Unterschrift zum Bild" isn't translated
Best regards
Juergen
The text was updated successfully, but these errors were encountered: