adobe
This directory contains files for controlling Adobe Acrobat Reader DC.
The file adobe_acrobat_reader_dc.py defines the application that Talon will recognize. It specifies that the application is "Adobe Acrobat DC" or "Adobe Acrobat Reader DC" on Windows, using the executable names acrobat.exe or acrord32.exe. This file uses Talon's module system to define the application that the other files in this directory will be associated with.
adobe_acrobat_reader_dc.talon defines which tags to activate when the application is in focus. In this case, the user.tabs and user.pages tags are activated which makes the commands defined by those tags available.
adobe_acrobat_reader_dc_win.py contains the bulk of the functionality for controlling the application. It defines an application context that matches the adobe_acrobat_reader_dc application defined in adobe_acrobat_reader_dc.py on Windows. It then defines implementations for several actions:
app.tab_nextandapp.tab_previous: These are implemented withctrl-tabandctrl-shift-tabto cycle through open documents.edit.zoom_in,edit.zoom_out, andedit.zoom_reset: These are implemented withctrl-0,ctrl-1, andctrl-2respectively. The comments indicate that these keyboard shortcuts are used for the German version of the application and that the implementation should be updated to handle different languages.user.page_current: This is implemented by opening a dialog to show the current page number usingctrl-shift-n, reading the selected text, and returning the number as an integer.user.page_nextanduser.page_previous: These usectrl-pagedownandctrl-pageupto navigate pages.user.page_jump: This opens the same dialog asuser.page_current, inserts the desired page number, and activates the dialog using enter.user.page_final: This goes to the last page of the document withend.user.page_rotate_rightanduser.page_rotate_left: These rotate the page to the right or left by usingshift-ctrl-0andshift-ctrl-1respectively.
These files work together to provide a set of commands for controlling Adobe Acrobat Reader DC on Windows. The .py files define the application context and actions, and the .talon file activates the necessary tags for these actions to be used.