Questions tagged [hyphenation]
190 questions
13
votes
3 answers
Can I use CSS to justify text with hyphenating words at the end of a line?
I have a div that is too narrow to text-align:justify (gaps too wide), but yet looks un-uniform when right- or left-justified, because then there is a large gap at the end of lines. Left-justified looks best, but could I use hyphenation, like in…
user1158415
13
votes
2 answers
TeX Hyphenation patterns : What do they represent
If you scroll down this page a bit, you'd see UK English hyphenation patterns like:
\patterns{ % just type if you're not using INITEX
.ab4i
.ab3ol
.ace4
.acet3
.ach4
.ac5tiva
What do these patterns like .ab4i mean?

understack
- 11,212
- 24
- 77
- 100
11
votes
6 answers
HTML: Soft hyphen () without dash?
I have a little layout problem: on a clients website, we show contact information of people in a little box. The width of that box is constrained. As it happens, there are people with very long names (this is in Germany, after all...), and the email…

Benjamin Wohlwend
- 30,958
- 11
- 90
- 100
11
votes
3 answers
Hyphenation in native iOS app
How can I activate automatic hyphenation in iOS?
I have tried to set the hyphenation factor to 1 in the attributed text options of an UILabel, however I don't get any hyphens though.

Chris
- 8,031
- 10
- 41
- 67
10
votes
1 answer
How to enable hyphenation in UITextView with non-English text?
I use paragraphStyle.hyphenationFactor = 1, but it works fine only for English text.
How to enable hyphenation in UITextView with non-English text or set locale to UITextView?

ChikabuZ
- 10,031
- 5
- 63
- 86
10
votes
4 answers
How to hide a soft hyphen () in HTML / CSS
I am trying to word-wrap an email address within a div, where otherwise it would overflow because it's too long for the div's width.
I know this issue has been covered here before (e.g. this question), but read-on, because I cover all the possible…

hazymat
- 404
- 1
- 6
- 20
9
votes
1 answer
CSS hyphenation language
Is it possible to define the language used for -webkit-hyphens:auto? Does it default to the system language?
Hyphenated in English
Hyphenated en…

hpique
- 119,096
- 131
- 338
- 476
9
votes
2 answers
How to implement soft hyphen in Android w/ React Native Text

Martin Böttcher
- 91
- 2
7
votes
4 answers
CSS hyphen throws error (invalid property value)
I want to break a text with hyphenation, but it brings an error:
It says: "Invalid property value".
But in many docs they say, that the "auto" value exists!
It should break this text with hyphenation:
I hope, that someone can help me with that!

Tim
- 245
- 3
- 6
- 18
7
votes
3 answers
How to prevent LaTeX from hyphenating words containing a dash?
I would like to globally prevent LaTeX from hyphenating 'Objective-C'. I am aware of the \hyphenation command, but I don't see how I can make use of it. If I pass 'Objective-C' to this command, the dash will be treated as a hint to hyphenate the…

BVC
- 138
- 1
- 6
7
votes
1 answer
How to force hyphenation in TextView? (character "-" on word split)
I'm using a TextView extension class which writes a String like a typewriter, character per character. It works fine but when is writing a word which not fit in the current line, it makes a annoying behaviour and deletes the non fitting workd from…

NullPointerException
- 36,107
- 79
- 222
- 382
7
votes
4 answers
CSS Hyphens Not Working in Firefox?
I am attempting to use CSS Hyphens. They work in IE 11 and Safari but does not work in Firefox properly and I am unsure why. Here is an example:
.container{
width: 16.6667%;
background:#ccc;
}
h3{
font-size: 0.95rem;
…

L84
- 45,514
- 58
- 177
- 257
6
votes
2 answers
Hyphenation in c#
I'm looking for a sample project that will perform hyphenation of text in C#. Ideally, this would be derived from the TeX hyphenation algorithm, or similar. I'm interested in English currently, although other languages may be required in the…

Ethan
- 486
- 1
- 6
- 15
6
votes
0 answers
setHyphenation and breakStrategy don't work as expected in TextView
I was trying to adding hyphenation on breaking long words in TextView. For example, I have a textView which text is "Recommendations". Because the word is too long for one line, I want to get "Recommend-" in the first line and "ation" in the second…

Junhao
- 61
- 2
5
votes
2 answers
Jetpack Compose Text Hyphenation
How do I get words to break correctly to new lines in Android with Jetpack Compose? I know the functionality from the web, where I use for such cases.
I defined string values with possible line breaks like this:…

Benjamin Lüscher
- 382
- 3
- 12