add morse figlet font and get params
This commit is contained in:
parent
7709e68d95
commit
d7d097af0e
|
@ -5,3 +5,7 @@ glowing-bear/
|
|||
radio/
|
||||
trafficstats/
|
||||
learngit
|
||||
glowing-bear
|
||||
tilde.team
|
||||
tildeverse.org
|
||||
img
|
||||
|
|
|
@ -0,0 +1,189 @@
|
|||
flf2a$ 1 1 30 -1 40
|
||||
Morse by Glenn Chappell <ggc@uiuc.edu> 10/95
|
||||
Based on info from "Morse Code and the Phonetic Alphabets"
|
||||
URL: http://www.soton.ac.uk/~scp93ch/refer/alphabet.html
|
||||
Includes some ISO Latin-1 characters
|
||||
Permission is hereby given to modify this font, as long as the
|
||||
modifier's name is placed on a comment line.
|
||||
|
||||
Use of this font allows figlet to convert ASCII to International Morse
|
||||
Code.
|
||||
|
||||
The following substitutions have been made, i.e., if figlet receives a
|
||||
character on the left as input, it will print the Morse Code for the
|
||||
character on the right:
|
||||
! -> .
|
||||
; -> :
|
||||
[]{} -> ()
|
||||
German s-z -> ss
|
||||
Latin-1 "prime" -> '
|
||||
# -> <Delete last word>
|
||||
* -> Ch
|
||||
|
||||
Except as noted above, characters not available in Morse Code will print
|
||||
as "?".
|
||||
|
||||
Inter-word spaces have been enlarged to improve readability. To conform
|
||||
to the standards for automatic transmission of Morse Code, use smushmode
|
||||
zero ("figlet -f morse -m0"); wait the duration of a dot for each blank
|
||||
in the output, as well as between any two output characters (dots,
|
||||
dashes or blanks).
|
||||
|
||||
Explanation of first line:
|
||||
flf2 - "magic number" for file identification
|
||||
a - should always be `a', for now
|
||||
$ - the "hardblank" -- prints as a blank, but can't be smushed
|
||||
1 - height of a character
|
||||
1 - height of a character, not including descenders
|
||||
30 - max line length (excluding comment lines) + a fudge factor
|
||||
-1 - default smushmode for this font
|
||||
40 - number of comment lines
|
||||
|
||||
$@
|
||||
.-.-.-$@
|
||||
.-..-.$@
|
||||
........$@
|
||||
?$#
|
||||
?$#
|
||||
?$#
|
||||
.----.$@
|
||||
-.--.-$@
|
||||
-.--.-$@
|
||||
----$@
|
||||
?$#
|
||||
--..--$@
|
||||
-....-$@
|
||||
.-.-.-$@
|
||||
-..-.$@
|
||||
-----$@
|
||||
.----$@
|
||||
..---$@
|
||||
...--$@
|
||||
....-$@
|
||||
.....$@
|
||||
-....$@
|
||||
--...$@
|
||||
---..$@
|
||||
----.$@
|
||||
---...$@
|
||||
---...$@
|
||||
?$#
|
||||
?$#
|
||||
?$#
|
||||
..--..$@
|
||||
?$#
|
||||
.-$@
|
||||
-...$@
|
||||
-.-.$@
|
||||
-..$@
|
||||
.$@
|
||||
..-.$@
|
||||
--.$@
|
||||
....$@
|
||||
..$@
|
||||
.---$@
|
||||
-.-$@
|
||||
.-..$@
|
||||
--$@
|
||||
-.$@
|
||||
---$@
|
||||
.--.$@
|
||||
--.-$@
|
||||
.-.$@
|
||||
...$@
|
||||
-$@
|
||||
..-$@
|
||||
...-$@
|
||||
.--$@
|
||||
-..-$@
|
||||
-.--$@
|
||||
--..$@
|
||||
-.--.-$@
|
||||
?$#
|
||||
-.--.-$@
|
||||
?$#
|
||||
?$#
|
||||
?$#
|
||||
.-$@
|
||||
-...$@
|
||||
-.-.$@
|
||||
-..$@
|
||||
.$@
|
||||
..-.$@
|
||||
--.$@
|
||||
....$@
|
||||
..$@
|
||||
.---$@
|
||||
-.-$@
|
||||
.-..$@
|
||||
--$@
|
||||
-.$@
|
||||
---$@
|
||||
.--.$@
|
||||
--.-$@
|
||||
.-.$@
|
||||
...$@
|
||||
-$@
|
||||
..-$@
|
||||
...-$@
|
||||
.--$@
|
||||
-..-$@
|
||||
-.--$@
|
||||
--..$@
|
||||
-.--.-$@
|
||||
?$#
|
||||
-.--.-$@
|
||||
?$#
|
||||
.-.-$@
|
||||
---.$@
|
||||
..--$@
|
||||
.-.-$@
|
||||
---.$@
|
||||
..--$@
|
||||
...$...$@
|
||||
0
|
||||
?$#
|
||||
160
|
||||
$@
|
||||
171
|
||||
.-..-.$@
|
||||
180
|
||||
.----.$@
|
||||
187
|
||||
.-..-.$@
|
||||
188
|
||||
.----$-..-.$....-$@
|
||||
189
|
||||
.----$-..-.$..---$@
|
||||
190
|
||||
...--$-..-.$....-$@
|
||||
193
|
||||
.--.-$@
|
||||
196
|
||||
.-.-$@
|
||||
197
|
||||
.--.-$@
|
||||
201
|
||||
..-..$@
|
||||
209
|
||||
--.--$@
|
||||
214
|
||||
---.$@
|
||||
220
|
||||
..--$@
|
||||
223
|
||||
...$...$@
|
||||
225
|
||||
.--.-$@
|
||||
228
|
||||
.-.-$@
|
||||
229
|
||||
.--.-$@
|
||||
233
|
||||
..-..$@
|
||||
241
|
||||
--.--$@
|
||||
246
|
||||
---.$@
|
||||
252
|
||||
..--$@
|
|
@ -0,0 +1,52 @@
|
|||
--- /home ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
11.8 GiB [##########] /khuxkm
|
||||
4.5 GiB [### ] /pat
|
||||
4.3 GiB [### ] /slip
|
||||
3.9 GiB [### ] /level3
|
||||
3.6 GiB [### ] /jan6
|
||||
3.6 GiB [### ] /pratch
|
||||
3.6 GiB [### ] /tomasino
|
||||
3.5 GiB [## ] /danielscode
|
||||
3.1 GiB [## ] /tunas
|
||||
2.8 GiB [## ] /jakew
|
||||
2.4 GiB [## ] /arne
|
||||
2.2 GiB [# ] /epi
|
||||
2.0 GiB [# ] /praetor
|
||||
1.9 GiB [# ] /alrs
|
||||
1.9 GiB [# ] /stu
|
||||
1.7 GiB [# ] /edwardthefma
|
||||
1.4 GiB [# ] /biglysmalls
|
||||
1.2 GiB [# ] /lohn
|
||||
1.1 GiB [ ] /aewens
|
||||
1.1 GiB [ ] /terris
|
||||
1.1 GiB [ ] /zyeri
|
||||
966.3 MiB [ ] /hackintech
|
||||
963.4 MiB [ ] /xfnw
|
||||
953.8 MiB [ ] /quantumm
|
||||
945.1 MiB [ ] /kiedtl
|
||||
919.1 MiB [ ] /murii
|
||||
903.0 MiB [ ] /peter
|
||||
892.4 MiB [ ] /drwasabi
|
||||
786.6 MiB [ ] /jfaust
|
||||
786.0 MiB [ ] /hedy
|
||||
775.1 MiB [ ] /serif
|
||||
774.0 MiB [ ] /vex
|
||||
711.2 MiB [ ] /barrow
|
||||
647.7 MiB [ ] /rany
|
||||
564.3 MiB [ ] /mononote
|
||||
552.1 MiB [ ] /hazel
|
||||
548.7 MiB [ ] /gasconheart
|
||||
547.3 MiB [ ] /anelki
|
||||
526.6 MiB [ ] /badastronaut
|
||||
521.9 MiB [ ] /gappleto97
|
||||
501.0 MiB [ ] /ben
|
||||
495.3 MiB [ ] /emerson
|
||||
473.8 MiB [ ] /cmccabe
|
||||
470.6 MiB [ ] /sebboh
|
||||
469.9 MiB [ ] /xdrixxyz
|
||||
457.8 MiB [ ] /lowkey
|
||||
454.9 MiB [ ] /contrapunctus
|
||||
452.9 MiB [ ] /roesch
|
||||
448.5 MiB [ ] /apple
|
||||
Total disk usage: 103.4 GiB Apparent size: 98.7 GiB Items: 2974216
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
$figfonts = array_map(function($f) { return basename($f, ".flf"); }, glob("api/fonts/*.flf"));
|
||||
$selected_font = $_GET["font"] ?? "slant";
|
||||
$taglines = file("taglines.txt");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
@ -57,16 +58,16 @@ $taglines = file("taglines.txt");
|
|||
<form>
|
||||
<div>
|
||||
<label for="font">pick a font</label>
|
||||
<select id="font">
|
||||
<select id="font" name="font">
|
||||
<?php foreach ($figfonts as $font): ?>
|
||||
<option<?=$font == "slant" ? ' selected="selected"' : ""?> value="<?=$font?>"><?=$font?></option>
|
||||
<option<?=$font === $selected_font ? ' selected="selected"' : ""?> value="<?=$font?>"><?=$font?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="input">type here</label>
|
||||
<input id="input">
|
||||
<input id="input" name="input" value="<?=$_GET["input"] ?? ""?>">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
@ -122,6 +123,7 @@ $taglines = file("taglines.txt");
|
|||
xmlHttp.open("GET", `api/?font=${font.value}&text=${input.value}`, true);
|
||||
xmlHttp.send(null);
|
||||
}
|
||||
<?php if (isset($_GET["input"])) { echo 'figlet();'; } ?>
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -312,10 +312,12 @@ or open a github issue and i'll get back to you as soon as i can.</p>
|
|||
<li><a href="https://tilde.team/~amedrado/feels">~amedrado</a> 2020-12-28 at 22:16 (utc+0)</li>
|
||||
<li><a href="https://tilde.team/~ngp/feels">~ngp</a> </li>
|
||||
<li><a href="https://tilde.team/~kneezle/feelsblog">~kneezle</a> </li>
|
||||
<li><a href="https://tilde.team/~pg/blog">~pg</a> </li>
|
||||
<li><a href="https://tilde.team/~anelki/blog">~anelki</a> </li>
|
||||
<li><a href="https://tilde.team/~flankstaek/blog">~flankstaek</a> </li>
|
||||
<li><a href="https://tilde.team/~jackomix/blog">~jackomix</a> </li>
|
||||
<li><a href="https://tilde.team/~che5hire/feels">~che5hire</a> </li>
|
||||
<li><a href="https://tilde.team/~blakesmith/blog">~blakesmith</a> </li>
|
||||
<li><a href="https://tilde.team/~stern/blog">~stern</a> </li>
|
||||
<li><a href="https://tilde.team/~firepal/blog">~firepal</a> </li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue