From 6f9ffe13e3b832f4d0ef467fa02662fa071d7209 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 18 Jun 2013 23:51:46 -0400 Subject: [PATCH 1/3] Don't change capitalization of unabbeviated words in journal titles Fixes https://forums.zotero.org/discussion/30352/ --- chrome/content/zotero/xpcom/cite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index feac5889e..caed89fdd 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -364,8 +364,8 @@ Zotero.Cite.getAbbreviation = new function() { */ function normalizeKey(key) { // Strip periods, normalize spacing, and convert to lowercase - return key.toString().toLowerCase(). - replace(/(?:\b|^)(?:and|et|y|und|l[ae]|the|[ld]')(?:\b|$)|[\x21-\x2C.\/\x3A-\x40\x5B-\x60\\\x7B-\x7E]/g, ""). + return key.toString(). + replace(/(?:\b|^)(?:and|et|y|und|l[ae]|the|[ld]')(?:\b|$)|[\x21-\x2C.\/\x3A-\x40\x5B-\x60\\\x7B-\x7E]/ig, ""). replace(/\s+/g, " ").trim(); } From f0c2507b893b798877e21d35fd0846b16e192781 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 13 Jun 2013 14:37:51 -0400 Subject: [PATCH 2/3] Anchor regex --- chrome/content/zotero/xpcom/translation/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translator.js b/chrome/content/zotero/xpcom/translation/translator.js index acd4ad8ca..d933b821d 100644 --- a/chrome/content/zotero/xpcom/translation/translator.js +++ b/chrome/content/zotero/xpcom/translation/translator.js @@ -63,7 +63,7 @@ Zotero.Translators = new function() { while(contents.hasMoreElements()) { var file = contents.getNext().QueryInterface(Components.interfaces.nsIFile); var leafName = file.leafName; - if(!(/[^.].*\.js/.test(leafName))) continue; + if(!(/^[^.].*\.js$/.test(leafName))) continue; var lastModifiedTime = file.lastModifiedTime; var dbCacheEntry = false; From 23fc663378a0adc770b91adc135ac57ddcbddb93 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 19 Jun 2013 12:51:39 -0400 Subject: [PATCH 3/3] Call Preferences "Preferences" in menu on all platforms Fixes #340 --- chrome/locale/en-US/zotero/standalone.dtd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/locale/en-US/zotero/standalone.dtd b/chrome/locale/en-US/zotero/standalone.dtd index d26da4141..5b3128b5f 100644 --- a/chrome/locale/en-US/zotero/standalone.dtd +++ b/chrome/locale/en-US/zotero/standalone.dtd @@ -55,7 +55,7 @@ - +