problem

)(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO )(-ELLO

solution

)⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO )⁠(-⁠ELLO

(hopefully those are wide enough to wrap for you)

There is a unicode character (U+2060 WORD JOINER) which instructs applications not to split two characters apart under any circumstances. I wrote a simple program to insert them into text automatically: https://codeberg.org/Mycellf/wordjoin

It only puts them where needed, thanks to icu_segmenter, a Rust library made by the Unicode Consortium: https://crates.io/crates/icu_segmenter

Let me know if you need any help compiling it/using a terminal.

  • jjj (moved)@lemmy.blahaj.zoneOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 months ago

    No, this is for an mspfa, etc. It works for text formatting in general, however, which is why I showed it over here.

    It always bugged me that certain characters’ words would get split at the end of the line, most frustratingly with Feferi/Meenah, since the )( and -E combinations get split right down the middle when wrapping. The program I wrote inserts word joiners )<here>(, -<here>E, and between any other combination of characters that are allowed to be split when wrapping, such as !<here>a.

    You can see it working in my mspfa here:
    https://mspfa.com/?s=62374&p=34 (obligatory spoiler warning but if you haven’t read the rest you’ll probably forget about it after)

    (in particular it prevents “You Highb!⁠oods” from splitting after the “!”)

      • jjj@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        20 days ago

        I posted about one of its panels, but I’ll probably make a dedicated post for Failbent now that you mention it.

        Also I should probably get around to updating… The MSPA reader is (probably not) getting restless. (also I (possibly maybe maybe not?) did the Jester Quest thing first lol)

        Also also I’m on piefed now

    • Seigest@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      Ah thanks for the context. Though I am a bit clueless on mspfa hopefully someone will come along and know the answers.