From 41221592b34a5ed6b9c2172c170b9b38dcfca7d8 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 16 Dec 2007 03:59:39 +0000 Subject: [PATCH] Addresses #749, BibTeX issues - import UTF-8 by default (as far as I can tell, this is no worse than the previous behavior, which would probably have read all BibTeX files as ASCII) - use only ascii characters in cite keys - present BibTeX UTF-8 export option on export - hide disabled export options, rather than graying them out, to avoid the indication that other formats will not be exported as UTF-8 --- chrome/content/zotero/exportOptions.js | 9 +++- chrome/content/zotero/xpcom/cite.js | 15 +++++++ chrome/content/zotero/xpcom/translate.js | 2 - chrome/locale/en-US/zotero/zotero.properties | 1 + defaults/preferences/zotero.js | 1 - scrapers.sql | 44 ++++++++++---------- 6 files changed, 46 insertions(+), 26 deletions(-) diff --git a/chrome/content/zotero/exportOptions.js b/chrome/content/zotero/exportOptions.js index ba126c017..3ba676735 100644 --- a/chrome/content/zotero/exportOptions.js +++ b/chrome/content/zotero/exportOptions.js @@ -109,6 +109,8 @@ var Zotero_File_Interface_Export = new function() { } var optionsBox = document.getElementById("translator-options"); + optionsBox.hidden = true; + var haveOption = false; for(var i=0; i 1 && lastNameParts[0].length <= 4 + && lastNameParts[0][0].toLowerCase() == lastNameParts[0][0] + && lastNameParts[lastNameParts.length-1][0].toUpperCase() == lastNameParts[lastNameParts.length-1][0]) { + name = ""; + for(var k=1; k\?\[\]\^\_\`\|]+/g,""); var citekey = basekey; var i = 0; while(citekeys[citekey]) {