Comments (14)
It is using the neural translation system just fine. The problem is that individual bullets are split into multiple segments by markup that PowerPoint applies more or less randomly. As a result, various substrings of a sentence are translated individually, breaking the sentence congruency.
Unfortunately the OpenXML markup simplifier I used for Word documents doesn't work on PowerPoint docs. That'll be an undertaking.
from documenttranslator-legacy.
That would probably be in https://github.com/MicrosoftTranslator/DocumentTranslator/blob/master/TranslationAssistant.Business/DocumentTranslationManager.cs.
I think there are two issues involved:
a) As you observed, the generalnn category is lost
b) Formatting of runs in text inserts harmful tags
For a) I have no clue where that gets lost.
For b) probably best to remove tagging from inside individual elements, or certainly from within sentences. May use the BreakSentences method to determine sentence breaks.
See that I recently used a format cleanup logic for Word docs, maybe something similar applies to PPTX.
from documenttranslator-legacy.
If you didn't find the solution yet, I'll have a look on the weekend.
from documenttranslator-legacy.
Thanks! I have been looking but haven't found code that would send PPTX files down a different submission route than DOCX for example. Your help would be awesome. Thank you!
from documenttranslator-legacy.
P.S. I'm testing on 1.4.2U.
from documenttranslator-legacy.
from documenttranslator-legacy.
Hi Chris, any chance of a fix soon...or could we collaborate on one? This is critical for us, so we'd love to get or help develop a solution.
Thank you!
Jason
from documenttranslator-legacy.
Do you have an update for us on this one, Chris?
from documenttranslator-legacy.
Hi Chris, any chance Microsoft can fix this one? Thank you! :)
from documenttranslator-legacy.
Just checking in: PowerPoint is a great Microsoft document format. Can we work with you to get the bullet points translating correctly with NMT through Document Translator?
Thank you!
from documenttranslator-legacy.
Sorry for the lack of an answer. I do not have a brilliant idea here, other than adopting the markup simplification strategy that the OpenXML markup simplifier offers for Word docs. In my observation it worked well there, but losing markup in PowerPoint is quite a bit worse than losing it in Word, in terms of the end user perceived effect.
I see these options:
- Translate PowerPoint openXML by hand. The Translator API preseves HTML tags natively. Must be sentence-internal HTML tags to avoid breaking up the bullet. May need some tag renaming logic back and forth.
- Drill into the OpenXML simpliciation toolkit to add PowerPoint as a format suitable for simplification. That probably comes at the cost of loosing something, so it'll be more work with a less usable outcome.
- In a preprocessor, parse the original OpenXML, simplify the bullet markup by hand. Remember the simplifications. In a post-processor, re-apply the markup, using word alignment information from teh Translator API as a helper. This is the intellectually more complex task, but avoids digging deep into the otherwise nicely working toolkits, and promises the best results.
I currently do not have time to go deeper on either, and of course would welcome any help.
from documenttranslator-legacy.
Hi Chris, are you aware of Translator Tools' Document Cleaner? We have been pre-processing our Word documents (using Tag Cleaner feature for tag reduction) before using Document Translator, and the quality improvements from NMT are HUGE with some short pre-processing. Unfortunately, it is a plugin and not a standalone set of routines, so it's a manual step and we would love it to be automated.
I would highly recommend looking at the steps it takes for Word and PowerPoint at least. Document Translator would be significantly stronger if additional tag reduction were incorporated.
More info here:
http://www.translatortools.net/word-doccleaner.html
Tag Cleaner – this tool re-formats the document in order to minimize tags displayed when you import the document into your CAT tool. Tags are a result of complex formatting applied by OCR and PDF conversion tools in order to reproduce the appearance of the source PDF / scanned document. 99% of the time this complex formatting is not necessary, as it was never used in the original document.
Tag Cleaner performs the following (optional) operations to minimize tags and make the document more user-friendly:
fixes invisible formatting problems,
resets uneven character spacing,
removes text and paragraph shading,
turns ‘black’ font color into ‘automatic’ color,
removes text highlighting,
removes manual hyphenation,
removes character styles, leaving direct formatting only,
removes some types of unnecessary bookmarks,
normalizes (makes standard) font colors inside each paragraph,
normalizes (makes standard) font sizes inside each paragraph,
normalizes (makes standard) fonts inside each paragraph, and
finds specific symbols from symbol fonts and converts them to corresponding readable characters from standard fonts.
from documenttranslator-legacy.
Try Word again with version 2.1.0. The update makes OpenXmlPowerTools work again without destroying the XML well-formedness, thanks to the tip from @jsypkens. That is not a help for PowerPoint, because OpenXMLPowerTools has no simplifier for PowerPoint.
from documenttranslator-legacy.
Still needs work on PowerPoint.
from documenttranslator-legacy.
Related Issues (20)
- Document Translator - Footnotes in Word document not translated HOT 1
- "key invalid" if incorrect regions are selected although the key is actually valid. HOT 2
- Document translator - NAVIGATION FAILED (error message)
- Document Translator - Error message: RPC server unavailable
- Document Translator - Error message: Invalid Hyperlink
- Warning on invalid Category ID
- Cannot translate an HTML file without <body>
- F-DROID Possible? HOT 5
- Why did I fail to finish the code build? HOT 4
- System incompatibility since 2.1.1 HOT 1
- Translate HOT 1
- Issue in PDF translation HOT 3
- Can any other cloud service provider be used for translation part HOT 1
- The language list not fully loaded in From/to Language dropdown HOT 2
- Set series colors in column charts HOT 1
- Document Translator V2.9.2 throwing error with Category ID
- SRT/VTT translation returns error HOT 1
- Error running under Windows 7 HOT 1
- X-WMF TO PNG HOT 1
- failed to translate html file with MS document translator HOT 5
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 documenttranslator-legacy.