Optionaloptions: Partial<ProcessorConfig> & {ReadonlycapabilitiesProtectedoptionsProtectedaddHelper method to add extracted strings to the map, handling duplicates
Map to store extracted strings
Lowercase key for deduplication
Original string with proper casing
Metadata about where the string was found
Create a copy of the pageset with audio recordings added
Extract buttons from a specific page that need audio recordings
Extract strings with metadata for aac-tools-platform compatibility Uses the generic implementation from BaseProcessor
ProtectedextractGeneric implementation for extracting strings with metadata Can be used by any processor that doesn't need format-specific logic
Path to the AAC file
Promise with extracted strings and metadata
ProtectedfilterGenerate translated download for aac-tools-platform compatibility Uses the generic implementation from BaseProcessor
ProtectedgenerateGeneric implementation for generating translated downloads Can be used by any processor that doesn't need format-specific logic
Path to the original AAC file
Array of translated string data
Array of source string data
Promise with path to the generated translated file
ProtectedgenerateGenerate output path for translated file based on input file extension
Original file path
Path for the translated output file
Get available PageLayouts for a Snap file Useful for UI components that want to let users select layout size
Path to the Snap file
Promise resolving to available PageLayouts with their dimensions
Save a modified tree while preserving the original SQLite schema and data.
Strategy: copy the original .sps verbatim, then open the copy and replay
page.pendingMutations as targeted SQL UPDATE/INSERT statements. Everything
not in the mutation log (PageLayout, ScanGroup, image blobs, ContentTypeData,
ButtonPageLink, etc.) is preserved byte-for-byte from the original.
This is the asset-preserving counterpart to saveFromTree (which builds a
stripped-down DB from scratch and is unsuitable for round-tripping real
TD Snap page sets).
Supported mutations:
WordList mutations are no-ops on Snap (capabilities.wordList === 'none').
ProtectedshouldValidate Snap file format
Path to the file to validate
Promise with validation result
Add audio recording to a button in the database