kindle
This directory provides Talon integration for the Kindle e-reader application on Windows. It enables hands-free reading by mapping Talon's standard page-navigation commands to Kindle's application-specific hotkeys.
How It Works
The files in this directory work together to identify the Kindle application, hook it into Talon's global page-navigation interface, and translate general commands (like "next page" or "page jump") into physical keystrokes:
- App Definition: kindle.py defines the
apps.kindleidentifier. It targets the application on Windows by matching either the window name (Kindle) or the executable name (kindle.exe). - Context & Tag Activation: kindle.talon activates whenever the defined
kindleapp is focused. When active, it applies theuser.pagestag. This tag signals to Talon that Kindle supports standard page-turning voice commands. - Action Implementation: kindle_win.py implements the actual keyboard behaviors required to satisfy the
user.pagesactions under Windows:page_next()presses thedownarrow key.page_previous()presses theuparrow key.page_jump(number)opens Kindle's "Go to..." dialog usingctrl-g, inputs the target page or location number, and pressesenter.