Typographist
    Preparing search index...
    • 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.

      Parameters

      • input: string
      • output: string

      Returns Promise<{ exceptions: number; patterns: number }>

      await transformRulesFile('./hyph-ru.tex', './ru-data.constants.ts');