Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move plugin sources to subdirectory and remove trailing whitespace #61

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ fi


rm -f zotero-ocr-${version}.xpi
zip -r zotero-ocr-${version}.xpi chrome/* defaults/* chrome.manifest install.rdf
cd src
zip -9r ../zotero-ocr-${version}.xpi *
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ read -p "Enter new version number: " version
## Update install.rdf
##############

perl -pi -e "s/em:version=\"[^\"]*/em:version=\"$version/;" "install.rdf"
perl -pi -e "s/em:version=\"[^\"]*/em:version=\"$version/;" src/install.rdf
rm "install.rdf.bak"
git add "install.rdf"
git add src/install.rdf


##############
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
<?xml-stylesheet href="chrome://zotero/skin/preferences.css"?>

<prefwindow
<prefwindow
id="zoteroocr-preferences"
title="Zotero OCR Preferences"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Zotero.OCR = new function() {
'chrome,titlebar,toolbar,centerscreen' + Zotero.Prefs.get('browser.preferences.instantApply', true) ? 'dialog=no' : 'modal', io
);
};

// disable or enable the nested option to overwrite PDF
this.updatePDFOverwritePref = function () {
setTimeout(() => {
Expand Down Expand Up @@ -181,8 +181,8 @@ Zotero.OCR = new function() {
newNote.parentID = item.id;
yield newNote.saveTx();
}


if (Zotero.Prefs.get("zoteroocr.outputHocr")) {
let contents = yield Zotero.File.getContentsAsync(ocrbase + '.hocr');
// replace the absolute paths of images with relative ones
Expand Down Expand Up @@ -219,7 +219,7 @@ Zotero.OCR = new function() {
parentItemID: item.id
});
}

if (!Zotero.Prefs.get("zoteroocr.outputPNG") && imageListArray) {
// delete image list
yield Zotero.File.removeIfExists(imageList);
Expand Down
File renamed without changes.
File renamed without changes.
Loading