Skip to content

Commit

Permalink
Space bug for some fonts {block, danc4, nvscript} fixed (#237)
Browse files Browse the repository at this point in the history
* fix : `danc4` font space problem. (#225)

* fix : `nvscript` font space problem. (#225)

* [:skull:] fix : `block` font space problem. (#225)

* log : changes logged.

* update : `CHANGELOG.md` updated.
  • Loading branch information
sadrasabouri authored Jul 2, 2023
1 parent 5be3f0d commit 16b6357
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- `__word2art` function modified
- `sapce` bug fixed
## [6.0] - 2023-06-14
### Added
- 6 new font
Expand Down
4 changes: 2 additions & 2 deletions art/art.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,9 @@ def __word2art(word, font, chr_ignore, letters, next_word, sep="\n"):
if len(word) == 0 and next_word:
return splitter
for i in word:
if (ord(i) == 9) or (ord(i) == 32 and font == "block"):
if ord(i) == 9:
continue
if (i not in letters.keys()):
if i not in letters.keys():
if (chr_ignore):
continue
else:
Expand Down
4 changes: 2 additions & 2 deletions art/text_dic1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'b': "\n .----------------. \n| .--------------. |\n| | ______ | |\n| | |_ _ \\ | |\n| | | |_) | | |\n| | | __'. | |\n| | _| |__) | | |\n| | |_______/ | |\n| | | |\n| '--------------' |\n '----------------' \n",
'<': "\n .----------------. \n| .--------------. |\n| | _ | |\n| | / / | |\n| | / / | |\n| | < < | |\n| | \\ \\ | |\n| | \\_\\ | |\n| | | |\n| '--------------' |\n '----------------' \n",
'$': '',
' ': '',
' ': "\n \n \n \n \n \n \n \n \n \n \n \n",
'8': "\n .----------------. \n| .--------------. |\n| | ____ | |\n| | .' __ '. | |\n| | | (__) | | |\n| | .`____'. | |\n| | | (____) | | |\n| | `.______.' | |\n| | | |\n| '--------------' |\n '----------------' \n",
'%': "\n .----------------. \n| .--------------. |\n| | __ | |\n| | _ / / | |\n| | (_)/ / | |\n| | / / _ | |\n| | / / (_) | |\n| | /_/ | |\n| | | |\n| '--------------' |\n '----------------' \n",
'a': "\n .----------------. \n| .--------------. |\n| | __ | |\n| | / \\ | |\n| | / /\\ \\ | |\n| | / ____ \\ | |\n| | _/ / \\ \\_ | |\n| ||____| |____|| |\n| | | |\n| '--------------' |\n '----------------' \n",
Expand Down Expand Up @@ -13420,7 +13420,7 @@
'}': u' ___ \n|_ | \n \\ \\\n _/ /\n|___| \n \n \n \n'}

danc4_dic = {
' ': u'',
' ': u' \n \n \n \n',
'$': u'',
'(': u'',
',': u'',
Expand Down
2 changes: 1 addition & 1 deletion art/text_dic2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2394,7 +2394,7 @@
'}': u' \n \n \n \n \n,gg, ,gg\nP""8b,dP" \n ,88" \n ,dP"Y8, \ndP" "Y88\n \n \n \n \n \n \n'}

nvscript_dic = {
' ': u'',
' ': u' \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n',
'$': u'',
'(': u'',
',': u'',
Expand Down

0 comments on commit 16b6357

Please sign in to comment.