View Single Post
Old 09-23-2011, 04:04 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by lindsayw View Post
Left double-quotes can occur only at the start of a line or after a space.
Or after a dash, or after an opening parenthesis

Quote:
Right double-quotes can occur only before a space or at the end of a line.
Or before a punctuation, can't you imagine a sentence ending "thus"?

Quote:
In html, the start or end of a line can be determined by > or < characters.
But those characters appear also elsewhere, like the start and end of italics.

Quote:
Citations, the only occurrence of left single-quotes, can start only after a space.
Or after a dash or parenthesis too. There can also be apostrophes after a space, 'tis possible to find 'em.

Quote:
1. Search-&-replace for >&quot; – replace these left double-quotes with >&ldquo;
Not all " are &quot;, actually, I never find &quot; in my files, and there are many " that must not be replaced.

Note also that "things like <em>this</em>" are possible

Quote:
4. Search-&-replace for &quot;< – replace these right double-quotes with &rdquo;<
And—"<em>this</em> is possible" too.

Quote:
7. Now you need to find and replace the left-sloping ones. Search-&-replace for (space)&rsquo; – replace these with (space)&lsquo;
Replace 'em all...

Last edited by Jellby; 09-24-2011 at 03:01 AM.
Jellby is online now   Reply With Quote