Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 1.7 KB

README.md

File metadata and controls

57 lines (35 loc) · 1.7 KB

ppt-tr

Translate text elements in a PowerPoint file ( pptx ).

Traverse objects in a PowerPoint file which has pptx extension, extract all (almost) text elements, translate using Amazon Translate, and output as a new file.

NOTE: The Presentation Translator add-in is often more convenient. https://www.microsoft.com/en-us/download/details.aspx?id=55024

Prerequisites

  • Installed Leiningen.
  • Your AWS account is set up ( because this use Amazon Translate service ).
  • The AWS account profile is set up in your local.

Usage

Just lein run.

In the default, a source file is resources/test.pptx and output as resources/test.pptx.translated-at-{yyyyMMddHHMMss}.pptx. You can change it. It's written in the -main method directly. Same in the source and target languages.

TODO

  • clean
  • translate "Note" objects.
  • lgging for processing time.
  • ...

Sample

from a input file

attach:cat

attach:cat

to a output file

attach:cat

attach:cat

Reference

reference for POI

reference for Amazon Translate and Java SDK