55import sys
66import random
77
8- version = "2.6 "
8+ version = "2.7 "
99
1010
1111description = '''ASCII art is also known as "computer text art".
@@ -140,7 +140,7 @@ class artError(Exception):
140140 "henry3d" : [henry3d_dic , False ],
141141 "horizontalleft" : [horizontalleft_dic , True ],
142142 "horizontalright" : [horizontalright_dic , True ],
143- "ICL -1900" : [ICL_1900_dic , True ],
143+ "icl -1900" : [ICL_1900_dic , True ],
144144 "impossible" : [impossible_dic , True ],
145145 "jacky" : [jacky_dic , True ],
146146 "katakana" : [katakana_dic , False ],
@@ -194,7 +194,7 @@ class artError(Exception):
194194 "alpha" : [alpha_dic , True ],
195195 "amc3liv1" : [amc3liv1_dic , True ],
196196 "ascii_new_roman" : [ascii_new_roman_dic , True ],
197- "B1FF " : [B1FF_dic , True ],
197+ "b1ff " : [B1FF_dic , True ],
198198 "dwhistled" : [dwhistled_dic , False ],
199199 "eftiwall" : [eftiwall_dic , False ],
200200 "fire_font-k" : [fire_font_k_dic , False ],
@@ -234,7 +234,37 @@ class artError(Exception):
234234 "xsansbi" : [xsansbi_dic , False ],
235235 "xsansi" : [xsansi_dic , False ],
236236 "xtimes" : [xtimes_dic , False ],
237- "xttyb" : [xttyb_dic , False ]
237+ "xttyb" : [xttyb_dic , False ],
238+ "heroboti" : [heroboti_dic , False ],
239+ "high_noo" : [high_noo_dic , False ],
240+ "hills" : [hills_dic , False ],
241+ "home_pak" : [home_pak_dic , False ],
242+ "house_of" : [house_of_dic , False ],
243+ "hypa_bal" : [hypa_bal_dic , False ],
244+ "hyper" : [hyper_dic , False ],
245+ "inc_raw" : [inc_raw_dic , False ],
246+ "italics" : [italics_dic , False ],
247+ "kgames_i" : [kgames_i_dic , False ],
248+ "4x4_offr" : [dic_4x4_offr , False ],
249+ "5x7" : [dic_5x7 , False ],
250+ "5x8" : [dic_5x8 , False ],
251+ "6x9" : [dic_6x9 , False ],
252+ "6x10" : [dic_6x10 , False ],
253+ "64f1" : [dic_64f1 , False ],
254+ "a_zooloo" : [a_zooloo_dic , False ],
255+ "asc" : [asc_dic , False ],
256+ "assalt_m" : [assalt_m_dic , False ],
257+ "asslt_m" : [asslt__m_dic , False ],
258+ "atc" : [atc_dic , False ],
259+ "atc_gran" : [atc_gran_dic , False ],
260+ "battle_s" : [battle_s_dic , False ],
261+ "battlesh" : [battlesh_dic , False ],
262+ "baz_bil" : [baz_bil_dic , False ],
263+ "beer_pub" : [beer_pub_dic , False ],
264+ "c1" : [c1_dic , False ],
265+ "c2" : [c2_dic , False ],
266+ "kik_star" : [kik_star_dic , False ],
267+ "krak_out" : [krak_out_dic , False ]
238268 }
239269font_counter = len (font_map )
240270DEFAULT_FONT = "standard"
@@ -243,32 +273,32 @@ class artError(Exception):
243273def line (char = "*" , number = 30 ):
244274 '''
245275 This function print line of chars
246- :param char: character
276+ :param char: input character
247277 :type char:str
248- :param number: number of character
278+ :param number: number of characters
249279 :return: None
250280 '''
251281 print (char * number )
252282
253283
254284def font_list (text = "test" ):
255285 '''
256- :param text : Input text
286+ This function print all Of fonts
287+ :param text : input text
257288 :type text : str
258- This Function Print All Of Fonts
259289 :return: None
260290 '''
261291 for item in sorted (list (font_map .keys ())):
262292 print (str (item ) + " : " )
263- if str (item ) in ["char4" ]:
293+ if str (item ) in ["char4" , "c2" ]:
264294 tprint (text .upper (), str (item ))
265295 else :
266296 tprint (text , str (item ))
267297
268298
269299def art_list ():
270300 '''
271- This Function Print All Of 1Line Arts
301+ This function print all Of 1-Line arts
272302 :return: None
273303 '''
274304 for i in sorted (list (art_dic .keys ())):
@@ -283,7 +313,7 @@ def art_list():
283313
284314def help_func ():
285315 '''
286- Print Help Page
316+ Print help page
287317 :return: None
288318 '''
289319 tprint ("art" )
@@ -302,7 +332,7 @@ def help_func():
302332
303333def aprint (artname , number = 1 , text = "" ):
304334 '''
305- Art Print
335+ Art print
306336 This function print ascii art
307337 :param artname: artname
308338 :type artname : str
@@ -346,7 +376,7 @@ def art(artname, number=1, text=""):
346376
347377def randart ():
348378 '''
349- This function return random 1line art
379+ This function return random 1-line art
350380 :return: ascii art as str
351381 '''
352382 return art ("random" )
@@ -380,7 +410,7 @@ def tsave(
380410 chr_ignore = True ,
381411 print_status = True ):
382412 '''
383-
413+ This function save ascii art
384414 :param text: input text
385415 :param font: input font
386416 :type font:str
@@ -389,7 +419,7 @@ def tsave(
389419 :type filename:str
390420 :param chr_ignore: ignore not supported character
391421 :type chr_ignore:bool
392- :param print_status : Save message print flag
422+ :param print_status : save message print flag
393423 :type print_status:bool
394424 :return: None
395425 '''
@@ -462,7 +492,7 @@ def text2art(text, font=DEFAULT_FONT, chr_ignore=True):
462492 :type font:str
463493 :param chr_ignore: ignore not supported character
464494 :type chr_ignore:bool
465- :return: artText as str
495+ :return: ascii art text as str
466496 '''
467497 split_list = []
468498 result_list = []
@@ -515,14 +545,14 @@ def text2art(text, font=DEFAULT_FONT, chr_ignore=True):
515545def set_default (font = DEFAULT_FONT , chr_ignore = True , filename = "art" ,
516546 print_status = True ):
517547 '''
518- This fuction change text2art tprint and tsave default values
548+ This function change text2art, tprint and tsave default values
519549 :param font: input font
520550 :type font:str
521551 :param chr_ignore: ignore not supported character
522552 :type chr_ignore:bool
523553 :param filename: output file name (only tsave)
524554 :type filename:str
525- :param print_status : Save message print flag (only tsave)
555+ :param print_status : save message print flag (only tsave)
526556 :type print_status:bool
527557 :return: None
528558 '''
0 commit comments