Icon

Powerpoint Translator (OpenAI)

Annotations and comments
  • Handle Zip Files
  • File Input Handling
  • Handle Individual Files
  • top: handle zip bottom: handle individual pptx
  • only need translated text and id
  • only need path
  • get absolute
  • convert relative path
  • remove any directory
  • keep only 1
  • get count of '/' to filter out unneeded metadata (Only a problem with zips from Mac)
  • get file name
  • Translate to target language via LLM
  • get absolute uri
  • make a copy of input
  • temp = 0.1
  • get parent so we can filter out non translated
  • parse powerpoint - extract text - add unique ids
  • parse powerpoint - inject translated text
  • top: not windows bottom: windows
  • Check if windows or mac 0: not windows 1: windows
  • remove file:/ from tempPPTXpath
  • input target language
  • replace placeholder with target language
  • create prompt
  • Prompt for system message w/ placeholder for language
  • loop through files
  • remove left tag
  • remove right tag
  • create File Name get temp parent dir
  • we only need path to temp folder which stores our translated pptx files

Options

OpenAI API Key
Enter Description
Powerpoint File Input (pptx or zip)
Enter Description
Target Language
Enter Description

Input Ports

This node has no input ports

Output Ports

This node has no output ports

Nodes

Extensions

Links