File: ansilove.1

package info (click to toggle)
ansilove 4.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 320 kB
  • sloc: ansic: 773; makefile: 7
file content (209 lines) | stat: -rw-r--r-- 5,651 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
.\"
.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:
.\"
.\"   * Redistributions of source code must retain the above copyright
.\"     notice, this list of conditions and the following disclaimer.
.\"
.\"   * Redistributions in binary form must reproduce the above copyright
.\"     notice, this list of conditions and the following disclaimer in the
.\"     documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: August 28 2020 $
.Dt ANSILOVE 1
.Os
.Sh NAME
.Nm ansilove
.Nd ANSI / ASCII art to PNG converter
.Sh SYNOPSIS
.Nm
.Op Fl dhiqrsSv
.Op Fl b Ar bits
.Op Fl c Ar columns
.Op Fl f Ar font
.Op Fl m Ar mode
.Op Fl o Ar file
.Op Fl R Ar factor
.Op Fl t Ar type
.Ar file
.Sh DESCRIPTION
.Nm
is an ANSI / ASCII art to PNG converter, allowing to convert ANSI and
artscene-related file formats into PNG images, supporting ANSI (.ANS),
PCBoard (.PCB), Binary (.BIN), Artworx (.ADF), iCE Draw (.IDF),
Tundra (.TND) and XBin (.XB) formats.
.Pp
It creates size optimized 4-bit PNG files and supports SAUCE (Standard
Architecture for Universal Comment Extensions), 80x25 and 80x50 PC fonts
(including all the 14 MS-DOS charsets), Amiga fonts, and iCE colors.
.Pp
The options are as follows:
.Bl -tag -width 10n
.It Fl b Ar bits
Set to 9 to render 9th column of block characters (default: 8).
.It Fl c Ar columns
Adjust number of columns for ANSI, BIN, and TND files.
.It Fl d
Enable DOS aspect ratio.
.It Fl f Ar font
Select font for supported formats.
.Pp
Valid options for PC fonts are:
.Bl -tag -width Er
.It Ic 80x25
Default (Code page 437)
.It Ic 80x50
80x50 mode (Code page 437)
.It Ic cp737
Greek (Code page 737)
.It Ic cp775
Baltic (Code page 775)
.It Ic cp850
Latin1 (Code page 850)
.It Ic cp852
Latin2 (Code page 852)
.It Ic cp855
Cyrillic (Code page 855)
.It Ic cp857
Turkish (Code page 857)
.It Ic cp860
Portuguese (Code page 860)
.It Ic cp861
Icelandic (Code page 861)
.It Ic cp862
Hebrew (Code page 862)
.It Ic cp863
French Canadian (Code page 863)
.It Ic cp865
Nordic (Code page 865)
.It Ic cp866
Russian (Code page 866)
.It Ic cp869
Greek (Code page 869)
.It Ic terminus
Terminus (Modern font, code page 437)
.El
.Pp
Valid options for Amiga fonts are:
.Bl -tag -width Er
.It Ic amiga
Alias to Topaz, see below
.It Ic microknight
Original MicroKnight version
.It Ic microknight+
Modified MicroKnight version
.It Ic mosoul
Original mO'sOul font
.It Ic pot-noodle
Original P0T-NOoDLE font
.It Ic topaz
Original Topaz Kickstart 2.x version
.It Ic topaz+
Modified Topaz Kickstart 2.x+ version
.It Ic topaz500
Original Topaz Kickstart 1.x version
.It Ic topaz500+
Modified Topaz Kickstart 1.x version
.El
.It Fl h
Show help.
.It Fl i
Enable iCE colors.
.It Fl m Ar mode
Set rendering mode for ANS files.
.Pp
Valid options are:
.Bl -tag -width Ds
.It Ic ced
Black on gray, with 78 columns.
.It Ic transparent
Render with transparent background.
.It Ic workbench
Use Amiga Workbench palette.
.El
.It Fl o Ar file
Specify output filename/path.
.It Fl q
Suppress output messages (quiet).
.It Fl r
Create Retina @2x output file.
.It Fl R Ar factor
Create Retina output file with custom scale factor.
.It Fl t Ar type
Specify input file type.
.Pp
Valid types are:
.Bl -tag -width Ds
.It Ic ans
ANSi (ANSI escape sequences: ANSI X3.64 standard)
.It Ic adf
Artworx format, supporting custom character sets and palettes
.It Ic bin
Binary format (raw memory copy of text mode video memory)
.It Ic idf
iCE Draw format, supporting custom character sets and palettes
.It Ic pcb
PCBoard Bulletin Board System (BBS) own file format
.It Ic tnd
TundraDraw format, supporting 24-bit color mode
.It Ic xb
XBin format, supporting custom character sets and palettes
.El
.It Fl s
Show SAUCE record without generating output.
.It Fl S
If available, use SAUCE info for render options (ex: width).
.It Fl v
Show version information.
.El
.Sh EXAMPLES
To render a file with iCE colors enabled:
.Pp
.Dl $ ansilove -i file.ans
.Pp
To create a Retina @2x output file:
.Pp
.Dl $ ansilove -r file.ans
.Pp
To creates a Retina output file with a custom scale factor:
.Pp
.Dl $ ansilove -R 3 file.ans
.Pp
To only display SAUCE record without generating output:
.Pp
.Dl $ ansilove -s file.ans
To render a file with transparent background:
.Pp
.Dl $ ansilove -m transparent file.ans
.Pp
To render a file using a custom font:
.Pp
.Dl $ ansilove -f amiga file.txt
.Pp
To render a file using a custom font, rendering the 9th column, enabling
iCE colors, and using DOS aspect ratio:
.Pp
.Dl $ ansilove -f 80x50 -b 9 -d -i file.ans
.Sh AUTHORS
.An -nosplit
.Nm
was written by
.An Stefan Vogt ,
.An Brian Cassidy ,
and
.An Frederic Cambus .