Open
Bug 1917708
Opened 1 year ago
Updated 3 months ago
Add Functionality to Reconstruct HTML for Translated Text
Categories
(Firefox :: Translations, enhancement, P2)
Firefox
Translations
Tracking
()
NEW
People
(Reporter: nordzilla, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Description
Bug 1917707 will introduce functionality to parse HTML into plain text while preserving data related to the locations of inline HTML elements within the source text.
We now need to implement functionality that can reconstruct the HTML structure from the translated text, re-inserting inline HTML elements to the semantically equivalent locations based on the alignment data within Bergamot's translation response.
Steps to implement
- Add new functionality to reconstruct HTML from translated text, bitext alignments, and inline tag data.
- Add tests that ensure the reconstructed HTML matches the expectations given various scenarios.
You need to log in
before you can comment on or make changes to this bug.
Description
•