asciimo 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. data/README.md +67 -0
  2. data/Rakefile +42 -0
  3. data/asciimo.gemspec +33 -0
  4. data/bin/asciimo +53 -0
  5. data/ext/asciimo/Readme.md +137 -0
  6. data/ext/asciimo/build/build.js +25 -0
  7. data/ext/asciimo/build/clean.js +28 -0
  8. data/ext/asciimo/fonts/1Row.flf +208 -0
  9. data/ext/asciimo/fonts/3D_Diagonal.flf +1538 -0
  10. data/ext/asciimo/fonts/3_D.flf +778 -0
  11. data/ext/asciimo/fonts/3x5.flf +588 -0
  12. data/ext/asciimo/fonts/4Max.flf +398 -0
  13. data/ext/asciimo/fonts/5_Line_Oblique.flf +588 -0
  14. data/ext/asciimo/fonts/AMC_3 Line.flf +398 -0
  15. data/ext/asciimo/fonts/AMC_3 Liv1.flf +398 -0
  16. data/ext/asciimo/fonts/AMC_AAA01.flf +1443 -0
  17. data/ext/asciimo/fonts/AMC_Neko.flf +968 -0
  18. data/ext/asciimo/fonts/AMC_Razor.flf +683 -0
  19. data/ext/asciimo/fonts/AMC_Razor2.flf +873 -0
  20. data/ext/asciimo/fonts/AMC_Slash.flf +968 -0
  21. data/ext/asciimo/fonts/AMC_Slider.flf +588 -0
  22. data/ext/asciimo/fonts/AMC_Thin.flf +683 -0
  23. data/ext/asciimo/fonts/AMC_Tubes.flf +778 -0
  24. data/ext/asciimo/fonts/AMC_Untitled.flf +778 -0
  25. data/ext/asciimo/fonts/ASCII_New Roman.flf +398 -0
  26. data/ext/asciimo/fonts/Acrobatic.flf +1158 -0
  27. data/ext/asciimo/fonts/Alligator.flf +683 -0
  28. data/ext/asciimo/fonts/Alligator2.flf +683 -0
  29. data/ext/asciimo/fonts/Alpha.flf +2108 -0
  30. data/ext/asciimo/fonts/Alphabet.flf +683 -0
  31. data/ext/asciimo/fonts/Arrows.flf +778 -0
  32. data/ext/asciimo/fonts/Avatar.flf +588 -0
  33. data/ext/asciimo/fonts/B1FF.flf +113 -0
  34. data/ext/asciimo/fonts/Banner.flf +778 -0
  35. data/ext/asciimo/fonts/Banner3.flf +683 -0
  36. data/ext/asciimo/fonts/Banner3_D.flf +778 -0
  37. data/ext/asciimo/fonts/Banner4.flf +683 -0
  38. data/ext/asciimo/fonts/Barbwire.flf +778 -0
  39. data/ext/asciimo/fonts/Basic.flf +778 -0
  40. data/ext/asciimo/fonts/Bear.flf +873 -0
  41. data/ext/asciimo/fonts/Bell.flf +588 -0
  42. data/ext/asciimo/fonts/Benjamin.flf +113 -0
  43. data/ext/asciimo/fonts/Big.flf +778 -0
  44. data/ext/asciimo/fonts/Big_Chief.flf +778 -0
  45. data/ext/asciimo/fonts/Big_Money_ne.flf +1063 -0
  46. data/ext/asciimo/fonts/Big_Money_nw.flf +1063 -0
  47. data/ext/asciimo/fonts/Big_Money_se.flf +1158 -0
  48. data/ext/asciimo/fonts/Big_Money_sw.flf +1158 -0
  49. data/ext/asciimo/fonts/Bigfig.flf +303 -0
  50. data/ext/asciimo/fonts/Binary.flf +113 -0
  51. data/ext/asciimo/fonts/Block.flf +778 -0
  52. data/ext/asciimo/fonts/Blocks.flf +1063 -0
  53. data/ext/asciimo/fonts/Bolger.flf +683 -0
  54. data/ext/asciimo/fonts/Braced.flf +493 -0
  55. data/ext/asciimo/fonts/Bright.flf +588 -0
  56. data/ext/asciimo/fonts/Broadway.flf +1063 -0
  57. data/ext/asciimo/fonts/Broadway_KB.flf +303 -0
  58. data/ext/asciimo/fonts/Bubble.flf +398 -0
  59. data/ext/asciimo/fonts/Bulbhead.flf +398 -0
  60. data/ext/asciimo/fonts/Caligraphy.flf +2013 -0
  61. data/ext/asciimo/fonts/Caligraphy2.flf +1918 -0
  62. data/ext/asciimo/fonts/Cards.flf +588 -0
  63. data/ext/asciimo/fonts/Catwalk.flf +778 -0
  64. data/ext/asciimo/fonts/Chiseled.flf +873 -0
  65. data/ext/asciimo/fonts/Chunky.flf +493 -0
  66. data/ext/asciimo/fonts/Coinstak.flf +778 -0
  67. data/ext/asciimo/fonts/Cola.flf +588 -0
  68. data/ext/asciimo/fonts/Colossal.flf +1063 -0
  69. data/ext/asciimo/fonts/Computer.flf +683 -0
  70. data/ext/asciimo/fonts/Contessa.flf +398 -0
  71. data/ext/asciimo/fonts/Contrast.flf +588 -0
  72. data/ext/asciimo/fonts/Cosmike.flf +588 -0
  73. data/ext/asciimo/fonts/Crawford.flf +778 -0
  74. data/ext/asciimo/fonts/Crawford2.flf +778 -0
  75. data/ext/asciimo/fonts/Crazy.flf +1253 -0
  76. data/ext/asciimo/fonts/Cricket.flf +778 -0
  77. data/ext/asciimo/fonts/Cursive.flf +588 -0
  78. data/ext/asciimo/fonts/Cyberlarge.flf +398 -0
  79. data/ext/asciimo/fonts/Cybermedium.flf +398 -0
  80. data/ext/asciimo/fonts/Cybersmall.flf +208 -0
  81. data/ext/asciimo/fonts/Cygnet.flf +493 -0
  82. data/ext/asciimo/fonts/DANC4.flf +398 -0
  83. data/ext/asciimo/fonts/DWhistled.flf +968 -0
  84. data/ext/asciimo/fonts/Dancing_Font.flf +683 -0
  85. data/ext/asciimo/fonts/Decimal.flf +113 -0
  86. data/ext/asciimo/fonts/Def_Leppard.flf +1538 -0
  87. data/ext/asciimo/fonts/Diamond.flf +778 -0
  88. data/ext/asciimo/fonts/Diet_Cola.flf +588 -0
  89. data/ext/asciimo/fonts/Digital.flf +303 -0
  90. data/ext/asciimo/fonts/Doh.flf +2393 -0
  91. data/ext/asciimo/fonts/Doom.flf +778 -0
  92. data/ext/asciimo/fonts/Dot_Matrix.flf +968 -0
  93. data/ext/asciimo/fonts/Double.flf +493 -0
  94. data/ext/asciimo/fonts/Double_Shorts.flf +303 -0
  95. data/ext/asciimo/fonts/Dr_Pepper.flf +493 -0
  96. data/ext/asciimo/fonts/Efti_Chess.flf +493 -0
  97. data/ext/asciimo/fonts/Efti_Font.flf +493 -0
  98. data/ext/asciimo/fonts/Efti_Italic.flf +493 -0
  99. data/ext/asciimo/fonts/Efti_Piti.flf +303 -0
  100. data/ext/asciimo/fonts/Efti_Robot.flf +588 -0
  101. data/ext/asciimo/fonts/Efti_Wall.flf +398 -0
  102. data/ext/asciimo/fonts/Efti_Water.flf +398 -0
  103. data/ext/asciimo/fonts/Epic.flf +873 -0
  104. data/ext/asciimo/fonts/Fender.flf +683 -0
  105. data/ext/asciimo/fonts/Filter.flf +493 -0
  106. data/ext/asciimo/fonts/Fire_Font_k.flf +873 -0
  107. data/ext/asciimo/fonts/Fire_Font_s.flf +873 -0
  108. data/ext/asciimo/fonts/Flipped.flf +398 -0
  109. data/ext/asciimo/fonts/Flower_Power.flf +968 -0
  110. data/ext/asciimo/fonts/Four_Tops.flf +398 -0
  111. data/ext/asciimo/fonts/Fraktur.flf +1443 -0
  112. data/ext/asciimo/fonts/Fun_Face.flf +683 -0
  113. data/ext/asciimo/fonts/Fun_Faces.flf +683 -0
  114. data/ext/asciimo/fonts/Fuzzy.flf +683 -0
  115. data/ext/asciimo/fonts/Georgi16.flf +1538 -0
  116. data/ext/asciimo/fonts/Georgia11.flf +1063 -0
  117. data/ext/asciimo/fonts/Ghost.flf +873 -0
  118. data/ext/asciimo/fonts/Ghoulish.flf +683 -0
  119. data/ext/asciimo/fonts/Glenyn.flf +398 -0
  120. data/ext/asciimo/fonts/Goofy.flf +588 -0
  121. data/ext/asciimo/fonts/Gothic.flf +873 -0
  122. data/ext/asciimo/fonts/Graceful.flf +398 -0
  123. data/ext/asciimo/fonts/Gradient.flf +873 -0
  124. data/ext/asciimo/fonts/Graffiti.flf +588 -0
  125. data/ext/asciimo/fonts/Greek.flf +873 -0
  126. data/ext/asciimo/fonts/Heart_Left.flf +398 -0
  127. data/ext/asciimo/fonts/Heart_Right.flf +398 -0
  128. data/ext/asciimo/fonts/Henry_3D.flf +778 -0
  129. data/ext/asciimo/fonts/Hex.flf +113 -0
  130. data/ext/asciimo/fonts/Hieroglyphs.flf +398 -0
  131. data/ext/asciimo/fonts/Hollywood.flf +968 -0
  132. data/ext/asciimo/fonts/Horizontal_Left.flf +588 -0
  133. data/ext/asciimo/fonts/Horizontal_Right.flf +588 -0
  134. data/ext/asciimo/fonts/ICL_1900.flf +1253 -0
  135. data/ext/asciimo/fonts/Impossible.flf +1158 -0
  136. data/ext/asciimo/fonts/Invita.flf +588 -0
  137. data/ext/asciimo/fonts/Isometric1.flf +1063 -0
  138. data/ext/asciimo/fonts/Isometric2.flf +1063 -0
  139. data/ext/asciimo/fonts/Isometric3.flf +1063 -0
  140. data/ext/asciimo/fonts/Isometric4.flf +1063 -0
  141. data/ext/asciimo/fonts/Italic.flf +398 -0
  142. data/ext/asciimo/fonts/Ivrit.flf +588 -0
  143. data/ext/asciimo/fonts/JS_Block Letters.flf +303 -0
  144. data/ext/asciimo/fonts/JS_Bracket Letters.flf +398 -0
  145. data/ext/asciimo/fonts/JS_Capital Curves.flf +398 -0
  146. data/ext/asciimo/fonts/JS_Cursive.flf +588 -0
  147. data/ext/asciimo/fonts/JS_Stick Letters.flf +398 -0
  148. data/ext/asciimo/fonts/Jacky.flf +778 -0
  149. data/ext/asciimo/fonts/Jazmine.flf +968 -0
  150. data/ext/asciimo/fonts/Jerusalem.flf +683 -0
  151. data/ext/asciimo/fonts/Katakana.flf +778 -0
  152. data/ext/asciimo/fonts/Kban.flf +683 -0
  153. data/ext/asciimo/fonts/Keyboard.flf +873 -0
  154. data/ext/asciimo/fonts/Knob.flf +398 -0
  155. data/ext/asciimo/fonts/Konto.flf +208 -0
  156. data/ext/asciimo/fonts/Konto_Slant.flf +208 -0
  157. data/ext/asciimo/fonts/LCD.flf +588 -0
  158. data/ext/asciimo/fonts/Larry_3D.flf +873 -0
  159. data/ext/asciimo/fonts/Lean.flf +778 -0
  160. data/ext/asciimo/fonts/Letters.flf +588 -0
  161. data/ext/asciimo/fonts/Lil_Devil.flf +778 -0
  162. data/ext/asciimo/fonts/Line_Blocks.flf +493 -0
  163. data/ext/asciimo/fonts/Linux.flf +398 -0
  164. data/ext/asciimo/fonts/Lockergnome.flf +398 -0
  165. data/ext/asciimo/fonts/Madrid.flf +398 -0
  166. data/ext/asciimo/fonts/Marquee.flf +778 -0
  167. data/ext/asciimo/fonts/Maxfour.flf +398 -0
  168. data/ext/asciimo/fonts/Merlin1.flf +778 -0
  169. data/ext/asciimo/fonts/Merlin2.flf +873 -0
  170. data/ext/asciimo/fonts/Mike.flf +303 -0
  171. data/ext/asciimo/fonts/Mini.flf +398 -0
  172. data/ext/asciimo/fonts/Mirror.flf +588 -0
  173. data/ext/asciimo/fonts/Mnemonic.flf +113 -0
  174. data/ext/asciimo/fonts/Modular.flf +683 -0
  175. data/ext/asciimo/fonts/Morse.flf +113 -0
  176. data/ext/asciimo/fonts/Morse2.flf +113 -0
  177. data/ext/asciimo/fonts/Moscow.flf +588 -0
  178. data/ext/asciimo/fonts/Mshebrew210.flf +398 -0
  179. data/ext/asciimo/fonts/Muzzle.flf +398 -0
  180. data/ext/asciimo/fonts/NScript.flf +1538 -0
  181. data/ext/asciimo/fonts/NT_Greek.flf +873 -0
  182. data/ext/asciimo/fonts/NV_Script.flf +1538 -0
  183. data/ext/asciimo/fonts/Nancyj.flf +778 -0
  184. data/ext/asciimo/fonts/Nancyj_Fancy.flf +778 -0
  185. data/ext/asciimo/fonts/Nancyj_Improved.flf +778 -0
  186. data/ext/asciimo/fonts/Nancyj_Underlined.flf +778 -0
  187. data/ext/asciimo/fonts/Nipples.flf +778 -0
  188. data/ext/asciimo/fonts/O8.flf +588 -0
  189. data/ext/asciimo/fonts/OS2.flf +683 -0
  190. data/ext/asciimo/fonts/Octal.flf +113 -0
  191. data/ext/asciimo/fonts/Ogre.flf +588 -0
  192. data/ext/asciimo/fonts/Old_Banner.flf +683 -0
  193. data/ext/asciimo/fonts/Pawp.flf +873 -0
  194. data/ext/asciimo/fonts/Peaks.flf +778 -0
  195. data/ext/asciimo/fonts/Peaks_Slant.flf +588 -0
  196. data/ext/asciimo/fonts/Pebbles.flf +968 -0
  197. data/ext/asciimo/fonts/Pepper.flf +398 -0
  198. data/ext/asciimo/fonts/Poison.flf +1158 -0
  199. data/ext/asciimo/fonts/Puffy.flf +778 -0
  200. data/ext/asciimo/fonts/Puzzle.flf +493 -0
  201. data/ext/asciimo/fonts/Pyramid.flf +303 -0
  202. data/ext/asciimo/fonts/Rammstein.flf +683 -0
  203. data/ext/asciimo/fonts/Rectangles.flf +588 -0
  204. data/ext/asciimo/fonts/Red_Phoenix.flf +683 -0
  205. data/ext/asciimo/fonts/Relief.flf +683 -0
  206. data/ext/asciimo/fonts/Relief2.flf +683 -0
  207. data/ext/asciimo/fonts/Reverse.flf +1063 -0
  208. data/ext/asciimo/fonts/Roman.flf +968 -0
  209. data/ext/asciimo/fonts/Rot13.flf +113 -0
  210. data/ext/asciimo/fonts/Rotated.flf +303 -0
  211. data/ext/asciimo/fonts/Rounded.flf +683 -0
  212. data/ext/asciimo/fonts/Rowan_Cap.flf +588 -0
  213. data/ext/asciimo/fonts/Rozzo.flf +683 -0
  214. data/ext/asciimo/fonts/Runic.flf +588 -0
  215. data/ext/asciimo/fonts/Runyc.flf +588 -0
  216. data/ext/asciimo/fonts/SL_Script.flf +588 -0
  217. data/ext/asciimo/fonts/S_Blood.flf +588 -0
  218. data/ext/asciimo/fonts/Santa_Clara.flf +588 -0
  219. data/ext/asciimo/fonts/Script.flf +683 -0
  220. data/ext/asciimo/fonts/Serifcap.flf +398 -0
  221. data/ext/asciimo/fonts/Shadow.flf +493 -0
  222. data/ext/asciimo/fonts/Shimrod.flf +588 -0
  223. data/ext/asciimo/fonts/Short.flf +303 -0
  224. data/ext/asciimo/fonts/Slant.flf +588 -0
  225. data/ext/asciimo/fonts/Slant_Relief.flf +873 -0
  226. data/ext/asciimo/fonts/Slide.flf +588 -0
  227. data/ext/asciimo/fonts/Small.flf +493 -0
  228. data/ext/asciimo/fonts/Small_Caps.flf +493 -0
  229. data/ext/asciimo/fonts/Small_Isometric1.flf +683 -0
  230. data/ext/asciimo/fonts/Small_Keyboard.flf +398 -0
  231. data/ext/asciimo/fonts/Small_Poison.flf +683 -0
  232. data/ext/asciimo/fonts/Small_Script.flf +493 -0
  233. data/ext/asciimo/fonts/Small_Shadow.flf +398 -0
  234. data/ext/asciimo/fonts/Small_Slant.flf +493 -0
  235. data/ext/asciimo/fonts/Small_Tengwar.flf +303 -0
  236. data/ext/asciimo/fonts/Soft.flf +683 -0
  237. data/ext/asciimo/fonts/Speed.flf +588 -0
  238. data/ext/asciimo/fonts/Spliff.flf +493 -0
  239. data/ext/asciimo/fonts/Stacey.flf +683 -0
  240. data/ext/asciimo/fonts/Stampate.flf +588 -0
  241. data/ext/asciimo/fonts/Stampatello.flf +588 -0
  242. data/ext/asciimo/fonts/Standard.flf +588 -0
  243. data/ext/asciimo/fonts/Star_Strips.flf +873 -0
  244. data/ext/asciimo/fonts/Star_Wars.flf +683 -0
  245. data/ext/asciimo/fonts/Stellar.flf +778 -0
  246. data/ext/asciimo/fonts/Stforek.flf +398 -0
  247. data/ext/asciimo/fonts/Stick_Letters.flf +398 -0
  248. data/ext/asciimo/fonts/Stop.flf +683 -0
  249. data/ext/asciimo/fonts/Straight.flf +398 -0
  250. data/ext/asciimo/fonts/Sub_Zero.flf +588 -0
  251. data/ext/asciimo/fonts/Swamp_Land.flf +778 -0
  252. data/ext/asciimo/fonts/Swan.flf +873 -0
  253. data/ext/asciimo/fonts/Sweet.flf +1253 -0
  254. data/ext/asciimo/fonts/Tanja.flf +778 -0
  255. data/ext/asciimo/fonts/Tengwar.flf +968 -0
  256. data/ext/asciimo/fonts/Term.flf +113 -0
  257. data/ext/asciimo/fonts/Test1.flf +398 -0
  258. data/ext/asciimo/fonts/Thick.flf +493 -0
  259. data/ext/asciimo/fonts/Thin.flf +588 -0
  260. data/ext/asciimo/fonts/Thorned.flf +493 -0
  261. data/ext/asciimo/fonts/Three_Point.flf +303 -0
  262. data/ext/asciimo/fonts/Ticks.flf +588 -0
  263. data/ext/asciimo/fonts/Ticks_Slant.flf +588 -0
  264. data/ext/asciimo/fonts/Tiles.flf +778 -0
  265. data/ext/asciimo/fonts/Tinker_Toy.flf +683 -0
  266. data/ext/asciimo/fonts/Tombstone.flf +493 -0
  267. data/ext/asciimo/fonts/Train.flf +588 -0
  268. data/ext/asciimo/fonts/Trek.flf +588 -0
  269. data/ext/asciimo/fonts/Tsalagi.flf +493 -0
  270. data/ext/asciimo/fonts/Tubular.flf +778 -0
  271. data/ext/asciimo/fonts/Twisted.flf +778 -0
  272. data/ext/asciimo/fonts/Two_Point.flf +208 -0
  273. data/ext/asciimo/fonts/USA_Flag.flf +588 -0
  274. data/ext/asciimo/fonts/Univers.flf +1063 -0
  275. data/ext/asciimo/fonts/Varsity.flf +683 -0
  276. data/ext/asciimo/fonts/Wavy.flf +398 -0
  277. data/ext/asciimo/fonts/Weird.flf +588 -0
  278. data/ext/asciimo/fonts/Wet_Letter.flf +683 -0
  279. data/ext/asciimo/fonts/Whimsy.flf +968 -0
  280. data/ext/asciimo/fonts/Wow.flf +113 -0
  281. data/ext/asciimo/images/asciimo.png +0 -0
  282. data/ext/asciimo/index.html +169 -0
  283. data/ext/asciimo/lib/asciimo.js +1685 -0
  284. data/ext/asciimo/lib/colors.js +28 -0
  285. data/ext/asciimo/lib/fonts.js +276 -0
  286. data/ext/asciimo/lib/jquery.js +6240 -0
  287. data/ext/asciimo/node-demo.js +34 -0
  288. data/lib/asciimo.rb +47 -0
  289. metadata +369 -0
@@ -0,0 +1,67 @@
1
+ Asciimo.rb
2
+ =======
3
+
4
+ A ruby wrapper around asciimo ([http://asciimo.com](http://asciimo.com))
5
+
6
+ Install
7
+ =======
8
+
9
+ gem install asciimo
10
+
11
+ Use it from the Command Line
12
+ ============================
13
+
14
+ legolas:~ cowboyd$ asciimo -h
15
+ Usage: asciimo [options]
16
+ -f, --font FONT Render TEXT with this font
17
+ -c, --color [COLOR] Render TEXT with this color
18
+ -m MESSAGE render MESSAGE instead of STDIN
19
+ --list-colors List possible colors
20
+ --list-fonts List possible fonts
21
+ -h show help
22
+
23
+ from stdin
24
+
25
+ legolas:~ cowboyd$ asciimo
26
+ Hai U
27
+
28
+ ,--. ,--. ,--. ,--. ,--.
29
+ | '--' | ,--,--.`--' | | | |
30
+ | .--. |' ,-. |,--. | | | |
31
+ | | | |\ '-' || | ' '-' '
32
+ `--' `--' `--`--'`--' `-----'
33
+ or from an argument
34
+
35
+ legolas:~ cowboyd$ asciimo -m "Hai U"
36
+
37
+ ,--. ,--. ,--. ,--. ,--.
38
+ | '--' | ,--,--.`--' | | | |
39
+ | .--. |' ,-. |,--. | | | |
40
+ | | | |\ '-' || | ' '-' '
41
+ `--' `--' `--`--'`--' `-----'
42
+
43
+ change the font
44
+
45
+ legolas:~ cowboyd$ asciimo -m "Str Wrz" -f "Star_Wars.flf"
46
+ _______..___________..______ ____ __ ____ .______ ________
47
+ / || || _ \ \ \ / \ / / | _ \ | /
48
+ | (----``---| |----`| |_) | \ \/ \/ / | |_) | `---/ /
49
+ \ \ | | | / \ / | / / /
50
+ .----) | | | | |\ \----. \ /\ / | |\ \----. / /----.
51
+ |_______/ |__| | _| `._____| \__/ \__/ | _| `._____|/________|
52
+
53
+ Use it from Ruby
54
+ ================
55
+
56
+ require 'asciimo'
57
+
58
+ Asciimo.text("Star_Wars.flf", "Str Wrz", "yellow")
59
+
60
+ Angry Propers
61
+ =============
62
+
63
+ * Marak Squires
64
+ * Patrick Gillespie
65
+ * The Internet
66
+
67
+
@@ -0,0 +1,42 @@
1
+ require 'rubygems'
2
+ require 'lib/asciimo'
3
+ Gem::Specification.new do |gem|
4
+ $gemspec = gem
5
+ gem.name = gem.rubyforge_project = "asciimo"
6
+ gem.version = Asciimo::VERSION
7
+ gem.summary = "create awesome ascii art with ruby"
8
+ gem.description = "uses asciimo.js to generate colored ascii art text in 300+ fonts. It can be used from the commandline or inside Ruby code."
9
+ gem.email = "cowboyd@thefrontside.net"
10
+ gem.homepage = "http://github.com/cowboyd/asciimo.rb"
11
+ gem.authors = ["Charles Lowell"]
12
+ gem.executables = ["asciimo"]
13
+ gem.require_paths = ["lib"]
14
+ gem.add_dependency "therubyracer", ">= 0.7.4"
15
+ gem.files = Rake::FileList.new("**/*").tap do |manifest|
16
+ manifest.exclude "**/*.gem"
17
+ end
18
+ end
19
+
20
+ desc "Build gem"
21
+ task :gem => :gemspec do
22
+ Gem::Builder.new($gemspec).build
23
+ end
24
+
25
+ desc "build the gemspec"
26
+ task :gemspec => :clean do
27
+ File.open("#{$gemspec.name}.gemspec", "w") do |f|
28
+ f.write($gemspec.to_ruby)
29
+ end
30
+ end
31
+
32
+ task :clean do
33
+ sh "rm -rf *.gem"
34
+ end
35
+
36
+
37
+
38
+ for file in Dir['tasks/*.rake']
39
+ load file
40
+ end
41
+
42
+
@@ -0,0 +1,33 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{asciimo}
5
+ s.version = "0.1.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Charles Lowell"]
9
+ s.date = %q{2010-06-20}
10
+ s.default_executable = %q{asciimo}
11
+ s.description = %q{uses asciimo.js to generate colored ascii art text in 300+ fonts. It can be used from the commandline or inside Ruby code.}
12
+ s.email = %q{cowboyd@thefrontside.net}
13
+ s.executables = ["asciimo"]
14
+ s.files = ["asciimo.gemspec", "bin", "bin/asciimo", "ext", "ext/asciimo", "ext/asciimo/build", "ext/asciimo/build/build.js", "ext/asciimo/build/clean.js", "ext/asciimo/fonts", "ext/asciimo/fonts/1Row.flf", "ext/asciimo/fonts/3_D.flf", "ext/asciimo/fonts/3D_Diagonal.flf", "ext/asciimo/fonts/3x5.flf", "ext/asciimo/fonts/4Max.flf", "ext/asciimo/fonts/5_Line_Oblique.flf", "ext/asciimo/fonts/Acrobatic.flf", "ext/asciimo/fonts/Alligator.flf", "ext/asciimo/fonts/Alligator2.flf", "ext/asciimo/fonts/Alpha.flf", "ext/asciimo/fonts/Alphabet.flf", "ext/asciimo/fonts/AMC_3 Line.flf", "ext/asciimo/fonts/AMC_3 Liv1.flf", "ext/asciimo/fonts/AMC_AAA01.flf", "ext/asciimo/fonts/AMC_Neko.flf", "ext/asciimo/fonts/AMC_Razor.flf", "ext/asciimo/fonts/AMC_Razor2.flf", "ext/asciimo/fonts/AMC_Slash.flf", "ext/asciimo/fonts/AMC_Slider.flf", "ext/asciimo/fonts/AMC_Thin.flf", "ext/asciimo/fonts/AMC_Tubes.flf", "ext/asciimo/fonts/AMC_Untitled.flf", "ext/asciimo/fonts/Arrows.flf", "ext/asciimo/fonts/ASCII_New Roman.flf", "ext/asciimo/fonts/Avatar.flf", "ext/asciimo/fonts/B1FF.flf", "ext/asciimo/fonts/Banner.flf", "ext/asciimo/fonts/Banner3.flf", "ext/asciimo/fonts/Banner3_D.flf", "ext/asciimo/fonts/Banner4.flf", "ext/asciimo/fonts/Barbwire.flf", "ext/asciimo/fonts/Basic.flf", "ext/asciimo/fonts/Bear.flf", "ext/asciimo/fonts/Bell.flf", "ext/asciimo/fonts/Benjamin.flf", "ext/asciimo/fonts/Big.flf", "ext/asciimo/fonts/Big_Chief.flf", "ext/asciimo/fonts/Big_Money_ne.flf", "ext/asciimo/fonts/Big_Money_nw.flf", "ext/asciimo/fonts/Big_Money_se.flf", "ext/asciimo/fonts/Big_Money_sw.flf", "ext/asciimo/fonts/Bigfig.flf", "ext/asciimo/fonts/Binary.flf", "ext/asciimo/fonts/Block.flf", "ext/asciimo/fonts/Blocks.flf", "ext/asciimo/fonts/Bolger.flf", "ext/asciimo/fonts/Braced.flf", "ext/asciimo/fonts/Bright.flf", "ext/asciimo/fonts/Broadway.flf", "ext/asciimo/fonts/Broadway_KB.flf", "ext/asciimo/fonts/Bubble.flf", "ext/asciimo/fonts/Bulbhead.flf", "ext/asciimo/fonts/Caligraphy.flf", "ext/asciimo/fonts/Caligraphy2.flf", "ext/asciimo/fonts/Cards.flf", "ext/asciimo/fonts/Catwalk.flf", "ext/asciimo/fonts/Chiseled.flf", "ext/asciimo/fonts/Chunky.flf", "ext/asciimo/fonts/Coinstak.flf", "ext/asciimo/fonts/Cola.flf", "ext/asciimo/fonts/Colossal.flf", "ext/asciimo/fonts/Computer.flf", "ext/asciimo/fonts/Contessa.flf", "ext/asciimo/fonts/Contrast.flf", "ext/asciimo/fonts/Cosmike.flf", "ext/asciimo/fonts/Crawford.flf", "ext/asciimo/fonts/Crawford2.flf", "ext/asciimo/fonts/Crazy.flf", "ext/asciimo/fonts/Cricket.flf", "ext/asciimo/fonts/Cursive.flf", "ext/asciimo/fonts/Cyberlarge.flf", "ext/asciimo/fonts/Cybermedium.flf", "ext/asciimo/fonts/Cybersmall.flf", "ext/asciimo/fonts/Cygnet.flf", "ext/asciimo/fonts/DANC4.flf", "ext/asciimo/fonts/Dancing_Font.flf", "ext/asciimo/fonts/Decimal.flf", "ext/asciimo/fonts/Def_Leppard.flf", "ext/asciimo/fonts/Diamond.flf", "ext/asciimo/fonts/Diet_Cola.flf", "ext/asciimo/fonts/Digital.flf", "ext/asciimo/fonts/Doh.flf", "ext/asciimo/fonts/Doom.flf", "ext/asciimo/fonts/Dot_Matrix.flf", "ext/asciimo/fonts/Double.flf", "ext/asciimo/fonts/Double_Shorts.flf", "ext/asciimo/fonts/Dr_Pepper.flf", "ext/asciimo/fonts/DWhistled.flf", "ext/asciimo/fonts/Efti_Chess.flf", "ext/asciimo/fonts/Efti_Font.flf", "ext/asciimo/fonts/Efti_Italic.flf", "ext/asciimo/fonts/Efti_Piti.flf", "ext/asciimo/fonts/Efti_Robot.flf", "ext/asciimo/fonts/Efti_Wall.flf", "ext/asciimo/fonts/Efti_Water.flf", "ext/asciimo/fonts/Epic.flf", "ext/asciimo/fonts/Fender.flf", "ext/asciimo/fonts/Filter.flf", "ext/asciimo/fonts/Fire_Font_k.flf", "ext/asciimo/fonts/Fire_Font_s.flf", "ext/asciimo/fonts/Flipped.flf", "ext/asciimo/fonts/Flower_Power.flf", "ext/asciimo/fonts/Four_Tops.flf", "ext/asciimo/fonts/Fraktur.flf", "ext/asciimo/fonts/Fun_Face.flf", "ext/asciimo/fonts/Fun_Faces.flf", "ext/asciimo/fonts/Fuzzy.flf", "ext/asciimo/fonts/Georgi16.flf", "ext/asciimo/fonts/Georgia11.flf", "ext/asciimo/fonts/Ghost.flf", "ext/asciimo/fonts/Ghoulish.flf", "ext/asciimo/fonts/Glenyn.flf", "ext/asciimo/fonts/Goofy.flf", "ext/asciimo/fonts/Gothic.flf", "ext/asciimo/fonts/Graceful.flf", "ext/asciimo/fonts/Gradient.flf", "ext/asciimo/fonts/Graffiti.flf", "ext/asciimo/fonts/Greek.flf", "ext/asciimo/fonts/Heart_Left.flf", "ext/asciimo/fonts/Heart_Right.flf", "ext/asciimo/fonts/Henry_3D.flf", "ext/asciimo/fonts/Hex.flf", "ext/asciimo/fonts/Hieroglyphs.flf", "ext/asciimo/fonts/Hollywood.flf", "ext/asciimo/fonts/Horizontal_Left.flf", "ext/asciimo/fonts/Horizontal_Right.flf", "ext/asciimo/fonts/ICL_1900.flf", "ext/asciimo/fonts/Impossible.flf", "ext/asciimo/fonts/Invita.flf", "ext/asciimo/fonts/Isometric1.flf", "ext/asciimo/fonts/Isometric2.flf", "ext/asciimo/fonts/Isometric3.flf", "ext/asciimo/fonts/Isometric4.flf", "ext/asciimo/fonts/Italic.flf", "ext/asciimo/fonts/Ivrit.flf", "ext/asciimo/fonts/Jacky.flf", "ext/asciimo/fonts/Jazmine.flf", "ext/asciimo/fonts/Jerusalem.flf", "ext/asciimo/fonts/JS_Block Letters.flf", "ext/asciimo/fonts/JS_Bracket Letters.flf", "ext/asciimo/fonts/JS_Capital Curves.flf", "ext/asciimo/fonts/JS_Cursive.flf", "ext/asciimo/fonts/JS_Stick Letters.flf", "ext/asciimo/fonts/Katakana.flf", "ext/asciimo/fonts/Kban.flf", "ext/asciimo/fonts/Keyboard.flf", "ext/asciimo/fonts/Knob.flf", "ext/asciimo/fonts/Konto.flf", "ext/asciimo/fonts/Konto_Slant.flf", "ext/asciimo/fonts/Larry_3D.flf", "ext/asciimo/fonts/LCD.flf", "ext/asciimo/fonts/Lean.flf", "ext/asciimo/fonts/Letters.flf", "ext/asciimo/fonts/Lil_Devil.flf", "ext/asciimo/fonts/Line_Blocks.flf", "ext/asciimo/fonts/Linux.flf", "ext/asciimo/fonts/Lockergnome.flf", "ext/asciimo/fonts/Madrid.flf", "ext/asciimo/fonts/Marquee.flf", "ext/asciimo/fonts/Maxfour.flf", "ext/asciimo/fonts/Merlin1.flf", "ext/asciimo/fonts/Merlin2.flf", "ext/asciimo/fonts/Mike.flf", "ext/asciimo/fonts/Mini.flf", "ext/asciimo/fonts/Mirror.flf", "ext/asciimo/fonts/Mnemonic.flf", "ext/asciimo/fonts/Modular.flf", "ext/asciimo/fonts/Morse.flf", "ext/asciimo/fonts/Morse2.flf", "ext/asciimo/fonts/Moscow.flf", "ext/asciimo/fonts/Mshebrew210.flf", "ext/asciimo/fonts/Muzzle.flf", "ext/asciimo/fonts/Nancyj.flf", "ext/asciimo/fonts/Nancyj_Fancy.flf", "ext/asciimo/fonts/Nancyj_Improved.flf", "ext/asciimo/fonts/Nancyj_Underlined.flf", "ext/asciimo/fonts/Nipples.flf", "ext/asciimo/fonts/NScript.flf", "ext/asciimo/fonts/NT_Greek.flf", "ext/asciimo/fonts/NV_Script.flf", "ext/asciimo/fonts/O8.flf", "ext/asciimo/fonts/Octal.flf", "ext/asciimo/fonts/Ogre.flf", "ext/asciimo/fonts/Old_Banner.flf", "ext/asciimo/fonts/OS2.flf", "ext/asciimo/fonts/Pawp.flf", "ext/asciimo/fonts/Peaks.flf", "ext/asciimo/fonts/Peaks_Slant.flf", "ext/asciimo/fonts/Pebbles.flf", "ext/asciimo/fonts/Pepper.flf", "ext/asciimo/fonts/Poison.flf", "ext/asciimo/fonts/Puffy.flf", "ext/asciimo/fonts/Puzzle.flf", "ext/asciimo/fonts/Pyramid.flf", "ext/asciimo/fonts/Rammstein.flf", "ext/asciimo/fonts/Rectangles.flf", "ext/asciimo/fonts/Red_Phoenix.flf", "ext/asciimo/fonts/Relief.flf", "ext/asciimo/fonts/Relief2.flf", "ext/asciimo/fonts/Reverse.flf", "ext/asciimo/fonts/Roman.flf", "ext/asciimo/fonts/Rot13.flf", "ext/asciimo/fonts/Rotated.flf", "ext/asciimo/fonts/Rounded.flf", "ext/asciimo/fonts/Rowan_Cap.flf", "ext/asciimo/fonts/Rozzo.flf", "ext/asciimo/fonts/Runic.flf", "ext/asciimo/fonts/Runyc.flf", "ext/asciimo/fonts/S_Blood.flf", "ext/asciimo/fonts/Santa_Clara.flf", "ext/asciimo/fonts/Script.flf", "ext/asciimo/fonts/Serifcap.flf", "ext/asciimo/fonts/Shadow.flf", "ext/asciimo/fonts/Shimrod.flf", "ext/asciimo/fonts/Short.flf", "ext/asciimo/fonts/SL_Script.flf", "ext/asciimo/fonts/Slant.flf", "ext/asciimo/fonts/Slant_Relief.flf", "ext/asciimo/fonts/Slide.flf", "ext/asciimo/fonts/Small.flf", "ext/asciimo/fonts/Small_Caps.flf", "ext/asciimo/fonts/Small_Isometric1.flf", "ext/asciimo/fonts/Small_Keyboard.flf", "ext/asciimo/fonts/Small_Poison.flf", "ext/asciimo/fonts/Small_Script.flf", "ext/asciimo/fonts/Small_Shadow.flf", "ext/asciimo/fonts/Small_Slant.flf", "ext/asciimo/fonts/Small_Tengwar.flf", "ext/asciimo/fonts/Soft.flf", "ext/asciimo/fonts/Speed.flf", "ext/asciimo/fonts/Spliff.flf", "ext/asciimo/fonts/Stacey.flf", "ext/asciimo/fonts/Stampate.flf", "ext/asciimo/fonts/Stampatello.flf", "ext/asciimo/fonts/Standard.flf", "ext/asciimo/fonts/Star_Strips.flf", "ext/asciimo/fonts/Star_Wars.flf", "ext/asciimo/fonts/Stellar.flf", "ext/asciimo/fonts/Stforek.flf", "ext/asciimo/fonts/Stick_Letters.flf", "ext/asciimo/fonts/Stop.flf", "ext/asciimo/fonts/Straight.flf", "ext/asciimo/fonts/Sub_Zero.flf", "ext/asciimo/fonts/Swamp_Land.flf", "ext/asciimo/fonts/Swan.flf", "ext/asciimo/fonts/Sweet.flf", "ext/asciimo/fonts/Tanja.flf", "ext/asciimo/fonts/Tengwar.flf", "ext/asciimo/fonts/Term.flf", "ext/asciimo/fonts/Test1.flf", "ext/asciimo/fonts/Thick.flf", "ext/asciimo/fonts/Thin.flf", "ext/asciimo/fonts/Thorned.flf", "ext/asciimo/fonts/Three_Point.flf", "ext/asciimo/fonts/Ticks.flf", "ext/asciimo/fonts/Ticks_Slant.flf", "ext/asciimo/fonts/Tiles.flf", "ext/asciimo/fonts/Tinker_Toy.flf", "ext/asciimo/fonts/Tombstone.flf", "ext/asciimo/fonts/Train.flf", "ext/asciimo/fonts/Trek.flf", "ext/asciimo/fonts/Tsalagi.flf", "ext/asciimo/fonts/Tubular.flf", "ext/asciimo/fonts/Twisted.flf", "ext/asciimo/fonts/Two_Point.flf", "ext/asciimo/fonts/Univers.flf", "ext/asciimo/fonts/USA_Flag.flf", "ext/asciimo/fonts/Varsity.flf", "ext/asciimo/fonts/Wavy.flf", "ext/asciimo/fonts/Weird.flf", "ext/asciimo/fonts/Wet_Letter.flf", "ext/asciimo/fonts/Whimsy.flf", "ext/asciimo/fonts/Wow.flf", "ext/asciimo/images", "ext/asciimo/images/asciimo.png", "ext/asciimo/index.html", "ext/asciimo/lib", "ext/asciimo/lib/asciimo.js", "ext/asciimo/lib/colors.js", "ext/asciimo/lib/fonts.js", "ext/asciimo/lib/jquery.js", "ext/asciimo/node-demo.js", "ext/asciimo/Readme.md", "lib", "lib/asciimo.rb", "Rakefile", "README.md"]
15
+ s.homepage = %q{http://github.com/cowboyd/asciimo.rb}
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = %q{asciimo}
18
+ s.rubygems_version = %q{1.3.7}
19
+ s.summary = %q{create awesome ascii art with ruby}
20
+
21
+ if s.respond_to? :specification_version then
22
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
+ s.specification_version = 3
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<therubyracer>, [">= 0.7.4"])
27
+ else
28
+ s.add_dependency(%q<therubyracer>, [">= 0.7.4"])
29
+ end
30
+ else
31
+ s.add_dependency(%q<therubyracer>, [">= 0.7.4"])
32
+ end
33
+ end
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require File.join(File.dirname(__FILE__), "..", "lib", "asciimo")
4
+ require 'optparse'
5
+
6
+ options = {
7
+ :font => "Soft.flf"
8
+ }
9
+ parser = OptionParser.new
10
+
11
+ parser.banner = "Usage: asciimo [options]"
12
+
13
+ parser.on("-f", "--font FONT", "Render TEXT with this font") do |font|
14
+ options[:font] = font
15
+ unless Asciimo.fonts.include?(font)
16
+ puts "asciimo: invalid font '#{font}' (asciimo --list-fonts to show all)"
17
+ exit
18
+ end
19
+ end
20
+
21
+ parser.on("-c", "--color [COLOR]", "Render TEXT with this color") do |color|
22
+ options[:color] = color
23
+ unless Asciimo.colors.include?(color)
24
+ puts "asciimo: invalid color '#{color}' (must be in {#{Asciimo.colors.join("|")}})"
25
+ exit
26
+ end
27
+ end
28
+
29
+ parser.on("-m MESSAGE", "render MESSAGE instead of STDIN") do |msg|
30
+ options[:msg] = msg
31
+ end
32
+
33
+ parser.on("--list-colors", "List possible colors") do
34
+ puts Asciimo.colors.join(",")
35
+ exit
36
+ end
37
+
38
+ parser.on("--list-fonts", "List possible fonts") do
39
+ puts Asciimo.fonts.join("\n")
40
+ exit
41
+ end
42
+
43
+ parser.on("-h", "show help") do
44
+ puts parser
45
+ exit
46
+ end
47
+
48
+ begin
49
+ parser.parse!(ARGV)
50
+ puts Asciimo.text(options[:font], (options[:msg] || $stdin.read()).chomp, options[:color])
51
+ rescue OptionParser::ParseError => e
52
+ puts "asciimo: #{e.message}"
53
+ end
@@ -0,0 +1,137 @@
1
+
2
+ <table>
3
+ <tr valign = "middle">
4
+ <td><img src = "http://imgur.com/kmbjB.png"/></td>
5
+ <td>
6
+ <br/>
7
+ <h1>greetings, i am asciimo</h1>
8
+ <h1>i create awesome ascii art with javascript!</h1>
9
+ <h1>i work in node.js and the browser</h1>
10
+ </td>
11
+ </tr>
12
+
13
+
14
+ </table>
15
+
16
+ <div align = "center"><img src = "http://i.imgur.com/CDKZc.png" border = "0"/></div>
17
+
18
+ ### online demo @ <a href = "http://asciimo.com" target = "_blank">http://asciimo.com</a>
19
+ ## USAGE
20
+
21
+ ### node.js -
22
+ var sys = require('sys');
23
+ var asciimo = require('./lib/asciimo');
24
+ var colors = require('./lib/colors'); // add colors for fun
25
+
26
+ // pick the font file
27
+ var font = 'soft.flf';
28
+ // set text we are going to turn into leet ascii art
29
+ var text = "hello, i am asciimo!";
30
+
31
+ asciimo.text(font, text, function(art){
32
+ sys.puts(art.magenta);
33
+ var anotherFont = 'Banner.flf';
34
+ var moreText = "i turn text into leet ascii art";
35
+
36
+ asciimo.text(anotherFont, moreText, function(art){
37
+ sys.puts(art.red);
38
+ var anotherFont = 'Colossal.flf';
39
+ var moreText = "300+ fonts supported";
40
+
41
+ asciimo.text(anotherFont, moreText, function(art){
42
+ sys.puts(art.green);
43
+ var anotherFont = 'Tinker_Toy.flf';
44
+ var moreText = "Marak Squires 2010";
45
+
46
+ asciimo.text(anotherFont, moreText, function(art){
47
+ sys.puts(art.yellow);
48
+ sys.puts('if you can\'t see the text try making your console larger'.red.underline)
49
+ });
50
+
51
+ });
52
+
53
+ });
54
+
55
+ });
56
+
57
+ ### browser -
58
+
59
+ // the current browser demo requires jQuery. you could easily make it work without jQuery.
60
+ // we'll have to figure out a smarter way to make this library work dual-sided.
61
+ // also, i haven't included the DOM elements here so you really should just check out the index.html file
62
+
63
+ <script type="text/javascript" src="./lib/asciimo.js"></script>
64
+
65
+ <!-- fonts.js doesn't contain the fonts, just the font names. fonts are located in /asciimo/fonts/ -->
66
+ <script type="text/javascript" src="./lib/fonts.js"></script>
67
+
68
+ <!-- jquery not required, just use this this demo page -->
69
+ <script type="text/javascript" src="./lib/jquery.js"></script>
70
+
71
+
72
+ <script type="text/javascript">
73
+
74
+ // not used, could be implemented, maybe AJAX browser cache is good enough? do some research!
75
+ var fontCache = {};
76
+
77
+ $(document).ready(function(){
78
+
79
+ // populate the select box
80
+ for(var i = 0; i<asciimoFonts.length; i++){
81
+ var fontTitle = asciimoFonts[i].replace('.flf','').replace('.aol',''); // remove the file extentions for the title
82
+ $('#fontSelector').append('<option value = "'+asciimoFonts[i]+'">'+fontTitle+'</option>');
83
+ }
84
+
85
+ // protip : understanding the following two blocks of code will make you jQuery ninja
86
+
87
+ /***** NAMED EVENTS *****/
88
+
89
+ // change the font and load a new font via jQuery async AJAX request
90
+ $(document).bind('##CHANGE_FONT##', function(e, data){
91
+ var font = data.fontName;
92
+ $.get('./fonts/' + font,function(rsp){
93
+ loadFont(rsp); // call asciimo API method, we can make this better. just file a support issue!
94
+ $(document).trigger('##RENDER_ASCII_ART##'); // the font has changed, lets call the render ascii art event
95
+ });
96
+ });
97
+
98
+ $(document).bind('##RENDER_ASCII_ART##', function(e){
99
+ $('#asciiArt').html('<pre>' + createLargeText($('#theCode').val()) + '</pre>');
100
+ });
101
+
102
+ /**** END NAMED EVENTS ****/
103
+
104
+ /**** BIND UI EVENTS ****/
105
+
106
+ // select box change
107
+ $('#fontSelector').change(function(){
108
+ $(document).trigger('##CHANGE_FONT##', {"fontName":$(this).val()})
109
+ });
110
+
111
+ // you would think jQuery.change() would cover the keypress event on select boxes?
112
+ $("#fontSelector").keypress(function (){
113
+ $(document).trigger('##CHANGE_FONT##', {"fontName":$(this).val()})
114
+ });
115
+
116
+ // keyup on textarea
117
+ $('#theCode').keyup(function(e){
118
+ $(document).trigger('##RENDER_ASCII_ART##');
119
+ });
120
+
121
+ $('#run').click(function(e){
122
+ $(document).trigger('##RENDER_ASCII_ART##');
123
+ });
124
+
125
+ /**** END UI BIND EVENTS ****/
126
+
127
+ // little bit of a onReady hack. i'll fix the API a bit so this can be done better
128
+ $(document).trigger('##CHANGE_FONT##', {"fontName":'Doh.flf'});
129
+ $('#fontSelector').val('Doh.flf');
130
+
131
+ });
132
+ </script>
133
+
134
+
135
+ ## Authors
136
+ #### Marak Squires
137
+ saved from the internet @ http://patorjk.com/software/taag/
@@ -0,0 +1,25 @@
1
+ /* use this file to build the font.json file based on the fonts directory */
2
+
3
+ var sys = require('sys');
4
+ var fs = require('fs');
5
+
6
+ var files = fs.readdirSync('../fonts/');
7
+
8
+ for(var i = 0; i < files.length; i++){
9
+ //sys.puts(i);
10
+ var x = fs.readFileSync('../fonts/'+files[i]);
11
+ x = x.toString();
12
+ x = x.replace('&gt;','>');
13
+ x = x.replace('&lt;','<');
14
+ }
15
+
16
+
17
+ var code = "var asciimoFonts = " + JSON.stringify(files,true," ") + ';';
18
+ fs.writeFile('../lib/fonts.js',code,function(err, data){
19
+ if(err){
20
+ sys.puts('fonts.js couldn\'t generate');
21
+ }
22
+ else{
23
+ sys.puts('fonts.js written!');
24
+ }
25
+ });
@@ -0,0 +1,28 @@
1
+ var files = fs.readdirSync('./fonts');
2
+
3
+
4
+
5
+ for(var i = 0 ; i < files.length; i ++){
6
+
7
+ try{
8
+ var x = fs.readFileSync('./fonts/'+files[i]);
9
+ //sys.puts(files[i]);
10
+
11
+
12
+ x = x.toString();
13
+ x = x.replace(/&gt;/g, '>');
14
+ x = x.replace(/&lt;/g, '<');
15
+
16
+ sys.puts(x);
17
+
18
+ fs.writeFileSync('./fonts/'+files[i],x);
19
+
20
+
21
+
22
+ }
23
+ catch(err){
24
+ //sys.puts(err);
25
+ }
26
+
27
+
28
+ }
@@ -0,0 +1,208 @@
1
+ ../../fonts/1Row.flf
2
+ flf
3
+ 10
4
+ monospace
5
+
6
+ $
7
+ 0
8
+ true
9
+ false
10
+ false
11
+ false
12
+ false
13
+ false
14
+ false
15
+ false
16
+ 95
17
+ 2
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
+ (o
63
+
64
+ \"/
65
+
66
+ {}
67
+
68
+ \"|
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+ /\\
85
+
86
+ ]3
87
+
88
+ (
89
+
90
+ |)
91
+
92
+ [-
93
+
94
+ /=
95
+
96
+ (_,
97
+
98
+ |-|
99
+
100
+ |
101
+
102
+ _T
103
+
104
+ /&lt;
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
+ &gt;&lt;
131
+
132
+ `/
133
+
134
+ ~/_
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+ /\\
149
+
150
+ ]3
151
+
152
+ (
153
+
154
+ |)
155
+
156
+ [-
157
+
158
+ /=
159
+
160
+ (_,
161
+
162
+ |-|
163
+
164
+ |
165
+
166
+ _T
167
+
168
+ /&lt;
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
+ &gt;&lt;
195
+
196
+ `/
197
+
198
+ ~/_
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <br/> 1row font by unknown<br/> =======================<br/><br/><br/>-&gt; Conversion to FigLet font by MEPH. (Part of ASCII Editor Service Pack I)<br/> (http://studenten.freepage.de/meph/ascii/ascii/editor/_index.htm)<br/>-&gt; Defined: ASCII code alphanumeric<br/>-&gt; Uppercase characters only.<br/><br/><br/>Was a part of a '1row' font collection. Author unknown.<br/><br/>