mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
Update regex in step-by-step guide
This commit is contained in:
parent
0c5e05a953
commit
bf9984e995
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ require_once('Core.php');
|
|||
<p><a href="/contribute/typography#ampersands-in-names">Typography rules for ampersands in names</a>. This regex helps match candidates: <code class="regex">[a-zA-Z]\.?\s*&\s*[a-zA-Z]</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="/contribute/typography#text-in-all-caps">Typography rules for text in all caps</a>. Text in all caps is almost never correct, and should either be converted to lowercase with the <code class="html"><em></code> tag (for spoken emphasis), <code class="html"><strong></code> (for extreme spoken emphasis), or <code class="html"><b></code> (for unsemantic small caps, like in storefront signs). This regex helps find candidates: <code class="regex">[A-Z]{3,}</code></p>
|
||||
<p><a href="/contribute/typography#text-in-all-caps">Typography rules for text in all caps</a>. Text in all caps is almost never correct, and should either be converted to lowercase with the <code class="html"><em></code> tag (for spoken emphasis), <code class="html"><strong></code> (for extreme spoken emphasis), or <code class="html"><b></code> (for unsemantic small caps, like in storefront signs). This case-sensitive regex helps find candidates: <code class="regex">(?<!en-)[A-Z]{2,}(?!")</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Sometimes <code class="program">typogrify</code> doesn’t close quotation marks near em-dashes correctly. Try to find such instances with this regex: <code class="regex">—[’”][^<\s]</code></p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue