Directory

Encyclopedia

NodeWorks
                              ENCYCLOPEDIA

Link Checker

Home
Encyclopedia : S : SP : SPA :

Space (punctuation)

 

Space (punctuation)


A space is a punctuation convention for providing interword separation in some scripts, including the Latin, Greek, Cyrillic, and Arabic.

Not all languages use spaces between words; the ancient Latin and Greek did not. Spaces were not used to separate words until roughly 600800 AD. (See interword separation for more on the history.) Traditionally, all CJK languages have no space: modern Chinese and Japanese (except when written with little or no kanji) still do not, but modern Korean uses spaces.

For use of spaces after full stops, exclamation marks, and question marks, see discussion in the article Full stop.

Spaces and computers

In programming language syntax, spaces are frequently used to explicitly separate tokens. Aside from this use, spaces and other whitespace characters are usually ignored by most modern programming languages; with the exception of Haskell, ABC, and Python, which use the amount of whitespace in indentation to indicate the scope of a block (unlike Algol-derived languages, like Pascal, C and Perl, which use
braces for that purpose).

In word processors and text editorss, if a line on a screen is shorter than the width of the screen or window, then the empty space to the right usually does not correspond with space characters in the file: there is simply a code indicating that the next text should be put on a new line. Thus, the size of the file is not made unnecessarily larger. If there are space characters, one usually does not see the difference; text editors and word processors often have an option to make them visible. Also, if there is a space character, the cursor can move there, otherwise usually not.

Spaces and digital typography


In computer programming, the normal space corresponds to Unicode and ASCII character 32, or U+0020. In HTML and XML multiple spaces or new line characters collapse into a single space, unless they are contained in an HTML element such as pre, the xml:space="preserve" XML attribute is used, or CSS defines whitespace="pre" (or pre-line or pre-wrap). The special non-breaking-space   always gives a non-collapsable space character, often used to indent text, though some web authorities discourage using it for that purpose.

Other kinds of spaces exist for special uses: for example an em dash can optionally be surrounded with a so-called hair space, Unicode character 8202, or U+200A. This space should be much thinner than a normal space, and is seldom used on its own. It can be written in HTML by using the numeric character entity   or  . Unfortunately, very few user agents are able to render a hair space correctly: in most cases the result is an unwanted symbol or a question mark on the screen (depending on the font).

Unicode defines several space characters for fine typography. Depending on the browser and fonts used to view this table, not all spaces may display properly:

Unicode also provides some visible characters to stand in for space when necessary in the "Control Pictures" block: the Symbol For Space ␠ (U+2420), the Blank Symbol ␢ (U+2422), and the Open Box ␣ (U+2423).

See also

  • Hard space
  • Nonbreaking space



  • NodeWorks boosts web surfing!
    Page Returned in 0.597 seconds - HTML Compressed 68.3%

    This article is from Wikipedia. All text is available
    under the terms of the GNU Free Documentation License.
     GNU Free Documentation License
    © 2008 Chamas Enterprises Inc.