mirror of
https://github.com/clagnut/webtypography.git
synced 2025-09-03 01:52:48 +02:00
fix typo
Didn't check the original in Bringhurst, but ...
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
|
||||
<blockquote class='quote-from-book'> <p><span class='ic'>“</span>Acronyms such as <abbr>CIA</abbr> and <abbr>PLO</abbr> are frequent in some texts. So are abbreviations such as <abbr>CE</abbr> and <abbr>BCE</abbr> or <abbr>AD</abbr> and <abbr>BC</abbr>. The normal value for letterspacing these sequences of small or full caps is 5% to 10% of the type size.</p>
|
||||
|
||||
<p>Many typographers like to letterspace all strings of numbers as well, Spacing is essential for rapid reading of long, fundamentally meaningless strings such as serial numbers, and is helpful even for shorter strings such as phone numbers and dates.”</p>
|
||||
<p>Many typographers like to letterspace all strings of numbers as well. Spacing is essential for rapid reading of long, fundamentally meaningless strings such as serial numbers, and is helpful even for shorter strings such as phone numbers and dates.”</p>
|
||||
</blockquote>
|
||||
<p>Letter spacing in <abbr title="Cascading Style Sheets">CSS</abbr> is achieved with the aptly named <code>letter-spacing</code> property. To letter space abbreviations at 10% of the type size you could wrap the abbreviations in <code><abbr></code> tags and apply a <abbr title="Cascading Style Sheets">CSS</abbr> rule such as:</p>
|
||||
|
||||
@@ -15,4 +14,4 @@
|
||||
$replace = '<abbr>$1</abbr>';
|
||||
$text = preg_replace<span class='bracket'>(</span>$search,$replace,$text<span class='bracket'>)</span>;</code></pre>
|
||||
|
||||
<p>This function looks for sequences of 3 or more uppercase letters or numbers, such as <abbr title="Cascading Style Sheets">CSS</abbr>, <abbr title="HyperText Mark-up Language">HTML</abbr> and <abbr title="Worldwide Web Consortium">W3C</abbr>, and wraps an <code><abbr></code> tag around them.</p>
|
||||
<p>This function looks for sequences of 3 or more uppercase letters or numbers, such as <abbr title="Cascading Style Sheets">CSS</abbr>, <abbr title="HyperText Mark-up Language">HTML</abbr> and <abbr title="Worldwide Web Consortium">W3C</abbr>, and wraps an <code><abbr></code> tag around them.</p>
|
||||
|
Reference in New Issue
Block a user