Skip to content

work on update functions #90

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

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

work on update functions #90

wants to merge 15 commits into from

Conversation

maelle
Copy link
Contributor

@maelle maelle commented Jul 15, 2025

The plan is for me to use this branch when working on the dev guide release @mpadge.

The big limitations of both update functions is that

  • they rely on the XML structure to be the same to start with. So we can't split a paragraph in a translation or add a translation note outside of the paragraph.
  • re-use nodes like paragraphs, lists. In lists we might want to re-use items!
  • re-write the whole file with tinkr. Maybe we should instead do a bit of surgery on the file to prevent the reformatting changes in the Git diff.

One thing that might help is adding a function deepl_translate_clipboard() that would just take source and target language, and use the config file. At least I know it would help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant