请输入您要查询的百科知识:

 

词条 Semicolon
释义

  1. History

  2. English

      Constraints    Usage  

  3. Other languages

      Arabic    Greek, Church Slavonic    French  

  4. Literature

  5. Encoding in digital media

  6. Computing usage

      Programming    Data  

  7. Mathematics

  8. Other uses

  9. References

     General 

  10. Further reading

{{Redirect-synonym|;|Greek question mark}}{{Punctuation marks|;|variant1=؛|caption1=Arabic semi colon|variant2=፤|caption2=Ethiopic semicolon|variant3=꛶|caption3=Bamum semicolon}}

The semicolon or semi colon[1] (;) is a punctuation mark that separates major sentence elements. A semicolon can be used between two closely related independent clauses, provided they are not already joined by a coordinating conjunction. Semicolons can also be used in place of commas to separate items in a list, particularly when the elements of that list contain commas.[2]

History

The first printed semicolon was the work of the Italian printer Aldus Manutius the Elder in 1494.[3] Manutius established the practice of using the semicolon to separate words of opposed meaning and to allow a rapid change in direction in connecting interdependent statements.[4] Ben Jonson was the first notable English writer to use the semicolon systematically.[5] The modern uses of the semicolon relate either to the listing of items or to the linking of related clauses.

English

Although terminal marks (i.e. full stops, exclamation marks, and question marks) mark the end of a sentence, the comma, semicolon and colon are normally sentence-internal, making them secondary boundary marks. The semicolon falls between terminal marks and the comma; its strength is equal to that of the colon.[6]

Constraints

  1. When a semicolon marks the left boundary of a constituent (e.g. the beginning of a clause or a phrase), the right boundary is marked by punctuation of equal or greater strength.
  2. When two or more semicolons are used within a single construction, all constituents are at the same level, unlike commas, which can separate, for example, subordinate clauses from main clauses.

Usage

Semicolons are followed by a lower case letter, unless that letter would ordinarily be capitalized mid-sentence (e.g., the word "I", acronyms/initialisms, or proper nouns). Modern style guides recommend no space before them and one space after. They also typically recommend placing semicolons outside ending quotation marks, although this was not always the case. For example, the first edition of the Chicago Manual of Style (1906) recommended placing the semicolon inside ending quotation marks.[7]

Applications of the semicolon in English include:

  • Between items in a series or listing containing internal punctuation, especially parenthetic commas, where the semicolons function as serial commas:
    • The people present were Jamie, a man from New Zealand; John, the milkman's son; and George, a gaunt kind of man with no friends.
    • Several fast food restaurants can be found within the following cities: London, England; Paris, France; Dublin, Ireland; Madrid, Spain.
    • Here are three examples of familiar sequences: one, two, and three; a, b, and c; first, second, and third.
    • (Fig. 8; see also plates in Harley 1941, 1950; Schwab 1947).
  • Between closely related independent clauses not conjoined with a coordinating conjunction, when the two clauses are balanced, opposed or contradictory:[8]
    • My wife would like tea; I would prefer coffee.
    • I went to the basketball court; I was told it was closed for cleaning.
    • I told Kate she's running for the hills; I wonder if she knew I was joking.

Either clause may include commas; this is especially common when parallel wording is omitted from the second:

  • Ted has two dogs; Sam, one.
  • When a comma replaces a period (full stop) in a quotation, or when a quotation otherwise links two independent sentences:
    • "I have no use for this," he said; "you are welcome to it."
    • "Is this your book?" she asked; "I found it on the floor."[9]

Other languages

Arabic

In Arabic, the semicolon is called Fasila Manqoota ({{lang-ar|فاصلة منقوطة}}) which means literally "a dotted comma", and is written inverted ( ؛ ). In Arabic, the semicolon has several uses:

  • It can be used between two phrases, in which the first phrase causes the second.
    • Example: "He played much; so, his clothes became dirty". ({{lang-ar|لقد لعب كثيرًا؛ فاتسخت ملابسه.}}), ({{lang-eng|He played a lot;}})
  • It can be used between two phrases, where the second is a reason for the first.
    • Example: "Your sister did not get high marks; because she didn't study". ({{lang-ar|لم تحقق أختك درجات عالية؛ لأنها لم تدرس .}}), ({{lang-eng|Your sister did not achieve high grades; she did not study}})

Greek, Church Slavonic

In Greek and Church Slavonic, a semicolon indicates a question, similar to a Latin question mark.[3] To indicate a long pause or separate sections, each with commas (the semicolon's purpose in English), Greek uses, but extremely rarely, the "άνω τελεία", an interpunct ( · ).

Church Slavonic example: гдѣ єсть рождeйсѧ царь їудeйскій; (Where is the one who is born king of the Jews? - Matthew 2:1)

French

In French, a semicolon (point-virgule, literally 'dot-comma') is a separation between two full sentences, used where either a colon or a comma would not be appropriate. The phrase following a semicolon has to be an independent clause, which is related to the previous one (but not explaining it, contrary to a sentence introduced by a colon).

The dash character is used in French writing too, but not as widely as the semicolon. Usage of these devices (semicolon and dash) varies from author to author.

Literature

{{Quote box
| quote="Just as there are writers who worship the semicolon, there are other high stylists who dismiss it – who label it, if you please, middle-class."
| source = Lynne Truss, Eats, Shoots, and Leaves.[10]
| width = 27%
| align = right
| style = padding:8px;
}}

Some authors have spurned the semicolon throughout their works. Lynne Truss stated that "Samuel Beckett spliced his way merrily through such novels as Molloy and Malone Dies, thumbing his nose at the semicolon all the way," "James Joyce preferred the colon, as he thought it was more authentically classical; P. G. Wodehouse did an effortlessly marvelous job without it; George Orwell tried to avoid the semicolon completely in Coming Up for Air, (1939);" "Martin Amis included just one semicolon in Money (1984);" and "Umberto Eco was congratulated by an academic reader for using no semicolons in The Name of the Rose (1983)."[11] In response to Truss, Ben MacIntyre, columnist in The Times (London), wrote: "Americans have long regarded the semi-colon with suspicion, as a genteel, self-conscious, neither-one-thing-nor-the other sort of punctuation mark, with neither the butchness of a full colon nor the flighty promiscuity of the comma. Hemingway and Chandler and Stephen King wouldn’t be seen dead in a ditch with a semi-colon (though Truman Capote might). Real men, goes the unwritten rule of American punctuation, don’t use semi-colons."[12] In A Man Without a Country, Kurt Vonnegut writes that semicolons are "transvestite hermaphrodites representing absolutely nothing. All they do is show you've been to college."[13]

Encoding in digital media

Scripts comprising wide characters, such as kanji, use a full-width equivalent, , located at Unicode code point U+FF1B (fullwidth semicolon).

Unicode characters are allocated for:

  • {{unichar|003B|Semicolon|dec=}} - same as the EBCDIC semicolon character is 94 or 0x5E.
  • {{unichar|061B|Arabic semicolon}} - Arabic script
  • {{unichar|204F|Reversed semicolon}} - used in old writing systems, such as Hungarian Runic[14]
  • {{unichar|1364|Ethiopic semicolon}} - Ge'ez script
  • {{unichar|A6F6|Bamum semicolon}} - Bamum script
  • {{unichar|FF1B|Fullwidth semicolon}} - for use in wide-character scripts such as kanji
  • {{unichar|FE14|PRESENTATION FORM FOR VERTICAL SEMICOLON}} - determines orientation when wide-character scripts are written vertically instead of horizontally
  • {{unichar|FE54|SMALL SEMICOLON}} - Small Form Variants are for compatibility with Chinese National Standard CNS 11643
  • {{unichar|236E|APL FUNCTIONAL SYMBOL SEMICOLON UNDERBAR}} - used in the APL programming language
  • {{unichar|2E35|TURNED SEMICOLON}} - "indicates sudden glottal closure"
  • {{unichar|E003B|TAG SEMICOLON}} - deprecated tags block

Related characters:

  • {{unichar|037E|GREEK QUESTION MARK|nlink=Greek question mark}}

Computing usage

{{See also|Colon (punctuation)#Computing}}

Programming

In computer programming, the semicolon is often used to separate multiple statements (for example, in Perl, Pascal, PL/I, and SQL; see Pascal: Semicolons as statement separators). In other languages, semicolons are called terminators[15] and are required after every statement (such as in Java, and the C family). Today semicolons as terminators has largely won out, but this was a divisive issue in programming languages from the 1960s into the 1980s.[16] An influential and frequently-cited study in this debate was {{harvtxt|Gannon|Horning|1975}}, which concluded strongly in favor of semicolon as a terminator:

{{quote
|The most important [result] was that having a semicolon as a statement terminator was better than having a semicolon as a statement separator.[17]}}

The study has been criticized as flawed by proponents of semicolon as a separator,[18] due to participants being familiar with a semicolon-as-terminator language and unrealistically strict grammar. Nevertheless, the debate ended in favor of semicolon as terminator. Therefore, semicolon provides structure to the programming language.

Semicolons are optional in a number of languages, including BCPL, Eiffel, and Go, meaning that they are part of the formal grammar for the language, but can be inferred in many or all contexts (e.g. by end of line that ends a statement (in Go)). As languages can be designed without them, semicolons are considered an unnecessary nuisance by some.[18]

The use of semicolons in control flow structures and blocks of code is varied  – semicolons are generally omitted after a closing brace, but included for a single statement branch of a control structure (the "then" clause), except in Pascal, where a semicolon terminates the entire if...then...else clause (to avoid dangling else) and thus is not allowed between a "then" and the corresponding "else", as this causes unnesting.

This use originates with ALGOL 60, and falls between the comma (,) – used as a list separator – and the period/full stop (.) – used to mark the end of the program. The semicolon, as a mark separating statements, corresponds to the ordinary English usage of separating independent clauses, and gives the entire program the gross syntax of a single ordinary sentence. Of these other characters, whereas commas have continued to be widely used in programming for lists (and rare other uses, such as the comma operator that separates expressions in C), they are rarely used otherwise, and the period as the end of the program has fallen out of use. The last major use of the comma, semicolon, and period hierarchy is in Erlang (1986), where commas separate expressions; semicolons separate clauses, both for control flow and for function clauses; and periods terminate statements, such as function definitions or module attributes, not the entire program. Drawbacks of having multiple different separators or terminators (compared to a single terminator and single grouping, as in semicolon-and-braces) include mental overhead in selecting punctuation, and overhead in rearranging code, as this requires not only moving lines around, but also updating the punctuation.[19]

In some cases the distinction between a separator and a terminator is strong, such as early versions of Pascal, where a final semicolon yields a syntax error. In other cases a final semicolon is treated either as optional syntax, or as being followed by a null statement, which is either ignored or treated as a NOP (no operation or null command); compare trailing commas in lists. In some cases a blank statement is allowed, allowing a sequence of semicolons or the use of a semicolon by itself as the body of a control flow structure. For example, a blank statement (a semicolon by itself) stands for a NOP in C/C++, which is useful in busy waiting synchronization loops.

APL uses semicolons to separate declarations of local variables, and to separate axes when indexing multi-dimensional arrays, for example matrix[2;3].

Other languages (for instance, some assembly languages and LISP dialects, CONFIG.SYS and INI files) use semicolons to mark the beginning of comments.

Example C code:

int main() {

  int x, y;  x = 1; y = 2;  printf("X + Y = %d", x + y);  return 0;

}

Conventionally, in many languages, each statement is written on a separate line, but this is not typically a requirement of the language. In the above example, two statements are placed on the same line; this is legal, because the semicolon separates the two statements. Thus programming languages like Java, the C family, Javascript etc. use semicolons to obtain a proper structure in the respective languages.

Data

The semicolon is often used to separate elements of a string of text. For example, multiple e-mail addresses in the "To" field in some e-mail clients have to be delimited by a semicolon.

In Microsoft Excel, the semicolon is used as a list separator, especially in cases where the decimal separator is a comma, such as 0,32; 3,14; 4,50, instead of 0.32, 3.14, 4.50.

In MATLAB and GNU Octave, the semicolon can be used as a row separator when defining a vector or matrix (whereas a comma separates the columns within a row of a vector or matrix) or to execute a command silently, without displaying the resulting output value in the console.

In HTML, a semicolon is used to terminate a character entity reference, either named or numeric.

In some delimiter-separated values file formats, the semicolon is used as the separator character, as an alternative to comma-separated values.

Mathematics

In the argument list of a mathematical function , a semicolon may be used to separate variables from fixed parameters.{{citation needed|date=December 2014}}

In differential geometry, a semicolon preceding an index is used to indicate the covariant derivative of a function with respect to the coordinate associated with that index.

Other uses

The semicolon is commonly used as parts of emoticons, in order to indicate winking and/or crying.

Project Semicolon is the name of a faith-based anti-suicide initiative (since the semicolon continues a sentence rather than ending it) which has led to the punctuation mark becoming a highly symbolic and popular tattoo,[20] which is most commonly done on the wrist.

The Humphrey point is sometimes used instead of a decimal point in duodecimal numbers.

There is much Scratch culture around the semicolon.{{cn|date=February 2019}}

References

1. ^{{cite web|url=http://www.bbc.co.uk/worldservice/learningenglish/grammar/learnit/learnitv55.shtml|title=Learning English – BBC World Service|work=bbc.co.uk}}
2. ^{{cite web | url=http://www.grammarcamp.com/learning-english-grammar-2/ | title=Learning English Grammar: How to Correctly Use a Semicolon | author=Scribendi.com | accessdate=30 July 2014 | deadurl=yes | archiveurl=https://web.archive.org/web/20140808053114/http://www.grammarcamp.com/learning-english-grammar-2/ | archivedate=8 August 2014 | df= }}
3. ^{{cite book |title= Eats, Shoots & Leaves: The Zero Tolerance Approach to Punctuation|last= Truss|first= Lynn|year= 2004|publisher= Gotham Books|location= New York|isbn= 1-59240-087-6|page=111}}
4. ^{{cite book | last = Truss | first = Lynne | authorlink = Lynne Truss | title = Eats, Shoots & Leaves | year = 2003 | page = 77 | isbn = 1-59240-087-6}}
5. ^{{Cite book|url=https://books.google.com/books?id=dnLnBwAAQBAJ&q=%22Jonson%22|title=On the Dot: The Speck That Changed the World|last=Humez|first=Alexander|last2=Humez|first2=Nicholas|date=2008-10-02|publisher=Oxford University Press|isbn=9780190295943|language=en}}
6. ^The Cambridge Grammar of the English Language, Chapter 19, § 7.
7. ^{{cite web |url= http://typedesk.com/2011/02/15/chicago-manual-of-style-16th-edition-2 |title= Chicago Manual of Style, 16th Edition |first= David|last= Spencer|date= 15 February 2011|work= Type Desk|publisher= Matador |accessdate= 16 March 2011}}
8. ^{{cite web|url=https://owl.english.purdue.edu/owl/resource/607/04/|title=Purdue OWL: Commas|work=purdue.edu}}
9. ^A period (full stop) may also be used here* "I have no use for this," he said. "You are welcome to it."* "Is this your book?" she asked. "I found it on the floor."
10. ^{{cite book |title= Eats, Shoots & Leaves: The Zero Tolerance Approach to Punctuation|last= Truss|first= Lynn|year= 2004|publisher= Gotham Books|location= New York|isbn= 1-59240-087-6|page=107}}
11. ^{{cite book |title= Eats, Shoots & Leaves: The Zero Tolerance Approach to Punctuation|last= Truss|first= Lynn|year= 2004|publisher= Gotham Books|location= New York|isbn= 1-59240-087-6|pages=88, 108–109}}
12. ^{{cite news|last=MacIntyre|first=Ben|title=Is it worth busting your (Lynne) truss over a comma with a hat on?|url=http://entertainment.timesonline.co.uk/tol/arts_and_entertainment/books/article591397.ece|newspaper=The Times|location= London|date=19 November 2005}}
13. ^{{cite book|last1=Vonnegut|first1=Kurt|title=A Man Without A Country|date=2006|publisher=Bloomsbury|location=London, U.K.|isbn=0747584060|oclc=494234841|page=23}}
14. ^http://std.dkuug.dk/jtc1/sc2/wg2/docs/n3664.pdf
15. ^{{cite web| accessdate = 2011-07-29| first = H.| last = Mössenböck| location = www.uni-linz.ac.at| page = 34| publisher = University of Linz, Austria| title = Introduction to C# - The new language for Microsoft .NET| type=subtitle: Statements| quote = Empty statement: ; // ; is a terminator, not a separator| url = http://ssw.jku.at/Teaching/Lectures/CSharp/Tutorial/Part1.pdf}}
16. ^{{cite book| title = Object-Oriented Software Construction| first = Bertrand| last = Meyer| authorlink = Bertrand Meyer| page = [https://books.google.com/books?ei=7eZ7VKGWM4friQK6xICIAg&id=xls_AQAAIAAJ&dq=semicolon 897]| edition = Second| year = 1997| isbn = 978-0-13-629155-8}}
17. ^Software Metrics: An Analysis and Evaluation, 1981, [https://books.google.com/books?id=9dNw2_RYNLYC&q=semicolon#v=snippet 324]
18. ^{{cite techreport| title = Principles of language design and evolution| url = http://se.ethz.ch/~meyer/publications/hoare/evolution.pdf| first = Bertrand| last = Meyer| authorlink = Bertrand Meyer}}
19. ^What Sucks About Erlang, Damien Katz, 9 March 2008
20. ^{{cite web | url=http://www.huffingtonpost.com/2015/07/07/project-semicolon-tattoos_n_7745358.html | title=RELIGION Global Semicolon Tattoo Trend Is A Sign Of Strength Among Faithful Individuals Dealing With Mental Health Problems | work=The Huffington Post | date=7 July 2016 | accessdate=2016-10-02 | author=Steyer, Carly}}

General

{{refbegin}}
  • {{Cite conference| doi = 10.1145/800027.808420| title = The impact of language design on the production of reliable software| work = Proceedings of the international conference on Reliable software| pages = 10–22 | year = 1975| last1 = Gannon | first1 = J. D.| last2 = Horning | first2 = J. J.|ref=harv}}
  • {{cite book|last=Hacker|first=Diana |year=2002|title=The Bedford Handbook |edition=6th|location=Boston|publisher=Bedford/St. Martin's|ISBN=0-312-41281-9}}
{{refend}}

Further reading

  • {{Cite news |last=Roberts |first=Sam |date=19 February 2008 |origyear=18 February 2008 |title=Delegating the Semicolon in a Most Unlikely Location |url=https://www.nytimes.com/2008/02/18/nyregion/18semicolon.html |work=The New York Times |page=B3 [as "Celebrating the Semicolon in a Most Unlikely Location"] |access-date=23 January 2019}}
  • {{Cite magazine |last=Collins |first=Paul |date=20 June 2008 |title=Has Modern Life Killed the Semicolon? |url=http://www.slate.com/id/2194087/ |work=Slate |access-date=23 January 2019}}
  • {{Cite news |last=Henley |first=Jon |date=3 April 2008 |title=The End of the Line? |url=https://www.theguardian.com/world/2008/apr/04/france.britishidentity |location=London |work=The Guardian |access-date=23 January 2019}}

1 : Punctuation

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 7:48:58