more smileys map from the perl code
https://www.dokuwiki.org/tips:moinmoin2doku?rev=1348331879#perl
This commit is contained in:
parent
972503ea8c
commit
3295f0bd90
1 changed files with 33 additions and 14 deletions
|
@ -305,20 +305,39 @@ class Formatter(FormatterBase):
|
||||||
try:
|
try:
|
||||||
# https://www.dokuwiki.org/devel:smileys.conf
|
# https://www.dokuwiki.org/devel:smileys.conf
|
||||||
return {
|
return {
|
||||||
# note: reverse sorted
|
# note: reverse sorted so that longer smileys get matched first
|
||||||
|
'X-(' : ':-X',
|
||||||
|
'{X}' : ':!:',
|
||||||
|
'{*}' : '<ubu>',
|
||||||
'(./)' : u'✓',
|
'(./)' : u'✓',
|
||||||
|
':))' : ':-P',
|
||||||
|
':-))' : ':-P',
|
||||||
|
':-?' : ':-P',
|
||||||
':o' : ':-o',
|
':o' : ':-o',
|
||||||
|
'{OK}' : ':!:',
|
||||||
|
'{o}' : '<circ>',
|
||||||
|
'{i}' : ':!:',
|
||||||
':D' : ':-D',
|
':D' : ':-D',
|
||||||
'B)' : ':-D',
|
'B)' : '8-)',
|
||||||
'B-)' : ':-D',
|
'B-)' : '8-)',
|
||||||
|
'{3}' : '<3>',
|
||||||
|
'{2}' : '<2>',
|
||||||
|
'{1}' : '<1>',
|
||||||
|
'(!)' : ':!:',
|
||||||
|
'/!\\' : ':!:',
|
||||||
':\\' : ':-\\',
|
':\\' : ':-\\',
|
||||||
':))' : ':-)',
|
':))' : ':-)',
|
||||||
':)' : ':-)',
|
':)' : ':-)',
|
||||||
':(' : ':-(',
|
':(' : ':-(',
|
||||||
':-))' : ':-)',
|
':-))' : ':-)',
|
||||||
|
':-)' : ':-)',
|
||||||
|
':-(' : ':-(',
|
||||||
';)' : ';-)',
|
';)' : ';-)',
|
||||||
'|)' : '|-)',
|
'|)' : ':-|',
|
||||||
|
'|-)' : ':-|',
|
||||||
|
'>:>' : '^_^',
|
||||||
'<!>' : ':!:',
|
'<!>' : ':!:',
|
||||||
|
'<:(' : ':-?',
|
||||||
}[text]
|
}[text]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return text
|
return text
|
||||||
|
|
Loading…
Reference in a new issue