Source code for domonic.constants.entities
"""
domonic.constants.entities
====================================
"""
class Entity:
# __slots__ = ('entity',)
def __init__(self, entity: str) -> None:
self.entity = entity
def __str__(self) -> str:
import html
return html.unescape(self.character)
[docs]class Char:
def __init__(self, character: str) -> None:
self.character = character
def __str__(self) -> str:
import html
return html.escape(self.character)
# def __repr__(self):
# return self.character
# web
# ASCII Characters (Printable)
SPACE: str = " "
EXCLAMATION_MARK: str = "!" #: !
QUOTATION_MARK: str = """ #: "
NUMBER_SIGN: str = "#" #: #
DOLLAR_SIGN: str = "$" #: $
PERCENT_SIGN: str = "%" #: %
AMPERSAND: str = "&" #: &
APOSTROPHE: str = "'" #: '
OPENING_PARENTHESIS: str = "(" #: (
LEFT_PARENTHESIS: str = "(" #: (
CLOSING_PARENTHESIS: str = ")" #: )
RIGHT_PARENTHESIS: str = ")" #: )
ASTERISK: str = "*" #: *
PLUS_SIGN: str = "+" #: +
COMMA: str = "," #: ,
HYPHEN: str = "-" #: -
PERIOD: str = "." #: .
SLASH: str = "/" #: /
ZERO: str = "0" #: 0
ONE: str = "1" #: 1
TWO: str = "2" #: 2
THREE: str = "3" #: 3
FOUR: str = "4" #: 4
FIVE: str = "5" #: 5
SIX: str = "6" #: 6
SEVEN: str = "7" #: 7
EIGHT: str = "8" #: 8
NINE: str = "9" #: 9
COLON: str = ":" #: :
SEMICOLON: str = ";" #: ;
LESS_THAN: str = "<" #: <
EQUALS_SIGN: str = "=" # :: str =
GREATER_THAN: str = ">" #: >
QUESTION_MARK: str = "?" #: ?
AT_SIGN: str = "@" #: @
UPPERCASE_A: str = "A" #: A
UPPERCASE_B: str = "B" #: B
UPPERCASE_C: str = "C" #: C
UPPERCASE_D: str = "D" #: D
UPPERCASE_E: str = "E" #: E
UPPERCASE_F: str = "F" #: F
UPPERCASE_G: str = "G" #: G
UPPERCASE_H: str = "H" #: H
UPPERCASE_I: str = "I" #: I
UPPERCASE_J: str = "J" #: J
UPPERCASE_K: str = "K" #: K
UPPERCASE_L: str = "L" #: L
UPPERCASE_M: str = "M" #: M
UPPERCASE_N: str = "N" #: N
UPPERCASE_O: str = "O" #: O
UPPERCASE_P: str = "P" #: P
UPPERCASE_Q: str = "Q" #: Q
UPPERCASE_R: str = "R" #: R
UPPERCASE_S: str = "S" #: S
UPPERCASE_T: str = "T" #: T
UPPERCASE_U: str = "U" #: U
UPPERCASE_V: str = "V" #: V
UPPERCASE_W: str = "W" #: W
UPPERCASE_X: str = "X" #: X
UPPERCASE_Y: str = "Y" #: Y
UPPERCASE_Z: str = "Z" #: Z
OPENING_SQUARE_BRACKET: str = "[" #: [
BACKSLASH: str = "\" #: \
CLOSING_SQUARE_BRACKET: str = "]" #: ]
CARET: str = "^" #: ^
UNDERSCORE: str = "_" #: _
GRAVE_ACCENT: str = "`" #:
LOWERCASE_A: str = "a" #: a
LOWERCASE_B: str = "b" #: b
LOWERCASE_C: str = "c" #: c
LOWERCASE_D: str = "d" #: d
LOWERCASE_E: str = "e" #: e
LOWERCASE_F: str = "f" #: f
LOWERCASE_G: str = "g" #: g
LOWERCASE_H: str = "h" #: h
LOWERCASE_I: str = "i" #: i
LOWERCASE_J: str = "j" #: j
LOWERCASE_K: str = "k" #: k
LOWERCASE_L: str = "l" #: l
LOWERCASE_M: str = "m" #: m
LOWERCASE_N: str = "n" #: n
LOWERCASE_O: str = "o" #: o
LOWERCASE_P: str = "p" #: p
LOWERCASE_Q: str = "q" #: q
LOWERCASE_R: str = "r" #: r
LOWERCASE_S: str = "s" #: s
LOWERCASE_T: str = "t" #: t
LOWERCASE_U: str = "u" #: u
LOWERCASE_V: str = "v" #: v
LOWERCASE_W: str = "w" #: w
LOWERCASE_X: str = "x" #: x
LOWERCASE_Y: str = "y" #: y
LOWERCASE_Z: str = "z" #: z
OPENING_CURLY_BRACE: str = "{" #: {
LEFT_CURLY_BRACE: str = "{" #: {
VERTICAL_BAR: str = "|" #: |
CLOSING_CURLY_BRACE: str = "}" #: }
RIGHT_CURLY_BRACE: str = "}" #: }
TILDE: str = "~" #: ~
# ISO-8859-1 Characters
AGRAVE: str = "À" #: À
AACUTE: str = "Á" #: Á
ACIRC: str = "Â" #: Â
ATILDE: str = "Ã" #: Ã
AUML: str = "Ä" #: Ä
ARING: str = "Å" #: Å
AELIG: str = "Æ" #: Æ
CCEDIL: str = "Ç" #: Ç
EGRAVE: str = "È" #: È
EACUTE: str = "É" #: É
ECIRC: str = "Ê" #: Ê
EUML: str = "Ë" #: Ë
IGRAVE: str = "Ì" #: Ì
IACUTE: str = "Í" #: Í
ICIRC: str = "Î" #: Î
IUML: str = "Ï" #: Ï
ETH: str = "Ð" #: Ð
NTILDE: str = "Ñ" #: Ñ
OGRAVE: str = "Ò" #: Ò
OACUTE: str = "Ó" #: Ó
OCIRC: str = "Ô" #: Ô
OTILDE: str = "Õ" #: Õ
OUML: str = "Ö" #: Ö
OSLASH: str = "Ø" #: Ø
UGRAVE: str = "Ù" #: Ù
UACUTE: str = "Ú" #: Ú
UCIRC: str = "Û" #: Û
UUML: str = "Ü" #: Ü
YACUTE: str = "Ý" #: Ý
THORN: str = "Þ" #: Þ
SZLIG: str = "ß" #: ß
AGRAVE: str = "à" #: à
AACUTE: str = "á" #: á
ACIRC: str = "â" #: â
ATILDE: str = "ã" #: ã
AUML: str = "ä" #: ä
ARING: str = "å" #: å
AELIG: str = "æ" #: æ
CCEDIL: str = "ç" #: ç
EGRAVE: str = "è" #: è
EACUTE: str = "é" #: é
ECIRC: str = "ê" #: ê
EUML: str = "ë" #: ë
IGRAVE: str = "ì" #: ì
IACUTE: str = "í" #: í
ICIRC: str = "î" #: î
IUML: str = "ï" #: ï
ETH: str = "ð" #: ð
NTILDE: str = "ñ" #: ñ
OGRAVE: str = "ò" #: ò
OACUTE: str = "ó" #: ó
OCIRC: str = "ô" #: ô
OTILDE: str = "õ" #: õ
OUML: str = "ö" #: ö
OSLASH: str = "ø" #: ø
UGRAVE: str = "ù" #: ù
UACUTE: str = "ú" #: ú
UCIRC: str = "û" #: û
UUML: str = "ü" #: ü
YACUTE: str = "ý" #: ý
THORN: str = "þ" #: þ
YUML: str = "ÿ" #: ÿ
# ISO-8859-1 Symbols
NBSP: str = " " #:
IEXCL: str = "¡" #: ¡
CENT: str = "¢" #: ¢
POUND: str = "£" #: £
CURREN: str = "¤" #: ¤
YEN: str = "¥" #: ¥
BRVBAR: str = "¦" #: ¦
SECT: str = "§" #: §
UML: str = "¨" #: ¨
COPY: str = "©" #: ©
COPYRIGHT: str = "©" #: ©
ORDF: str = "ª" #: ª
LAQUO: str = "«" #: «
NOT: str = "¬" #: ¬
# ­ ­ Soft hyphen
REG: str = "®" #: ®
MACR: str = "¯" #: ¯
DEG: str = "°" #: °
PLUSMN: str = "±" #: ±
SUP2: str = "²" #: ²
SUP3: str = "³" #: ³
ACUTE: str = "´" #: ´
MICRO: str = "µ" #: µ
PARA: str = "¶" #: ¶
CEDIL: str = "¸" #: ¸
SUP1: str = "¹" #: ¹
ORDM: str = "º" #: º
RAQUO: str = "»" #: »
FRAC14: str = "¼" #: ¼
FRAC12: str = "½" #: ½
FRAC34: str = "¾" #: ¾
IQUEST: str = "¿" #: ¿
TIMES: str = "×" #: ×
DIVIDE: str = "÷" #: ÷
# Math Symbols
FORALL: str = "∀" #: ∀
PART: str = "∂" #: ∂
EXIST: str = "∃" #: ∃
EMPTY: str = "∅" #: ∅
NABLA: str = "∇" #: ∇
ISIN: str = "∈" #: ∈
NOTIN: str = "∉" #: ∉
NI: str = "∋" #: ∋
PROD: str = "∏" #: ∏
SUM: str = "∑" #: ∑
MINUS: str = "−" #: −
LOWAST: str = "∗" #: ∗
RADIC: str = "√" #: √
PROP: str = "∝" #: ∝
INFIN: str = "∞" #: ∞
ANG: str = "∠" #: ∠
AND: str = "∧" #: ∧
OR: str = "∨" #: ∨
CAP: str = "∩" #: ∩
CUP: str = "∪" #: ∪
INT: str = "∫" #: ∫
THERE4: str = "∴" #: ∴
SIM: str = "∼" #: ∼
CONG: str = "≅" #: ≅
ASYMP: str = "≈" #: ≈
NE: str = "≠" #: ≠
EQUIV: str = "≡" #: ≡
LE: str = "≤" #: ≤
GE: str = "≥" #: ≥
SUB: str = "⊂" #: ⊂
SUP: str = "⊃" #: ⊃
NSUB: str = "⊄" #: ⊄
SUBE: str = "⊆" #: ⊆
SUPE: str = "⊇" #: ⊇
OPLUS: str = "⊕" #: ⊕
OTIMES: str = "⊗" #: ⊗
PERP: str = "⊥" #: ⊥
SDOT: str = "⋅" #: ⋅
# Greek Letters
ALPHA: str = "Α" #: Α
BETA: str = "Β" #: Β
GAMMA: str = "Γ" #: Γ
DELTA: str = "Δ" #: Δ
EPSILON: str = "Ε" #: Ε
ZETA: str = "Ζ" #: Ζ
ETA: str = "Η" #: Η
THETA: str = "Θ" #: Θ
IOTA: str = "Ι" #: Ι
KAPPA: str = "Κ" #: Κ
LAMBDA: str = "Λ" #: Λ
MU: str = "Μ" #: Μ
NU: str = "Ν" #: Ν
XI: str = "Ξ" #: Ξ
OMICRON: str = "Ο" #: Ο
PI: str = "Π" #: Π
RHO: str = "Ρ" #: Ρ
SIGMA: str = "Σ" #: Σ
TAU: str = "Τ" #: Τ
UPSILON: str = "Υ" #: Υ
PHI: str = "Φ" #: Φ
CHI: str = "Χ" #: Χ
PSI: str = "Ψ" #: Ψ
OMEGA: str = "Ω" #: Ω
ALPHA: str = "α" #: α
BETA: str = "β" #: β
GAMMA: str = "γ" #: γ
DELTA: str = "δ" #: δ
EPSILON: str = "ε" #: ε
ZETA: str = "ζ" #: ζ
ETA: str = "η" #: η
THETA: str = "θ" #: θ
IOTA: str = "ι" #: ι
KAPPA: str = "κ" #: κ
LAMBDA: str = "λ" #: λ
MU: str = "μ" #: μ
NU: str = "ν" #: ν
XI: str = "ξ" #: ξ
OMICRON: str = "ο" #: ο
PI: str = "π" #: π
RHO: str = "ρ" #: ρ
SIGMAF: str = "ς" #: ς
SIGMA: str = "σ" #: σ
TAU: str = "τ" #: τ
UPSILON: str = "υ" #: υ
PHI: str = "φ" #: φ
CHI: str = "χ" #: χ
PSI: str = "ψ" #: ψ
OMEGA: str = "ω" #: ω
THETASYM: str = "ϑ" #: ϑ
UPSIH: str = "ϒ" #: ϒ
PIV: str = "ϖ" #: ϖ
OELIG: str = "Œ" #: Œ
oeLIG: str = "œ" #: œ
SCARON: str = "Š" #: Š
Scaron: str = "Š" #: Š
scaron: str = "š" #: š
YUML: str = "Ÿ" #: Ÿ
FNOF: str = "ƒ" #: ƒ
CIRC: str = "ˆ" #: ˆ
TILDE: str = "˜" #: ˜
#     En space
#     Em space
#     Thin space
# ‌ ‌ Zero width non-joiner
# ‍ ‍ Zero width joiner
# ‎ ‎ Left-to-right mark
# ‏ ‏ Right-to-left mark
NDASH: str = "–" #: –
MDASH: str = "—" #: —
LSQUO: str = "‘" #: ‘
RSQUO: str = "’" #: ’
SBQUO: str = "‚" #: ‚
LDQUO: str = "“" #: “
RDQUO: str = "”" #: ”
BDQUO: str = "„" #: „
DAGGER: str = "†" #: †
DAGGER: str = "‡" #: ‡
BULL: str = "•" #: •
HELLIP: str = "…" #: …
PERMIL: str = "‰" #: ‰
PRIME: str = "′" #: ′
PRIME: str = "″" #: ″
LSAQUO: str = "‹" #: ‹
RSAQUO: str = "›" #: ›
OLINE: str = "‾" #: ‾
EURO: str = "€" #: €
TRADE: str = "™" #: ™
TRADEMARK: str = "™" #: ™
# ARROWS
LARR: str = "←" #: ←
LEFT: str = "←" #: ←
UARR: str = "↑" #: ↑
UP: str = "↑" #: ↑
RARR: str = "→" #: →
RIGHT: str = "→" #: →
DARR: str = "↓" #: ↓
DOWN: str = "↓" #: ↓
HARR: str = "↔" #: ↔
CRARR: str = "↵" #: ↵
LCEIL: str = "⌈" #: ⌈
RCEIL: str = "⌉" #: ⌉
LFLOOR: str = "⌊" #: ⌊
RFLOOR: str = "⌋" #: ⌋
LOZ: str = "◊" #: ◊
SPADES: str = "♠" #: ♠
CLUBS: str = "♣" #: ♣
HEARTS: str = "♥" #: ♥
DIAMS: str = "♦" #: ♦
DIAMONDS: str = "♦" #: ♦
SUNG: str = "♪" #: ♪
FLAT: str = "♭" #: ♭
NATUR: str = "♮" #: ♮
NATURAL: str = "♮" #: ♮
SHARP: str = "♯" #: ♯
CHECK: str = "✓" #: ✓
CHECKMARK: str = "✓" #: ✓
TICK: str = "✓" #: ✓
CROSS: str = "✗" #: ✗
OHM: str = "Ω" #: Ω
MHO: str = "℧" #: ℧
FRAC13: str = "⅓" #: ⅓
FRAC23: str = "⅔" #: ⅔
FRAC15: str = "⅕" #: ⅕
FRAC25: str = "⅖" #: ⅖
FRAC35: str = "⅗" #: ⅗
FRAC45: str = "⅘" #: ⅘
FRAC16: str = "⅙" #: ⅙
FRAC56: str = "⅚" #: ⅚
FRAC18: str = "⅛" #: ⅛
FRAC38: str = "⅜" #: ⅜
FRAC58: str = "⅝" #: ⅝
FRAC78: str = "⅞" #: ⅞
STAR: str = "☆" #: ☆
STARF: str = "★" #: ★
BIGSTAR: str = "★"
PHONE: str = "☎" #: ☎
FEMALE: str = "♀" #: ♀
MALE: str = "♂" #: ♂