✨ Add glossary option #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Androz2091/deepl-scraper:androz2091-glossary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a new glossary parameter, so I can use:
As always, thank you, for taking time to contribute to my projects.
There are, however, some issues. xD
Glossary is persistent
Allowing to set
glossaryas a third parameter of thetranslatemethod, leads us to believe that glossary, once set, is only used for the current translation task, then forgotten, which is not the case.Example :
A more accurate implementation would consist in creating a
setGlossarymethod, leading us to believe that, glossary, is, in fact, a persistent feature.As the UI allows to silently replace an existing glossary entry when it is duplicated, this behavior should also be documented.
As I noticed that glossary is cleared once the
quitmethod is called, that fact should also be documented.Additionally, I would be most grateful, although I don't require it, if you could implement the following methods :
clearGlossaryto remove all existing glossary entriesremoveGlossaryto remove one or many existing entriesgetGlossaryto get all existing entriesAs you know, moving glossary to own methods, implies setting origin and target languages later, so you'll need to add those as second and third parameter of all glossary methods you shall implement.
Glossary doesn't support all translation-supported languages
Glossary is currently limited to English, French, German and Spanish.
Therefore,
UNSUPPORTED_SOURCE_LANGUAGEandUNSUPPORTED_TARGET_LANGUAGEmust be implemented, in a dynamic way, as is thetranslatemethod.Optionally, the
getSupportedGlossaryLanguagescan be implemented.Thanks again for your involvement in this project ! :)
Superseded by #4
Pull request closed