Optionaloptions: ProcessorOptionsProtectedaddMap to store extracted strings
Lowercase key for deduplication
Original string with proper casing
Metadata about where the string was found
Alias method for aac-tools-platform compatibility Extracts strings with TouchChat-specific metadata required for database storage
Path to the TouchChat .ce file
Promise with extracted strings and any errors
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
Extract symbol information from a TouchChat file for LLM-based translation. Returns a structured format showing which buttons have symbols and their context.
This method uses shared translation utilities that work across all AAC formats.
Path to TouchChat .ce file or buffer
Array of symbol information for LLM processing
ProtectedfilterAlias method for generating translated TouchChat downloads compatible with aac-tools-platform
Path to the original TouchChat .ce file
Array of translated string data
Array of source string data with metadata
Promise with path to the generated translated file
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
Apply LLM translations with symbol information. The LLM should provide translations with symbol attachments in the correct positions.
This method uses shared translation utilities that work across all AAC formats.
Path to TouchChat .ce file or buffer
Array of LLM translations with symbol info
Where to save the translated TouchChat file
Optionaloptions: { allowPartial?: boolean }Translation options (e.g., allowPartial for testing)
Buffer of the translated TouchChat file
ProtectedshouldValidate TouchChat file format
Path to the file to validate
Promise with validation result
Helper method to add extracted strings to the map, handling duplicates