I suppose the latex approach is one way to make some of this easier. The document is plaintext, just some letters snd symbols and all the formatting and fonts etc is specified explicitly through typed codes. So that solves the problem of invisible boldface characters and line breaks. I always thought it bothersome how latex worked but it does make some amount of sense to separate content from presentation.
Doesn’t help with internationalization though.