tttml-gopher.1 - tttml - converters for a simpler syntax than markdown
HTML git clone git://bitreich.org/tttml git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tttml
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
tttml-gopher.1 (1680B)
---
1 .Dd $Mdocdate: April 19 2018$
2 .Dt TTTML-GOPHER 1
3 .Os
4 .
5 .
6 .Sh NAME
7 .
8 .Nm tttml-gopher
9 .Nd generate a gophermap from a tttml file
10 .
11 .
12 .Sh SYNOPSIS
13 .
14 .Nm
15 .Ar host
16 .Ar port
17 .Op Ar file...
18 .
19 .
20 .Sh DESCRIPTION
21 .
22 The
23 .Nm
24 utility convert
25 .Ar file
26 to a gophermap format, simply by converting all link entries,
27 converting tabs into spaces and printing the rest.
28 .
29 .Ar host
30 and
31 .Ar port
32 is used to set the host in links that do not have a host, such as
33 .Pa /path/to/file.txt
34 .
35 .Bl -bullet -width 6n
36 .
37 .It
38 All URI starting with a
39 .Sq Li /
40 and ending with a
41 .Sq Li /
42 are printed using the
43 .Sq Li 1
44 entry type
45 .
46 .It
47 All URI starting with a
48 .Sq Li /
49 and not ending with a
50 .Sq Li /
51 are printed using the
52 .Sq Li 0
53 .
54 .It
55 All URI starting with
56 .Sq Li 0 ,
57 .Sq Li 1 ,
58 .Sq Li 7 ,
59 .Sq Li 8 ,
60 .Sq Li 9 ,
61 .Sq Li a ,
62 .Sq Li g ,
63 .Sq Li h
64 or
65 .Sq Li I
66 followed by a
67 .Sq Li /
68 and all
69 .Dq Li gopher://
70 URI are printed using the corresponding entry type.
71 .
72 .It
73 All other URI are printed using the
74 .Sq Li h
75 entry type
76 .
77 .El
78 .
79 .\" .Sh CONTEXT
80 .\" For section 9 functions only.
81 .\" .Sh RETURN VALUES
82 .\" For sections 2, 3, and 9 function return values only.
83 .\" .Sh ENVIRONMENT
84 .\" For sections 1, 6, 7, and 8 only.
85 .\" .Sh FILES
86 .\" .Sh EXIT STATUS
87 .\" For sections 1, 6, and 8 only.
88 .\" .Sh EXAMPLES
89 .\" .Sh DIAGNOSTICS
90 .\" For sections 1, 4, 6, 7, 8, and 9 printf/stderr messages only.
91 .\" .Sh ERRORS
92 .\" For sections 2, 3, 4, and 9 errno settings only.
93 .
94 .
95 .Sh SEE ALSO
96 .
97 .Xr tttml-fmt 1
98 .
99 .Sh STANDARDS
100 .
101 .Rs
102 .%A Anklesari
103 .%A McCahill
104 .%A Lindner
105 .%A Johnson
106 .%A Torrey
107 .%A Alberti
108 .%D March 1993
109 .%T The Internet Gopher Protocol
110 .%R RFC 1436
111 .Re
112 .
113 .
114 .Sh AUTHORS
115 .
116 .An Josuah Demangeon
117 .Aq Mt mail@josuah.net