All Projects → binarywang → Java Emoji Converter

binarywang / Java Emoji Converter

Emoji转换工具,便于各种类型的客户端生成的Emoji字符串转换成另外一种格式

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Java Emoji Converter

Textformatter
Text formatting library that supports BBCode, HTML and other markup via plugins. Handles emoticons, censors words, automatically embeds media and more.
Stars: ✭ 188 (-24.5%)
Mutual labels:  emoji
Markdown It Vue
The vue lib for markdown-it.
Stars: ✭ 219 (-12.05%)
Mutual labels:  emoji
V Emoji Picker
🌟 A Lightweight and customizable package of Emoji Picker in Vue using emojis natives (unicode).
Stars: ✭ 231 (-7.23%)
Mutual labels:  emoji
Free Gophers Pack
✨ This pack of 100+ gopher pictures and elements will help you to build own design of almost anything related to Go Programming Language: presentations, posts in blogs or social media, courses, videos and many, many more.
Stars: ✭ 2,343 (+840.96%)
Mutual labels:  emoji
Streamoji
Custom emoji rendering library for iOS apps with support for GIF & still images - plug-in extension for UITextView - performance, cache ✅ - Made with 💘 by @GetStream
Stars: ✭ 215 (-13.65%)
Mutual labels:  emoji
Twitter Text
Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.
Stars: ✭ 2,627 (+955.02%)
Mutual labels:  emoji
Sharemeow
😻 text shots service
Stars: ✭ 180 (-27.71%)
Mutual labels:  emoji
Base100
base💯 - Encode your data into emoji
Stars: ✭ 244 (-2.01%)
Mutual labels:  emoji
React Native Emoji Selector
⚛️😎 Simple, customizable and theme-able Emoji selector for React Native
Stars: ✭ 217 (-12.85%)
Mutual labels:  emoji
Java China
🍡 此项目已废弃,请移步至 https://github.com/junicorn/roo
Stars: ✭ 232 (-6.83%)
Mutual labels:  emoji
Emoji Helper
A small cross-browser emoji cheatsheet extension 👍
Stars: ✭ 194 (-22.09%)
Mutual labels:  emoji
Emoji Catalog
Get access to +3500 emojis as class constants
Stars: ✭ 211 (-15.26%)
Mutual labels:  emoji
Emojisum
🙏 📎 Emoji that checksum! 🎉 💩
Stars: ✭ 230 (-7.63%)
Mutual labels:  emoji
Pino Colada
cute ndjson formatter for pino 🌲🍹
Stars: ✭ 189 (-24.1%)
Mutual labels:  emoji
React Tater
A React component to add annotations to any element on a page 🥔
Stars: ✭ 235 (-5.62%)
Mutual labels:  emoji
Emoji Search
😄 Emoji synonyms to build your own emoji-capable search engine (elasticsearch, solr)
Stars: ✭ 184 (-26.1%)
Mutual labels:  emoji
Emojipedia
MacOS X Dictionary containing Emoji and their meanings
Stars: ✭ 220 (-11.65%)
Mutual labels:  emoji
Typography
C# Font Reader (TrueType / OpenType / OpenFont / CFF / woff / woff2) , Glyphs Layout and Rendering
Stars: ✭ 246 (-1.2%)
Mutual labels:  emoji
Emoji Selector For Gnome
This extension provide a popup menu with some emojis ; clicking on an emoji copies it to the clipboard.
Stars: ✭ 239 (-4.02%)
Mutual labels:  emoji
Emoji Keyboard
Type emoji easily! Virtual keyboard-like emoji palette for Linux with lots of features.
Stars: ✭ 231 (-7.23%)
Mutual labels:  emoji

码云Gitee Github Build Status codecov Maven Central

Java Emoji Converter(Emoji 表情转换工具)

Emoji转换工具,便于各种规格客户端生成的Emoji字符串转换成另外一种格式。

A tool to convert emoji string among each type, like softbank emoji, unicode emoji, alias emoji, html emoji.

When converting softbank emoji to unicode, we utilize this file: https://raw.githubusercontent.com/googlei18n/emoji4unicode/master/data/emoji4unicode.xml

Quick Start 快速入门

Add this in your maven pom file(将以下内容加入你的maven的pom文件中):

<dependency>
  <groupId>com.github.binarywang</groupId>
  <artifactId>java-emoji-converter</artifactId>
  <version>1.0.1</version>
</dependency>

Usage (from junit test):用法(摘自单元测试代码)

private EmojiConverter emojiConverter = EmojiConverter.getInstance();

@Test
public void testToAlias() {
    String str = "  An 😃😀awesome 😃😃string with a few 😃😉emojis!";
    String alias = this.emojiConverter.toAlias(str);
    System.out.println(str);
    System.out.println("EmojiConverterTest.testToAlias()=====>");
    System.out.println(alias);
    Assert.assertEquals(
        "🙅 🙆 💑An 😃😀awesome 😃😃string with a few 😃😉emojis!",
        alias);
}

@Test
public void testToHtml() {
    String str = "  An 😀😃awesome 😃😃string with a few 😉😃emojis!";
    String result = this.emojiConverter.toHtml(str);
    System.out.println(str);
    System.out.println("EmojiConverterTest.testToHtml()=====>");
    System.out.println(result);
    Assert.assertEquals(
        "&#128581; &#128582; &#128145;An &#128512;&#128515;awesome &#128515;&#128515;string with a few &#128521;&#128515;emojis!",
        result);
}

@Test
public void testToUnicode() {
    String str = "   😃 😀 😉";
    String result = this.emojiConverter.toUnicode(str);
    System.err.println(str);
    System.err.println("EmojiConverterTest.testToUnicode()=====>");
    System.err.println(result);
    Assert.assertEquals("🙅 🙆 💑 😃 😀 😉", result);
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].