[go: nahoru, domu]

Hyphen: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Mobile edit Mobile web edit
Reverting edit(s) by 2600:1006:B176:AEC:8D01:4CAB:3CCD:8C20 (talk) to rev. 1228477698 by Noaht2: Unexplained content removal (UV 0.1.5)
 
(16 intermediate revisions by 13 users not shown)
Line 2:
{{About|the punctuation mark}}
{{Use dmy dates|date=May 2020}}
{{Infobox punctuation mark
|mark=‐|name=Hyphen
|variant1=-|caption1=Hyphen-minus
|variant2=‑|caption2=Non-breaking hyphen
}}
 
The '''hyphen''' '''{{char|‐}}''' is a [[punctuation]] mark used to join [[word]]s and to separate [[syllable]]s of a single word. The use of hyphens is called '''hyphenation'''.<ref>{{cite dictionary|url=http://dictionary.reference.com/browse/hyphen|title=''Hyphen'' Definition|dictionary=[[dictionary.com]]|access-date=18 June 2015}}</ref> ''Son-in-law'' is an example of a hyphenated word.
Line 7 ⟶ 12:
The hyphen is sometimes confused with [[dash]]es ([[en dash]] {{char|–}}, [[em dash]] {{char|—}} and others), which are wider, or with the [[minus sign]] {{char|−}}, which is also wider and usually drawn a little higher to match the crossbar in the [[plus sign]] {{char|+}}.
 
As an [[Orthography|orthographic]] concept, the hyphen is a single entity. In [[character encoding]] for use with computers, it is represented in [[Unicode]] by any of several [[character (computing)|characters]]. These include the dual-use [[hyphen-minus]], the [[soft hyphen]], the [[#Non-breakingNonbreaking hyphens|nonbreaking hyphen]], and an unambiguous form known familiarly as the "Unicode hyphen", shown at the top of the infobox on this page. The character most often used to represent a hyphen (and the one produced by the key on a keyboard) is called the "hyphen-minus" by Unicode, deriving from the original [[ASCII]] standard, where it was called "hyphen{{nbsp}}(minus)".<ref>{{cite web |title=American National Standard X3.4-1977: American Standard Code for Information Interchange | page=10 (4.2 Graphic characters) |url=https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub1-2-1977.pdf |publisher=National Institute of Standards and Technology}}</ref>
 
== Etymology ==
Line 157 ⟶ 162:
Some ([[OpenType]]) fonts will change the character at the end of a word. An example is a font that places a [[long s]], 'ſ{{nnbsp}}', everywhere ''except'' at the end of a word,{{Clarify|reason=Everywhere? Throughout each word?|date=August 2023}} where a round s, {{font|'s'|size=110%}}, is used. A soft hyphen can be used to change the previous letter to a round s in the middle of a word. For example, 'prinſeſſen' can be corrected by inserting a soft hyphen between the 'ſ{{nnbsp}}'s: 'prinſeſ-ſen' becomes 'prinſesſen' (which is correct in Norwegian).
 
In contrast, a hyphen that is always displayed and printed is called a {{Anchor|hard hyphen}}"hard hyphen". This can be a Unicode hyphen, a hyphen-minus, or a nonbreaking hyphen (see [[#Non-breakingNonbreaking hyphens|below]]). Confusingly, the term is sometimes limited to nonbreaking hyphens.{{cn|date=October 2022}}
 
=== Nonbreaking hyphens <span class="anchor" id="non-breaking hyphen"></span> <span class="anchor" id="nonbreaking hyphen"></span> <span class="anchor" id="no-break hyphen"></span>===
Line 164 ⟶ 169:
The '''non-breaking hyphen''', '''nonbreaking hyphen''', or '''no-break hyphen''' looks identical to the regular hyphen, but word processors treat it as a letter so that the hyphenated word will not be divided at the hyphen should this fall at what would be the end of a line of text; instead, either the whole hyphenated word will remain in full at the end of the line or it will go in full to the beginning of the next line. The [[nonbreaking space]] exists for similar reasons.
 
The [[word segmentation]] rules of most text systems consider a hyphen to be a [[word boundary (linguistics)|word boundary]] and a valid point at which to break a line when flowing text. However, this is not always desirable behavior, especially as it could lead to ambiguity (e.g. ''retreat'' and ''re‑treat'' would be indistinguishable with a line break after ''re''), it does not split off an ending as in "''n''&#x2011;{{nbh}}th" (though ''n''<sup>th</sup> or "''n''th" could be used), and it is inappropriate in some languages other than English (e.g., a line break at the hyphen in [[Irish language|Irish]] {{lang|ga|an t‑athair}} or [[Romanian language|Romanian]] {{lang|ro|s‑a}} would be undesirable). The nonbreaking hyphen addresses this need.
 
==="Unicode hyphen" <span class="anchor" id="Unicode hyphen"></span> ===