Search…

X3 Photo Gallery Support Forums

Search…
 
ed_f
Experienced
Topic Author
Posts: 163
Joined: 20 Dec 2020, 11:24

automatic hyphenation?

23 Oct 2026, 13:16

where and how can I add a command for automatic hyphenation throughout my entire website (hyphens: auto)?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14505
Joined: 30 Sep 2006, 03:37

Re: automatic hyphenation?

Yesterday, 00:05

CSS Hyphens
https://developer.mozilla.org/en-US/doc ... es/hyphens

But did you include ­ (soft hyphen) in all your texts across your entire website? That is the only way the hyphen option will have any effect all all. If you have a link, I can check for reference.
 
ed_f
Experienced
Topic Author
Posts: 163
Joined: 20 Dec 2020, 11:24

Re: automatic hyphenation?

Yesterday, 04:39

I needed at one point (in one of these very long german words) to include that, about which I learned asking google. and it told me, that if I include such auto-function it could do so across my whole site according to the rules. so that was just another hallucination?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14505
Joined: 30 Sep 2006, 03:37

Re: automatic hyphenation?

Today, 01:33

ed_f wrote:I needed at one point (in one of these very long german words) to include that,
So just so I understand, you have a very long German word like "Donaudampfschifffahrtsgesellschaftskapitän", and instead of having that word entirely go onto a new line, you want it to automatically split on two lines separated by hypen - ?
ed_f wrote:and it told me, that if I include such auto-function it could do so across my whole site according to the rules. so that was just another hallucination?
Depends on what you asked. If you can show me exactly what you asked and what the AI answered, maybe I can provide some follow up information.

You can't have HTML automatically break single words into multiple lines, because how is it supposed to know where to break the word? The only way to achieve that, would be to include the hyphen directly in the word, eg "Donaudampfschiff-fahrtsgesellschaftskapitän", or include soft hyphens "­" (as explained in this link).

There is an option word-break: break-all;, but this is not automatic hyphenation. It just breaks the word in two when there is no more space, even if it's wrong. For example, the word "hippopotamus" could come out like this:

hippopotam
us
 
ed_f
Experienced
Topic Author
Posts: 163
Joined: 20 Dec 2020, 11:24

Re: automatic hyphenation?

15 minutes ago

it was something like this, but as I understand it now, it would have to be included in every page and not work once for the whole site. and yes, it would probably look worse after than before. bad idea. the single word hyphenation I already used for that word which put me on that track.