Unwanted break between image and surrounding text

I have a document which contains images anchored as character. I sometimes want such an image to be contained within parentheses but without the combination breaking at the end of a line, ie for the image to be treated as a character within a word. Ive tried using word joiner but that doesnt work. Is there some way i can achieve this?
Thanks
Gary
Ps lo 7.6.2.1 win 10

Basically what i dont want is for an open parenthesis to be the last character on a line or a closing parenthesis to be the first character on a line

Unfortunately when you hit “pathological” cases, line wrap goes awry, i.e. with “large” characters Writer will wrap line wherever it is possible, no longer considering “grammar”, only using basic “character” width.

There may be other possibilities but you must describe your context. As character images are part of the text and should be governed by text rules. How wide are your images: a few centimetres (similar to a character) or tens of centimetres (a “common” big image)? How do you want them to behave? Should they be kept inside the paragraph? Do you accept to send them flush to left or right margin? Does it make logically sense to keep them in their position relative to text (explain your goal)?

Attach an example.

Basically they are hieroglyphic words. Tgeir length varies from 1 character upwards but regardless of the length of the image it will break between parenthesis and image if the combination would extend beyond the right marfin whereas i would like for them to be kept together and moved to the next line. I can try to attach an example sometime if it will be helpful but the only internet access i have is on my phone so id have to prepare it and then transfer it to my phone in order to do this. That might take a while.

tdf#65323 ⁠

Have you tried to find a hieroglyphic font? Then you’ll have characters and the problem should disappear because you can use the various joiners for critical cases.

No that doesnt work as the hueroglyphs are yhen sequential rather than being atranged as the would be seen on a monument gor example.

What do you want? A cartouche? What is your requirement?

I want to have the hieroglyphs arranged as you would see them, large and tall signs generally sequential but small and flat signs generally grouped into rectangles as far as the orthography would permit.

I dont think i can do that using a standard font so i use jsesh to get the arrangements i want, and export usually as .svg files, for incorporation into a document

Is there a visible rectangle border?
If not, and only two signs over each other, you can cheat Writer by using Rubies, a feature present in Japanese where you add phonetics over a kanji character. The feature also works in any language after being enabled (it appears then in Format>Asian Phonetic Guide). This could be a solution for your small signs. Here is a quick’n’dirty test:
image


Can you provide an image of an example? Could you also recommend a freely available hieroglyphic font for an experimentation?

Interesting but i doubt it would cover all cases. Sometimes small signs are ‘tucked in’ above and/or below other signs especially bird signs, as in twt the ,‘Tut’ part of the name of Tut-ankh-Amun, and sometimes signs are stacked 3 high. I will try to sort out an example. If you are using windows the font segoe ui historic i think comes ‘built in’ has hieroglyphs, cuneiform signs and loads of others. Otherwise there’s a list of fonts at https://github.com/HieroglyphsEverywhere/Fonts/blob/master/HieroglyphicFontList.md

The attached document contains one of my images, it’s a bit of an extreme example but a real one.

I hope i’ve covered all your points

Thanks

/Gary

hiero eg.odt (58.8 KB)

Your example shows indeed complex cases. To avoid the line break issue, you could incorporate the parentheses in the image. It only adds them at both ends and you’re guaranteed they won’t split because an image is never split.

That would work if the image is the only thing in parentheses but usually there is text preceding or following, like (for example, IMAGE), and if incorporated into the image the font would be different for the opening and closing parentheses. The best i can do is incorporate manual line breaks where necessary, that works but needs manual alteration if/when the surrounding text changes

Insert a no-break space (U+00a0) after the left parenthesis and reduce its scale width to 0%.

Wouldn’t U+2060 WORD JOINER do the same thing without the need to tweak its width? It is available as Insert>Formatting Mark>Word Joiner.

There is also U+200D ZERO WIDTH JOINER. I don’t know the semantic difference between both.

No.
Also tested with U+FEFF (zero width no-break).

U+FEFF is primarily the BOM to detect endianness. It has been used erroneously as a ZWNB. Unicode has deprecated this usage and recommends instead U+2060 WJ (see ï»ż U+FEFF ZERO WIDTH NO-BREAK SPACE - Unicode Explorer).

If it does not work in Writer, implementation should be amended. When I have time, I’ll submit a bug report.

1 Like