Skip to content

Commit 5a131f2

Browse files
committed
cleaning up xml tags
1 parent 1bf846c commit 5a131f2

File tree

6 files changed

+1
-15
lines changed

6 files changed

+1
-15
lines changed

javascript/findBadTags.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const validTags = new Set([
6060
// ignoreTags (treat tag as meaningless wrapper)
6161
"CHAPTERCONTENT",
6262
"JAVASCRIPT",
63-
"NOBR",
6463
"SECTIONCONTENT",
6564
"span",
6665
"SPLIT",

javascript/parseXmlHtml.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,13 @@ const tagsToRemoveDefault = new Set([
5151
"NAME",
5252
"LABEL",
5353
"CODEINDEX",
54-
"EXPLANATION",
5554
"SHORT_SPACE",
5655
"SHORT_SPACE_AND_ALLOW_BREAK",
5756
"SOFT_HYP",
5857
"WATCH",
5958
"KEEP_TOGETHER",
6059
"START_KEEP_TOGETHER",
6160
"STOP_KEEP_TOGETHER",
62-
"NOBREAK",
6361
"SHRINK_PARAGRAPH",
6462
"STRETCH_PARAGRAPH",
6563
"DONT_BREAK_PAGE",
@@ -73,7 +71,6 @@ const tagsToRemoveDefault = new Set([
7371

7472
const ignoreTagsDefault = new Set([
7573
"CHAPTERCONTENT",
76-
"NOBR",
7774
"SPLIT",
7875
"SPLITINLINE",
7976
"JAVASCRIPT"
@@ -549,8 +546,6 @@ const processTextFunctionsSplit = {
549546
writeTo.push("</span>");
550547
},
551548

552-
PDF_ONLY: (node, writeTo) => {},
553-
554549
COMMENT: (node, writeTo) => {
555550
writeTo.push("<span class='comment'>");
556551
recursiveProcessTextHtml(node.firstChild, writeTo);

javascript/parseXmlJs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const tagsToRemove = new Set([
2222

2323
const ignoreTags = new Set([
2424
"CHAPTERCONTENT",
25-
"NOBR",
2625
"span",
2726
"SPLITINLINE",
2827
"JAVASCRIPT"

javascript/parseXmlJson.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export const tagsToRemove = new Set([
5050
"KEEP_TOGETHER",
5151
"START_KEEP_TOGETHER",
5252
"STOP_KEEP_TOGETHER",
53-
"NOBREAK",
5453
"SHRINK_PARAGRAPH",
5554
"STRETCH_PARAGRAPH",
5655
"DONT_BREAK_PAGE",
@@ -63,7 +62,6 @@ export const tagsToRemove = new Set([
6362

6463
const ignoreTags = new Set([
6564
"CHAPTERCONTENT",
66-
"NOBR",
6765
"SPLIT",
6866
"SPLITINLINE",
6967
"JAVASCRIPT",

javascript/parseXmlLatex.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const tagsToRemove = new Set([
5252
const ignoreTags = new Set([
5353
"CHAPTERCONTENT",
5454
"JAVASCRIPT",
55-
"NOBR",
5655
"SECTIONCONTENT",
5756
"span",
5857
"SPLIT",
@@ -144,10 +143,6 @@ const processTextFunctionsDefaultLatex = {
144143
writeTo.push("}");
145144
},
146145

147-
NOBREAK: (node, writeTo) => {
148-
writeTo.push("\\nobreak{}");
149-
},
150-
151146
SHRINK_PARAGRAPH: (node, writeTo) => {
152147
let lines = node.getAttribute("lines") ? node.getAttribute("lines") : "4";
153148
writeTo.push("\\looseness=-" + lines + " ");

xml/chapter1/section1/subsection7.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ square(sqrt(1000));
521521
<INDEX>special form<SUBINDEX>need for</SUBINDEX></INDEX>
522522
special form. <QUOTE>Why can<APOS/>t I just
523523
define it as an ordinary procedure in terms of
524-
<NOBR><SCHEMEINLINE>cond</SCHEMEINLINE>?</NOBR></QUOTE> she asks.
524+
<SCHEMEINLINE>cond</SCHEMEINLINE>?</QUOTE> she asks.
525525
Alyssa<APOS/>s friend Eva Lu Ator claims this can indeed be done, and
526526
she defines a new version of <SCHEMEINLINE>if</SCHEMEINLINE>:
527527
<SNIPPET>

0 commit comments

Comments
 (0)