Recent from talks
Nothing was collected or created yet.
Thin space
View on Wikipedia
In typography, a thin space is a space character whose width is usually 1⁄5 or 1⁄6 of an em. It is used to add a narrow space, such as between nested quotation marks or to separate glyphs that interfere with one another. It is not as narrow as the hair space. It is also used in the International System of Units and in many countries as a thousands separator when writing numbers in groups of three digits, in order to facilitate reading.[1] It also avoids the ambiguity of the comma, used as a thousands separator in many countries but as a decimal point in Europe.
In Unicode, thin space is encoded at U+2009 THIN SPACE ( ,  ). Some text editors, such as IntelliJ IDEA and Android Studio, will display the character as its suggested abbreviation of "THSP".[2] Unicode's U+202F NARROW NO-BREAK SPACE is a non-breaking space with a width similar to that of the thin space.
In LaTeX and Plain TeX, \thinspace produces a narrow, non-breaking space.[3][4] Inside and outside of math formulae in LaTeX, \, also produces a narrow, non-breaking space.
In all versions of LibreOffice and in some of Microsoft Word, the special characters and symbols dialog (often available via Insert > Symbol or Insert > Special Characters), has both the thin space and the narrow no-break space available for point-and-click insertion. In LibreOffice's Symbol dialog, there is an easy-to-find box field to narrow the searching; in Word's Symbol dialog, under font = "(normal text)", the characters are found in subset = "General Punctuation", Unicode character 2009 and nearby. Other word processing programs and many Linux configurations have ways of producing a thin space using keyboard shortcuts.
See also
[edit]- Figure space
- Whitespace character for additional space characters of various widths
References
[edit]- ^ "8th edition of the SI Brochure" (PDF). Bureau International des Poids et Mesures (BIPM). Retrieved 9 October 2019.
- ^ Schneider, Marcel (January 13, 2020). "Proposal to extend support for abbreviations - For consideration by Unicode Technical Committee (20007-abbreviations.pdf)" (PDF).
- ^ Knuth, Donald E. (1986) [Incorporates the final corrections made in 1996]. The TeXbook (PDF). Illustrations by Duane Bibby. Addison Wesley. pp. 5, 352. hdl:2027/mdp.49015000850066. ISBN 978-0-201-13447-6. LCCN 85-30845. OCLC 682395096. OL 7406778M. Archived (PDF) from the original on September 24, 2004.
- ^ Braams, Johannes; et al. (October 1, 2015). The LaTeX 2ε Sources (PDF) (1.2 ed.). p. 79.
Thin space
View on GrokipediaDefinition and Characteristics
Definition
A thin space is an interpunctual space character approximately one-fifth the width of an 'em' space, used to separate elements without creating full word breaks.[8] In typographic design, it functions as a narrow whitespace element, typically rendered at 1/5 to 1/6 em, distinguishing it from broader spaces like the standard word space (U+0020).[2] This precise width allows for fine-tuned spacing in composed text, maintaining visual harmony without the expansiveness of a full interword gap.[6] It is encoded in Unicode as U+2009 THIN SPACE and classified as a Space Separator (Zs).[8] The primary purpose of the thin space is to provide subtle separation in text, particularly for aesthetic and readability improvements in languages with specific spacing conventions.[7] By inserting a minimal yet perceptible gap, it enhances the flow and balance of letterforms and symbols, contributing to overall typographic refinement without disrupting the continuity of phrasing.[8] This role underscores its utility in professional typesetting, where granular control over horizontal spacing is essential for polished output. Unlike regular spaces, which primarily serve to delimit words and permit line breaks, the thin space is a visible space that affects justification and kerning, while permitting line breaks after it per Unicode rules.[9] In systems like LaTeX, \thinspace inserts a narrow space that permits line breaks but integrates into paragraph alignment and letter-spacing adjustments. For comparison, it is narrower than the en space (half an em) but wider than a hair space, positioning it as an intermediate option in the spectrum of typographic spaces.[2]Physical and Visual Properties
The thin space (U+2009) is defined by its narrow width, typically set to 1/5 or 1/6 of an em in most typefaces, providing a subtle separation that is narrower than a standard space (U+0020).[10] In a standard 2048 units-per-em font design, this equates to approximately 410 units for a 1/5 em width, though variations occur based on typographic traditions, such as 1/8 em in French typesetting contexts.[2] Many sans-serif fonts implement it at exactly 0.2 em to ensure consistent proportionality.[6] As an inline whitespace character, the thin space maintains continuous text flow without triggering hyphenation or forced line breaks at adjacent points, but it permits optional line breaks immediately after its position in accordance with Unicode line-breaking rules.[11] It participates in text justification algorithms, where it can be expanded alongside other spaces to achieve even line lengths, contributing to overall typographic rhythm without dominating the spacing.[11] In proportional fonts, the thin space scales linearly with the font size, preserving its relative width across different point sizes for consistent visual hierarchy.[2] In fixed-width (monospace) fonts, where all characters occupy the same horizontal space equivalent to one em, the thin space is rendered as a fractional portion of that fixed unit, typically aligning to the font's grid for precise alignment in code or tabular displays.[2] This adaptability ensures its utility across diverse rendering environments, from print to digital screens.History and Development
Origins in Print Typography
The thin space emerged in 15th-century European typesetting during the incunabula period as a narrow interval used to enhance readability, particularly in French printing traditions where it was employed before colons and semicolons to separate clauses without excessive separation. This practice reflected the evolving conventions of movable type, where printers adapted manuscript habits to mechanical reproduction, inserting slim gaps to maintain visual flow in texts like theological treatises and legal documents. Early examples appear in printed works from the incunabula period (1450–1501), showing irregular but intentional spacing before punctuation to aid syntactic clarity. Typesetting norms further influenced the thin space's development, with standardization occurring in 18th-century metal type foundries. Pierre-Simon Fournier, a prominent French punchcutter and typefounder, played a key role by casting spaces in varying widths using precise molds and matrices, allowing for fine-tuning of word and punctuation intervals. In his Manuel typographique (1764), Fournier promoted uniformity across foundries through his typographic point system, where bodies like Cicéro equaled 12 points. This approach addressed inconsistencies in earlier printing, enabling compositors to insert thin spaces for subtle adjustments in justified lines. Pre-digital examples of thin spaces appear in incunabula and early printed books, where they helped balance line lengths and justify text without disrupting rhythmic flow. During the incunabula period (1450–1501), compositors manually expanded or contracted word spaces, including narrower variants, to achieve even margins. This technique was essential in an era of hand-set type, prioritizing legibility over rigid uniformity, though the French convention of spacing before certain punctuation was applied inconsistently in early works and became more standardized in the 18th and 19th centuries.Evolution in Digital Encoding
The transition of the thin space from traditional print typography to digital formats occurred during the mid-20th century amid the shift to phototypesetting. Phototypesetting systems in the 1960s incorporated support for precise typographic spacing to preserve conventions in photographic composition, marking an early adaptation of print practices to optical methods. Early digital computing standards, however, imposed significant limitations on such specialized characters. The American Standard Code for Information Interchange (ASCII), established in 1968, provided only a single space character at code 32 (U+0020), without provisions for thinner variants like the thin space, which restricted typographic flexibility in text processing and display.[12] Similarly, the ISO/IEC 8859 series of 8-bit character encodings, introduced starting in 1987, expanded beyond ASCII but omitted the thin space, offering instead the no-break space (code A0) for non-breaking separation needs.[13] A pivotal milestone in the digital encoding of the thin space arrived with the Unicode standard. It was formally defined in Unicode 1.1, released in June 1993, as U+2009 THIN SPACE within the General Punctuation block, enabling uniform representation and interchange across diverse computing environments.[10] In the modern era, post-2000 developments in font technologies enhanced the thin space's implementation. The OpenType font format, advanced through collaborations between Microsoft and Adobe, introduced features for improved glyph spacing and kerning, promoting greater cross-platform consistency in rendering the thin space relative to em widths.Usage Contexts
In Punctuation and Spacing Rules
In French typography, the thin space—known as espace fine—is a mandatory element before double punctuation marks, including the colon, semicolon, exclamation mark, and question mark, to ensure visual balance and readability. This convention requires a non-breaking thin space before these marks and a standard space after, as standardized in modern French orthographic guidelines. For instance, the sentence "Il est temps : rentrons !" illustrates the placement, where the thin space precedes both the colon and exclamation mark.[14] The practice traces back to early European printing traditions in the 15th and 16th centuries, when typesetters inserted spaces before taller compound punctuation symbols to compensate for their height and prevent cramped appearance in justified lines. This historical adaptation persists in contemporary French typesetting, distinguishing it from single-element marks like the comma or period, which receive no preceding space.[15] In other languages, such as Polish, spaces are employed before select punctuation in formal typographic contexts to enhance clarity, though less rigidly than in French. In English, the thin space remains optional and is recommended by authoritative style guides for subtle adjustments around elements like quotation marks or parentheses, particularly to mitigate awkward line breaks or widows and orphans in page layouts. The Chicago Manual of Style (17th ed., 2017), for example, endorses its use in non-French prose to refine spacing without altering word separation norms.[16]In Numerical and Mathematical Notation
In numerical notation, particularly within the International System of Units (SI), the thin space serves as the preferred thousands separator to enhance readability without introducing ambiguity from regional conventions like commas or periods. According to the BIPM's SI Brochure (9th edition, 2019), for numbers with many digits, groups of three digits may be separated by a thin space, as in 1 000 m or 43 279.168 29, following resolutions from the 9th CGPM (1948) and 22nd CGPM (2003).[17] This approach avoids the use of dots or commas in these positions and is recommended over alternatives in international scientific communication to maintain consistency. In mathematical expressions, the thin space is employed to provide appropriate spacing around binary operators, preventing cramped or unclear notation. The ISO 80000-2 standard (2009) specifies that binary operators such as +, −, and / should be preceded and followed by thin spaces, for example, in expressions like or , to ensure clarity in printed and digital formats. This convention is widely adopted in typesetting systems like LaTeX, where the command inserts a thin space around operators in math mode, aligning with guidelines from the American Mathematical Society (AMS) for professional mathematical publications. For angular measures, standards distinguish the treatment of the degree symbol (°). While a thin space is used generally for operator spacing, ISO 80000-1 (2009) and related parts indicate no space between the numerical value and the degree symbol for plane angles, as in 45°, to treat it as a postfix unit symbol rather than a separate operator; exceptions apply for temperature scales like °C, where a space precedes the symbol. This rule supports compact notation in geometric and scientific contexts without sacrificing legibility.[18]In Other Typographic Applications
In graphic design and layout applications, the thin space serves as a tool for micro-spacing in elements such as logos, headings, and grids, allowing designers to achieve precise visual balance without disrupting overall flow. For instance, in Adobe InDesign, it is accessible via the Type menu as a special character, enabling fine adjustments akin to kerning but through explicit insertion for custom spacing in complex compositions.[19][20] In multilingual typesetting, the thin space facilitates subtle word boundaries in scripts like Arabic, where connected letterforms require careful separation to maintain readability without full spaces that could alter justification. The W3C Arabic Layout Requirements recommend its occasional use alongside standard spaces for such purposes, particularly in numerical contexts or to denote boundaries in bidirectional text.[21] Similarly, in Indic scripts such as Devanagari or Bengali, thin spaces are inserted before punctuation marks to provide discreet spacing that respects the cursive nature of the writing system while enhancing legibility in digital and print formats. This practice helps define word edges in non-Latin typesetting without introducing excessive gaps.[22]Technical Encoding
Unicode and Character Standards
In Unicode, the thin space is encoded as U+2009 THIN SPACE, located within the General Punctuation block (U+2000 to U+206F). It belongs to the Zs (Space Separator) general category, classifying it as a line-breaking space that separates tokens without initiating a new paragraph. The character is part of the Common script and serves as a narrow whitespace, typically rendered at one-fifth (1/5) or sometimes one-sixth (1/6) of an em width, distinguishing it from the standard space (U+0020).[3] Key properties of U+2009 include a bidirectional class of WS (Whitespace), which ensures it behaves neutrally in bidirectional text layouts without mirroring.[23] It has a combining class of 0 (Not Reordered), meaning it does not interact with combining marks, and no canonical decomposition, as it is a base character without equivalents.[1] Unlike zero-width spaces, U+2009 advances horizontally by its fixed narrow width, providing visible separation in typography. The thin space is standardized in ISO/IEC 10646, the international standard for character encoding, where Unicode maintains synchronization for the repertoire and code points. In HTML and related markup, it can be represented via the numeric entity (decimal) or (hexadecimal), and the named entity .Rendering in HTML, CSS, and Markup Languages
In HTML, the thin space is inserted using the named character entity  or the decimal numeric entity  , both of which correspond to the Unicode code point U+2009. These entities are defined in the HTML standard's named character references and are fully supported in XHTML 1.0 Strict, where they render as a distinct narrow space without collapsing into adjacent whitespace like regular spaces.[24][25]
The width and appearance of the thin space in CSS are determined by the font metrics of the applied typeface, typically rendering at about one-fifth to one-sixth of an em, though this varies by font design. CSS properties like letter-spacing can adjust inter-character gaps around the thin space, while font-variant may indirectly affect its context in text, but the character's base dimensions cannot be directly overridden without font substitution. For cases where the entity is unavailable, an approximation can be achieved by styling an inline element, such as span.thin-space { display: inline-block; margin: 0 0.2em; width: 0; }, to mimic the narrow separation.[26]
In LaTeX markup, the \thinspace command produces an unbreakable, unstretchable space equivalent to 1/6 em, suitable for precise typographic control in mathematical or textual contexts. In Markdown, compatibility is maintained by directly embedding the raw Unicode U+2009 character or using the HTML entity  , as most processors like those on GitHub or Pandoc render embedded HTML entities inline without alteration.[27][28]
Input Methods and Keyboard Support
On Windows systems, users can insert a thin space using the Alt code shortcut by holding the Alt key and typing 8201 on the numeric keypad, which corresponds to the Unicode character U+2009.[29][30] In Microsoft Word, full support is available through the Insert tab, where selecting Symbol > More Symbols allows searching for and inserting the thin space, or by typing "2009" followed by Alt+X to convert the hexadecimal code directly.[31][32] Basic text editors like Notepad provide partial support via the Character Map utility (charmap.exe), which displays and copies the thin space for pasting, though direct keyboard input relies on the Alt code method.[30] On macOS, there is no built-in single-keyboard shortcut equivalent to Option+Space for non-breaking spaces; instead, users access the thin space via the Character Viewer by pressing Control+Command+Space, searching for "thin space," and inserting it.[33] Alternatively, enabling the Unicode Hex Input source in System Settings > Keyboard > Input Sources allows insertion by holding Option and typing 2009 on the keyboard.[34] Applications like Pages and TextEdit offer integrated symbol palettes for thin space insertion, but international keyboard layouts do not typically include dead key combinations for it, as dead keys are primarily for diacritics rather than spacing characters.[35] In Linux environments, input often involves the Compose key, configurable in desktop settings (e.g., GNOME or KDE via System Settings > Keyboard > Advanced), though default compose sequences in en_US.UTF-8 do not include the thin space.[36] Users can add custom sequences to a ~/.XCompose file, such as <Multi_key>Comparisons and Alternatives
Relation to Other Space Characters
The thin space (U+2009) fits within the hierarchy of Unicode space characters as a mid-level separator, narrower than the en space (U+2002), which spans approximately half an em in width, yet wider than the hair space (U+200A), typically 1/10 to 1/16 em wide.[2] These characters, including the thin space, are all encoded in the General Punctuation block (U+2000–U+206F) to support typographic spacing needs across scripts.[5][6][2] Functionally, the thin space enables moderate visual separation between adjacent elements, such as in punctuation or numerals, distinguishing it from the zero-width space (U+200B), which inserts invisible line break opportunities without contributing any perceptible width or gap.[40][41] Font-specific implementations introduce variations in the thin space's exact dimensions; for example, in Monotype's Times New Roman, it adheres to the conventional 1/5 em width, in contrast to the em space (U+2003), which occupies a full em. Its core width is typically 1/5 em, though this can adjust slightly based on the font's design metrics.[2][42]Substitutes and Workarounds in Various Systems
In digital typography, when native support for the thin space (U+2009) is unavailable, common substitutes include using multiple regular spaces, which may collapse in rendering, or a non-breaking space (U+00A0) that is subsequently trimmed or adjusted for width. The narrow no-break space (U+202F) serves as a non-breaking alternative with similar width to the thin space.[5][6] In web design, CSS properties such asmargin-right: 0.166em or padding-left: 0.2em on inline elements like <span> provide a precise approximation, as the thin space typically equals one-fifth to one-sixth of an em width.[43][3]
In legacy systems, such as early HTML versions prior to HTML 4.01 (1999), where the   entity was not standardized, approximations relied on entities for non-breaking behavior or temporary placeholders like underscores or periods, which were manually removed during post-editing. In plain text environments like email or basic markdown, a single regular space serves as the primary workaround, though it lacks the narrow precision and may lead to inconsistent rendering across clients.[6]
Limitations of these substitutes include potential inconsistencies in font rendering and line-breaking behavior; for instance, CSS-based margins can shift unpredictably in responsive layouts. Best practices recommend avoiding thin space substitutes in justified text blocks, as they can exacerbate irregular word spacing and contribute to visual "rivers" of white space, and instead favoring native Unicode insertion in modern PDF tools like Adobe Acrobat for reliable output.[44][43]