HTML.
HTML_ENTITY_MAP: dict
#A dictionary mapping unicode characters to their equivalent HTML entities.
HtmlFormatter
#A formatter for HTML.
Inherits BaseFormatter
.
color(text, color)
staticmethod
#Applies color
to a string of text
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | The subject text. | required |
color | Tuple[int, int, int] | The | required |
Returns:
Type | Description |
---|---|
str | The colored text. |
picharsso/format/html.py
22 23 24 | |
translate(text_matrix)
staticmethod
#Applies translatations to text_matrix
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text_matrix | numpy.ndarray | The subject text matrix, with | required |
Returns:
Type | Description |
---|---|
numpy.ndarray | The translated text_matrix. |
picharsso/format/html.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
unify(text_matrix)
staticmethod
#Formats a text_matrix
into a single string.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text_matrix | numpy.ndarray | The subject text matrix, with | required |
Returns:
Type | Description |
---|---|
str | The formatted string of text art. |
picharsso/format/html.py
42 43 44 45 46 | |