Converts a UTF-8 TeX rules file into TypeScript arrays and resolves with pattern and exception counts.
Requires one nonempty plain patterns block and at most one hyphenation block; retains source comment notices.
Creates or overwrites the output after parsing succeeds. Rejects invalid sources, paths to the same underlying file,
and file system errors; the destination's parent directory must already exist.
Converts a UTF-8 TeX rules file into TypeScript arrays and resolves with pattern and exception counts. Requires one nonempty plain patterns block and at most one hyphenation block; retains source comment notices. Creates or overwrites the output after parsing succeeds. Rejects invalid sources, paths to the same underlying file, and file system errors; the destination's parent directory must already exist.