rumoji:将表情符号unicode字符编码和解码为表情符号备忘单形式

时间:2021-05-09 22:50:44
【文件属性】:
文件名称:rumoji:将表情符号unicode字符编码和解码为表情符号备忘单形式
文件大小:31KB
文件格式:ZIP
更新时间:2021-05-09 22:50:44
Ruby 留司寺 这是一个将Emoji Unicode代码点转换为所使用的人类友好代码并再次返回的工具。 你为什么想做这个? 阅读此博客文章: : tl; dr 这样,您可以确保跨设备的用户都能看到作者的意图。 您始终可以向用户显示图像,但不能向他们显示系统不支持的字符范围。 该gem主要用于处理用户生成的内容中的表情符号字符。 根据您的技术堆栈,这些字符可能最终会丢失。 用法 Rumoji.encode(str) # Takes a String, transforms Emoji into cheat-sheet codes Rumoji.encode(str) { |emoji| #your code here } # Takes a String, transforms Emoji into whatever you want Rumoji.decode(str) # Does t
【文件预览】:
rumoji-master
----.gitignore(160B)
----README.md(3KB)
----bin()
--------rumoji(168B)
----Gemfile(122B)
----rumoji.gemspec(758B)
----spec()
--------rumoji_spec.rb(6KB)
--------rumoji()
----LICENSE.txt(1KB)
----.travis.yml(81B)
----lib()
--------rumoji.rb(1015B)
--------rumoji()
----Rakefile(195B)

网友评论