1SFCONV(1) General Commands Manual SFCONV(1)
2
3
4
6 sfconv - A tool for converting the encoding of Standard Format (SF)
7 files
8
10 8-bit to Unicode:
11 sfconv -8u [-utf8|-be|-le] [-bom] -c ControlFile [-d MappingDirectory]
12 -i InFile -o OutFile
13
14 Unicode to 8-bit:
15 sfconv -u8 [-utf8|-be|-le] -c ControlFile [-d MappingDirectory] -i
16 InFile -o OutFile
17
19 A tool for converting Standard Format (SF) files is included in the
20 current TECkit package. This is sfconv , a command-line tool that uses
21 an XML “control file” to specify the mappings associated with the vari‐
22 ous markers in an SF file. Note that the current SFconv tool should be
23 considered a prototype rather than a full solution to the issue of SF
24 conversions. A more complete tool with an improved user interface would
25 be desirable.
26
28 The SFconv utility uses command-line options to specify the conversion
29 direction, control file, and input and output files. The required argu‐
30 ments are:
31
32 -8u|-u8
33 conversion direction: 8-bit to Unicode or vice versa
34
35 -ccontrolFile
36 specifies XML control file
37
38 -iinFile
39 specifies filename of input SF file
40
41 -ooutFile
42 specifies filename for converted output
43
44 In addition, the following optional arguments may be used if
45 appropriate:
46
47 -dmappingDir
48 directory where mapping files ( .tec files) are to be found
49
50 -utf8|-be|-le
51 Unicode encoding form: UTF-8, UTF-16BE, or UTF16-LE (default is
52 UTF8 for output, or detected from input file if BOM is present)
53
54 -bom (only when mapping to Unicode) write initial BOM to the output
55 file
56
57 -nfc|-nfd
58 (only when mapping to Unicode) normalize to NFC or NFD
59
61 For further information see the document TECkit_Tools.pdf. On a Debian
62 system, this can be found in /usr/share/doc/teckit.
63
64
65
66TECkit 2015-11-13 SFCONV(1)