Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marc-bernard-tools/abap-emoji

Emoji for ABAP
https://github.com/marc-bernard-tools/abap-emoji

abap emoji libs sap

Last synced: 8 days ago
JSON representation

Emoji for ABAP

Awesome Lists containing this project

README

        

![Version](https://img.shields.io/endpoint?url=https://shield.abap.space/version-shield-json/github/Marc-Bernard-Tools/ABAP-Emoji/src/zcl_emoji.clas.abap/c_version&label=Version&color=blue)

[![License](https://img.shields.io/github/license/Marc-Bernard-Tools/ABAP-Emoji?label=License&color=success)](LICENSE)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg?color=success)](https://github.com/Marc-Bernard-Tools/.github/blob/main/CODE_OF_CONDUCT.md)
[![REUSE Status](https://api.reuse.software/badge/github.com/Marc-Bernard-Tools/ABAP-Emoji)](https://api.reuse.software/info/github.com/Marc-Bernard-Tools/ABAP-Emoji)

# ✨ ABAP-Emoji ✨

Emoji for ABAP

Made by [Marc Bernard Tools](https://marcbernardtools.com/) giving back to the [SAP Community](https://community.sap.com/)

NO WARRANTIES, [MIT License](LICENSE)

Based on [Twitter Emoji](https://github.com/twitter/twemoji) and [Twemoji Amazing](https://github.com/SebastianAigner/twemoji-amazing) (MIT License)

## Prerequisite

HTML output with Internet connection since Emoji graphics are hosted on `https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/`.

## Installation

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

We recommend using package `$EMOJI`.

## Usage

### Emoji

Use [Twemoji Cheatsheet](https://twemoji-cheatsheet.vercel.app/) to view all supported Emoji.

To find the name of an Emoji, go to the official [Unicode Emoji List](https://unicode.org/emoji/charts/emoji-list.html). The name is based on the "CLDR short name" with spaces replaced by `-`.

Other helpful sources: [Emoji Test (Plain Text List)](https://unicode.org/Public/emoji/13.1/emoji-test.txt), [Emoji JSON](https://github.com/amio/emoji.json),
[Emoji Community Projects](https://github.com/twitter/twemoji#community-projects).

### ABAP

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

### Output

I ❤️ ABAP

```html
I ABAP
```

Note: Include [`twemoji-amazing.css`](https://github.com/mbtools/ABAP-Emoji/blob/main/css/twemoji-amazing.css) in your HTML output.

## Integrate with abapGit (Developer Version)

![image](https://github.com/mbtools/ABAP-Emoji/blob/main/img/abapGit_Emoji_Example.png?raw=true)

1. Insert one line into the following class

```abap
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.
```

2. Start transaction `SMW0` > `Binary data` > `$ABAPGIT`
3. Edit `ZABAPGIT_ICON_FONT_CSS`
4. Append [`twemoji-amazing.css`](https://github.com/mbtools/ABAP-Emoji/blob/main/css/twemoji-amazing.css) to the icon CSS and save

## Contributions

All contributions are welcome! Read our [Contribution Guidelines](CONTRIBUTING.md), fork this repo, and create a pull request.

## About

Made with :heart: in Canada

Copyright 2021 Marc Bernard

Follow [@marcfbe](https://twitter.com/marcfbe) on Twitter

MBT Logo