是否存在将ASCII表情转换为Unicode表情符号的等价表?

时间:2015-04-07 09:24:05

标签: web unicode ascii emoticons ascii-art

我想找一张表格将old school western ascii emoticons :-)转换为modern unicode equivalent☺。

你知道是否有吗?

4 个答案:

答案 0 :(得分:10)

不是每个人都同意什么是什么,但是这里有一个这样的表格映射输入ASCII-art表情符号到Unicode表情符号。这两个数据元素都是单引号,因此反斜杠和单引号都会被转义。

'o/'         => '',
'</3'        => '',
'<3'         => '',
'8-D'        => '',
'8D'         => '',
':-D'        => '',
'=-3'        => '',
'=-D'        => '',
'=3'         => '',
'=D'         => '',
'B^D'        => '',
'X-D'        => '',
'XD'         => '',
'x-D'        => '',
'xD'         => '',
':\')'       => '',
':\'-)'      => '',
':-))'       => '',
'8)'         => '',
':)'         => '',
':-)'        => '',
':3'         => '',
':D'         => '',
':]'         => '',
':^)'        => '',
':c)'        => '',
':o)'        => '',
':}'         => '',
':っ)'        => '',
'=)'         => '',
'=]'         => '',
'0:)'        => '',
'0:-)'       => '',
'0:-3'       => '',
'0:3'        => '',
'0;^)'       => '',
'O:-)'       => '',
'3:)'        => '',
'3:-)'       => '',
'}:)'        => '',
'}:-)'       => '',
'*)'         => '',
'*-)'        => '',
':-,'        => '',
';)'         => '',
';-)'        => '',
';-]'        => '',
';D'         => '',
';]'         => '',
';^)'        => '',
':-|'        => '',
':|'         => '',
':('         => '',
':-('        => '',
':-<'        => '',
':-['        => '',
':-c'        => '',
':<'         => '',
':['         => '',
':c'         => '',
':{'         => '',
':っC'        => '',
'%)'         => '',
'%-)'        => '',
':-P'        => '',
':-b'        => '',
':-p'        => '',
':-Þ'        => '',
':-þ'        => '',
':P'         => '',
':b'         => '',
':p'         => '',
':Þ'         => '',
':þ'         => '',
';('         => '',
'=p'         => '',
'X-P'        => '',
'XP'         => '',
'd:'         => '',
'x-p'        => '',
'xp'         => '',
':-||'       => '',
':@'         => '',
':-.'        => '',
':-/'        => '',
':/'         => '',
':L'         => '',
':S'         => '',
':\\'        => '',
'=/'         => '',
'=L'         => '',
'=\\'        => '',
':\'('       => '',
':\'-('      => '',
'^5'         => '',
'^<_<'       => '',
'o/\\o'      => '',
'|-O'        => '',
'|;-)'       => '',
':###..'     => '',
':-###..'    => '',
'D-\':'      => '',
'D8'         => '',
'D:'         => '',
'D:<'        => '',
'D;'         => '',
'D='         => '',
'DX'         => '',
'v.v'        => '',
'8-0'        => '',
':-O'        => '',
':-o'        => '',
':O'         => '',
':o'         => '',
'O-O'        => '',
'O_O'        => '',
'O_o'        => '',
'o-o'        => '',
'o_O'        => '',
'o_o'        => '',
':$'         => '',
'#-)'        => '',
':#'         => '',
':&'         => '',
':-#'        => '',
':-&'        => '',
':-X'        => '',
':X'         => '',
':-J'        => '',
':*'         => '',
':^*'        => '',
'ಠ_ಠ'        => '',
'*\\0/*'     => '',
'\\o/'       => '',
':>'         => '',
'>.<'        => '',
'>:('        => '',
'>:)'        => '',
'>:-)'       => '',
'>:/'        => '',
'>:O'        => '',
'>:P'        => '',
'>:['        => '',
'>:\\'       => '',
'>;)'        => '',
'>_>^'       => '',

答案 1 :(得分:2)

我使用Name是carl链接来生成这个列表:

if(document.getElementById("welcome").style.display=="block"){

答案 2 :(得分:0)

markdown-it(MIT许可证)

的代码中找到
module.exports = {
  mad:              [ '>:(', '>:-(' ], // angry
  blush:            [ ':")', ':-")' ],
  broken_heart:     [ '</3', '<\\3' ],
  // :/ & :\ disabled due conflicts, untill logic improved
  confused:         [ /*':\\',*/ ':-\\', /*':/',*/ ':-/' ], // twemoji shows question
  cry:              [ ":'(", ":'-(", ':,(', ':,-(' ],
  frowning:         [ ':(', ':-(' ],
  heart:            [ '<3' ],
  imp:              [ ']:(', ']:-(' ],
  innocent:         [ 'o:)', 'O:)', 'o:-)', 'O:-)', '0:)', '0:-)' ],
  joy:              [ ":')", ":'-)", ':,)', ':,-)', ":'D", ":'-D", ':,D', ':,-D' ],
  kissing:          [ ':*', ':-*' ],
  laughing:         [ 'x-)', 'X-)' ],
  neutral_face:     [ ':|', ':-|' ],
  open_mouth:       [ ':o', ':-o', ':O', ':-O' ],
  rage:             [ ':@', ':-@' ],
  smile:            [ ':D', ':-D' ],
  smiley:           [ ':)', ':-)' ],
  smiling_imp:      [ ']:)', ']:-)' ],
  sob:              [ ":,'(", ":,'-(", ';(', ';-(' ],
  stuck_out_tongue: [ ':P', ':-P' ],
  sunglasses:       [ '8-)', 'B-)' ],
  sweat:            [ ',:(', ',:-(' ],
  sweat_smile:      [ ',:)', ',:-)' ],
  unamused:         [ ':s', ':-S', ':z', ':-Z', ':$', ':-$' ],
  wink:             [ ';)', ';-)' ]
};

答案 3 :(得分:0)

看看 表情符号 有关ASCII表情符号的信息。 :p https://github.com/wooorm/emoticon/blob/master/index.json