Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New fonts #193

Merged
merged 7 commits into from Feb 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,13 @@ 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]
### Added
- 5 new font
1. tarty4
2. tarty5
3. fancy138
4. fancy139
5. fancy140
### Changed
- `__word2art` function modified
## [5.4] - 2021-12-22
Expand Down
21 changes: 20 additions & 1 deletion FontList.ipynb
Expand Up @@ -38,7 +38,7 @@
{
"data": {
"text/plain": [
"615"
"620"
]
},
"execution_count": 2,
Expand Down Expand Up @@ -3902,9 +3902,18 @@
"fancy137 : \n",
"𝕿𝕰𝕾𝕿123\n",
"\n",
"fancy138 : \n",
"𝒯ℰ𝒮𝒯123\n",
"\n",
"fancy139 : \n",
"𝓣𝓔𝓢𝓣123\n",
"\n",
"fancy14 : \n",
"ȶɛֆȶ123\n",
"\n",
"fancy140 : \n",
"ⲦⲈϨⲦ123\n",
"\n",
"fancy15 : \n",
"✞ƎƧ✞123\n",
"\n",
Expand Down Expand Up @@ -4388,6 +4397,16 @@
"─░█── ░█▀▀▀ ─▀▀▀▄▄ ─░█── ─█─ ─▄▀ ──▀▄ \n",
"─░█── ░█▄▄▄ ░█▄▄▄█ ─░█── ▄█▄ █▄▄ █▄▄█ \n",
"\n",
"tarty4 : \n",
"\n",
"▀▀█▀▀ ▒█▀▀▀ ▒█▀▀▀█ ▀▀█▀▀ ▄█░ █▀█ █▀▀█ \n",
"░▒█░░ ▒█▀▀▀ ░▀▀▀▄▄ ░▒█░░ ░█░ ░▄▀ ░░▀▄ \n",
"░▒█░░ ▒█▄▄▄ ▒█▄▄▄█ ░▒█░░ ▄█▄ █▄▄ █▄▄█ \n",
"\n",
"tarty5 : \n",
"\n",
"▜▛ █☰ ▟▛ ▜▛ \n",
"\n",
"thin2 : \n",
"test123\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -7,7 +7,7 @@
</a>
<a href="https://badge.fury.io/py/art"><img src="https://badge.fury.io/py/art.svg" alt="PyPI version" height="18"></a>
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/built%20with-Python3-green.svg" alt="built with Python3" /></a>
<a href="https://github.com/sepandhaghighi/art/blob/master/FontList.ipynb"><img src="https://img.shields.io/badge/Font List-615-blue.svg"></a>
<a href="https://github.com/sepandhaghighi/art/blob/master/FontList.ipynb"><img src="https://img.shields.io/badge/Font List-620-blue.svg"></a>
<a href="https://github.com/sepandhaghighi/art/blob/master/ArtList.ipynb"><img src="https://img.shields.io/badge/Art List-710-orange.svg"></a>
<a href="https://github.com/sepandhaghighi/art/blob/master/DecorList.ipynb"><img src="https://img.shields.io/badge/Decor List-218-green.svg"></a>
<a href="https://t.me/artlib_bot" target="__blank"><img src="https://img.shields.io/badge/Telegram-Bot-red.svg"></a>
Expand Down Expand Up @@ -65,7 +65,7 @@ ART is a Python lib for text converting to ASCII art fancy. ;-)
</tr>
<tr>
<td align="center">Font Counter</td>
<td align="center">615</td>
<td align="center">620</td>
</tr>
<tr>
<td align="center">1-Line-Art Counter</td>
Expand Down
16 changes: 13 additions & 3 deletions art/art_param.py
Expand Up @@ -790,6 +790,9 @@
"fancy135",
"fancy136",
"fancy137",
"fancy138",
"fancy139",
"fancy140",
"foxy",
"white_square",
"black_square",
Expand Down Expand Up @@ -876,7 +879,9 @@
"instagram",
"tarty1",
"tarty2",
"tarty3"]
"tarty3",
"tarty4",
"tarty5"]

RANDOM_FILTERED_FONTS = [
'5x8',
Expand All @@ -897,7 +902,7 @@
'moscow',
'dwhistled'] + NON_ASCII_FONTS

MIX_FILTERED_FONTS = ["tarty1", "tarty2", "tarty3"]
MIX_FILTERED_FONTS = ["tarty1", "tarty2", "tarty3", "tarty4", "tarty5"]

DESCRIPTION = '''ASCII art is also known as "computer text art".
It involves the smart placement of typed special characters or
Expand Down Expand Up @@ -1464,9 +1469,14 @@
"fancy135": [fancy135_dic, False],
"fancy136": [fancy136_dic, False],
"fancy137": [fancy137_dic, False],
"fancy138": [fancy138_dic, False],
"fancy139": [fancy139_dic, False],
"fancy140": [fancy140_dic, False],
"tarty1": [tarty1_dic, False],
"tarty2": [tarty2_dic, False],
"tarty3": [tarty3_dic, False]
"tarty3": [tarty3_dic, False],
"tarty4": [tarty4_dic, False],
"tarty5": [tarty5_dic, False]
}

DECORATIONS_MAP = {"angry1": angry1, # pragma: no cover
Expand Down
4 changes: 2 additions & 2 deletions art/test.py
Expand Up @@ -4405,11 +4405,11 @@
>>> random.seed(3)
>>> Art = art("random")
>>> random.seed(40)
>>> Text = text2art("test","random")
>>> Text = text2art("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~0123456789","random")
>>> random.seed(55)
>>> Art3 = randart()
>>> random.seed(19)
>>> Text2 = text2art("test","random")
>>> Text2 = text2art("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~0123456789","random")
>>> random.seed(39)
>>> Art2 = art("random")
>>> random.seed(119)
Expand Down
19 changes: 19 additions & 0 deletions art/test2.py
Expand Up @@ -232,9 +232,18 @@
fancy137 :
𝖙𝖊𝖘𝖙
<BLANKLINE>
fancy138 :
𝓉ℯ𝓈𝓉
<BLANKLINE>
fancy139 :
𝓽𝓮𝓼𝓽
<BLANKLINE>
fancy14 :
ȶɛֆȶ
<BLANKLINE>
fancy140 :
ⲧⲉ𝛓ⲧ
<BLANKLINE>
fancy15 :
✞ƎƧ✞
<BLANKLINE>
Expand Down Expand Up @@ -718,6 +727,16 @@
──█── █▀▀ ▀▀█ ──█──
──▀── ▀▀▀ ▀▀▀ ──▀──
<BLANKLINE>
tarty4 :
<BLANKLINE>
▀▀█▀▀ █▀▀ █▀▀ ▀▀█▀▀
░░█░░ █▀▀ ▀▀█ ░░█░░
░░▀░░ ▀▀▀ ▀▀▀ ░░▀░░
<BLANKLINE>
tarty5 :
<BLANKLINE>
▜▛ █☰ ▟▛ ▜▛ 
<BLANKLINE>
thin2 :
test
<BLANKLINE>
Expand Down