Fix some backward apostrophes
This commit is contained in:
parent
5d86661c55
commit
41a6bfddb9
1 changed files with 4 additions and 3 deletions
|
|
@ -154,12 +154,13 @@ function getBodyXml(chapter, contentEl) {
|
|||
xml = xml.replace(/“<em>([^>]+)<\/em>(!|\?|\.)”/g, "“<em>$1$2<\/em>”");
|
||||
xml = xml.replace(/<p><em>([^>]+)<\/em>(!|\?|\.)<\/p>/g, "<p><em>$1$2<\/em></p>");
|
||||
|
||||
// Fix recurring poor closing quotes
|
||||
// Fix recurring poor quotes and apostrophes
|
||||
xml = xml.replace(/“<\/p>/g, "”</p>");
|
||||
xml = xml.replace(/‘<\/p>/g, "’</p>");
|
||||
|
||||
// Fix use of ′ instead of closing single quote
|
||||
xml = xml.replace(/′/g, "’");
|
||||
xml = xml.replace(/′/g, "’");
|
||||
xml = xml.replace(/([A-Za-z])‘s(\s?)/g, "$1’s$2");
|
||||
xml = xml.replace(/I‘m/g, "I’m");
|
||||
|
||||
// Fixes dashes
|
||||
xml = xml.replace(/ – /g, "—");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue