Skip to content

Commit

Permalink
Merge pull request #193 from sepandhaghighi/new_fonts
Browse files Browse the repository at this point in the history
New fonts
  • Loading branch information
sadrasabouri committed Feb 20, 2022
2 parents 38bec53 + ea1136f commit b83a506
Show file tree
Hide file tree
Showing 7 changed files with 548 additions and 8 deletions.
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",
"๏ฝ”๏ฝ…๏ฝ“๏ฝ”123\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 :
๏ฝ”๏ฝ…๏ฝ“๏ฝ”
<BLANKLINE>
Expand Down

0 comments on commit b83a506

Please sign in to comment.