Debian Codegraph @

table/safe.tbl

raw
1 # This file is part of the Detox package.
2 #
3 # Copyright (c) Doug Harple <[email protected]>
4 #
5 # For the full copyright and license information, please view the LICENSE
6 # file that was distributed with this source code.
7
8 #
9 # This file replaces 7-bit characters that are special to shells with "_" or
10 # "-". The exception is ampersand, which gets translated to "_and_".
11 #
12 # The absence of a "default" option means that if a character is not specified
13 # here, it will not be altered.
14 #
15
16 start
17
18 #
19 # Control characters to translate to _
20 #
21 # Descriptions pulled from ascii(7)
22 #
23
24 0x01 _ # SOH (start of heading)
25 0x02 _ # STX (start of text)
26 0x03 _ # ETX (end of text)
27 0x04 _ # EOT (end of transmission)
28 0x05 _ # ENQ (enquiry)
29 0x06 _ # ACK (acknowledge)
30 0x07 _ # BEL '\a' (bell)
31 0x08 _ # BS '\b' (backspace)
32 0x09 _ # HT '\t' (horizontal tab)
33 0x0a _ # LF '\n' (new line)
34 0x0b _ # VT '\v' (vertical tab)
35 0x0c _ # FF '\f' (form feed)
36 0x0d _ # CR '\r' (carriage ret)
37 0x0e _ # SO (shift out)
38 0x0f _ # SI (shift in)
39 0x10 _ # DLE (data link escape)
40 0x11 _ # DC1 (device control 1)
41 0x12 _ # DC2 (device control 2)
42 0x13 _ # DC3 (device control 3)
43 0x14 _ # DC4 (device control 4)
44 0x15 _ # NAK (negative ack.)
45 0x16 _ # SYN (synchronous idle)
46 0x17 _ # ETB (end of trans. blk)
47 0x18 _ # CAN (cancel)
48 0x19 _ # EM (end of medium)
49 0x1a _ # SUB (substitute)
50 0x1b _ # ESC (escape)
51 0x1c _ # FS (file separator)
52 0x1d _ # GS (group separator)
53 0x1e _ # RS (record separator)
54 0x1f _ # US (unit separator)
55
56 0x7f _ # DEL
57
58 #
59 # Chars to translate to _
60 #
61
62 0x20 _ # space
63 0x21 _ # !
64 0x22 _ # "
65 0x24 _ # $
66 0x27 _ # '
67 0x2a _ # *
68 0x2f _ # /
69 0x3a _ # :
70 0x3b _ # ;
71 0x3c _ # <
72 0x3e _ # >
73 0x3f _ # ?
74 0x40 _ # @
75 0x5c _ # \
76 0x60 _ # `
77 0x7c _ # |
78
79 #
80 # Chars to translate to -
81 #
82
83 0x28 - # (
84 0x29 - # )
85 0x5b - # [
86 0x5d - # ]
87 0x7b - # {
88 0x7d - # }
89
90 #
91 # Other
92 #
93
94 0x26 _and_ # &
95
96 end