Skip to content

Commit

Permalink
Set a hook function for normalizing the Unicode of processor sort keys
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Jun 1, 2014
1 parent 5e968e1 commit 2feca30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chrome/content/zotero/xpcom/cite.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,14 @@ Zotero.Cite.System.prototype = {
*/
"getAbbreviations":function getAbbreviations() {
return {};
},

"normalizeUnicode":function(str) {
var buf = {};
var unicodeNormalizer = Components.classes["@mozilla.org/intl/unicodenormalizer;1"]
.createInstance(Components.interfaces.nsIUnicodeNormalizer);
unicodeNormalizer.NormalizeUnicodeNFKC(str, buf);
return buf.value;
}
}

Expand Down

0 comments on commit 2feca30

Please sign in to comment.