# Don't brake text-based emoticons

**URL:** <https://forum.delta.chat/t/dont-brake-text-based-emoticons/374>\
**Category:** Feature Proposal\
**Created:** [April 16, 2019, 8:30pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374 "2019-04-16T20:30:52Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![adbenitez](https://forum.delta.chat/user_avatar/forum.delta.chat/adbenitez/32/2323_2.png) [@adbenitez](https://forum.delta.chat/u/adbenitez)\
**Post date:** [April 16, 2019, 8:30pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/1 "2019-04-16T20:30:53Z")

</div>

Classic emoticons are cool “8-)” DC have some of them, but the issue is that they are can be broken if the line is too long, I suggest to treat them as an unit(as a word) and if they are at the end of the line wrap the full emoticon, other wise they are broken in two parts by the change of line ("\n")

## Expected behavior

DC don’t brake emoticons, in long lines  
☜(ﾟヮﾟ☜)

## Actual behavior

DC brake emoticons, in long lines ☜(ﾟ  
ヮﾟ☜)

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [April 16, 2019, 9:53pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/2 "2019-04-16T21:53:26Z")

</div>

while this would be cool, i fear this is not that easily doable. however, maybe someone likes to try that 🙂

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [April 16, 2019, 9:59pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/3 "2019-04-16T21:59:55Z")

</div>

When we implement markdown in android we probably need to parse and structure the text in a different way anyway, so I would postpone this until then.

Discord made a lib for it: [https://github.com/discordapp/simpleast](https://github.com/discordapp/simpleast) (apache 2 license i think, maybe we can use it as reference)

---

<div class="post-metadata">

**Author:** ![adbenitez](https://forum.delta.chat/user_avatar/forum.delta.chat/adbenitez/32/2323_2.png) [@adbenitez](https://forum.delta.chat/u/adbenitez)\
**Post date:** [April 17, 2019, 12:14pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/4 "2019-04-17T12:14:42Z")

</div>

ok, this is not the big deal anyway, just something nice to have 😉  
[Schiminieee](https://support.delta.chat/u/Schiminieee) markdown? will be really nice to have that!!

---

<div class="post-metadata">

**Author:** ![Massick](https://forum.delta.chat/user_avatar/forum.delta.chat/massick/32/99_2.png) [@Massick](https://forum.delta.chat/u/Massick)\
**Post date:** [April 18, 2019, 3:42pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/5 "2019-04-18T15:42:19Z")

</div>

A little (a lot) offtopic, but we could expand the text-based emojis database too

---

<div class="post-metadata">

**Author:** ![anon93826752](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/eb9ed0/32.png) [@anon93826752](https://forum.delta.chat/u/anon93826752)\
**Post date:** [April 18, 2019, 3:50pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/6 "2019-04-18T15:50:51Z")

</div>

> [@Backwards compatible emotions :-D](https://support.delta.chat/t/backwards-compatible-emotions-d/357):
>
> Wow! That slipped me, but I stumbled with these lovely emoticons! smiley They’re backwards compatible with any non-DC MUAs. Why they’re not the first emoticons options for direct use? Would it be possible for us to add more of those, thus customizing ours own?

---

<div class="post-metadata">

**Author:** ![Massick](https://forum.delta.chat/user_avatar/forum.delta.chat/massick/32/99_2.png) [@Massick](https://forum.delta.chat/u/Massick)\
**Post date:** [April 18, 2019, 4:12pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/7 "2019-04-18T16:12:23Z")

</div>

Gboard comes with a BIG amount of this kind of emoticons

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [April 18, 2019, 7:19pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/8 "2019-04-18T19:19:26Z")

</div>

> [@anon93826752](#):
>
> non-DC MUAs. Why they’re not the first emoticons options for direct use? Would it be possible for us to add more of those, thus customizing ours own?

Unicode is also supported in most non-DC MUAs and emojis are unicode characters.

```auto
 Example: 😉

```

---

<div class="post-metadata">

**Author:** ![anon93826752](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/eb9ed0/32.png) [@anon93826752](https://forum.delta.chat/u/anon93826752)\
**Post date:** [April 19, 2019, 2:31am UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/9 "2019-04-19T02:31:47Z")

</div>

> [@Massick](#):
>
> but we could expand the text-based emojis database too

Sorry I was just show him this part “but we could expand the text-based emojis database too” of a proposition in other thread, but thanks for that reply

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [August 16, 2019, 7:14pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/10 "2019-08-16T19:14:35Z")

</div>

I think we might have an simpler solution than message parsing them (because when parsing them we need to enclose them into sth invisible, because otherwise we can’t distinguish them from normal text):  
when adding them via the internal keyboard we replace spaces by [https://en.wikipedia.org/wiki/Non-breaking\_space](https://en.wikipedia.org/wiki/Non-breaking_space) and defining positions where it shouldn’t break [https://en.wikipedia.org/wiki/Word\_joiner](https://en.wikipedia.org/wiki/Word_joiner).  
This change can be simply made in the “database” ([https://github.com/deltachat/deltachat-android/blob/91be337fb68cb75712c64a3d01b94409329af675/src/org/thoughtcrime/securesms/components/emoji/EmojiPages.java#L37](https://github.com/deltachat/deltachat-android/blob/91be337fb68cb75712c64a3d01b94409329af675/src/org/thoughtcrime/securesms/components/emoji/EmojiPages.java#L37)), shouldn’t be that much work:  
Inserting \u2060 at the places no line-break should be.

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [August 16, 2019, 7:26pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/11 "2019-08-16T19:26:59Z")

</div>

☜⁠(ﾟ⁠ヮﾟ☜) \<- @adbenitez try this one

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [September 19, 2019, 2:30pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/12 "2019-09-19T14:30:19Z")

</div>

submitted a patch for this:

> <https://github.com/deltachat/deltachat-android/pull/1035>

But in the future we should think about providing the text emoticons list from a seperate file or somehow from the core or interface repo to have these emoticons on all platforms.  
Also then we could add the wordjoiner char (\u2060) programaticaly to maybe save some space / make the emoticon source file more readable.

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 2:57pm UTC](https://forum.delta.chat/t/dont-brake-text-based-emoticons/374/13 "2026-10-06T14:57:33Z")

</div>


