Skip to content

Commit 935ced1

Browse files
author
epriestley
committed
Include "Figlet" and PEAR "Text_Figlet" in externals
Summary: Ref T7785. This prepares for (but does not yet use) a pure PHP implementation of Figlet parsing and rendering. Figlet is somewhat complex, but a parser already exists in PEAR. I'll make sure it's suitable and hook it up in the next diff. Test Plan: N/A, code not reachable Reviewers: chad Reviewed By: chad Maniphest Tasks: T9408, T7785 Differential Revision: https://secure.phabricator.com/D14101
1 parent c705c80 commit 935ced1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+53422
-0
lines changed

externals/figlet/.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
chkfont
2+
figlet
3+
tags
4+
*.o
5+
core
6+
*~
7+
tests.log
8+
*.tar.gz

externals/figlet/CHANGES

+205
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
Changes in FIGlet 2.2.5
2+
-----------------------
3+
4+
FIGlet 2.2.5 is a revision of FIGlet 2.2.4 containing updated andproperly
5+
licensed ISO8859 map files. The full list of changes is:
6+
7+
o Add regression tests for uskata and jis0201 control files
8+
9+
o Properly escape minus signs in figlist(6) man page (Jonathan
10+
McCrohan)
11+
12+
o Fix chkfont coredump on invalid input (Kenneth Davies and
13+
Jonathan McCrohan)
14+
15+
o Update ISO8859 map files to fix licensing issue raised in Debian
16+
bugs 673096 and 674844
17+
18+
o Re-add missing figmagic and getopt.c files which were left out
19+
of releases 2.2.3 and 2.2.4
20+
21+
o Fix output of test script in MacOS X
22+
23+
These changes were made by Claudio Matsuoka <[email protected]>
24+
31 May 2012
25+
26+
Changes in FIGlet 2.2.4
27+
-----------------------
28+
29+
FIGlet 2.2.4 is a revision of FIGlet 2.2.3 featuring bugfixes and support
30+
to tlf2 fonts. The full list of changes is:
31+
32+
o Add support to Sam Hocevar's TOIlet TLF fonts containing UTF-8
33+
encoded Unicode characters.
34+
35+
o Add infocode 5 to list supported font formats
36+
37+
o Fix rendering error caused by the previous attempt to fix invalid
38+
memory accesses when smushing at start of line
39+
40+
o New environment variable FIGLET_FONTDIR can be used to specify
41+
the path to search for fonts
42+
43+
o Add regression tests
44+
45+
These changes were made by Claudio Matsuoka <[email protected]>
46+
26 January 2011
47+
48+
Changes in FIGlet 2.2.3
49+
-----------------------
50+
51+
FIGlet 2.2.3 is a revision of FIGlet 2.2.2 featuring minor bugfixes and
52+
important licensing changes in the zipio files. The full list of
53+
changes is:
54+
55+
o License changed from "Academic Free License" to "New BSD License"
56+
(3-clause) as agreed by FIGlet authors
57+
58+
o New JIS X 0201 control file (Micah Cowan)
59+
60+
o Fix behavior of JIS0201 SHIFT-OUT and SHIFT-IN that were previouly
61+
inverted (Micah Cowan)
62+
63+
o Fix memory violation when smushing at line start
64+
65+
o Fix handling of memory allocation errors
66+
67+
o Relicense Ed Hamrick zipio under the MIT license. This should
68+
eliminate any concerns about redistribution of FIGlet as libre
69+
software.
70+
71+
o Update Makefile to meet modern standards in variable naming, using
72+
BINDIR as the pathname for binary files and reservind DESTDIR
73+
as the extra prefix commonly used in package building.
74+
75+
o Add a Turbo C makefile, just because I had the compiler. (this
76+
also tests portability to old compilers and foreign platforms)
77+
78+
o Add Jonathon Abbott's man pages for figlist, showfigfonts and
79+
chkfont originally contributed to the Debian Project
80+
81+
These changes were made by Claudio Matsuoka <[email protected]>
82+
12 January 2011
83+
84+
Changes in FIGlet 2.2.2
85+
-----------------------
86+
87+
License changed from "Artistic License" to "Academic Free
88+
License" as agreed by FIGlet authors. 05 July 2005
89+
90+
Changes in FIGlet 2.2.1
91+
-----------------------
92+
93+
FIGlet 2.2.1 is a minor revision of FIGlet 2.2. The files
94+
README, Makefile, figfont.txt, figlet.c and figlet.6 have been
95+
changed to reflect changes in documentation, official contact
96+
details etc. FTP-NOTE merged into README. FAQ and CHANGES
97+
added to the distribution.
98+
99+
All other files are identical with the 2.2 release.
100+
101+
These changes were made by Christiaan Keet <[email protected]>
102+
103+
Changes in FIGlet 2.2
104+
---------------------
105+
106+
FIGlet 2.2 is a moderate revision of FIGlet 2.1.2. The new features are:
107+
108+
o font files and control files can be compressed using ``zip'', and
109+
will be automatically decompressed
110+
111+
o new commands in controlfiles provide support for
112+
single-byte (default), double-byte, HZ, Shift-JIS, and Unicode
113+
UTF-8 encodings of the input
114+
115+
o ISO 2022 escape sequences are decoded and interpreted
116+
117+
o control files can now have the format of Unicode Consortium
118+
mapping tables (two columns of numbers representing
119+
input character and output character, no ranges, # comments)
120+
121+
o new options -s (smush, same as -m-2), -k (kern, same as -m0),
122+
-S (forced smushing), and -W (full width, same as -m-1) make
123+
-m option unnecessary except for font designers. The -S option
124+
works even if the font's smushmode is 0 or -1, in which case
125+
the smushmode is read from a new parameter in the
126+
font's first line, or does universal overlapping if no such parameter
127+
exists
128+
129+
o universal smushing (-o option to force it, but -S will use it
130+
if no smush rules are available) makes FIGcharacters overlap by
131+
one place independent of how they are constructed
132+
more fonts smushable.
133+
134+
o file "figmagic" can be appended to your system magic number
135+
file to make the "file" command recognize FIGlet files
136+
137+
o file "figfont.txt" is an implementation-independent specification
138+
for FIGlet fonts and control files
139+
140+
o integrated support for extended characters (extended Latin in
141+
"standard", Greek in "big", katakana in "banner", Hebrew in new
142+
"ivrit" fonts) with appropriate controlfiles
143+
144+
o smushing rule 16 has changed slightly: "/\" now smushes
145+
into "|" and "\/" smushes into "Y"; "><" still smushes
146+
into "X" and "<>" is still not smushed at all.
147+
148+
o -A option introduced in FIGlet 2.1.2 is now optional;
149+
if any words appear on the command line after the options,
150+
they are formatted, and the standard input is not read.
151+
152+
These changes were made by John Cowan <[email protected]>.
153+
154+
Changes in FIGlet 2.1.2
155+
------------------------
156+
157+
FIGlet 2.1.2 is a minor revision of FIGlet 2.1.1. The files
158+
README, FTP-NOTE, figlet.c and figlet.6 have been changed. All other
159+
files are identical with the 2.1.1 release.
160+
161+
o The only new option is -A, which causes FIGlet to read input
162+
from the command line.
163+
164+
These changes were made by Gilbert Healton <[email protected]> as Glenn
165+
Chappell is now busy as a new professor of Mathematics.
166+
167+
Changes in FIGlet 2.1
168+
----------------------
169+
170+
A number of minor bugs and major incompatibility problems have been
171+
fixed. FIGlet 2.1 should compile correctly on many operating systems for
172+
which FIGlet 2.0 did not.
173+
174+
o The "-F" command line option, which used to list all the available
175+
fonts, has been removed, since it made FIGlet incompatible with some
176+
operating systems. It has been replaced by the "figlist" script. The
177+
"showfigfonts" script has been updated so that it no longer requires
178+
the "-F" option to be available.
179+
180+
o The FIGlet font file format has been extended to allow an arbitrarily
181+
large number of characters. The ISO Latin-1 character set, which
182+
includes many accented letters and special symbols, has been added to
183+
most standard fonts.
184+
185+
o FIGlet can now print right-to-left. This can be specified on the
186+
command line ("-R") or in the font file. Thus, for example, Hebrew and
187+
Arabic fonts can be handled more easily.
188+
189+
o FIGlet can now right justify its output. This is the default when
190+
right-to-left printing is selected. It can also be specified on the
191+
command line ("-r").
192+
193+
o FIGlet now supports "control files". These can be used to change which
194+
character FIGlet will print when it sees a certain input character --
195+
sort of an expanded version of the "-D" option. For example, a control
196+
file could convert lower-case letters to upper-case or map certain
197+
ASCII characters to accented letters. Control file names end with the
198+
suffix ".flc". Select a control file by using "-C controlfile" on the
199+
command line. Several controlfiles can be used at once by giving
200+
muliple "-C" options.
201+
202+
o There is now a way for programs that use FIGlet to get various
203+
information from FIGlet, for example, what version of FIGlet is being
204+
used or the name of the default font directory. This information is
205+
gotten through the "-I" option. See the man page for details.

externals/figlet/FAQ

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
_____ _____ _____ __ __ _____ _____ _____
2+
| __| | __| |____| |_ | __| _ | | This FIGlet FAQ is
3+
| __|- -| | | | - _| _| | __| | | | posted once a month
4+
|__| |_____|_____|__|____|__| |__| |__|__|__ _| on [email protected]
5+
[email protected] http://www.figlet.org/ |__| [FIGlet FAQ v0.91]
6+
7+
===========================================================================
8+
The latest version of FIGlet is 2.2.5 and can be downloaded from
9+
ftp://ftp.figlet.org/pub/figlet/program
10+
===========================================================================
11+
12+
1 What is FIGlet?
13+
2 Where can I get FIGlet from?
14+
3 Where can I get more fonts for FIGlet?
15+
4 Where can I hear about regular FIGlet program and font updates?
16+
5 How can I contribute?
17+
6 Why am I getting this mail and can you make it stop?
18+
7 Where does the name FIGlet come from?
19+
20+
===========================================================================
21+
22+
1. What is FIGlet?
23+
FIGlet is a program for making large letters out of ordinary text
24+
_ _ _ _ _ _
25+
| (_) | _____ | |_| |__ (_)___
26+
| | | |/ / _ \ | __| '_ \| / __|
27+
| | | < __/ | |_| | | | \__ \
28+
|_|_|_|\_\___| \__|_| |_|_|___/
29+
30+
2. Where can I get FIGlet from?
31+
From the official FIGlet website at http://www.figlet.org/
32+
or from the FIGlet FTP site at ftp://ftp.figlet.org/pub/figlet/
33+
34+
3. Where can I get more fonts for FIGlet?
35+
From the FTP site at ftp://ftp.figlet.org/pub/figlet/fonts/
36+
There are currently over 400 fonts available for download
37+
38+
4 Where can I hear about regular FIGlet program and font updates?
39+
There is a mailing list for FIGlet for general discussions about
40+
FIGlet and a place where you can ask questions or share ideas
41+
with other FIGlet users. It is also the place where we will publish
42+
news about new fonts, new software updates etc.
43+
44+
To subscribe or unsubscribe from the FIGlet mailing list,
45+
please send email to [email protected] or visit the
46+
following web page: http://www.figlet.org/mailman/listinfo/figlet
47+
48+
5. How can I contribute?
49+
To contribute new fonts, software or information, please contact
50+
51+
52+
6. Why am I getting this mail and can you make it stop?
53+
If you received this email it is probably because you are subscribed
54+
to the FIGlet mailing list. Please see Question 4 of this FAQ on how
55+
to unsubscribe from the FIGlet list.
56+
57+
7. Where does the name FIGlet come from?
58+
"Frank, Ian and Glen's letters"
59+
60+
61+
= FAQ Maintainer ==========================================================
62+
Christiaan Keet [email protected] July 2005
63+
===========================================================================

externals/figlet/LICENSE

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright (C) 1991, 1993, 1994 Glenn Chappell and Ian Chai
2+
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 John Cowan
3+
Copyright (C) 2002 Christiaan Keet
4+
Copyright (C) 2011 Claudio Matsuoka
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions
9+
are met:
10+
11+
1. Redistributions of source code must retain the above copyright
12+
notice, this list of conditions and the following disclaimer.
13+
2. Redistributions in binary form must reproduce the above copyright
14+
notice, this list of conditions and the following disclaimer in the
15+
documentation and/or other materials provided with the distribution.
16+
3. Neither the name of the copyright holders nor the names of their
17+
contributors may be used to endorse or promote products derived
18+
from this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23+
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24+
COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27+
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
28+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
29+
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
30+
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)