GithubHelp home page GithubHelp logo

retextjs / retext-emoji Goto Github PK

View Code? Open in Web Editor NEW
34.0 7.0 3.0 306 KB

plugin to support emoji, gemoji, and emoticons

Home Page: https://retextjs.github.io/retext-emoji

License: MIT License

JavaScript 100.00%
retext retext-plugin natural-language emoji gemoji emoticon

retext-emoji's People

Contributors

greenkeeperio-bot avatar wooorm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

retext-emoji's Issues

Demo is not parsing all flags

Submitting the following to the demo page:

๐Ÿ‡ฌ๐Ÿ‡ง
๐Ÿ‡ป๐Ÿ‡ณ
๐Ÿ‡ซ๐Ÿ‡ท
๐Ÿ‡น๐Ÿ‡ญ
๐Ÿ‡ด๐Ÿ‡ฒ
๐Ÿ‡จ๐Ÿ‡ฆ

Results in:

:uk:
๐Ÿ‡ป๐Ÿ‡ณ
:fr:
๐Ÿ‡น๐Ÿ‡ญ
๐Ÿ‡ด๐Ÿ‡ฒ
๐Ÿ‡จ๐Ÿ‡ฆ

All the input flags are listed as supported by gemoji

Options is totally not optional

Running without {convert:'encode'} (and decode) as options does not do anything, despite mentioning its optional in docs. Looks like ThrowError, which is already there could be used.

Cant parse man shrugging ๐Ÿคทโ€โ™‚

I tried used retect-emoji and gemoji to take parsing the unicode to shortcode. unfortunately for the 2 unicode like man_shrugging or woman_student. it is failed to load properly. please refer to imaage attached. May i know how to deal with 2 unicode to parse as 1 emoji?
image

Several emojis not being converted to unicode

  • Speaking_head does not get converted to emoji. I see just :speaking_head: instead of ๐Ÿ—ฃ
  • No_entry produces the following error, if used โ›”๏ธ :
TypeError: Cannot read property 'names' of undefined
    at visitor (retext-emoji/index.js:109:22)

Not decoding when there is no space between encoded emojis

It is like Issue #4, but with encoded emojis:

retext()
    .use(emoji, { convert: 'decode' })
    .processSync('Crying ๐Ÿ˜ข ๐Ÿ˜ข')
    .toString();

Results in Crying :cry: :cry:. Nice ๐Ÿ‘

But:

retext()
    .use(emoji, { convert: 'decode' })
    .processSync('Crying ๐Ÿ˜ข๐Ÿ˜ข')
    .toString();

Results in Crying ๐Ÿ˜ข๐Ÿ˜ข

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.