Questions tagged [hyphenation]

190 questions
5
votes
0 answers

Why is hyphenation not working with lang en

What is wrong with this code that hyphenations don't work for lang="en"? h1 { font-size: 2em; hyphens: auto; } div { max-width:200px; background: aqua; }

Kindofverylongheadlineevenbiggerthanimagined

5
votes
1 answer

iOS Hyphenation with TextKit and justified text

Good day everyone. I have a problem with displaying hyphenated justified text using TextKit with a textview. I've tried to make hyphenation through paragraph style and NSLayoutManager, but without expected results. Paragraph style example: let…
Igor Prusyazhnyuk
  • 133
  • 2
  • 14
  • 29
5
votes
1 answer

Replace all hyphen types by the ascii hyphen "-"

Is there a way to replace all types of hyphens by the simple ASCII '-'? I am looking for something like this that works for spaces: txt = re.sub(r'[\s]+',' ',txt) I believe that some non-ASCII '-' hyphens are avoiding the correct process of…
DanielTheRocketMan
  • 3,199
  • 5
  • 36
  • 65
5
votes
0 answers

TextView hyphenation below API 23

In API 23 TextView hyphenates text correctly: longwooord\u00AD1231232131 is correctly split from the \u00AD char resulting in longwooord- and 1231232131 on the next line. However for API 21 \u00AD is just ignored and word is split where it reaches…
Kaarel Purde
  • 409
  • 1
  • 5
  • 12
4
votes
4 answers

Enforce Hyphens in .NET MVC 4.0 URL Structure

I'm looking specifically for a way to automatically hyphenate CamelCase actions and views. That is, I'm hoping I don't have to actually rename my views or add decorators to every ActionResult in the site. So far, I've been using…
jedmao
  • 10,224
  • 11
  • 59
  • 65
4
votes
2 answers

Word has not enough space in single line

I have an TextView with a big fontsize and if I have a long word only the last char is put into the next line. For example : Zusammenarbei t Now I would like to format the text to look like this: Zusammenarb - t Is there a possibility to achive…
4
votes
2 answers

Chrome doesn't respect Zero Width Joiner

If I create a text, where I got a dash at the start of a word (very common in German language), Google Chrome sets the hyphen at the end of the line and the word at the start of the next line. This is the wrong behavior. It should be the hyphen and…
yunzen
  • 32,854
  • 11
  • 73
  • 106
4
votes
2 answers

Hyphenation for different languages with java

The problem : Given a string (which can be in different language) we have to hyphenate it. What i tried : hypenator-j but this seems to be working only for English, I'm not sure how to hyphenate other languages, couldn't find free tex files for…
vach
  • 10,571
  • 12
  • 68
  • 106
4
votes
1 answer

How to optimize hyphenation

I'm struggling with the different ways browsers handle hyphenation for justified text from line to line. I have the following css settings for my text: text-align: justify; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto; hyphens:…
Tom
  • 1,836
  • 4
  • 16
  • 30
4
votes
1 answer

Is there a pure-CSS hack to activate “text-align: justify” only if the browser supports “hyphens: auto”?

The browser support for hyphens: auto is still a bit lacking, even for English, but I would like to provide it already to my visitors using Firefox. If the browser does not support it, however, the gaps in the justified text are unseemly wide, and I…
Dawn Drescher
  • 901
  • 11
  • 17
4
votes
3 answers

How to prevent css auto hyphenation for email addresses

I use CSS hyphenation (hyphens:auto;) for text paragraphs on websites. Sometimes it happens that email addresses are hyphenated resulting in a 'wrong' domain name. Example: john.doe@planungsteam.abc becomes john.doe@planungs- team.abc How would I…
Christoph
  • 543
  • 1
  • 7
  • 20
4
votes
3 answers

Reduce array of month names by creating hyphenated expressions from consecutive months

I have an array like: Array ( [0] => Jan [1] => Feb [2] => Mar [3] => Apr [4] => May [5] => Jun [6] => Sep [7] => Oct [8] => Dec ) I need to convert it to Array ( [0] => "Jan - Jun" [1] => "Sep - Oct" …
Bluemagica
  • 5,000
  • 12
  • 47
  • 73
4
votes
0 answers

How to prevent PDFBox from splitting words with hyphen

I'm using PDFBox version 1.7.0 to extract text from a PDF. The classes were compiled to .NET using IKVM.NET. I'm using the following code, where I pass in the name and path to the file: public static String PDFText(String PDFFilePath) { …
CodeMann
  • 157
  • 9
4
votes
1 answer

HTML element attribute names with hyphens are auto-converted to camelcase

I'm building a custom AngularJS directive to create a google map, and I've stored some of the google map options in custom attributes within my tag: Angular's directive compile method has parameters…
Jakob Jingleheimer
  • 30,952
  • 27
  • 76
  • 126
4
votes
1 answer

solr 3.6.1 splitting word boundaries at a dash

We have a trouble ticket format of numerics divided by a dash i.e., n-nnnnnnn The link http://lucidworks.lucidimagination.com/display/solr/Tokenizers (in the sections on Standard Tokenizer and Classic Tokenizer) implies that both before and after…
user1840253
  • 91
  • 1
  • 7
1 2
3
12 13