TXTCONV(1)

πŸŽ€ TXTCONV(1) β€” General Commands Manual πŸŽ€

okay bestie, this is the manual page for txtconv, the tool that goes through TECkit mappings to convert a plain text file's encoding πŸ’–


✨ NAME ✨

txtconv is the tool that applies TECkit mappings to convert the encoding of a plain text file πŸ¦‹


🧚 SYNOPSIS 🧚

txtconv -i inFile -o outFile [-t tecFile] [-r] [-if inForm] [-of outForm] [-nobom] [-nf[cd]] [-u n]

πŸ’… OPTIONS πŸ’…

🫢 Required arguments

You NEED these two, no cap 😭

  • -i <file> β€” your input file, the one you're converting πŸ“„
  • -o <file> β€” your output file, where the converted stuff lands πŸ“

🌸 Optional arguments

These are extra, but they're lowkey the fun part ✨

  • -t <file> β€” the compiled TECkit mapping file, the one ending in .tec πŸ”₯
  • -r β€” reverse it! Goes RHSβ†’LHS, or Unicodeβ†’Byte πŸ”„
  • -if <form> β€” the encoding form your input is in πŸ“₯
  • -of <form> β€” the encoding form your output should be in πŸ“€
  • -nobom β€” don't write a BOM to Unicode output. No BOM, no problem πŸ™ˆ
  • -nf[cd] β€” apply NFC or NFD normalization to your Unicode output πŸ’œ
  • -u <n> β€” what to do when the input has something that can't be mapped 🌈
    • 0 = use the replacement character
    • 1 = use the replacement, but also generate a warning ⚠️
    • 2 = stop the conversion right there πŸ›‘

πŸ¦‹ Encoding forms

These are the forms you can pick from, all the way from bytes to utf32le ✨

bytes utf8 utf16be utf16le utf16 utf32be utf32le utf32

πŸ“š Further Information πŸ“š

Want the full tea? Check out the document TECkit_Tools.pdf πŸ§‹. On a Debian system you'll find it in /usr/share/doc/teckit 🌈


Okay that's the whole page, bestie πŸ’– Go convert something and make it slay πŸ’…βœ¨ TECkit Β· 2015-11-13 Β· TXTCONV(1) 🫢

πŸ“¦ where this page comes from