mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 04:27:58 +01:00
add $X$ for $\$ crossing $/$
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
ce1d99f3cb
commit
5bb6879117
10 changed files with 17 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
||||||
/:/
|
/:/
|
||||||
\:\
|
\:\
|
||||||
|
X:X
|
||||||
|
|
||||||
n:_
|
n:_
|
||||||
:
|
:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/:o
|
/:o
|
||||||
\:o
|
\:o
|
||||||
|
X:o
|
||||||
|
|
||||||
n:_
|
n:_
|
||||||
:
|
:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/:/
|
/:/
|
||||||
\:\
|
\:\
|
||||||
|
X:X
|
||||||
|
|
||||||
n:_
|
n:_
|
||||||
s:-
|
s:-
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/:o
|
/:o
|
||||||
\:o
|
\:o
|
||||||
|
X:o
|
||||||
|
|
||||||
n:_
|
n:_
|
||||||
s:-
|
s:-
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/:/
|
/:/
|
||||||
\:\
|
\:\
|
||||||
|
X:X
|
||||||
|
|
||||||
n:─
|
n:─
|
||||||
:
|
:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/:╱
|
/:╱
|
||||||
\:╲
|
\:╲
|
||||||
|
X:╳
|
||||||
|
|
||||||
n:─
|
n:─
|
||||||
:
|
:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/:╱
|
/:╱
|
||||||
\:╲
|
\:╲
|
||||||
|
X:╳
|
||||||
|
|
||||||
n:─
|
n:─
|
||||||
:
|
:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/:o
|
/:o
|
||||||
\:o
|
\:o
|
||||||
|
X:o
|
||||||
|
|
||||||
n:⁀
|
n:⁀
|
||||||
s:‿
|
s:‿
|
||||||
|
|
|
@ -69,7 +69,8 @@ class Backend():
|
||||||
|
|
||||||
if self.balloon is not None:
|
if self.balloon is not None:
|
||||||
self.link = {'\\' : linkcolour + self.balloon.link,
|
self.link = {'\\' : linkcolour + self.balloon.link,
|
||||||
'/' : linkcolour + self.balloon.linkmirror}
|
'/' : linkcolour + self.balloon.linkmirror,
|
||||||
|
'X' : linkcolour + self.balloon.linkcross}
|
||||||
else:
|
else:
|
||||||
self.link = {}
|
self.link = {}
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ class Balloon():
|
||||||
|
|
||||||
@param link:str The \-directional balloon line character
|
@param link:str The \-directional balloon line character
|
||||||
@param linkmirror:str The /-directional balloon line character
|
@param linkmirror:str The /-directional balloon line character
|
||||||
|
@param linkcross:str The /-directional balloon crossing a \-driectional ballonon line character
|
||||||
@param ww:str See the info manual
|
@param ww:str See the info manual
|
||||||
@param ee:str See the info manual
|
@param ee:str See the info manual
|
||||||
@param nw:list<str> See the info manual
|
@param nw:list<str> See the info manual
|
||||||
|
@ -62,8 +63,8 @@ class Balloon():
|
||||||
@param w:str See the info manual
|
@param w:str See the info manual
|
||||||
@param nww:str See the info manual
|
@param nww:str See the info manual
|
||||||
'''
|
'''
|
||||||
def __init__(self, link, linkmirror, ww, ee, nw, nnw, n, nne, ne, nee, e, see, se, sse, s, ssw, sw, sww, w, nww):
|
def __init__(self, link, linkmirror, linkcross, ww, ee, nw, nnw, n, nne, ne, nee, e, see, se, sse, s, ssw, sw, sww, w, nww):
|
||||||
(self.link, self.linkmirror) = (link, linkmirror)
|
(self.link, self.linkmirror, self.linkcross) = (link, linkmirror, linkcross)
|
||||||
(self.ww, self.ee) = (ww, ee)
|
(self.ww, self.ee) = (ww, ee)
|
||||||
(self.nw, self.ne, self.se, self.sw) = (nw, ne, se, sw)
|
(self.nw, self.ne, self.se, self.sw) = (nw, ne, se, sw)
|
||||||
(self.nnw, self.n, self.nne) = (nnw, n, nne)
|
(self.nnw, self.n, self.nne) = (nnw, n, nne)
|
||||||
|
@ -144,12 +145,12 @@ class Balloon():
|
||||||
## Use default balloon if none is specified
|
## Use default balloon if none is specified
|
||||||
if balloonfile is None:
|
if balloonfile is None:
|
||||||
if isthink:
|
if isthink:
|
||||||
return Balloon('o', 'o', '( ', ' )', [' _'], ['_'], ['_'], ['_'], ['_ '], ' )', ' )', ' )', ['- '], ['-'], ['-'], ['-'], [' -'], '( ', '( ', '( ')
|
return Balloon('o', 'o', 'o', '( ', ' )', [' _'], ['_'], ['_'], ['_'], ['_ '], ' )', ' )', ' )', ['- '], ['-'], ['-'], ['-'], [' -'], '( ', '( ', '( ')
|
||||||
return Balloon('\\', '/', '< ', ' >', [' _'], ['_'], ['_'], ['_'], ['_ '], ' \\', ' |', ' /', ['- '], ['-'], ['-'], ['-'], [' -'], '\\ ', '| ', '/ ')
|
return Balloon('\\', '/', 'X', '< ', ' >', [' _'], ['_'], ['_'], ['_'], ['_ '], ' \\', ' |', ' /', ['- '], ['-'], ['-'], ['-'], [' -'], '\\ ', '| ', '/ ')
|
||||||
|
|
||||||
## Initialise map for balloon parts
|
## Initialise map for balloon parts
|
||||||
map = {}
|
map = {}
|
||||||
for elem in ('\\', '/', 'ww', 'ee', 'nw', 'nnw', 'n', 'nne', 'ne', 'nee', 'e', 'see', 'se', 'sse', 's', 'ssw', 'sw', 'sww', 'w', 'nww'):
|
for elem in ('\\', '/', 'X', 'ww', 'ee', 'nw', 'nnw', 'n', 'nne', 'ne', 'nee', 'e', 'see', 'se', 'sse', 's', 'ssw', 'sw', 'sww', 'w', 'nww'):
|
||||||
map[elem] = []
|
map[elem] = []
|
||||||
|
|
||||||
## Read all lines in the balloon file
|
## Read all lines in the balloon file
|
||||||
|
@ -169,7 +170,7 @@ class Balloon():
|
||||||
map[last].append(value)
|
map[last].append(value)
|
||||||
|
|
||||||
## Return the balloon
|
## Return the balloon
|
||||||
return Balloon(map['\\'][0], map['/'][0], map['ww'][0], map['ee'][0], map['nw'], map['nnw'], map['n'],
|
return Balloon(map['\\'][0], map['/'][0], map['X'][0], map['ww'][0], map['ee'][0], map['nw'], map['nnw'], map['n'],
|
||||||
map['nne'], map['ne'], map['nee'][0], map['e'][0], map['see'][0], map['se'], map['sse'],
|
map['nne'], map['ne'], map['nee'][0], map['e'][0], map['see'][0], map['se'], map['sse'],
|
||||||
map['s'], map['ssw'], map['sw'], map['sww'][0], map['w'][0], map['nww'][0])
|
map['s'], map['ssw'], map['sw'], map['sww'][0], map['w'][0], map['nww'][0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue