Skip to content

Translate text elements in a PowerPoint file (.pptx) using Amazon Translate.

License

Notifications You must be signed in to change notification settings

hatappo/pptx-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Translate text elements in a PowerPoint file (.pptx) using Amazon Translate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published