Skip to content

A tool to replace words in a typst document with random garbage.

License

Notifications You must be signed in to change notification settings

frozolotl/typst-mutilate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typst-mutilate

Typst-mutilate is a tool to replace words in a typst document with random garbage.

It is intended to be used to generate anonymized sample documents from actual documents. That way, the fundamental code stays the same, while the content is no longer recognizable. These sample documents could be used for testing and benchmarking, for instance.

A mutilated document

Installation

cargo install --path .

Usage

By default, typst-mutilate replaces words with random characters. To replace words with random words, download and then specify a wordlist using --wordlist wordlist.txt.

Usage: typst-mutilate [-i <file>] [-w <wordlist>] [-l <language>] [-a]

A tool to replace all words in a typst document with random garbage.

Options:
  -i, --in-place    a file to perform in-place replacement on
  -w, --wordlist    the path to a line-separated wordlist
  -l, --language    an ISO 639-1 language code, like `de`
  -a, --aggressive  whether to replace elements that are more likely to change
                    behavior, like strings
  --help            display usage information

Legal

This software is not affiliated with typst, the brand.

About

A tool to replace words in a typst document with random garbage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages