Questions tagged [soft-hyphen]
a soft hyphen or syllable hyphen, abbreviated SHY, is a code point reserved in some coded character sets for the purpose of breaking words across lines by inserting visible hyphens.
26
questions
9
votes
1
answer
707
views
In iOS 15, Soft hyphen is not working properly when using unicode character in UILabel
In iOS 15 soft hyphens (\u{00AD}) are not considered when setting text on UILabel. for example: The following code does render the text with the soft hyphen correctly in iOS 13 & 14, but not in ...
1
vote
1
answer
214
views
XPath text/replace to find text which may contain soft-hyphen
Searching for a text: Bescheinigungen my XPath should also return elements which include a soft-hyphen like: Beschei\u00ADnigungen.
I tried this:
//*[text()[replace(., "\u00AD", "")...
0
votes
0
answers
147
views
Issues on Mobile Safari Browsers with ­
Picture: How ­ adds a hyphen in safari vs chrome
The problem is the extra hyphen after the period in the red square on safari side.
There seems to be a problem with the usage of ­ in ...
2
votes
0
answers
49
views
Why does IndexOf Soft hyphen returns 0 as a string? [duplicate]
If you call IndexOf with the soft hyphen character as parameter, it will work as expected:
"aaa".IndexOf(Convert.ToChar(173)) // return -1
"aaa\u00AD".IndexOf(Convert.ToChar(173)) // return 3
...
8
votes
2
answers
1k
views
How to implement soft hyphen in Android w/ React Native Text
<Text>
Aufmerksamkeits{'\u00AD'}defizit
</Text>
This leads on iOS to
Aufmerksamkeits-
defizit
But on Android to
Aufmerksamkeitsd
efizit
So it seems that Android ignores the ...
5
votes
0
answers
320
views
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 ...
13
votes
2
answers
3k
views
Show hyphens only when necessary? (soft-hyphens doesn't cut it)
Is it possible to use hyphens, or soft-hyphens in CSS, in such a way that hyphens are not rendered unnecessarily?
My goal is to keep the original text as much as possible and break any words unless ...
3
votes
1
answer
900
views
What is normal HTML line break behavior?
I am looking for a list of caracters and elements that may break HTML lines such as whitespaces but I can't find any page on the Internet with a definition of what is the normal HTML line break ...
0
votes
0
answers
75
views
Possible to control ­ appearance?
I've discovered that there are different ways the soft hyphen can break up a word, depending on the width of the word wrapper.
The JSFiddle example shows this clearly.
The first two words (in the ...
0
votes
1
answer
861
views
Add soft hyphens in a CMS: getting it to work in Chrome
­ is awesome, especially because it works in all popular browsers. You put it in the middle of a word, which tells the browser that the word may be broken in that place. If it does get broken ...
0
votes
0
answers
251
views
Can't see Soft Hyphens on Ubuntu 14.04 when using Eclipse/Sublime Text/etc
A few days ago I've been suffering a serious issue with a Soft Hyphen hidden in my Java code in a variable name and a column name of the Entity. My OS is Ubuntu 14.04 and the only way of seeing them ...
1
vote
0
answers
586
views
display/make soft hyphen visible in html
The font I'm using have soft hyphen as a very common character in my written language and I'm required to use it for many reasons, but html for various reason I have read make them invisible which ...
0
votes
1
answer
448
views
Why the word "Com­ment" is rendered as is in Chrome? No soft hyphen
I have an html snippet:
<label class="col-xs-2 col-lg-2 control-label" for="param_comment">Com­ment</label>
and it renders as:
Com­ment
in Chrome v.29
I expected:
...
10
votes
3
answers
11k
views
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)...
2
votes
3
answers
9k
views
­ (soft hyphen) and Chrome and Safari
I have a website where I would prefer to use ­ ; (soft hyphen) to break words the way I want.
Click here for screenshot from Chrome
The problem computers run OS X (multiple versions) and the ...
0
votes
2
answers
4k
views
How to add the hyphen in html textbox?
I use the following code to create the textbox for enter the phone number in run Time .How to add hyphen(-) in between the phone Numbers.For example If I type 1234567 the entry should show like this ...
6
votes
1
answer
6k
views
Removing soft hyphens from a string
Let's say I have a string that is littered with soft hyphens (pretend that the hyphens in the text below are soft hyphens):
T-h-i-s- -i-s- -a- -t-e-s-t-.-
I want to remove the soft hyphens and only ...
31
votes
5
answers
10k
views
In HTML, is it possible to insert a word wrapping hint?
Imagine I have a long, multi-word line of text in a DIV:
Hello there, dear customer. Please have a look at our offer.
The DIV has a dynamic width. I want to word wrap the above text. Currently, ...
4
votes
2
answers
939
views
Find soft hyphens in HTML document
Let's look at following code:
$('#el').html('ex­am­ple');
Now, how can I get back that element's text with soft hyphens entities?
Both of these:
$('#el').html();
$('#el').contents()....
1
vote
1
answer
109
views
Weird issue with ­ hanging in browser
I am experiencing an extremely strange problem with IIS 7.5 on Windows Server 2008 R2 64 bit.
Any file (no matter the extension, could be .txt, .htm, .js, or anything) that has an http:// on any line,...
0
votes
1
answer
603
views
How do soft hyphens obfuscate URLs?
I just got a piece of spam with the hyperlink obscured with soft hyphens. Since I don't actually want to click on the link, how do the soft hyphens create the URL obfuscation?
For example, how would ...
1
vote
3
answers
3k
views
Looking for regex: soft hyphen or not a word character
I am looking for a regex yielding to characters which are not word-characters nor a soft hyphen (U+00AD).
This will give me characters which are not word-characters:
((?=\W).)
But what about the ...
12
votes
5
answers
8k
views
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 (...
2
votes
2
answers
844
views
display soft hyphen character in vim in Mac OS X Terminal
vim is totally confused with soft hyphen characters (0xAD) in the Mac OS X Terminal. It is not displayed, although the "virtual column" number is right, the insertion is messed up.
So if I have a ...
2
votes
2
answers
1k
views
Using ­ in Java HTML aware Component
I have following problem:
I display an HTML-Document with an JTextPane.
In my HTML-Text there are ­ (shy at w3.org) to make a soft-hyphenation.
My problem is, that no hyphenation appears. ...
174
votes
12
answers
172k
views
Soft hyphen in HTML (<wbr> vs. ­)
How do you solve the problem with soft hyphens on your web pages? In a text there can be long words which you might want to line break with a hyphen. But you do not want the hyphen to show if the ...