EmojiAll.com網站和微信公衆号在去年推出後,搜索一直是我們的特點并且在持續改進,這是我們今年3月記錄的博客《Emoji站内搜索和微信公衆号搜索的大幅改進》,後續也還在進行一些小的修改。
這幾天微信推出了6個新表情,昨天中午還無法在手機上看到,晚上就可以了,今天在macOS的微信客戶端也看到了:
華為Mate 10 Pro上的效果:
MacBook Pro上的效果:
今天我們也很快就修改了微信公衆号搜索的程序,加入了這些新表情與Emoji的對應:
個别表情無法準确對應上Emoji,隻好用盡量接近的。😄
大家可以去掃碼關注我們的微信公衆号并搜索嘗試一下:
補充:實現的辦法也補充記錄一下:
修改Drupal中的第三方wechat模塊中的wechat.pages.inc文件:
...... //微信表情實際上是一些代碼,這裡轉為對應的漢字,以便搜索 $face_word_array = array( //2020-2-15加下面11條微信新表情 "[吃瓜]" => "吃瓜", "[加油]" => "加油", "[汗]" => "汗", "[天啊]" => "吃驚", "[Emm]" => "胡子", "[社會社會]" => "得意", "[旺柴]" => "狗", "[好的]" => "OK", "[打臉]" => "受傷", "[加油加油]" => "加油", "[哇]" => "崇拜", //2020-11-20加下面的6個新表情 "[翻白眼]" => "翻白眼", "[666]" => "666", "[讓我看看]" => "讓我看看", "[歎氣]" => "歎氣", "[苦澀]" => "苦澀", "[裂開]" => "裂開", ); //微信表情實際上是一些代碼,這裡轉為對應的Emoji,以便判斷是否多個Emoji $face_emoji_array = array( //2020-2-15加下面11條微信新表情 "[吃瓜]" => "🍉",//"吃瓜", "[加油]" => "💪",//"加油", "[汗]" => "😓",//"汗", "[天啊]" => "😱",//"吃驚", "[Emm]" => "🧔",//"胡子", "[社會社會]" => "😏",//"得意", "[旺柴]" => "🐶",//"狗", "[好的]" => "👌",//"OK", "[打臉]" => "🤕",//"受傷", "[加油加油]" => "💪",//"加油", "[哇]" => "🤩",//"崇拜", //2020-11-20加下面的6個新表情 "[翻白眼]" => "🙄",//翻白眼 "[666]" => "🤙",//666 "[讓我看看]" => "🙈",//讓我看看 "[歎氣]" => "😤",//歎氣 "[苦澀]" => "😭",//苦澀 "[裂開]" => "💔",//裂開 ); ......
這個微信公衆号的功能和網站都在持續改進中,歡迎大家訪問https://www.emojiall.com。👏
评论