[Suggestion][Feature request] Automatic hyphenation

I think this request belongs here, while version 3 for Windows is still in beta.
It would be really good if you could add an automatic hyphenation feature that works in the editor AND in compiling. Hunspell provides hyphenators for almost every language. I’m asking this because an Italian text justified but not hyphenated may get very ugly when too many long words go to a new line without being truncated with a hyphen, leaving the previous line with big spaces between words. So far, I have to compile a project into an .odt, open it with LibreOffice and enable hyphenation.
(If this is too much a grind, forget about it.)

1 Like

It belongs on the Wish List forum.

On the Beta download page they say.

I would argue that a good case would be made for including it here, as this is a specific feature offered by the spelling engine used exclusively within the Windows beta (the Mac and iOS versions don’t use Hunspell…) This is one of these rare edge cases where yes, it’s an extension of functionality, but it’s related to functionality already present in the beta and only in the Windows version.

1 Like

I’d like that very much,too . writing in German,which has even longer words than the Italians have.
But a long while ago, they told us that hyphnation is an internal Mac feature and they rely on that . Windows instead doesn’t have it as a built-in and therefore it would need a lot of additional work to put it into the Windows version of Scrivener.
So probably there is no hope any time soon.

I, too, compile to odt and finish the files for printing in LibreOffice. But as Scrivener is no DTP program, I think, at the end we’ll always need another progam for good-looking paper books.

1 Like

It was, as you said, long time ago. Now they rely upon Hunspell for dictionaries and spelling check in Windows beta, so I think they could add this little thing too. However, I don’t know how much an annoyance it may be for developers. This thread is just expressing a hope.
This feature in compiling may be useful if I want to compile directly to a PDF; usually I compile to LibreOffice as well.

Sadly, that probably means it’s harder to add. It might be best to see if that functionality is being added to Hunspell and/or get them to add it (or the appropriate hooks for it) so that Scrivener can then consume it.

1 Like

Hunspell is a spell checker in its core, and not a hyphenation library. Some packages do extend Hunspell with hyphenation dictionaries, but we have not found something stable and working with a good set of dictionaries in C or C++.

If someone has a reference to a good Hunspell based hyphenation library in C/C++, please let us know.

1 Like

Define “good.” :slight_smile:

Library which is already well tested and used in multiple applications with real users and having a good set of hyphenation dictionaries for the most common languages. As I already wrote, must be in C/C++.

1 Like

I’ll do some asking around.

1 Like

Hunspell? Used by LibreOffice for spelling, hyphenation, and some other stuff. Adobe InDesign CS6 also uses Hunspell hyphenation and spelling. Google Chrome; Mozilla Firefox; Adobe Illustrator; QuarkXpress; some others.

Hunspell’s official repository(ies), I think: github.com/hunspell/hyphen/tree/master

Uses TeX hyphenation patterns (for more info, see tug.org/tex-hyphen/).

As Hunspell is already used by Scrivener, you already know some of its quirks.