Skip to content

Commit

Permalink
more renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
rcpeters committed Jun 23, 2015
1 parent f4f50fb commit a48c2eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions bibtexParse.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
};

function LatexToUTF8 () {
this.orcidUniToLatex = {
this.orcidCharLatexMap = {
};

this.orcidLatexToUni = {
Expand Down Expand Up @@ -520,7 +520,7 @@
for (var idx in this.orcidLatexToUni) {
if (this.orcidLatexToUni[idx].length > this.maxLatexLength)
this.maxLatexLength = this.orcidLatexToUni[idx].length;
this.orcidUniToLatex[this.orcidLatexToUni[idx]] = idx;
this.orcidCharLatexMap[this.orcidLatexToUni[idx]] = idx;
}

this.getUni = function(latex) {
Expand All @@ -532,11 +532,11 @@
};

this.getLatex = function(uni) {
return this.orcidUniToLatex[uni];
return this.orcidCharLatexMap[uni];
};

this.hasUniMatch = function (uni) {
return uni in this.orcidUniToLatex;
return uni in this.orcidCharLatexMap;
};

this.longestEscapeMatch = function(value, pos) {
Expand Down
4 changes: 2 additions & 2 deletions w3c/unicodeXmltoCodeMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ for (var i = 0; i < w3cJsonDoc.unicode.charlist[0].character.length; i++) {
}
}
} else {
console.log("Duplicate latex code: " + latexCode);
//console.log("Duplicate latex code: " + latexCode);
}
}
}
Expand All @@ -62,4 +62,4 @@ for (var key in codeMap) {
}

console.log("//")
//console.log("var w3cLatexCharMap = " + JSON.stringify(latexToUni, false, 2));
console.log("var w3cLatexCharMap = " + JSON.stringify(latexToUni, false, 2));

0 comments on commit a48c2eb

Please sign in to comment.