Questions tagged [hyphenation]
190 questions
3
votes
1 answer
How to prevent word breaking (hyphenation) in html div?
I am trying to display a set of words of same length in columns within a div. I am using the courrier new font. So far, so good.
However, some word contain '-', and they are broken (hyphenated) inappropriately. It breaks the layout:
Is there any…

Jérôme Verstrynge
- 57,710
- 92
- 283
- 453
3
votes
2 answers
How to split a string in x equal lines in javascript (with text justified)
I am desperately trying to split a random string into equal parts, so I can theme each of them separately. My goal is making a twisted effect for my text, but keeping the text justifying and without splitted words..
As you can see on this example, I…

Kr1
- 1,269
- 2
- 24
- 56
3
votes
1 answer
How to get ::selection to work correctly with hyphenation?
I want to style selected text differently, and I'm using ::selection to achieve that.
*::selection, *::-webkit-selection, *::-moz-selection {
background-color: #aaa;
color: #fff;
}
For typographical reasons, I'm using hyphens: auto; for…
user1203803
2
votes
3 answers
How do you unwrap hyphen and comma-separated number ranges in R? Eg 1,3,5-7 -> 1,3,5,6,7 on different rows
Hi all I wonder if someone could help me with something thats got me stuck starting out in R? Similar to this post but in R.
Essentially the opposite of the R.utils function seqToHumanReadable.
Namely
Title
LLFCs
Red
a
15, 18
11.65
b
16 &…

Neil P
- 31
- 4
2
votes
2 answers
Python regex how to insert hyphen symbol between an alphabet and a digit; and also remove hyphen in between two alphabets
I am trying to use regex to do the following in a string :
If there is a hyphen - between two alphabets, we have to remove it:
Example A-BA should be ABA; and A-B-BAB should be ABBAB
If an alphabet and a number are next to each other, then we…

Arun Kumar
- 634
- 2
- 12
- 26
2
votes
2 answers
How to hyphenate a string/text in a textarea using jQuery?
I am not able to hyphenate strings using jQuery. It seems there is no library available. I tried this link but failed. Please help if you know how to hyphenate a string in a textarea according to a textarea's width using a jQuery plugin.

bilal
- 21
- 1
- 2
2
votes
1 answer
Removing hyphens in http but preserving hyphenated words in corpus
I am trying to modify a stemming function that is able to 1) remove hyphens in http (that appeared in the corpus) but, meanwhile, 2) preserve hyphens that appeared in meaningful hyphenated expressions (e.g., time-consuming, cost-prohibitive,…

Chris T.
- 1,699
- 7
- 23
- 45
2
votes
2 answers
Remove punctuation but keep hyphenated phrases in R text cleaning
Is there any effective way to remove punctuation in text but keeping hyphenated expressions, such as "accident-prone"?
I used the following function to clean my text
clean.text = function(x)
{
# remove rt
x = gsub("rt ", "", x)
# remove at
x…

Chris T.
- 1,699
- 7
- 23
- 45
2
votes
0 answers
Word wrap or finding soft hyphens in SVG
I have a c3-chart with long labels. Using the multiline-parameter wraps the line at the end of the available space, not at the orthographically correct point. So the town name "Kroppenstedt", which is slightly too long for the line, results…

user7398455
- 111
- 1
- 8
2
votes
3 answers
How to word-wrap one column in a table, with table sized to browser window
I have a HTML table with 3 'groups' of columns, left, middle and right.
+----------------------------------+
| L-1 | L-2 | M | R1 | R2 |
+-----+-----+------------+----+----+
| x | z | aaaaaaa... | 1 | 2 |
| y | w | bbbbbbb... | …

rosenfield
- 159
- 1
- 2
- 8
2
votes
1 answer
iTextSharp and Hyphenation
In earlier versions of iTextSharp, I have incorporated hyphenation in the following way (example is for German hyphenation):
HyphenationAuto autoDE = new HyphenationAuto("de", "DR", 3, 3);
BaseFont.AddToResourceSearch(RuntimePath +…

alrts
- 338
- 5
- 12
2
votes
1 answer
Oracle Select from JSON column with hyphenated keys
Say I have the following stored in a JSON column in an Oracle database:
{
"key-with-hyphens": "value"
}
Assuming this column is called json_column in a table called my_table, then I'm trying to select the value for the "key-with-hyphens" key…

Andrew Mairose
- 10,615
- 12
- 60
- 102
2
votes
1 answer
JAVA Hyphenator using Coldfusion
I was hoping someone can help with the implementation of TeXHyphenator-J using CFML.
I am using the JavaLoader.cfc to create a ColdFusion object of TeXHyphenator-J (as in the code below). When running the code I don't get any errors and a string is…

pelfed
- 41
- 3
2
votes
1 answer
.NET core model binding with hyphenated attribute names in post request
I've subscribed to the Nexmo SMS service and they offer a callback URL for inbound SMS. The post request gives the following Json structure when notifying of SMS receipt:
{
"msisdn": "441632960960",
"to": "441632960961",
"messageId":…

vipes
- 922
- 1
- 9
- 17
2
votes
4 answers
Implode sorted number array to string with commas and merge consecutive integers into hyphenated range expressions
I would like to implode an array, but with one difference. I would like to merge intervals with a - sign. How can this be done? (The array is ordered!)
Examples:
array(1,2,3,6,8,9) => "1-3,6,8-9"
array(2,4,5,6,8,10) => "2,4-6,8,10"

Iter Ator
- 8,226
- 20
- 73
- 164