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:
|
||||
# https://www.dokuwiki.org/devel:smileys.conf
|
||||
return {
|
||||
# note: reverse sorted
|
||||
# note: reverse sorted so that longer smileys get matched first
|
||||
'X-(' : ':-X',
|
||||
'{X}' : ':!:',
|
||||
'{*}' : '<ubu>',
|
||||
'(./)' : u'✓',
|
||||
':))' : ':-P',
|
||||
':-))' : ':-P',
|
||||
':-?' : ':-P',
|
||||
':o' : ':-o',
|
||||
'{OK}' : ':!:',
|
||||
'{o}' : '<circ>',
|
||||
'{i}' : ':!:',
|
||||
':D' : ':-D',
|
||||
'B)' : ':-D',
|
||||
'B-)' : ':-D',
|
||||
'B)' : '8-)',
|
||||
'B-)' : '8-)',
|
||||
'{3}' : '<3>',
|
||||
'{2}' : '<2>',
|
||||
'{1}' : '<1>',
|
||||
'(!)' : ':!:',
|
||||
'/!\\' : ':!:',
|
||||
':\\' : ':-\\',
|
||||
':))' : ':-)',
|
||||
':)' : ':-)',
|
||||
':(' : ':-(',
|
||||
':-))' : ':-)',
|
||||
':-)' : ':-)',
|
||||
':-(' : ':-(',
|
||||
';)' : ';-)',
|
||||
'|)' : '|-)',
|
||||
'|)' : ':-|',
|
||||
'|-)' : ':-|',
|
||||
'>:>' : '^_^',
|
||||
'<!>' : ':!:',
|
||||
'<:(' : ':-?',
|
||||
}[text]
|
||||
except KeyError:
|
||||
return text
|
||||
|
|
Loading…
Reference in a new issue