Before building a script, you must understand the basics of Codex profiles. You can find all the information about Codex and the profiles here.
Basics
For files such as .pptx, the usual purpose is to extract the whole content. In order to do that you can leave the script to its default configuration:
selectionPathList = [Pair("COMMENT-*", False), Pair("SLIDE_MASTER-*", False), Pair("HANDOUT_MASTER-*", False), Pair("NOTES_MASTER-*", False), Pair("SLIDE_SHAPE-*", True), Pair("CHART_TITLE-*", True), Pair("CHART_LABEL-*", True), Pair("CHART_SERIE-*", True), Pair("DIAGRAM_DATA-*", True), Pair("DIAGRAM_DRAWING-*", True), Pair("SLIDE_LAYOUT-*", False), Pair("NOTES_SLIDE-*", False), Pair("TABLE-*", True)] contextsPath = [] groupingPaths = [] contentNames = [] groupingPathNames = [] targetInjections = [] targetInjectionsRange = []
Improve your scripts
If this is the default profile, you can still edit it to select other content or to prevent some content to be translated.
Add or remove some content types for the translation
For example, if you want to translate the comments, just switch the False of the "COMMENT-*" parameter to True, or do the opposite not to translate it. Then:
Pair("COMMENT-*", False)
becomes
Pair("COMMENT-*", True)
Select the slides you want to translate
The * after each content type means Codex will send for translation this content type for all slides. In order not to translate a specific slide (such as the first one in below example), you can add the following part at the beginning of the selectionPathList parameter:
Pair("SLIDE_SHAPE-1", False), Pair("CHART_TITLE-1", False), Pair("CHART_LABEL-1", False), Pair("CHART_SERIE-1", False), Pair("DIAGRAM_DATA-1", False), Pair("DIAGRAM_DRAWING-1", False), Pair("TABLE-1", False)
Otherwise, if you want only to translate the first slide only, your script should be like below:
selectionPathList = [Pair("SLIDE_SHAPE-1", True), Pair("CHART_TITLE-1", True), Pair("CHART_LABEL-1", True), Pair("CHART_SERIE-1", True), Pair("DIAGRAM_DATA-1", True), Pair("DIAGRAM_DRAWING-1", True), Pair("TABLE-1", True), Pair("COMMENT-*", False), Pair("SLIDE_MASTER-*", False), Pair("HANDOUT_MASTER-*", False), Pair("NOTES_MASTER-*", False), Pair("SLIDE_SHAPE-*", False), Pair("CHART_TITLE-*", False), Pair("CHART_LABEL-*", False), Pair("CHART_SERIE-*", False), Pair("DIAGRAM_DATA-*", False), Pair("DIAGRAM_DRAWING-*", False), Pair("SLIDE_LAYOUT-*", False), Pair("NOTES_SLIDE-*", False), Pair("TABLE-*", False)] contextsPath = [] groupingPaths = [] contentNames = [] groupingPathNames = [] targetInjections = [] targetInjectionsRange = []