irregular-expressions icon indicating copy to clipboard operation
irregular-expressions copied to clipboard

Add empty Character

Open defini-tiv opened this issue 4 years ago • 3 comments

Problem: In some styles (e.g. 𝓉𝒽𝒾𝓈) chars are longer to the right than the actuel character border. This results in a cutted letter in some cases(e.g. in the whatsapp status or even the "style priview- coosing- bar" in the keyboard itself) Screenshot_20210309-164958_Fennec

Solution: Add the Char U+2800 to the keyboard. It is blank and gives the opportunity to insert it after the text manually if the last char is cutted, so it isnt. Maybe it would fit after longprssing the period?

defini-tiv avatar Mar 09 '21 15:03 defini-tiv

Good Suggestion!

Is there a particular reason why you suggested this character? (U+2800 BRAILLE PATTERN BLANK) Because if a plain space works too, this could just be added into a tips section within settings.

Another option to insert this character could be double tapping spacebar (with custom intervall time).


Implementation Suggestion

  1. »Fixes & Enhancements« section in settings.
  2. Subsection: Prevent cut text styles
  3. Introductory Text: »In some scenarios, text styles like 𝒯𝒽𝒾𝓈 𝒪𝓃ℯ get cut at the end due to having characters which expand beyond the border of the character box. To prevent this, you can assign a key action here to insert a special space character.«

-» Drop-down menu or something of the sort.

BUT: This isn't needed if a simple space can do the job just as well.

NA0341 avatar Jan 07 '23 15:01 NA0341

Trailing spaces are often cutted of. (E.g. whatsapp status) Other characters like the suggested won't.

defini-tiv avatar Jan 09 '23 03:01 defini-tiv

Recommend (instead of U+2800, which is not a Unicode space character) to use 1 of

  • [ ] U+00A0 (Non-Breaking Space)
  • [ ] U+200{2↔9} (characters from the Unicode space block)
  • [ ] U+E0020 (Tag Space)

to not run afoul of various sanitizers for security purposes.

TPS avatar Feb 16 '24 11:02 TPS