Skip to content

Marc-Bernard-Tools/ABAP-Emoji

Repository files navigation

Version

License Contributor Covenant REUSE Status

✨ ABAP-Emoji ✨

Emoji for ABAP

Made by Marc Bernard Tools giving back to the SAP Community

NO WARRANTIES, MIT License

Based on Twitter Emoji and Twemoji Amazing (MIT License)

Prerequisite

HTML output with Internet connection since Emoji graphics are hosted on https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/.

Installation

You can install ABAP Emoji using abapGit either creating a new online repository for https://github.com/Marc-Bernard-Tools/ABAP_Emoji or downloading the repository ZIP file and creating a new offline repository.

We recommend using package $EMOJI.

Usage

Emoji

Use Twemoji Cheatsheet to view all supported Emoji.

To find the name of an Emoji, go to the official Unicode Emoji List. The name is based on the "CLDR short name" with spaces replaced by -.

Other helpful sources: Emoji Test (Plain Text List), Emoji JSON, Emoji Community Projects.

ABAP

write zcl_emoji=>create( )->format_emoji( 'I :red-heart: ABAP' ).

Output

I ❤️ ABAP

I <i class="twa twa-red-heart"></i> ABAP

Note: Include twemoji-amazing.css in your HTML output.

Integrate with abapGit (Developer Version)

image

  1. Insert one line into the following class
CLASS zcl_abapgit_syntax_highlighter IMPLEMENTATION.
...
  METHOD apply_style.
...
    lv_escaped = show_hidden_chars( lv_escaped ).

    lv_escaped = zcl_emoji=>create( )->format_emoji( lv_escaped ). "<<< insert
...
  ENDMETHOD.
  1. Start transaction SMW0 > Binary data > $ABAPGIT
  2. Edit ZABAPGIT_ICON_FONT_CSS
  3. Append twemoji-amazing.css to the icon CSS and save

Contributions

All contributions are welcome! Read our Contribution Guidelines, fork this repo, and create a pull request.

About

Made with ❤️ in Canada

Copyright 2021 Marc Bernard https://marcbernardtools.com/

Follow @marcfbe on Twitter

MBT Logo