Comments (2)
Hi @ontl. No plans yet, when I created this XML handling was not even really specified of course you can send a PR to improve the API. I would like it to be covered with tests though.
I think we should try not to make the translate() API too complex with so many new options. Perhaps we can encapsulate the XML related options somehow together in one new parameter containing the different fields, what do you think?
from deepl-api-py.
Ok cool. I have a working version with just the tag_handling=xml param, and have been poking away at some tests (on short strings, the normal translation mode sometimes produces the same results as tag_handling=xml, so still looking for the best test strings)
To add the other XML-related options, I like your idea of encapsulating them rather than adding more options to translate(). I'm a bit rusty in python, is the idea we'd add an xml_options parameter to translate() which expects a dict of options? What would the command line syntax look like for that, --xml_options={option1:value,option2:value}
?
from deepl-api-py.
Related Issues (2)
- How to install it? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepl-api-py.