Optionaloptions: ProcessorOptionsProtectedaddMap to store extracted strings
Lowercase key for deduplication
Original string with proper casing
Metadata about where the string was found
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
Extract symbol information from a gridset 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 gridset file or buffer
Array of symbol information for LLM processing
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
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 gridset file or buffer
Array of LLM translations with symbol info
Where to save the translated gridset
Optionaloptions: { allowPartial?: boolean }Translation options (e.g., allowPartial for testing)
Buffer of the translated gridset
ProtectedshouldValidate Gridset file format
Path to the file to validate
Promise with validation result
Helper method to add extracted strings to the map, handling duplicates