Number sign

From Wikipedia, the free encyclopedia
Jump to: navigation, search
#
Number sign
Punctuation
apostrophe ( ’ ' )
brackets ( [ ], ( ), { }, ⟨ ⟩ )
colon ( : )
comma ( , ، 、 )
dash ( , –, —, ― )
ellipsis ( …, ..., . . . )
exclamation mark ( ! )
full stop / period ( . )
hyphen ( )
hyphen-minus ( - )
question mark ( ? )
quotation marks ( ‘ ’, “ ”, ' ', " " )
semicolon ( ; )
slash / stroke / solidus ( /,  ⁄  )
Word dividers
interpunct ( · )
space ( ) ( ) ( )
General typography
ampersand ( & )
asterisk ( * )
at sign ( @ )
backslash ( \ )
bullet ( )
caret ( ^ )
dagger ( †, ‡ )
degree ( ° )
ditto mark ( )
inverted exclamation mark ( ¡ )
inverted question mark ( ¿ )
number sign / pound / hash ( # )
numero sign ( )
obelus ( ÷ )
ordinal indicator ( º, ª )
percent, per mil ( %, ‰ )
plus and minus ( + − )
basis point ( )
pilcrow ( )
prime ( ′, ″, ‴ )
section sign ( § )
tilde ( ~ )
underscore / understrike ( _ )
vertical bar / broken bar / pipe ( ¦, | )
Intellectual property
copyright symbol ( © )
registered trademark ( ® )
service mark ( )
sound recording copyright ( )
trademark ( )
Currency
currency (generic) ( ¤ )
currency (specific)
( ฿ ¢ $ ƒ £ ¥ )
Uncommon typography
asterism ( )
hedera ( )
index / fist ( )
interrobang ( )
irony punctuation ( ؟ )
lozenge ( )
reference mark ( )
tie ( )
Related
diacritical marks
logic symbols
whitespace characters
non-English quotation style ( « », „ ” )
In other scripts
Chinese punctuation
Hebrew punctuation
Japanese punctuation
Korean punctuation

Number sign is a name for the symbol #, which is used for a variety of purposes, including the designation of a number (for example, "#1" stands for "number one"). The symbol is defined in Unicode as U+0023 # number sign (HTML: # as in ASCII).

Outside of North America, the symbol is called hash and the corresponding telephone key is called the hash key. In American and Canadian English, the symbol is usually called the pound sign (outside the US, this term often describes instead the British currency symbol "£"), and the telephone key is called the pound key.[1]

When used in technology, it is often referred to as hash, such as at the beginning of a hash tag: a word or phrase on social networking sites beginning with a #, as in #hashtag.

The symbol is easily confused with the musical symbol called sharp (). In both symbols, there are two pairs of parallel lines. The key difference is that the number sign has true horizontal strokes while the sharp sign has two slanted parallel lines which must rise from left to right, in order to avoid being confused with the musical staff lines. Both signs may have true vertical lines; however, they are compulsory in the sharp sign, but optional in the number sign (#) depending on typeface or handwriting style.

Contents

Origin and usage and naming conventions in North America[edit]

Mainstream use in the US is as follows: when it precedes a number, it is read as "number", as in "a #2 pencil" (spoken aloud as: "a number-two pencil"). A theory claims that back in early 1900, the Teletype Corporation was the first to use # to mean "number".[2]

Historically, the pound name derives from a series of abbreviations for pound, the unit of weight. At first "lb." was used; however, printers later designed a font containing a special symbol of an "lb" with a line through the verticals so that the lowercase letter "l" would not be mistaken for the numeral "1". Unicode character U+2114 l b bar symbol (HTML: ℔) is a cursive development of this symbol. Ultimately, the symbol was reduced for clarity as an overlay of two horizontal strokes "=" across two forward-slash-like strokes "//".[1][verification needed] Keith Gordon Irwin, in The Romance of Writing, p. 125, says "The Italian libbra (from the old Latin word libra, 'balance') represented a weight almost exactly equal to the avoirdupois pound of England. The Italian abbreviation of lb with a line drawn across the letters [℔] was used for both weights.[2]

In Canada the symbol is commonly called the number sign. Major telephone-equipment manufacturers, such as Nortel, have an option in their programming to denote Canadian English, which in turn instructs the system to say "number sign" to callers instead of "pound sign".

Usage in the United Kingdom and Ireland[edit]

In the United Kingdom and Ireland, the symbol is most often called the hash. It is never used to denote pounds weight (lb is commonly used for this) or pounds sterling (where "£" is used). It is never called the "pound sign", because that term is understood to mean the currency symbol "£", for pound sterling or (formerly) Irish pound.

The use of "#" as an abbreviation for "number" is rare in Britain and Ireland. Where Americans might write "Symphony #5", the British and Irish are more likely to write "Symphony No. 5".

To add to the confusion between "£" and "#", in BS 4730 (the UK national variant of the ISO/IEC 646 character set), 0x23 represents "£" whereas in ASCII (the US variant), it represents "#". It was thus common, when systems were incorrectly configured, for "£" to be displayed as "#" and vice versa.

Other names in English[edit]

The symbol has many other names (and uses) in English:

Comment sign 
Taken from its use in many shell scripts and some programming languages (such as Python) to start comments.
Cross 
In China, non-native English speakers often refer to the number sign as "cross". It is said as jĭng in Chinese, as it looks like the Chinese character for water well ("井").
Hex 
Common usage in Singapore and Malaysia, as spoken by many recorded telephone directory-assistance menus: 'Please enter your phone number followed by the hex key'. The term 'hex' is discouraged in Singapore in favour of 'hash'.[clarification needed]
Octothorp, octothorpe, octathorp, octatherp
Used by Bell Labs engineers by 1968.[3] Lauren Asplund says that he and a colleague were the source of octothorp at AT&T engineering in New York in 1964. The Merriam-Webster New Book of Word Histories, 1991, has a long article that is consistent with Doug Kerr's essay,[4] in that it says "octotherp" was the original spelling, and that the word arose in the 1960s among telephone engineers as a joke. The first appearance of "octothorp" in a US patent is in a 1973 filing which also refers to the six-pointed asterisk (✻) used on telephone buttons as a "sextile".[5]
Sharp 
Resemblance to the glyph used in music notation, U+266F (♯). So called in the name of the Microsoft programming languages C# and F#. However Microsoft says "It's not the 'hash' (or pound) symbol as most people believe. It's actually supposed to be the musical sharp symbol. However, because the sharp symbol is not present on the standard keyboard, it's easier to type the hash ('#') symbol. The name of the language is, of course, pronounced 'see sharp'."[6] According to the ECMA-334 C# Language Specification, section 6, Acronyms and abbreviations, the name of the language is written "C#" ("LATIN CAPITAL LETTER C (U+0043) followed by the NUMBER SIGN # (U+0023)") and pronounced "C Sharp".[7]
Space 
Used by editors to denote where space should be inserted in a galley proof. This can mean
  1. a line space (the space between two adjacent lines denoted by line # in the margin),
  2. a hair space (the space between two letters in a word, denoted by hr #)
  3. a word space, or letter space (the space between two words on a line, two letter spaces being ##)
Em- and en-spaces (being the length of a letter m and n, respectively) are denoted by a square-shaped em- or en-quad character ( and , respectively).[citation needed]
Square 
Occasionally used in the UK (e.g. sometimes in BT publications and automatic messages) – especially during the Prestel era, when the symbol was a page address delimiter. The International Telecommunications Union specification ITU-T E.161 3.2.2 states: "The # is to be known as a 'square' or the most commonly used equivalent term in other languages."
Others 
crosshatch, (garden) fence, mesh, flash, grid, pig-pen, tictactoe, scratch (mark), (garden) gate, hak, oof, rake, sink, corridor, crunch, punch mark.[8]

In mathematics[edit]

In computing[edit]

  • In many scripting languages and data file formats, especially ones that originated on Unix, the # introduces a comment that goes to the end of the line. The combination #! at the start of an executable file is a "shebang" or "hash-bang", used to tell the operating system which program to use to run the script (see magic number). This combination was chosen so it would be a comment in the scripting languages.
  • In the Perl programming language, # is used as a modifier to array syntax to return the index number of the last element in the array, e.g., @array's last element is at $array[$#array]. The number of elements in @array is $#array + 1, since Perl arrays default to using zero based indices. If the array has not been defined, the return is also undefined. If the array is defined but has not had any elements assigned to it, e.g., @array = (); then $#array returns −1. See the section on Array functions in the Perl language structure article.
  • In the C preprocessor (and the C++ preprocessor, and other syntactically C-like languages), # is used to start a preprocessor directive. Inside macros (after #define) it is used for various purposes, including the double pound sign ## used for token concatenation.
  • In Unix shells, # is placed by convention at the end of a command prompt to denote that the user is working as root.
  • # is used in a URL of a webpage or other resource to introduce a "fragment identifier" – an id which defines a position within that resource. For example, in the URL http://en.wikipedia.org/wiki/Number_sign#In_computing the portion after the # (In_computing) is the fragment identifier, in this case denoting that the display should be moved to show the tag marked by <span id="In_computing">...</span> in the HTML.[9]
  • Internet Relay Chat: on (IRC) servers, # precedes the name of every channel that is available across an entire IRC network.
  • In blogs, # is sometimes used to denote a permalink for that particular weblog entry.
  • On social networking sites such as Twitter, # is used to denote a metadata tag, or hashtag.
  • In lightweight markup languages, such as wikitext, # is often used to introduce numbered list items.
  • In OCaml, # is the operator used to call a method.
  • In Common Lisp[10] and Scheme, # is the prefix for certain syntax with special meaning.
  • In Standard ML, #, when prefixed to a field name, becomes a projection function (function to access the field of a record or tuple); also, # prefixes a string literal to turn it into a character literal.
  • In Mathematica syntax, #, when used as a variable, becomes a pure function (a placeholder that is mapped to any variable meeting the conditions).
  • In LaTeX, #, when prefixing a number, references an arguments for a user defined command. For instance \newcommand{\code}[1]{\texttt{#1}}.
  • In Javadoc,[11] # is used with the @see tag to introduce or separate a field, constructor, or method member from its containing class.

Other uses[edit]

  • Press releases: the notation "###" denotes "end", i.e. that there is no further copy to come.[citation needed]
  • Chess notation: # after a move denotes checkmate, being easier to type than the traditional ‡.
  • Scrabble: Putting a number sign after a word indicates that the word is found in the British word lists, but not the North American lists.[12]
  • Prescription drug delimiter: in some countries, such as Norway or Poland, # is used as a delimiter between different drugs on medical prescriptions.
  • Copy writing and editing: technical writers often use three hash signs ("###") as a marker in text where more content will be added or there are errors to be corrected.
  • Mining: in underground mining, the hash sign is sometimes used as a shorthand for "seam" or "shaft". An example would be "4#", which would mean "four shaft" or "four seam" depending on the context.[citation needed]
  • Medical shorthand: # is often used as medical shorthand for "fracture".[13]
  • In linguistic phonetics, # denotes a word boundary. For instance, /d/ → [t] / _# means that /d/ becomes [t] when it is the last segment in a word (i.e. when it appears before a word boundary).
  • In linguistic syntax, # before an example sentence denotes that the sentence is semantically ill-formed, though grammatically well-formed. For instance, "#The toothbrush is pregnant" is a grammatical sentence, but the meaning is odd.[14]
  • In Teletext and DVB subtitles in the UK, the # symbol is used to mark text that is sung either by a character or heard in background music. e.g. # For he's a jolly good fellow #

Unicode[edit]

In Unicode, several # characters are assigned:

  • U+0023 # number sign (HTML: &#35; Other accepted names in Unicode are: pound sign, hash, crosshatch, octothorpe)
  • U+FE5F small number sign (HTML: &#65119;)
  • U+FF03 fullwidth number sign (HTML: &#65283;)
  • U+E0023 tag number sign (HTML: &#917539;)

In other languages or scripts:

Related characters, the sharp sign in musical notation:

  • U+266F music sharp sign (HTML: &#9839;)
  • U+1D12A 𝄪 musical symbol double sharp (HTML: &#119082;)
  • U+1D130 𝄰 musical symbol sharp up (HTML: &#119088;)
  • U+1D131 𝄱 musical symbol sharp down (HTML: &#119089;)
  • U+1D132 𝄲 musical symbol quarter tone sharp (HTML: &#119090;)

On keyboards[edit]

On the standard US keyboard layout, the # symbol is Shift+3. On standard UK and some European keyboards, the same keystrokes produce the pound currency symbol (£), and # is moved to a separate key above the right shift. On UK Mac keyboards, # is generated by Opt+3, whereas on European Mac keyboards, the # can be found above the right shift key.

References[edit]

  1. ^ a b William Safire (1991-03-24). "On Language; Hit the Pound Sign". New York Times. Retrieved 2011-05-21. 
  2. ^ a b "The "pound sign" mystery". Retrieved 22 December 2012. 
  3. ^ Hochhester, Sheldon (2006-09-29). "Pressing Matters: Touch-tone phones spark debate". Encore. 
  4. ^ Douglas A. Kerr (2006-05-07). The ASCII Character "Octatherp" (PDF). 
  5. ^ U.S. Patent No. 3,920,296, Google Patent Search
  6. ^ Frequently Asked Questions about C#
  7. ^ Ecma-international.com
  8. ^ http://ss64.com/bash/syntax-pronounce.html
  9. ^ "Introduction to HTML", W3C Recommendation
  10. ^ Lispworks.com
  11. ^ Oracle.com
  12. ^ "Scrabble Glossary". Tucson Scrabble Club. Retrieved 2012-02-06. 
  13. ^ Glossary of Medical Devices and Procedures: Abbreviations, Acronyms, and Definitions
  14. ^ Carnie, Andrew (2006). Syntax: A Generative Introduction (2nd ed.). Oxford: Wiley-Blackwell. ISBN 1-4051-3384-8.