-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix translation citation pars (#3448)
* Fix citations for translations Preserve citations instead of converting them into translated pars Find and use corresponding citation pars from original's translations, if any * wip [skip ci] * Add access checks for possibly non-existent class variables * Fix translating citations with non-existent sources, clarify variable names * Update expected result for par preview test * Reference translated citation in ParRef component if the paragraph is a translation * Set the \'r\' attribute when translating cited paragraphs * Update expected test string * Fix ref-doc-id for translated citation pars * Partial solution to resolving translation of area citations * wip [skip ci] * Fix area citations in translations Add explicit area and area_end attrs to translated area paragraphs Reference area citations correctly in translations * Temporarily disable a single test for a specific corner case. * Preserve citations when synchronizing translations * Fix synchronizing citations for translations, refactor synchronize_translations and add_reference_pars * Fix ParRef reference for area citations in translations * Fix syncing area citations in translations * Add explicit area ids to (translated) area paragraphs when syncing translation paragraphs * Move add_explicit_area_ids to docparagraph.py * Fix area citations Fix adding area citations Take area pars into account when matching between citation source and target * Prevent adding None values for SequenceMatcher input when diffing for translation sync * Remove and update outdated comments * Fix ref-doc-id and ref-id for cited paragraphs in translations
- Loading branch information
Showing
6 changed files
with
246 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters