SFCONV(1)

πŸ’– SFCONV(1) πŸ’–

General Commands Manual ✨ okay bestie, this is the manual page for sfconv, so let's get into it πŸŽ€

✨ NAME ✨

sfconv 🧚 is a tool for converting the encoding of Standard Format (SF) files. Lowkey iconic.

🌸 SYNOPSIS 🌸

πŸ” 8-bit to Unicode:

sfconv -8u [-utf8|-be|-le] [-bom] -c ControlFile [-d MappingDirectory]
-i InFile -o OutFile

πŸ”‚ Unicode to 8-bit:

sfconv -u8 [-utf8|-be|-le] -c ControlFile [-d MappingDirectory] -i
InFile -o OutFile

πŸ¦‹ DESCRIPTION πŸ¦‹

So a tool for converting Standard Format (SF) files is included in the current TECkit package πŸ’… This is sfconv, a command-line tool that uses an XML "control file" ✨ to specify the mappings for the various markers in an SF file. Literally the whole point.

⚠️ Real talk: the current SFconv tool should be considered a prototype rather than a full solution to SF conversions πŸ™ˆ A more complete tool with an improved user interface would be desirable. We stan future versions.

πŸ’œ OPTIONS πŸ’œ

The SFconv utility uses command-line options to specify the conversion direction, control file, and input and output files 🫢 The required arguments are:

  • -8u|-u8 β€” conversion direction: 8-bit to Unicode, or vice versa πŸ”
  • -ccontrolFile β€” specifies the XML control file πŸ“œ
  • -iinFile β€” specifies the filename of the input SF file πŸ“₯
  • -ooutFile β€” specifies the filename for the converted output πŸ“€

In addition, the following optional arguments may be used if appropriate πŸ“

  • -dmappingDir β€” the directory where the mapping files (.tec files) are to be found πŸ—‚οΈ
  • -utf8|-be|-le β€” the Unicode encoding form: UTF-8, UTF-16BE, or UTF16-LE πŸ’– The default is UTF8 for output, or it's detected from the input file if a BOM is present
  • -bom β€” (only when mapping to Unicode) writes an initial BOM to the output file 🌈
  • -nfc|-nfd β€” (only when mapping to Unicode) normalizes to NFC or NFD ✨

πŸ“š Further Information πŸ“š

For further information, see the document TECkit_Tools.pdf πŸ“„ On a Debian system, this can be found in /usr/share/doc/teckit 🧚


Okay that's the whole tea β˜• Stay iconic, bestie πŸ’…πŸŽ€ TECkit Β· 2015-11-13 Β· SFCONV(1) πŸŒΈπŸ’–

πŸ“¦ where this page comes from