Update pdf.js library to lastest git master version
|
@ -30,12 +30,13 @@ directory:
|
|||
$ cd <roundcubedir>/plugins/pdfviewer
|
||||
$ cp -r <pdfjsdir>/build/generic/web viewer
|
||||
$ cp <pdfjsdir>/build/generic/build/pdf.js viewer/pdf.js
|
||||
$ cp <pdfjsdir>/build/generic/build/pdf.worker.js viewer/pdf.worker.js
|
||||
$ rm viewer/*.pdf
|
||||
|
||||
Then apply the pdfjs-viewer.diff patch to adjust the viewer for the use
|
||||
within Roundcube:
|
||||
|
||||
$ patch -p1 < pdfjs-viewer.diff
|
||||
$ patch -p0 < pdfjs-viewer.diff
|
||||
|
||||
Optionally, compress the scripts using Google's Closure Compiler [1]
|
||||
or the YUI Compressor [2].
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
<email>bruederli@kolabsys.com</email>
|
||||
<active>yes</active>
|
||||
</lead>
|
||||
<date>2013-01-24</date>
|
||||
<time>12:20:00</time>
|
||||
<date>2013-10-03</date>
|
||||
<time>14:20:00</time>
|
||||
<version>
|
||||
<release>0.1</release>
|
||||
<api>0.1</api>
|
||||
<release>0.1.2</release>
|
||||
<api>0.1.2</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>beta</release>
|
||||
|
@ -34,6 +34,7 @@
|
|||
<file name="viewer/viewer.js" role="data"></file>
|
||||
<file name="viewer/viewer.css" role="data"></file>
|
||||
<file name="viewer/pdf.js" role="data"></file>
|
||||
<file name="viewer/pdf.worker.js" role="data"></file>
|
||||
<file name="viewer/compatibility.js" role="data"></file>
|
||||
<file name="viewer/debugger.js" role="data"></file>
|
||||
<file name="viewer/l10n.js" role="data"></file>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
--- a/viewer/viewer.html 2013-01-24 11:17:55.000000000 +0100
|
||||
+++ b/viewer/viewer.html 2013-01-24 13:54:20.000000000 +0100
|
||||
@@ -30,7 +30,7 @@
|
||||
--- viewer/viewer.html.orig 2013-10-03 14:06:24.000000000 +0200
|
||||
+++ viewer/viewer.html 2013-10-03 13:53:17.000000000 +0200
|
||||
@@ -31,7 +31,7 @@
|
||||
<!-- This snippet is used in production, see Makefile -->
|
||||
<link rel="resource" type="application/l10n" href="locale/locale.properties"/>
|
||||
<script type="text/javascript" src="l10n.js"></script>
|
||||
|
@ -8,30 +8,50 @@
|
|||
+<script type="text/javascript" src="pdf.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="debugger.js"></script>
|
||||
@@ -111,19 +111,9 @@
|
||||
|
||||
@@ -88,18 +88,10 @@
|
||||
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
|
||||
</button>
|
||||
|
||||
- <button id="secondaryOpenFile" class="secondaryToolbarButton openFile visibleLargeView" title="Open File" tabindex="19" data-l10n-id="open_file">
|
||||
- <span data-l10n-id="open_file_label">Open</span>
|
||||
- </button>
|
||||
-
|
||||
<button id="secondaryPrint" class="secondaryToolbarButton print visibleMediumView" title="Print" tabindex="20" data-l10n-id="print">
|
||||
<span data-l10n-id="print_label">Print</span>
|
||||
</button>
|
||||
|
||||
- <button id="secondaryDownload" class="secondaryToolbarButton download visibleMediumView" title="Download" tabindex="21" data-l10n-id="download">
|
||||
- <span data-l10n-id="download_label">Download</span>
|
||||
- </button>
|
||||
-
|
||||
<div class="horizontalToolbarSeparator visibleLargeView"></div>
|
||||
|
||||
<button id="firstPage" class="secondaryToolbarButton firstPage" title="Go to First Page" tabindex="22" data-l10n-id="first_page">
|
||||
@@ -150,20 +142,10 @@
|
||||
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
|
||||
</button>
|
||||
|
||||
- <button id="openFile" class="toolbarButton openFile" title="Open File" tabindex="12" data-l10n-id="open_file">
|
||||
- <span data-l10n-id="open_file_label">Open</span>
|
||||
- <button id="openFile" class="toolbarButton openFile hiddenLargeView" title="Open File" tabindex="13" data-l10n-id="open_file">
|
||||
- <span data-l10n-id="open_file_label">Open</span>
|
||||
- </button>
|
||||
-
|
||||
<button id="print" class="toolbarButton print" title="Print" tabindex="13" data-l10n-id="print">
|
||||
<button id="print" class="toolbarButton print hiddenMediumView" title="Print" tabindex="14" data-l10n-id="print">
|
||||
<span data-l10n-id="print_label">Print</span>
|
||||
</button>
|
||||
-
|
||||
- <button id="download" class="toolbarButton download" title="Download" tabindex="14" data-l10n-id="download">
|
||||
|
||||
- <button id="download" class="toolbarButton download hiddenMediumView" title="Download" tabindex="15" data-l10n-id="download">
|
||||
- <span data-l10n-id="download_label">Download</span>
|
||||
- </button>
|
||||
- <!-- <div class="toolbarButtonSpacer"></div> -->
|
||||
- <a href="#" id="viewBookmark" class="toolbarButton bookmark" title="Current view (copy or open in new window)" tabindex="15" data-l10n-id="bookmark"><span data-l10n-id="bookmark_label">Current View</span></a>
|
||||
</div>
|
||||
<div class="outerCenter">
|
||||
<div class="innerCenter" id="toolbarViewerMiddle">
|
||||
--- a/viewer/viewer.js 2013-01-24 11:17:55.000000000 +0100
|
||||
+++ b/viewer/viewer.js 2013-01-24 13:51:05.000000000 +0100
|
||||
@@ -17,7 +17,7 @@
|
||||
- <a href="#" id="viewBookmark" class="toolbarButton bookmark hiddenSmallView" title="Current view (copy or open in new window)" tabindex="16" data-l10n-id="bookmark"><span data-l10n-id="bookmark_label">Current View</span></a>
|
||||
-
|
||||
<div class="verticalToolbarSeparator hiddenSmallView"></div>
|
||||
|
||||
<button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="17" data-l10n-id="tools">
|
||||
--- viewer/viewer.js.orig 2013-10-03 14:06:30.000000000 +0200
|
||||
+++ viewer/viewer.js 2013-10-03 14:06:00.000000000 +0200
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
|
@ -40,63 +60,78 @@
|
|||
var DEFAULT_SCALE = 'auto';
|
||||
var DEFAULT_SCALE_DELTA = 1.1;
|
||||
var UNKNOWN_SCALE = 0;
|
||||
@@ -43,7 +43,7 @@
|
||||
FIND_PENDING: 3
|
||||
@@ -49,7 +49,7 @@
|
||||
};
|
||||
|
||||
- PDFJS.workerSrc = '../build/pdf.js';
|
||||
+ PDFJS.workerSrc = 'pdf.js';
|
||||
PDFJS.imageResourcesPath = './images/';
|
||||
- PDFJS.workerSrc = '../build/pdf.worker.js';
|
||||
+ PDFJS.workerSrc = 'pdf.worker.js';
|
||||
|
||||
var mozL10n = document.mozL10n || document.webL10n;
|
||||
|
||||
@@ -2676,7 +2676,7 @@
|
||||
var file = params.file || DEFAULT_URL;
|
||||
@@ -1313,9 +1313,9 @@
|
||||
|
||||
this.presentationMode.addEventListener('click',
|
||||
this.presentationModeClick.bind(this));
|
||||
- this.openFile.addEventListener('click', this.openFileClick.bind(this));
|
||||
+ //this.openFile.addEventListener('click', this.openFileClick.bind(this));
|
||||
this.print.addEventListener('click', this.printClick.bind(this));
|
||||
- this.download.addEventListener('click', this.downloadClick.bind(this));
|
||||
+ //this.download.addEventListener('click', this.downloadClick.bind(this));
|
||||
|
||||
this.firstPage.addEventListener('click', this.firstPageClick.bind(this));
|
||||
this.lastPage.addEventListener('click', this.lastPageClick.bind(this));
|
||||
@@ -3991,8 +3991,8 @@
|
||||
document.body.appendChild(fileInput);
|
||||
|
||||
if (!window.File || !window.FileReader || !window.FileList || !window.Blob) {
|
||||
- document.getElementById('openFile').setAttribute('hidden', 'true');
|
||||
+ // document.getElementById('openFile').setAttribute('hidden', 'true');
|
||||
- document.getElementById('secondaryOpenFile').setAttribute('hidden', 'true');
|
||||
+ //document.getElementById('openFile').setAttribute('hidden', 'true');
|
||||
+ //document.getElementById('secondaryOpenFile').setAttribute('hidden', 'true');
|
||||
} else {
|
||||
document.getElementById('fileInput').value = null;
|
||||
}
|
||||
@@ -2790,21 +2790,11 @@
|
||||
PDFView.fullscreen();
|
||||
});
|
||||
@@ -4147,14 +4147,14 @@
|
||||
document.getElementById('presentationMode').addEventListener('click',
|
||||
SecondaryToolbar.presentationModeClick.bind(SecondaryToolbar));
|
||||
|
||||
- document.getElementById('openFile').addEventListener('click',
|
||||
- function() {
|
||||
- document.getElementById('fileInput').click();
|
||||
- });
|
||||
-
|
||||
- SecondaryToolbar.openFileClick.bind(SecondaryToolbar));
|
||||
+// document.getElementById('openFile').addEventListener('click',
|
||||
+// SecondaryToolbar.openFileClick.bind(SecondaryToolbar));
|
||||
|
||||
document.getElementById('print').addEventListener('click',
|
||||
function() {
|
||||
window.print();
|
||||
});
|
||||
SecondaryToolbar.printClick.bind(SecondaryToolbar));
|
||||
|
||||
- document.getElementById('download').addEventListener('click',
|
||||
- function() {
|
||||
- PDFView.download();
|
||||
- });
|
||||
-
|
||||
document.getElementById('pageNumber').addEventListener('change',
|
||||
function() {
|
||||
PDFView.page = this.value;
|
||||
@@ -2899,7 +2889,7 @@
|
||||
- SecondaryToolbar.downloadClick.bind(SecondaryToolbar));
|
||||
+// document.getElementById('download').addEventListener('click',
|
||||
+// SecondaryToolbar.downloadClick.bind(SecondaryToolbar));
|
||||
|
||||
document.getElementById('contextFirstPage').addEventListener('click',
|
||||
SecondaryToolbar.firstPageClick.bind(SecondaryToolbar));
|
||||
@@ -4229,8 +4229,8 @@
|
||||
store.set('scrollLeft', Math.round(topLeft[0]));
|
||||
store.set('scrollTop', Math.round(topLeft[1]));
|
||||
});
|
||||
var href = PDFView.getAnchorUrl(pdfOpenParams);
|
||||
- var href = PDFView.getAnchorUrl(pdfOpenParams);
|
||||
- document.getElementById('viewBookmark').href = href;
|
||||
+ // document.getElementById('viewBookmark').href = href;
|
||||
}
|
||||
+ //var href = PDFView.getAnchorUrl(pdfOpenParams);
|
||||
+ //document.getElementById('viewBookmark').href = href;
|
||||
|
||||
window.addEventListener('resize', function webViewerResize(evt) {
|
||||
@@ -2933,8 +2923,8 @@
|
||||
// Update the current bookmark in the browsing history.
|
||||
PDFHistory.updateCurrentBookmark(pdfOpenParams, pageNumber);
|
||||
@@ -4273,9 +4273,9 @@
|
||||
PDFView.setTitleUsingUrl(file.name);
|
||||
|
||||
// URL does not reflect proper document location - hiding some icons.
|
||||
- document.getElementById('viewBookmark').setAttribute('hidden', 'true');
|
||||
- document.getElementById('download').setAttribute('hidden', 'true');
|
||||
+ // document.getElementById('viewBookmark').setAttribute('hidden', 'true');
|
||||
+ // document.getElementById('download').setAttribute('hidden', 'true');
|
||||
- document.getElementById('secondaryDownload').setAttribute('hidden', 'true');
|
||||
+ //document.getElementById('viewBookmark').setAttribute('hidden', 'true');
|
||||
+ //document.getElementById('download').setAttribute('hidden', 'true');
|
||||
+ //document.getElementById('secondaryDownload').setAttribute('hidden', 'true');
|
||||
}, true);
|
||||
|
||||
function selectScaleOption(value) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Render PDF files directly in the preview window
|
||||
* by using the JavaScript PDF Reader pdf.js by andreasgal (http://mozilla.github.com/pdf.js)
|
||||
*
|
||||
* @version 0.1
|
||||
* @version 0.1.2
|
||||
* @author Thomas Bruederli <bruederli@kolabsys.com>
|
||||
*
|
||||
* Copyright (C) 2013, Kolab Systems AG
|
||||
|
|
|
@ -14,9 +14,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals VBArray, PDFJS */
|
||||
|
||||
'use strict';
|
||||
|
||||
// Initializing PDFJS global object here, it case if we need to change/disable
|
||||
// some PDF.js features, e.g. range requests
|
||||
if (typeof PDFJS === 'undefined') {
|
||||
(typeof window !== 'undefined' ? window : this).PDFJS = {};
|
||||
}
|
||||
|
||||
// Checking if the typed arrays are supported
|
||||
(function checkTypedArrayCompatibility() {
|
||||
if (typeof Uint8Array !== 'undefined') {
|
||||
|
@ -54,8 +61,14 @@
|
|||
result = [];
|
||||
for (var i = 0; i < arg1; ++i)
|
||||
result[i] = 0;
|
||||
} else
|
||||
} else if ('slice' in arg1) {
|
||||
result = arg1.slice(0);
|
||||
} else {
|
||||
result = [];
|
||||
for (var i = 0, n = arg1.length; i < n; ++i) {
|
||||
result[i] = arg1[i];
|
||||
}
|
||||
}
|
||||
|
||||
result.subarray = subarray;
|
||||
result.buffer = result;
|
||||
|
@ -79,15 +92,22 @@
|
|||
window.Float64Array = TypedArray;
|
||||
})();
|
||||
|
||||
// URL = URL || webkitURL
|
||||
(function normalizeURLObject() {
|
||||
if (!window.URL) {
|
||||
window.URL = window.webkitURL;
|
||||
}
|
||||
})();
|
||||
|
||||
// Object.create() ?
|
||||
(function checkObjectCreateCompatibility() {
|
||||
if (typeof Object.create !== 'undefined')
|
||||
return;
|
||||
|
||||
Object.create = function objectCreate(proto) {
|
||||
var constructor = function objectCreateConstructor() {};
|
||||
constructor.prototype = proto;
|
||||
return new constructor();
|
||||
function Constructor() {}
|
||||
Constructor.prototype = proto;
|
||||
return new Constructor();
|
||||
};
|
||||
})();
|
||||
|
||||
|
@ -248,6 +268,36 @@
|
|||
};
|
||||
})();
|
||||
|
||||
// window.atob (base64 encode function) ?
|
||||
(function checkWindowAtobCompatibility() {
|
||||
if ('atob' in window)
|
||||
return;
|
||||
|
||||
// https://github.com/davidchambers/Base64.js
|
||||
var digits =
|
||||
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
||||
window.atob = function (input) {
|
||||
input = input.replace(/=+$/, '');
|
||||
if (input.length % 4 == 1) throw new Error('bad atob input');
|
||||
for (
|
||||
// initialize result and counters
|
||||
var bc = 0, bs, buffer, idx = 0, output = '';
|
||||
// get next character
|
||||
buffer = input.charAt(idx++);
|
||||
// character found in table?
|
||||
// initialize bit storage and add its ascii value
|
||||
~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,
|
||||
// and if not first of each 4 characters,
|
||||
// convert the first 8 bits to one ascii character
|
||||
bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0
|
||||
) {
|
||||
// try to find character in table (0-63, not found => -1)
|
||||
buffer = digits.indexOf(buffer);
|
||||
}
|
||||
return output;
|
||||
};
|
||||
})();
|
||||
|
||||
// Function.prototype.bind ?
|
||||
(function checkFunctionPrototypeBindCompatibility() {
|
||||
if (typeof Function.prototype.bind !== 'undefined')
|
||||
|
@ -263,36 +313,6 @@
|
|||
};
|
||||
})();
|
||||
|
||||
// IE9/10 text/html data URI
|
||||
(function checkDataURICompatibility() {
|
||||
if (!('documentMode' in document) ||
|
||||
document.documentMode !== 9 && document.documentMode !== 10)
|
||||
return;
|
||||
// overriding the src property
|
||||
var originalSrcDescriptor = Object.getOwnPropertyDescriptor(
|
||||
HTMLIFrameElement.prototype, 'src');
|
||||
Object.defineProperty(HTMLIFrameElement.prototype, 'src', {
|
||||
get: function htmlIFrameElementPrototypeSrcGet() { return this.$src; },
|
||||
set: function htmlIFrameElementPrototypeSrcSet(src) {
|
||||
this.$src = src;
|
||||
if (src.substr(0, 14) != 'data:text/html') {
|
||||
originalSrcDescriptor.set.call(this, src);
|
||||
return;
|
||||
}
|
||||
// for text/html, using blank document and then
|
||||
// document's open, write, and close operations
|
||||
originalSrcDescriptor.set.call(this, 'about:blank');
|
||||
setTimeout((function htmlIFrameElementPrototypeSrcOpenWriteClose() {
|
||||
var doc = this.contentDocument;
|
||||
doc.open('text/html');
|
||||
doc.write(src.substr(src.indexOf(',') + 1));
|
||||
doc.close();
|
||||
}).bind(this), 0);
|
||||
},
|
||||
enumerable: true
|
||||
});
|
||||
})();
|
||||
|
||||
// HTMLElement dataset property
|
||||
(function checkDatasetProperty() {
|
||||
var div = document.createElement('div');
|
||||
|
@ -334,7 +354,7 @@
|
|||
function changeList(element, itemName, add, remove) {
|
||||
var s = element.className || '';
|
||||
var list = s.split(/\s+/g);
|
||||
if (list[0] == '') list.shift();
|
||||
if (list[0] === '') list.shift();
|
||||
var index = list.indexOf(itemName);
|
||||
if (index < 0 && add)
|
||||
list.push(itemName);
|
||||
|
@ -378,21 +398,25 @@
|
|||
});
|
||||
})();
|
||||
|
||||
// Check console compatability
|
||||
// Check console compatibility
|
||||
(function checkConsoleCompatibility() {
|
||||
if (typeof console == 'undefined') {
|
||||
console = {
|
||||
if (!('console' in window)) {
|
||||
window.console = {
|
||||
log: function() {},
|
||||
error: function() {}
|
||||
error: function() {},
|
||||
warn: function() {}
|
||||
};
|
||||
} else if (!('bind' in console.log)) {
|
||||
// native functions in IE9 might not have bind
|
||||
console.log = (function(fn) {
|
||||
return function(msg) { return fn(msg); }
|
||||
return function(msg) { return fn(msg); };
|
||||
})(console.log);
|
||||
console.error = (function(fn) {
|
||||
return function(msg) { return fn(msg); }
|
||||
return function(msg) { return fn(msg); };
|
||||
})(console.error);
|
||||
console.warn = (function(fn) {
|
||||
return function(msg) { return fn(msg); };
|
||||
})(console.warn);
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -427,3 +451,29 @@
|
|||
enumerable: true
|
||||
});
|
||||
})();
|
||||
|
||||
(function checkRangeRequests() {
|
||||
// Safari has issues with cached range requests see:
|
||||
// https://github.com/mozilla/pdf.js/issues/3260
|
||||
// Last tested with version 6.0.4.
|
||||
var isSafari = Object.prototype.toString.call(
|
||||
window.HTMLElement).indexOf('Constructor') > 0;
|
||||
|
||||
// Older versions of Android (pre 3.0) has issues with range requests, see:
|
||||
// https://github.com/mozilla/pdf.js/issues/3381.
|
||||
// Make sure that we only match webkit-based Android browsers,
|
||||
// since Firefox/Fennec works as expected.
|
||||
var regex = /Android\s[0-2][^\d]/;
|
||||
var isOldAndroid = regex.test(navigator.userAgent);
|
||||
|
||||
if (isSafari || isOldAndroid) {
|
||||
PDFJS.disableRange = true;
|
||||
}
|
||||
})();
|
||||
|
||||
// Check if the browser supports manipulation of the history.
|
||||
(function checkHistoryManipulation() {
|
||||
if (!window.history.pushState) {
|
||||
PDFJS.disableHistory = true;
|
||||
}
|
||||
})();
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFJS */
|
||||
|
||||
'use strict';
|
||||
|
||||
|
@ -45,7 +46,7 @@ var FontInspector = (function FontInspectorClosure() {
|
|||
}
|
||||
}
|
||||
function textLayerClick(e) {
|
||||
if (!e.target.dataset.fontName || e.target.tagName != 'DIV')
|
||||
if (!e.target.dataset.fontName || e.target.tagName.toUpperCase() !== 'DIV')
|
||||
return;
|
||||
var fontName = e.target.dataset.fontName;
|
||||
var selects = document.getElementsByTagName('input');
|
||||
|
@ -219,26 +220,45 @@ var StepperManager = (function StepperManagerClosure() {
|
|||
|
||||
// The stepper for each page's IRQueue.
|
||||
var Stepper = (function StepperClosure() {
|
||||
// Shorter way to create element and optionally set textContent.
|
||||
function c(tag, textContent) {
|
||||
var d = document.createElement(tag);
|
||||
if (textContent)
|
||||
d.textContent = textContent;
|
||||
return d;
|
||||
}
|
||||
|
||||
function glyphsToString(glyphs) {
|
||||
var out = '';
|
||||
for (var i = 0; i < glyphs.length; i++) {
|
||||
if (glyphs[i] === null) {
|
||||
out += ' ';
|
||||
} else {
|
||||
out += glyphs[i].fontChar;
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
var glyphCommands = {
|
||||
'showText': 0,
|
||||
'showSpacedText': 0,
|
||||
'nextLineShowText': 0,
|
||||
'nextLineSetSpacingShowText': 2
|
||||
};
|
||||
|
||||
function Stepper(panel, pageIndex, initialBreakPoints) {
|
||||
this.panel = panel;
|
||||
this.len = 0;
|
||||
this.breakPoint = 0;
|
||||
this.nextBreakPoint = null;
|
||||
this.pageIndex = pageIndex;
|
||||
this.breakPoints = initialBreakPoints;
|
||||
this.currentIdx = -1;
|
||||
this.operatorListIdx = 0;
|
||||
}
|
||||
Stepper.prototype = {
|
||||
init: function init(IRQueue) {
|
||||
// Shorter way to create element and optionally set textContent.
|
||||
function c(tag, textContent) {
|
||||
var d = document.createElement(tag);
|
||||
if (textContent)
|
||||
d.textContent = textContent;
|
||||
return d;
|
||||
}
|
||||
init: function init() {
|
||||
var panel = this.panel;
|
||||
this.len = IRQueue.fnArray.length;
|
||||
var content = c('div', 'c=continue, s=step');
|
||||
var table = c('table');
|
||||
content.appendChild(table);
|
||||
|
@ -249,15 +269,18 @@ var Stepper = (function StepperClosure() {
|
|||
headerRow.appendChild(c('th', 'Idx'));
|
||||
headerRow.appendChild(c('th', 'fn'));
|
||||
headerRow.appendChild(c('th', 'args'));
|
||||
|
||||
panel.appendChild(content);
|
||||
this.table = table;
|
||||
},
|
||||
updateOperatorList: function updateOperatorList(operatorList) {
|
||||
var self = this;
|
||||
for (var i = 0; i < IRQueue.fnArray.length; i++) {
|
||||
for (var i = this.operatorListIdx; i < operatorList.fnArray.length; i++) {
|
||||
var line = c('tr');
|
||||
line.className = 'line';
|
||||
line.dataset.idx = i;
|
||||
table.appendChild(line);
|
||||
this.table.appendChild(line);
|
||||
var checked = this.breakPoints.indexOf(i) != -1;
|
||||
var args = IRQueue.argsArray[i] ? IRQueue.argsArray[i] : [];
|
||||
var args = operatorList.argsArray[i] ? operatorList.argsArray[i] : [];
|
||||
|
||||
var breakCell = c('td');
|
||||
var cbox = c('input');
|
||||
|
@ -271,17 +294,36 @@ var Stepper = (function StepperClosure() {
|
|||
else
|
||||
self.breakPoints.splice(self.breakPoints.indexOf(x), 1);
|
||||
StepperManager.saveBreakPoints(self.pageIndex, self.breakPoints);
|
||||
}
|
||||
};
|
||||
})(i);
|
||||
|
||||
breakCell.appendChild(cbox);
|
||||
line.appendChild(breakCell);
|
||||
line.appendChild(c('td', i.toString()));
|
||||
line.appendChild(c('td', IRQueue.fnArray[i]));
|
||||
line.appendChild(c('td', args.join(', ')));
|
||||
var fn = operatorList.fnArray[i];
|
||||
var decArgs = args;
|
||||
if (fn in glyphCommands) {
|
||||
var glyphIndex = glyphCommands[fn];
|
||||
var glyphs = args[glyphIndex];
|
||||
var decArgs = args.slice();
|
||||
var newArg;
|
||||
if (fn === 'showSpacedText') {
|
||||
newArg = [];
|
||||
for (var j = 0; j < glyphs.length; j++) {
|
||||
if (typeof glyphs[j] === 'number') {
|
||||
newArg.push(glyphs[j]);
|
||||
} else {
|
||||
newArg.push(glyphsToString(glyphs[j]));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
newArg = glyphsToString(glyphs);
|
||||
}
|
||||
decArgs[glyphIndex] = newArg;
|
||||
}
|
||||
line.appendChild(c('td', fn));
|
||||
line.appendChild(c('td', JSON.stringify(decArgs)));
|
||||
}
|
||||
panel.appendChild(content);
|
||||
var self = this;
|
||||
},
|
||||
getNextBreakPoint: function getNextBreakPoint() {
|
||||
this.breakPoints.sort(function(a, b) { return a - b; });
|
||||
|
@ -376,7 +418,7 @@ var Stats = (function Stats() {
|
|||
wrapper.appendChild(title);
|
||||
wrapper.appendChild(statsDiv);
|
||||
stats.push({ pageNumber: pageNumber, div: wrapper });
|
||||
stats.sort(function(a, b) { return a.pageNumber - b.pageNumber});
|
||||
stats.sort(function(a, b) { return a.pageNumber - b.pageNumber; });
|
||||
clear(this.panel);
|
||||
for (var i = 0, ii = stats.length; i < ii; ++i)
|
||||
this.panel.appendChild(stats[i].div);
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="40"
|
||||
height="40">
|
||||
height="40"
|
||||
viewBox="0 0 40 40">
|
||||
<path
|
||||
d="M 1.5006714,23.536225 6.8925879,18.994244 14.585721,26.037937 34.019683,4.5410479 38.499329,9.2235032 14.585721,35.458952 z"
|
||||
id="path4"
|
||||
|
|
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 415 B |
|
@ -2,7 +2,8 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
height="40"
|
||||
width="40">
|
||||
width="40"
|
||||
viewBox="0 0 40 40">
|
||||
<rect
|
||||
style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
width="33.76017"
|
||||
|
|
Before Width: | Height: | Size: 860 B After Width: | Height: | Size: 883 B |
|
@ -2,7 +2,8 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="40"
|
||||
height="40">
|
||||
height="40"
|
||||
viewBox="0 0 40 40">
|
||||
<g
|
||||
transform="translate(0,-60)"
|
||||
id="layer1">
|
||||
|
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
@ -2,7 +2,8 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="64"
|
||||
height="64">
|
||||
height="64"
|
||||
viewBox="0 0 64 64">
|
||||
<path
|
||||
d="M 32.003143,1.4044602 57.432701,62.632577 6.5672991,62.627924 z"
|
||||
style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:1.00493038;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
|
||||
|
|
Before Width: | Height: | Size: 385 B After Width: | Height: | Size: 408 B |
|
@ -2,7 +2,8 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="64"
|
||||
height="64">
|
||||
height="64"
|
||||
viewBox="0 0 64 64">
|
||||
<path
|
||||
d="M 25.470843,9.4933766 C 25.30219,12.141818 30.139101,14.445969 34.704831,13.529144 40.62635,12.541995 41.398833,7.3856498 35.97505,5.777863 31.400921,4.1549155 25.157674,6.5445892 25.470843,9.4933766 z M 4.5246282,17.652051 C 4.068249,11.832873 9.2742983,5.9270407 18.437379,3.0977088 29.751911,-0.87185184 45.495663,1.4008022 53.603953,7.1104009 c 9.275765,6.1889221 7.158128,16.2079421 -3.171076,21.5939521 -1.784316,1.635815 -6.380222,1.21421 -7.068351,3.186186 -1.04003,0.972427 -1.288046,2.050158 -1.232864,3.168203 1.015111,2.000108 -3.831548,1.633216 -3.270553,3.759574 0.589477,5.264544 -0.179276,10.53738 -0.362842,15.806257 -0.492006,2.184998 1.163456,4.574232 -0.734888,6.610642 -2.482919,2.325184 -7.30604,2.189143 -9.193497,-0.274767 -2.733688,-1.740626 -8.254447,-3.615254 -6.104247,-6.339626 3.468112,-1.708686 -2.116197,-3.449897 0.431242,-5.080274 5.058402,-1.39256 -2.393215,-2.304318 -0.146889,-4.334645 3.069198,-0.977415 2.056986,-2.518352 -0.219121,-3.540397 1.876567,-1.807151 1.484149,-4.868919 -2.565455,-5.942205 0.150866,-1.805474 2.905737,-4.136876 -1.679967,-5.20493 C 10.260902,27.882167 4.6872697,22.95045 4.5245945,17.652051 z"
|
||||
id="path604"
|
||||
|
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
@ -2,7 +2,8 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="64"
|
||||
height="64">
|
||||
height="64"
|
||||
viewBox="0 0 64 64">
|
||||
<path
|
||||
d="M 32.003143,10.913072 57.432701,53.086929 6.567299,53.083723 z"
|
||||
id="path2985"
|
||||
|
|
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 426 B |
|
@ -2,7 +2,8 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="40"
|
||||
height="40">
|
||||
height="40"
|
||||
viewBox="0 0 40 40">
|
||||
<rect
|
||||
width="36.075428"
|
||||
height="31.096582"
|
||||
|
|
Before Width: | Height: | Size: 1,018 B After Width: | Height: | Size: 1 KiB |
|
@ -2,7 +2,8 @@
|
|||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="40"
|
||||
height="40">
|
||||
height="40"
|
||||
viewBox="0 0 40 40">
|
||||
<rect
|
||||
width="33.76017"
|
||||
height="33.76017"
|
||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3 KiB |
After Width: | Height: | Size: 3 KiB |
BIN
plugins/pdfviewer/viewer/images/shadow.png
Normal file
After Width: | Height: | Size: 454 B |
After Width: | Height: | Size: 491 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 302 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3 KiB |
|
@ -1,30 +1,31 @@
|
|||
/** Copyright (c) 2011-2012 Fabien Cazenave, Mozilla.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
* deal in the Software without restriction, including without limitation the
|
||||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
* sell copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* Copyright (c) 2011-2013 Fabien Cazenave, Mozilla.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
* deal in the Software without restriction, including without limitation the
|
||||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
* sell copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
Additional modifications for PDF.js project:
|
||||
- Disables language initialization on page loading;
|
||||
- Adds fallback argument to the getL10nData;
|
||||
- Removes consoleLog and simplifies consoleWarn;
|
||||
- Removes consoleWarn and consoleLog and use console.log/warn directly.
|
||||
- Removes window._ assignment.
|
||||
*/
|
||||
|
||||
/*jshint browser: true, devel: true, es5: true, globalstrict: true */
|
||||
'use strict';
|
||||
|
||||
|
@ -36,13 +37,21 @@ document.webL10n = (function(window, document, undefined) {
|
|||
var gMacros = {};
|
||||
var gReadyState = 'loading';
|
||||
|
||||
// read-only setting -- we recommend to load l10n resources synchronously
|
||||
var gAsyncResourceLoading = true;
|
||||
|
||||
// debug helpers
|
||||
function consoleWarn(message) {
|
||||
console.log('[l10n] ' + message);
|
||||
};
|
||||
/**
|
||||
* Synchronously loading l10n resources significantly minimizes flickering
|
||||
* from displaying the app with non-localized strings and then updating the
|
||||
* strings. Although this will block all script execution on this page, we
|
||||
* expect that the l10n resources are available locally on flash-storage.
|
||||
*
|
||||
* As synchronous XHR is generally considered as a bad idea, we're still
|
||||
* loading l10n resources asynchronously -- but we keep this in a setting,
|
||||
* just in case... and applications using this library should hide their
|
||||
* content until the `localized' event happens.
|
||||
*/
|
||||
|
||||
var gAsyncResourceLoading = true; // read-only
|
||||
|
||||
|
||||
/**
|
||||
* DOM helpers for the so-called "HTML API".
|
||||
|
@ -55,6 +64,12 @@ document.webL10n = (function(window, document, undefined) {
|
|||
return document.querySelectorAll('link[type="application/l10n"]');
|
||||
}
|
||||
|
||||
function getL10nDictionary() {
|
||||
var script = document.querySelector('script[type="application/l10n"]');
|
||||
// TODO: support multiple and external JSON dictionaries
|
||||
return script ? JSON.parse(script.innerHTML) : null;
|
||||
}
|
||||
|
||||
function getTranslatableChildren(element) {
|
||||
return element ? element.querySelectorAll('*[data-l10n-id]') : [];
|
||||
}
|
||||
|
@ -70,7 +85,7 @@ document.webL10n = (function(window, document, undefined) {
|
|||
try {
|
||||
args = JSON.parse(l10nArgs);
|
||||
} catch (e) {
|
||||
consoleWarn('could not parse arguments for #' + l10nId);
|
||||
console.warn('could not parse arguments for #' + l10nId);
|
||||
}
|
||||
}
|
||||
return { id: l10nId, args: args };
|
||||
|
@ -78,9 +93,41 @@ document.webL10n = (function(window, document, undefined) {
|
|||
|
||||
function fireL10nReadyEvent(lang) {
|
||||
var evtObject = document.createEvent('Event');
|
||||
evtObject.initEvent('localized', false, false);
|
||||
evtObject.initEvent('localized', true, false);
|
||||
evtObject.language = lang;
|
||||
window.dispatchEvent(evtObject);
|
||||
document.dispatchEvent(evtObject);
|
||||
}
|
||||
|
||||
function xhrLoadText(url, onSuccess, onFailure, asynchronous) {
|
||||
onSuccess = onSuccess || function _onSuccess(data) {};
|
||||
onFailure = onFailure || function _onFailure() {
|
||||
console.warn(url + ' not found.');
|
||||
};
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', url, asynchronous);
|
||||
if (xhr.overrideMimeType) {
|
||||
xhr.overrideMimeType('text/plain; charset=utf-8');
|
||||
}
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState == 4) {
|
||||
if (xhr.status == 200 || xhr.status === 0) {
|
||||
onSuccess(xhr.responseText);
|
||||
} else {
|
||||
onFailure();
|
||||
}
|
||||
}
|
||||
};
|
||||
xhr.onerror = onFailure;
|
||||
xhr.ontimeout = onFailure;
|
||||
|
||||
// in Firefox OS with the app:// protocol, trying to XHR a non-existing
|
||||
// URL will raise an exception here -- hence this ugly try...catch.
|
||||
try {
|
||||
xhr.send(null);
|
||||
} catch (e) {
|
||||
onFailure();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -108,7 +155,7 @@ document.webL10n = (function(window, document, undefined) {
|
|||
*/
|
||||
|
||||
function parseResource(href, lang, successCallback, failureCallback) {
|
||||
var baseURL = href.replace(/\/[^\/]*$/, '/');
|
||||
var baseURL = href.replace(/[^\/]*$/, '') || './';
|
||||
|
||||
// handle escaped characters (backslashes) in a string
|
||||
function evalString(text) {
|
||||
|
@ -171,16 +218,17 @@ document.webL10n = (function(window, document, undefined) {
|
|||
|
||||
// key-value pair
|
||||
var tmp = line.match(reSplit);
|
||||
if (tmp && tmp.length == 3)
|
||||
if (tmp && tmp.length == 3) {
|
||||
dictionary[tmp[1]] = evalString(tmp[2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// import another *.properties file
|
||||
function loadImport(url) {
|
||||
loadResource(url, function(content) {
|
||||
xhrLoadText(url, function(content) {
|
||||
parseRawLines(content, false); // don't allow recursive imports
|
||||
}, false, false); // load synchronously
|
||||
}, null, false); // load synchronously
|
||||
}
|
||||
|
||||
// fill the dictionary
|
||||
|
@ -188,29 +236,8 @@ document.webL10n = (function(window, document, undefined) {
|
|||
return dictionary;
|
||||
}
|
||||
|
||||
// load the specified resource file
|
||||
function loadResource(url, onSuccess, onFailure, asynchronous) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', url, asynchronous);
|
||||
if (xhr.overrideMimeType) {
|
||||
xhr.overrideMimeType('text/plain; charset=utf-8');
|
||||
}
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState == 4) {
|
||||
if (xhr.status == 200 || xhr.status === 0) {
|
||||
if (onSuccess)
|
||||
onSuccess(xhr.responseText);
|
||||
} else {
|
||||
if (onFailure)
|
||||
onFailure();
|
||||
}
|
||||
}
|
||||
};
|
||||
xhr.send(null);
|
||||
}
|
||||
|
||||
// load and parse l10n data (warning: global variables are used here)
|
||||
loadResource(href, function(response) {
|
||||
xhrLoadText(href, function(response) {
|
||||
gTextData += response; // mostly for debug
|
||||
|
||||
// parse *.properties text data into an l10n dictionary
|
||||
|
@ -233,13 +260,16 @@ document.webL10n = (function(window, document, undefined) {
|
|||
}
|
||||
|
||||
// trigger callback
|
||||
if (successCallback)
|
||||
if (successCallback) {
|
||||
successCallback();
|
||||
}
|
||||
}, failureCallback, gAsyncResourceLoading);
|
||||
};
|
||||
}
|
||||
|
||||
// load and parse all resources for the specified locale
|
||||
function loadLocale(lang, callback) {
|
||||
callback = callback || function _callback() {};
|
||||
|
||||
clear();
|
||||
gLanguage = lang;
|
||||
|
||||
|
@ -247,8 +277,17 @@ document.webL10n = (function(window, document, undefined) {
|
|||
// and load the resource files
|
||||
var langLinks = getL10nResourceLinks();
|
||||
var langCount = langLinks.length;
|
||||
if (langCount == 0) {
|
||||
consoleWarn('no resource to load, early way out');
|
||||
if (langCount === 0) {
|
||||
// we might have a pre-compiled dictionary instead
|
||||
var dict = getL10nDictionary();
|
||||
if (dict && dict.locales && dict.default_locale) {
|
||||
console.log('using the embedded JSON directory, early way out');
|
||||
gL10nData = dict.locales[lang] || dict.locales[dict.default_locale];
|
||||
callback();
|
||||
} else {
|
||||
console.log('no resource to load, early way out');
|
||||
}
|
||||
// early way out
|
||||
fireL10nReadyEvent(lang);
|
||||
gReadyState = 'complete';
|
||||
return;
|
||||
|
@ -260,21 +299,20 @@ document.webL10n = (function(window, document, undefined) {
|
|||
onResourceLoaded = function() {
|
||||
gResourceCount++;
|
||||
if (gResourceCount >= langCount) {
|
||||
if (callback) // execute the [optional] callback
|
||||
callback();
|
||||
callback();
|
||||
fireL10nReadyEvent(lang);
|
||||
gReadyState = 'complete';
|
||||
}
|
||||
};
|
||||
|
||||
// load all resource files
|
||||
function l10nResourceLink(link) {
|
||||
function L10nResourceLink(link) {
|
||||
var href = link.href;
|
||||
var type = link.type;
|
||||
this.load = function(lang, callback) {
|
||||
var applied = lang;
|
||||
parseResource(href, lang, callback, function() {
|
||||
consoleWarn(href + ' not found.');
|
||||
console.warn(href + ' not found.');
|
||||
applied = '';
|
||||
});
|
||||
return applied; // return lang if found, an empty string if not found
|
||||
|
@ -282,10 +320,10 @@ document.webL10n = (function(window, document, undefined) {
|
|||
}
|
||||
|
||||
for (var i = 0; i < langCount; i++) {
|
||||
var resource = new l10nResourceLink(langLinks[i]);
|
||||
var resource = new L10nResourceLink(langLinks[i]);
|
||||
var rv = resource.load(lang, onResourceLoaded);
|
||||
if (rv != lang) { // lang not found, used default resource instead
|
||||
consoleWarn('"' + lang + '" resource not found');
|
||||
console.warn('"' + lang + '" resource not found');
|
||||
gLanguage = '';
|
||||
}
|
||||
}
|
||||
|
@ -706,7 +744,7 @@ document.webL10n = (function(window, document, undefined) {
|
|||
// return a function that gives the plural form name for a given integer
|
||||
var index = locales2rules[lang.replace(/-.*$/, '')];
|
||||
if (!(index in pluralRules)) {
|
||||
consoleWarn('plural form unknown for [' + lang + ']');
|
||||
console.warn('plural form unknown for [' + lang + ']');
|
||||
return function() { return 'other'; };
|
||||
}
|
||||
return pluralRules[index];
|
||||
|
@ -723,8 +761,9 @@ document.webL10n = (function(window, document, undefined) {
|
|||
return str;
|
||||
|
||||
// initialize _pluralRules
|
||||
if (!gMacros._pluralRules)
|
||||
if (!gMacros._pluralRules) {
|
||||
gMacros._pluralRules = getPluralRules(gLanguage);
|
||||
}
|
||||
var index = '[' + gMacros._pluralRules(n) + ']';
|
||||
|
||||
// try to find a [zero|one|two] key if it's defined
|
||||
|
@ -736,6 +775,8 @@ document.webL10n = (function(window, document, undefined) {
|
|||
str = gL10nData[key + '[two]'][prop];
|
||||
} else if ((key + index) in gL10nData) {
|
||||
str = gL10nData[key + index][prop];
|
||||
} else if ((key + '[other]') in gL10nData) {
|
||||
str = gL10nData[key + '[other]'][prop];
|
||||
}
|
||||
|
||||
return str;
|
||||
|
@ -750,7 +791,7 @@ document.webL10n = (function(window, document, undefined) {
|
|||
function getL10nData(key, args, fallback) {
|
||||
var data = gL10nData[key];
|
||||
if (!data) {
|
||||
consoleWarn('#' + key + ' missing for [' + gLanguage + ']');
|
||||
console.warn('#' + key + ' is undefined.');
|
||||
if (!fallback) {
|
||||
return null;
|
||||
}
|
||||
|
@ -766,7 +807,7 @@ document.webL10n = (function(window, document, undefined) {
|
|||
for (var prop in data) {
|
||||
var str = data[prop];
|
||||
str = substIndexes(str, args, key, prop);
|
||||
str = substArguments(str, args);
|
||||
str = substArguments(str, args, key);
|
||||
rv[prop] = str;
|
||||
}
|
||||
return rv;
|
||||
|
@ -799,8 +840,8 @@ document.webL10n = (function(window, document, undefined) {
|
|||
}
|
||||
|
||||
// replace {{arguments}} with their values
|
||||
function substArguments(str, args) {
|
||||
var reArgs = /\{\{\s*([a-zA-Z\.]+)\s*\}\}/;
|
||||
function substArguments(str, args, key) {
|
||||
var reArgs = /\{\{\s*(.+?)\s*\}\}/;
|
||||
var match = reArgs.exec(str);
|
||||
while (match) {
|
||||
if (!match || match.length < 2)
|
||||
|
@ -808,12 +849,12 @@ document.webL10n = (function(window, document, undefined) {
|
|||
|
||||
var arg = match[1];
|
||||
var sub = '';
|
||||
if (arg in args) {
|
||||
if (args && arg in args) {
|
||||
sub = args[arg];
|
||||
} else if (arg in gL10nData) {
|
||||
sub = gL10nData[arg][gTextProp];
|
||||
} else {
|
||||
consoleWarn('could not find argument {{' + arg + '}}');
|
||||
console.log('argument {{' + arg + '}} for #' + key + ' is undefined.');
|
||||
return str;
|
||||
}
|
||||
|
||||
|
@ -833,23 +874,21 @@ document.webL10n = (function(window, document, undefined) {
|
|||
// get the related l10n object
|
||||
var data = getL10nData(l10n.id, l10n.args);
|
||||
if (!data) {
|
||||
consoleWarn('#' + l10n.id + ' missing for [' + gLanguage + ']');
|
||||
console.warn('#' + l10n.id + ' is undefined.');
|
||||
return;
|
||||
}
|
||||
|
||||
// translate element (TODO: security checks?)
|
||||
// for the node content, replace the content of the first child textNode
|
||||
// and clear other child textNodes
|
||||
if (data[gTextProp]) { // XXX
|
||||
if (element.children.length === 0) {
|
||||
if (getChildElementCount(element) === 0) {
|
||||
element[gTextProp] = data[gTextProp];
|
||||
} else {
|
||||
var children = element.childNodes,
|
||||
found = false;
|
||||
// this element has element children: replace the content of the first
|
||||
// (non-empty) child textNode and clear other child textNodes
|
||||
var children = element.childNodes;
|
||||
var found = false;
|
||||
for (var i = 0, l = children.length; i < l; i++) {
|
||||
if (children[i].nodeType === 3 &&
|
||||
/\S/.test(children[i].textContent)) { // XXX
|
||||
// using nodeValue seems cross-browser
|
||||
if (children[i].nodeType === 3 && /\S/.test(children[i].nodeValue)) {
|
||||
if (found) {
|
||||
children[i].nodeValue = '';
|
||||
} else {
|
||||
|
@ -858,8 +897,11 @@ document.webL10n = (function(window, document, undefined) {
|
|||
}
|
||||
}
|
||||
}
|
||||
// if no (non-empty) textNode is found, insert a textNode before the
|
||||
// first element child.
|
||||
if (!found) {
|
||||
consoleWarn('unexpected error, could not translate element content');
|
||||
var textNode = document.createTextNode(data[gTextProp]);
|
||||
element.insertBefore(textNode, element.firstChild);
|
||||
}
|
||||
}
|
||||
delete data[gTextProp];
|
||||
|
@ -870,6 +912,21 @@ document.webL10n = (function(window, document, undefined) {
|
|||
}
|
||||
}
|
||||
|
||||
// webkit browsers don't currently support 'children' on SVG elements...
|
||||
function getChildElementCount(element) {
|
||||
if (element.children) {
|
||||
return element.children.length;
|
||||
}
|
||||
if (typeof element.childElementCount !== 'undefined') {
|
||||
return element.childElementCount;
|
||||
}
|
||||
var count = 0;
|
||||
for (var i = 0; i < element.childNodes.length; i++) {
|
||||
count += element.nodeType === 1 ? 1 : 0;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
// translate an HTML subtree
|
||||
function translateFragment(element) {
|
||||
element = element || document.documentElement;
|
||||
|
@ -888,10 +945,21 @@ document.webL10n = (function(window, document, undefined) {
|
|||
// cross-browser API (sorry, oldIE doesn't support getters & setters)
|
||||
return {
|
||||
// get a localized string
|
||||
get: function(key, args, fallback) {
|
||||
var data = getL10nData(key, args, {textContent: fallback});
|
||||
if (data) { // XXX double-check this
|
||||
return 'textContent' in data ? data.textContent : '';
|
||||
get: function(key, args, fallbackString) {
|
||||
var index = key.lastIndexOf('.');
|
||||
var prop = gTextProp;
|
||||
if (index > 0) { // An attribute has been specified
|
||||
prop = key.substr(index + 1);
|
||||
key = key.substring(0, index);
|
||||
}
|
||||
var fallback;
|
||||
if (fallbackString) {
|
||||
fallback = {};
|
||||
fallback[prop] = fallbackString;
|
||||
}
|
||||
var data = getL10nData(key, args, fallback);
|
||||
if (data && prop in data) {
|
||||
return data[prop];
|
||||
}
|
||||
return '{{' + key + '}}';
|
||||
},
|
||||
|
@ -916,7 +984,21 @@ document.webL10n = (function(window, document, undefined) {
|
|||
translate: translateFragment,
|
||||
|
||||
// this can be used to prevent race conditions
|
||||
getReadyState: function() { return gReadyState; }
|
||||
getReadyState: function() { return gReadyState; },
|
||||
ready: function(callback) {
|
||||
if (!callback) {
|
||||
return;
|
||||
} else if (gReadyState == 'complete' || gReadyState == 'interactive') {
|
||||
window.setTimeout(callback);
|
||||
} else if (document.addEventListener) {
|
||||
document.addEventListener('localized', callback);
|
||||
} else if (document.attachEvent) {
|
||||
document.documentElement.attachEvent('onpropertychange', function(e) {
|
||||
if (e.propertyName === 'localized') {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}) (window, document);
|
||||
|
|
|
@ -30,17 +30,25 @@ zoom_out_label=تصغير
|
|||
zoom_in.title=تكبير
|
||||
zoom_in_label=تكبير
|
||||
zoom.title=التكبير
|
||||
print.title=طباعة
|
||||
print_label=طباعة
|
||||
fullscreen.title=ملء الشاشة
|
||||
fullscreen_label=ملء الشاشة
|
||||
open_file.title=فتح الملف
|
||||
open_file_label=فتح
|
||||
print.title=طباعة
|
||||
print_label=طباعة
|
||||
download.title=تحميل
|
||||
download_label=تحميل
|
||||
bookmark.title=المشهد الحالي (نسخ أو فتح في نافذة جديدة)
|
||||
bookmark_label=المشهد الحالي
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
page_rotate_cw.title=تدوير مع عقارب الساعة
|
||||
page_rotate_cw.label=تدوير مع عقارب الساعة
|
||||
page_rotate_cw_label=تدوير مع عقارب الساعة
|
||||
page_rotate_ccw.title=تدوير عكس عقارب الساعة
|
||||
page_rotate_ccw.label=تدوير عكس عقارب الساعة
|
||||
page_rotate_ccw_label=تدوير عكس عقارب الساعة
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
|
@ -53,9 +61,6 @@ thumbs_label=الصور المصغرة
|
|||
findbar.title=البحث في المستند
|
||||
findbar_label=بحث
|
||||
|
||||
# Document outline messages
|
||||
no_outline=لا يوجد ملخص
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
|
@ -64,10 +69,6 @@ thumb_page_title=الصفحة {{page}}
|
|||
# number.
|
||||
thumb_page_canvas=صورة مصغرة من الصفحة {{page}}
|
||||
|
||||
# Context menu
|
||||
page_rotate_cw.label=تدوير مع عقارب الساعة
|
||||
page_rotate_ccw.label=تدوير عكس عقارب الساعة
|
||||
|
||||
# Find panel button title and messages
|
||||
find=بحث
|
||||
find_terms_not_found=(لا يوجد)
|
||||
|
@ -101,11 +102,11 @@ page_scale_actual=الحجم الحقيقي
|
|||
loading_error_indicator=خطأ
|
||||
loading_error=حدث خطأ أثناء تحميل وثيقه الـPDF
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[ملاحظة {{type}}]
|
||||
text_annotation_type.alt=[ملاحظة {{type}}]
|
||||
request_password=الـPDF محمي بكلمة مرور:
|
||||
|
||||
printing_not_supported=تحذير: الطباعة ليست مدعومة كليًا في هذا المتصفح.
|
||||
|
|
|
@ -30,19 +30,31 @@ zoom_out_label=Reduir
|
|||
zoom_in.title=Ampliar
|
||||
zoom_in_label=Ampliar
|
||||
zoom.title=Ampliació
|
||||
print.title=Imprimir
|
||||
print_label=Imprimir
|
||||
fullscreen.title=Pantalla completa
|
||||
fullscreen_label=Pantalla completa
|
||||
presentation_mode.title=Canviar a mode de Presentació
|
||||
presentation_mode_label=Mode de Presentació
|
||||
open_file.title=Obrir arxiu
|
||||
open_file_label=Obrir
|
||||
print.title=Imprimir
|
||||
print_label=Imprimir
|
||||
download.title=Descarregar
|
||||
download_label=Descarregar
|
||||
bookmark.title=Vista actual (copiï o obri en una finestra nova)
|
||||
bookmark_label=Vista actual
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=Primera pàgina
|
||||
first_page.label=Primera pàgina
|
||||
first_page_label=Primera pàgina
|
||||
last_page.title=Darrera pàgina
|
||||
last_page.label=Darrera pàgina
|
||||
last_page_label=Darrera pàgina
|
||||
page_rotate_cw.title=Rotar sentit horari
|
||||
page_rotate_cw.label=Rotar sentit horari
|
||||
page_rotate_cw_label=Rotar sentit horari
|
||||
page_rotate_ccw.title=Rotar sentit anti-horari
|
||||
page_rotate_ccw.label=Rotar sentit anti-horari
|
||||
page_rotate_ccw_label=Rotar sentit anti-horari
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
|
@ -55,9 +67,6 @@ thumbs_label=Miniatures
|
|||
findbar.title=Cercar en el document
|
||||
findbar_label=Cercar
|
||||
|
||||
# Document outline messages
|
||||
no_outline=No hi ha cap esquema disponible
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
|
@ -69,11 +78,6 @@ thumb_page_canvas=Miniatura de la pàgina {{page}}
|
|||
# Find panel button title and messages
|
||||
find=Cercar
|
||||
find_terms_not_found=(No trobat)
|
||||
# Context menu
|
||||
first_page.label=Primera pàgina
|
||||
last_page.label=Darrera pàgina
|
||||
page_rotate_cw.label=Rotar sentit horari
|
||||
page_rotate_ccw.label=Rotar sentit anti-horari
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Cerca:
|
||||
|
@ -117,11 +121,11 @@ loading_error_indicator=Error
|
|||
loading_error=Ha ocorregut un error mentres es carregava el PDF.
|
||||
invalid_file_error=Invàlid o fitxer PDF corrupte.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[Anotació {{type}}]
|
||||
text_annotation_type.alt=[Anotació {{type}}]
|
||||
request_password=El PDF està protegit amb una contrasenya:
|
||||
|
||||
printing_not_supported=Avís: La impressió no és compatible totalment en aquest navegador.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
bookmark.title=Aktuální zobrazení(zkopírovat nebo otevřít v novém okně)
|
||||
bookmark.title=Aktuální zobrazení (zkopírovat nebo otevřít v novém okně)
|
||||
previous.title=Předchozí stránka
|
||||
next.title=Další stránka
|
||||
print.title=Tisk
|
||||
|
@ -24,9 +24,9 @@ error_less_info=Méně informací
|
|||
error_close=Zavřít
|
||||
error_build=PDF.JS Build: {{build}}
|
||||
error_message=Zpráva:{{message}}
|
||||
error_stack=Stack:{{stack}}
|
||||
error_file=Soubor:{{file}}
|
||||
error_line=Řádek:{{line}}
|
||||
error_stack=Stack: {{stack}}
|
||||
error_file=Soubor: {{file}}
|
||||
error_line=Řádek: {{line}}
|
||||
page_scale_width=Šířka stránky
|
||||
page_scale_fit=Stránka
|
||||
page_scale_auto=Automatické přibližení
|
||||
|
@ -34,15 +34,14 @@ page_scale_actual=Skutečná velikost
|
|||
toggle_slider.title=Přepnout posuvník
|
||||
thumbs.title=Zobrazit náhledy
|
||||
outline.title=Zobrazit osnovu dokumentu
|
||||
loading=Načítám... {{percent}}%
|
||||
loading=Načítám... {{percent}} %
|
||||
loading_error_indicator=Chyba
|
||||
loading_error=Došlo k chybě při načítání PDF.
|
||||
rendering_error=Došlo k chybě při vykreslování stránky.
|
||||
page_label=Stránka:
|
||||
page_of=z{{pageCount}}
|
||||
no_outline=Žádné osnovy k dispozici
|
||||
page_of=z {{pageCount}}
|
||||
open_file.title=Otevřít soubor
|
||||
text_annotation_type=[{{type}}Anotace]
|
||||
text_annotation_type.alt=[{{type}}Anotace]
|
||||
toggle_slider_label=Přepnout posuvník
|
||||
thumbs_label=Náhledy
|
||||
outline_label=Přehled dokumentu
|
||||
|
@ -54,6 +53,6 @@ download_label=Stáhnout
|
|||
zoom_out_label=Zmenšit
|
||||
zoom_in_label=Přiblížit
|
||||
zoom.title=Zvětšit
|
||||
thumb_page_title=Stránka{{page}}
|
||||
thumb_page_title=Stránka {{page}}
|
||||
thumb_page_canvas=Náhled stránky {{page}}
|
||||
request_password=PDF je chráněn heslem:
|
||||
|
|
134
plugins/pdfviewer/viewer/locale/cy/viewer.properties
Normal file
|
@ -0,0 +1,134 @@
|
|||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Tudalen Flaenorol
|
||||
previous_label=Blaenorol
|
||||
next.title=Nesaf Tudalen
|
||||
next_label=Nesaf
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Tudalen:
|
||||
page_of=o {{pageCount}}
|
||||
|
||||
zoom_out.title=Chwyddo Allan
|
||||
zoom_out_label=Chwyddo Allan
|
||||
zoom_in.title=Chwyddo Mewn
|
||||
zoom_in_label=Chwyddo Mewn
|
||||
zoom.title=Chwyddo
|
||||
presentation_mode.title=Newid i'r Modd Cyflwyn
|
||||
presentation_mode_label=Modd Cyflwyniad
|
||||
open_file.title=Agor Ffeil
|
||||
open_file_label=Agor
|
||||
print.title=Llwyth
|
||||
print_label=Argraffu
|
||||
download.title=Lawrlwytho
|
||||
download_label=Llwytho i Lawr
|
||||
bookmark.title=Golwg cyfredol (copïo neu agor ffenestr newydd)
|
||||
bookmark_label=Golwg cyfredol
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
tools.title=Offer
|
||||
tools_label=Offer
|
||||
first_page.title=Mynd i'r Dudalen Gyntaf
|
||||
first_page.label=Mynd i'r Dudalen Gyntaf
|
||||
first_page_label=Mynd i'r Dudalen Gyntaf
|
||||
last_page.title=Mynd i'r Dudalen Olaf
|
||||
last_page.label=Mynd i'r Dudalen Olaf
|
||||
last_page_label=Mynd i'r Dudalen Olaf
|
||||
page_rotate_cw.title=Cylchdroi yn Glocwedd
|
||||
page_rotate_cw.label=Cylchdroi yn Glocwedd
|
||||
page_rotate_cw_label=Cylchdroi yn Glocwedd
|
||||
page_rotate_ccw.title=Cylchdroi yn Wrthglocwedd
|
||||
page_rotate_ccw.label=Cylchdroi yn Wrthglocwedd
|
||||
page_rotate_ccw_label=Cylchdroi yn Wrthglocwedd
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=Toglo'r Bar Ochr
|
||||
toggle_sidebar_label=Toglo'r Bar Ochr
|
||||
outline.title=Dangos Amlinell Dogfen
|
||||
outline_label=Amlinelliad Dogfen
|
||||
thumbs.title=Dangos Lluniau Bach
|
||||
thumbs_label=Lluniau Bach
|
||||
findbar.title=Canfod yn y Ddogfen
|
||||
findbar_label=Canfod
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Tudalen {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=Llun Bach Tudalen {{page}}
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Canfod:
|
||||
find_previous.title=Canfod enghraifft flaenorol o'r ymadrodd
|
||||
find_previous_label=Blaenorol
|
||||
find_next.title=Canfod enghraifft nesaf yr ymadrodd
|
||||
find_next_label=Nesaf
|
||||
find_highlight=Amlygu popeth
|
||||
find_match_case_label=Cydweddu maint
|
||||
find_reached_top=Wedi cyrraedd brig y dudalen, parhau o'r gwaelod
|
||||
find_reached_bottom=Wedi cyrraedd diwedd y dudalen, parhau o'r brig
|
||||
find_not_found=Heb ganfod ymadrodd
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Rhagor o Wybodaeth
|
||||
error_less_info=Llai o wybodaeth
|
||||
error_close=Cau
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v {{version}} (build: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Neges: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Stac: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Ffeil: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Llinell: {{line}}
|
||||
rendering_error=Digwyddodd gwall wrth adeiladu'r dudalen.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Lled Tudalen
|
||||
page_scale_fit=Ffit Tudalen
|
||||
page_scale_auto=Chwyddo Awtomatig
|
||||
page_scale_actual=Maint Gwirioneddol
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Gwall
|
||||
loading_error=Digwyddodd gwall wrth lwytho'r PDF.
|
||||
invalid_file_error=Annilys neu llygredig ffeil PDF.
|
||||
missing_file_error=Ar goll ffeil PDF.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type.alt=[Anodiad {{type}} ]
|
||||
request_password=PDF yn cael ei diogelu gan gyfrinair:
|
||||
invalid_password=Cyfrinair annilys.
|
||||
|
||||
printing_not_supported=Rhybudd: Nid yw argraffu yn cael ei gynnal yn llawn gan y porwr.
|
||||
printing_not_ready=Rhybudd: Nid yw'r PDF wedi ei lwytho'n llawn ar gyfer argraffu.
|
||||
web_fonts_disabled=Ffontiau gwe wedi eu hanablu: methu defnyddio ffontiau PDF mewnblanedig.
|
||||
document_colors_disabled=Nid oes caniatâd i ddogfennau PDF i ddefnyddio eu lliwiau eu hunain: Mae 'Caniatáu i dudalennau ddefnyddio eu lliwiau eu hunain' wedi ei atal yn y porwr.
|
|
@ -30,17 +30,31 @@ zoom_out_label=Zoom ud
|
|||
zoom_in.title=Zoom ind
|
||||
zoom_in_label=Zoom ind
|
||||
zoom.title=Zoom
|
||||
print_label=Udskriv
|
||||
print.title=Udskriv
|
||||
fullscreen.title=Fuldskærm
|
||||
fullscreen_label=Fuldskærm
|
||||
open_file.title=Åbn fil
|
||||
open_file_label=Åbn
|
||||
print_label=Udskriv
|
||||
print.title=Udskriv
|
||||
download.title=Hent
|
||||
download_label=Hent
|
||||
bookmark.title=Aktuel visning (kopier eller åbn i et nyt vindue)
|
||||
bookmark_label=Aktuel visning
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=Gå til første side
|
||||
first_page.label=Gå til første side
|
||||
first_page_label=Gå til første side
|
||||
last_page.title=Gå til sidste side
|
||||
last_page.label=Gå til sidste side
|
||||
last_page_label=Gå til sidste side
|
||||
page_rotate_cw.title=Rotér med uret
|
||||
page_rotate_cw.label=Rotér med uret
|
||||
page_rotate_cw_label=Rotér med uret
|
||||
page_rotate_ccw.title=Roéer mod uret
|
||||
page_rotate_ccw.label=Roéer mod uret
|
||||
page_rotate_ccw_label=Roéer mod uret
|
||||
|
||||
# Tooltips of alternativ billedtekst til sidepanelet
|
||||
# (_label strengene er den alternative billedtekst, mens .title
|
||||
# strengene er tooltips
|
||||
|
@ -53,9 +67,6 @@ thumbs_label=Thumbnails
|
|||
findbar.title=Søg i dokumentet
|
||||
findbar_label=Søg
|
||||
|
||||
# Dokumentoversigtsbeskeder
|
||||
no_outline=Ingen dokumentoversigt tilgængelig
|
||||
|
||||
# Thumbnails panelet (tooltips og alt. billedtekst)
|
||||
# Oversættelsesnote: "{{page}}" vil blive erstattet af det
|
||||
# egentlige sidetal
|
||||
|
@ -64,19 +75,27 @@ thumb_page_title=Side {{page}}
|
|||
# egentlige sidetal
|
||||
thumb_page_canvas=Thumbnail af side {{page}}
|
||||
|
||||
# Søgepanelet
|
||||
find=Søg
|
||||
find_terms_not_found=(Ikke fundet)
|
||||
# Søgepanelet samt knapper og beskeder
|
||||
find_label=Find:
|
||||
find_previous.title=Find den forrige forekomst
|
||||
find_previous_label=Forrige
|
||||
find_next.title=Find den næste forekomst
|
||||
find_next_label=Næste
|
||||
find_highlight=Fremhæv alle forekomster
|
||||
find_match_case_label=Forskel på store og små bogstaver
|
||||
find_reached_top=Toppen af siden blev nået, fortsatte fra bunden
|
||||
find_reached_bottom=Bunden af siden blev nået, fortsatte fra toppen
|
||||
find_not_found=Der blev ikke fundet noget
|
||||
|
||||
# Fejlpanel
|
||||
error_more_info=Mere information
|
||||
error_less_info=Mindre information
|
||||
error_close=Luk
|
||||
# Oversættelsesnote: "{{build}}" vil blive erstattet af PDF.JS build nummer
|
||||
#
|
||||
error_build=PDF.JS Build: {{build}}
|
||||
# Oversættelsesnote: "{{message}}" vil blive erstattet af en (engelsk) fejlbesked
|
||||
#
|
||||
# Oversættelsesnote: "{{version}}" og "{{build}}" vil blive erstattet af
|
||||
# PDF.JS versionen og build ID
|
||||
error_version_info=PDF.js v{{version}} (build: {{build}})
|
||||
# Oversættelsesnote: "{{message}}" vil blive erstattet af
|
||||
# en (engelsk) fejlbesked
|
||||
error_message=Besked: {{message}}
|
||||
# Oversættelsesnote: "{{stack}}" vil blive erstattet af et stack trace
|
||||
#
|
||||
|
@ -96,12 +115,18 @@ page_scale_actual=Faktisk størrelse
|
|||
# Indlæsningsindikator (load ikon)
|
||||
loading_error_indicator=Fejl
|
||||
loading_error=Der skete en fejl under indlæsningen af PDF-filen
|
||||
invalid_file_error=Ugyldig eller beskadiget PDF-fil
|
||||
missing_file_error=Manglende PDF-fil
|
||||
|
||||
# Oversættelsesnote: Dette vil blive brugt som et tooltip
|
||||
# "{{type}}" vil blive ersattet af en kommentar type fra en liste
|
||||
# defineret i PDF specifikationen (32000-1:2008 Table 169 – Annotation types).
|
||||
# Nogle almindelige typer er f.eks.: "Check", "Text", "Comment" og "Note"
|
||||
text_annotation_type=[{{type}} Kommentar]
|
||||
text_annotation_type.alt=[{{type}} Kommentar]
|
||||
request_password=PDF filen er beskyttet med et kodeord:
|
||||
invalid_password=Ugyldigt kodeord.
|
||||
|
||||
printing_not_supported=Advarsel: Denne browser er ikke fuldt understøttet ved udskrift
|
||||
printing_not_supported=Advarsel: Denne browser er ikke fuldt understøttet ved udskrift.
|
||||
printing_not_ready=Advarsel: PDF-filen er ikke helt klar til udskrivning.
|
||||
web_fonts_disabled=Web skrifttyper er slået fra: kan ikke benytte de indlejrede skrifttyper.
|
||||
web_colors_disabled=Web farver are slået fra.
|
||||
|
|
|
@ -30,22 +30,36 @@ zoom_out_label=Verkleinern
|
|||
zoom_in.title=Vergrößern
|
||||
zoom_in_label=Vergrößern
|
||||
zoom.title=Zoom
|
||||
print.title=Drucken
|
||||
print_label=Drucken
|
||||
presentation_mode.title=Zum Präsentationsmodus wechseln
|
||||
presentation_mode_label=Bildschirmpräsentation
|
||||
open_file.title=Datei öffnen
|
||||
open_file_label=Öffnen
|
||||
print.title=Drucken
|
||||
print_label=Drucken
|
||||
download.title=Herunterladen
|
||||
download_label=Herunterladen
|
||||
bookmark.title=Aktuelle Ansicht (Kopieren oder in einem neuen Fenster öffnen)
|
||||
bookmark_label=Aktuelle Ansicht
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=Erste Seite
|
||||
first_page.label=Erste Seite
|
||||
first_page_label=Erste Seite
|
||||
last_page.title=Letzte Seite
|
||||
last_page.label=Letzte Seite
|
||||
last_page_label=Letzte Seite
|
||||
page_rotate_cw.title=Im Uhrzeigersinn drehen
|
||||
page_rotate_cw.label=Im Uhrzeigersinn drehen
|
||||
page_rotate_cw_label=Im Uhrzeigersinn drehen
|
||||
page_rotate_ccw.title=Entgegen dem Uhrzeigersinn drehen
|
||||
page_rotate_ccw.label=Entgegen dem Uhrzeigersinn drehen
|
||||
page_rotate_ccw_label=Entgegen dem Uhrzeigersinn drehen
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_slider.title=Seitenleiste anzeigen
|
||||
toggle_slider_label=Seitenleiste
|
||||
toggle_sidebar.title=Seitenleiste anzeigen
|
||||
toggle_sidebar_label=Seitenleiste
|
||||
outline.title=Zeige Inhaltsverzeichnis
|
||||
outline_label=Inhaltsverzeichnis
|
||||
thumbs.title=Zeige Vorschaubilder
|
||||
|
@ -53,9 +67,6 @@ thumbs_label=Vorschaubilder
|
|||
findbar.title=Im Dokument suchen
|
||||
findbar_label=Suchen
|
||||
|
||||
# Document outline messages
|
||||
no_outline=Kein Inhaltsverzeichnis verfügbar
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
|
@ -64,12 +75,6 @@ thumb_page_title=Seite {{page}}
|
|||
# number.
|
||||
thumb_page_canvas=Vorschau von Seite {{page}}
|
||||
|
||||
# Context menu
|
||||
first_page.label=Erste Seite
|
||||
last_page.label=Letzte Seite
|
||||
page_rotate_cw.label=Im Uhrzeigersinn drehen
|
||||
page_rotate_ccw.label=Entgegen dem Uhrzeigersinn drehen
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Suchen:
|
||||
find_previous.title=Das vorherige Auftreten des Ausdrucks suchen
|
||||
|
@ -112,11 +117,11 @@ loading_error_indicator=Fehler
|
|||
loading_error=Das PDF konnte nicht geladen werden.
|
||||
invalid_file_error=Ungültige oder beschädigte PDF-Datei.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}} Annotation]
|
||||
text_annotation_type.alt=[{{type}} Annotation]
|
||||
request_password=Das PDF ist passwortgeschützt:
|
||||
|
||||
printing_not_supported=Warnung: Drucken wird durch diesen Browser nicht vollständig unterstützt.
|
||||
|
|
124
plugins/pdfviewer/viewer/locale/el/viewer.properties
Normal file
|
@ -0,0 +1,124 @@
|
|||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Προηγούμενη σελίδα
|
||||
previous_label=Προηγούμενη
|
||||
next.title=Επόμενη σελίδα
|
||||
next_label=Επόμενη
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Σελίδα:
|
||||
page_of= {{pageCount}}
|
||||
|
||||
zoom_out.title=Σμίκρυνση
|
||||
zoom_out_label=Σμίκρυνση
|
||||
zoom_in.title=Μεγέθυνση
|
||||
zoom_in_label=Μεγέθυνση
|
||||
zoom.title=Μεγέθυνση
|
||||
print.title=Εκτύπωση
|
||||
print_label=Εκτύπωση
|
||||
presentation_mode.title=Μετάβαση σε λειτουργία παρουσίασης
|
||||
presentation_mode_label=Λειτουργία παρουσίασης
|
||||
open_file.title=Άνοιγμα αρχείου
|
||||
open_file_label=Άνοιγμα
|
||||
download.title=Λήψη
|
||||
download_label=Λήψη
|
||||
bookmark.title=Τρέχουσα προβολή (αντίγραφο ή άνοιγμα σε νέο παράθυρο)
|
||||
bookmark_label=Τρέχουσα προβολή
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=Εναλλαγή προβολής πλευρικής στήλης
|
||||
toggle_sidebar_label=Εναλλαγή προβολής πλευρικής στήλης
|
||||
outline.title=Προβολή διάρθρωσης κειμένου
|
||||
outline_label=Διάθρωση κειμένου
|
||||
thumbs.title=Προβολή μικρογραφιών
|
||||
thumbs_label=Μικρογραφίες
|
||||
findbar.title=Εύρεση στο έγγραφο
|
||||
findbar_label=Εύρεση
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Σελίδα {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=Μικρογραφία της σελίδας {{page}}
|
||||
|
||||
# Context menu
|
||||
first_page.label=Μετάβαση στην πρώτη σελίδα
|
||||
last_page.label=Μετάβαση στην τελευταία σελίδα
|
||||
page_rotate_cw.label=Δεξιόστροφη περιστροφή
|
||||
page_rotate_ccw.label=Αριστερόστροφη περιστροφή
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Εύρεση:
|
||||
find_previous.title=Εύρεση της προηγούμενης εμφάνισης της φράσης
|
||||
find_previous_label=Προηγούμενο
|
||||
find_next.title=Εύρεση της επόμενης εμφάνισης της φράσης
|
||||
find_next_label=Επόμενο
|
||||
find_highlight=Επισήμανση όλων
|
||||
find_match_case_label=Ταίριασμα χαρακτήρα
|
||||
find_reached_top=Έλευση στην αρχή του εγγράφου, συνέχεια από το τέλος
|
||||
find_reached_bottom=Έλευση στο τέλος του εγγράφου, συνέχεια από την αρχή
|
||||
find_not_found=Η φράση δεν βρέθηκε
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Περισσότερες πληροφορίες
|
||||
error_less_info=Λιγότερες πληροφορίες
|
||||
error_close=Κλείσιμο
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (build: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Μήνυμα: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Stack: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Αρχείο: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Γραμμή: {{line}}
|
||||
rendering_error=Προέκυψε σφάλμα κατά την ανάλυση της σελίδας.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Πλάτος σελίδας
|
||||
page_scale_fit=Μέγεθος σελίδας
|
||||
page_scale_auto=Αυτόματη μεγέθυνση
|
||||
page_scale_actual=Πραγματικό μέγεθος
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Σφάλμα
|
||||
loading_error=Προέκυψε σφάλμα κατά τη φόρτωση του PDF.
|
||||
invalid_file_error=Μη έγκυρο ή κατεστραμμένο αρχείο PDF.
|
||||
missing_file_error=Λείπει το αρχείο PDF.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 â Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}} Σημείωση]
|
||||
request_password=Το PDF προστατεύεται από κωδικό:
|
||||
invalid_password=Μη έγκυρος κωδικός.
|
||||
|
||||
printing_not_supported=Προειδοποίηση: Η εκτύπωση δεν υποστηρίζεται πλήρως από αυτόν τον περιηγητή.
|
||||
printing_not_ready=Προσοχή: Το PDF δεν είναι πλήρως φορτωμένο για εκτύπωση.
|
||||
web_fonts_disabled=Οι γραμματοσειρές Web είναι απενεργοποιημένες: δεν είναι δυνατή η χρήση ενσωματωμένων γραμματοσειρών PDF.
|
||||
document_colors_disabled=Στα έγγραφα PDF δεν επιτρέπεται να χρησιμοποιούν τα δικά τους χρώματα: Η ρύθμιση \'Επιτρέπεται στις σελίδες να επιλέξουν τα δικά τους χρώματα \' είναι απενεργοποιημένη στο πρόγραμμα περιήγησης.
|
|
@ -30,22 +30,38 @@ zoom_out_label=Zoom Out
|
|||
zoom_in.title=Zoom In
|
||||
zoom_in_label=Zoom In
|
||||
zoom.title=Zoom
|
||||
print.title=Print
|
||||
print_label=Print
|
||||
presentation_mode.title=Switch to Presentation Mode
|
||||
presentation_mode_label=Presentation Mode
|
||||
open_file.title=Open File
|
||||
open_file_label=Open
|
||||
print.title=Print
|
||||
print_label=Print
|
||||
download.title=Download
|
||||
download_label=Download
|
||||
bookmark.title=Current view (copy or open in new window)
|
||||
bookmark_label=Current View
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
tools.title=Tools
|
||||
tools_label=Tools
|
||||
first_page.title=Go to First Page
|
||||
first_page.label=Go to First Page
|
||||
first_page_label=Go to First Page
|
||||
last_page.title=Go to Last Page
|
||||
last_page.label=Go to Last Page
|
||||
last_page_label=Go to Last Page
|
||||
page_rotate_cw.title=Rotate Clockwise
|
||||
page_rotate_cw.label=Rotate Clockwise
|
||||
page_rotate_cw_label=Rotate Clockwise
|
||||
page_rotate_ccw.title=Rotate Counterclockwise
|
||||
page_rotate_ccw.label=Rotate Counterclockwise
|
||||
page_rotate_ccw_label=Rotate Counterclockwise
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_slider.title=Toggle Slider
|
||||
toggle_slider_label=Toggle Slider
|
||||
toggle_sidebar.title=Toggle Sidebar
|
||||
toggle_sidebar_label=Toggle Sidebar
|
||||
outline.title=Show Document Outline
|
||||
outline_label=Document Outline
|
||||
thumbs.title=Show Thumbnails
|
||||
|
@ -53,9 +69,6 @@ thumbs_label=Thumbnails
|
|||
findbar.title=Find in Document
|
||||
findbar_label=Find
|
||||
|
||||
# Document outline messages
|
||||
no_outline=No Outline Available
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
|
@ -64,12 +77,6 @@ thumb_page_title=Page {{page}}
|
|||
# number.
|
||||
thumb_page_canvas=Thumbnail of Page {{page}}
|
||||
|
||||
# Context menu
|
||||
first_page.label=Go to First Page
|
||||
last_page.label=Go to Last Page
|
||||
page_rotate_cw.label=Rotate Clockwise
|
||||
page_rotate_ccw.label=Rotate Counterclockwise
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Find:
|
||||
find_previous.title=Find the previous occurrence of the phrase
|
||||
|
@ -111,13 +118,19 @@ page_scale_actual=Actual Size
|
|||
loading_error_indicator=Error
|
||||
loading_error=An error occurred while loading the PDF.
|
||||
invalid_file_error=Invalid or corrupted PDF file.
|
||||
missing_file_error=Missing PDF file.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}} Annotation]
|
||||
request_password=PDF is protected by a password:
|
||||
text_annotation_type.alt=[{{type}} Annotation]
|
||||
password_label=Enter the password to open this PDF file.
|
||||
password_invalid=Invalid password. Please try again.
|
||||
password_ok=OK
|
||||
password_cancel=Cancel
|
||||
|
||||
printing_not_supported=Warning: Printing is not fully supported by this browser.
|
||||
printing_not_ready=Warning: The PDF is not fully loaded for printing.
|
||||
web_fonts_disabled=Web fonts are disabled: unable to use embedded PDF fonts.
|
||||
document_colors_disabled=PDF documents are not allowed to use their own colors: \'Allow pages to choose their own colors\' is deactivated in the browser.
|
||||
|
|
|
@ -1,107 +1,131 @@
|
|||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Página anterior
|
||||
previous_label=Anterior
|
||||
next.title=Página siguiente
|
||||
next_label=Siguiente
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Página:
|
||||
page_of=de {{pageCount}}
|
||||
|
||||
zoom_out.title=Reducir
|
||||
zoom_out_label=Reducir
|
||||
zoom_in.title=Ampliar
|
||||
zoom_in_label=Ampliar
|
||||
zoom.title=Ampliación
|
||||
print.title=Imprimir
|
||||
print_label=Imprimir
|
||||
fullscreen.title=Pantalla completa
|
||||
fullscreen_label=Pantalla completa
|
||||
open_file.title=Abrir archivo
|
||||
open_file_label=Abrir
|
||||
download.title=Descargar
|
||||
download_label=Descargar
|
||||
bookmark.title=Vista actual (copie o abra en una ventana nueva)
|
||||
bookmark_label=Vista actual
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_slider.title=Alternar deslizador
|
||||
toggle_slider_label=Alternar deslizador
|
||||
outline.title=Mostrar esquema del documento
|
||||
outline_label=Esquema del documento
|
||||
thumbs.title=Mostrar miniaturas
|
||||
thumbs_label=Miniaturas
|
||||
findbar.title=Buscar en el documento
|
||||
findbar_label=Buscar
|
||||
|
||||
# Document outline messages
|
||||
no_outline=No hay un esquema disponible
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Página {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=Miniatura de la página {{page}}
|
||||
|
||||
# Find panel button title and messages
|
||||
find=Buscar
|
||||
find_terms_not_found=(No encontrado)
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Más información
|
||||
error_less_info=Menos información
|
||||
error_close=Cerrar
|
||||
# LOCALIZATION NOTE (error_build): "{{build}}" will be replaced by the PDF.JS
|
||||
# build ID.
|
||||
error_build=Compilación de PDF.JS: {{build}}
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Mensaje: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Pila: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Archivo: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Línea: {{line}}
|
||||
rendering_error=Ocurrió un error mientras se renderizaba la página.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Anchura de página
|
||||
page_scale_fit=Ajustar a la página
|
||||
page_scale_auto=Ampliación automática
|
||||
page_scale_actual=Tamaño real
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Error
|
||||
loading_error=Ocurrió un error mientras se cargaba el PDF.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[Anotación {{type}}]
|
||||
request_password=El PDF está protegido con una contraseña:
|
||||
|
||||
printing_not_supported=Aviso: La impresión no es compatible totalmente con este navegador.
|
||||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Página anterior
|
||||
previous_label=Anterior
|
||||
next.title=Página siguiente
|
||||
next_label=Siguiente
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Página:
|
||||
page_of=de {{pageCount}}
|
||||
|
||||
zoom_out.title=Reducir
|
||||
zoom_out_label=Reducir
|
||||
zoom_in.title=Aumentar
|
||||
zoom_in_label=Aumentar
|
||||
zoom.title=Ampliación
|
||||
presentation_mode.title=Cambiar al modo de presentación
|
||||
presentation_mode_label=Modo de presentación
|
||||
open_file.title=Abrir un archivo
|
||||
open_file_label=Abrir
|
||||
print.title=Imprimir
|
||||
print_label=Imprimir
|
||||
download.title=Descargar
|
||||
download_label=Descargar
|
||||
bookmark.title=Vista actual (copie o abra en una ventana nueva)
|
||||
bookmark_label=Vista actual
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=Ir a la primera página
|
||||
first_page.label=Ir a la primera página
|
||||
first_page_label=Ir a la primera página
|
||||
last_page.title=Ir a la última página
|
||||
last_page.label=Ir a la última página
|
||||
last_page_label=Ir a la última página
|
||||
page_rotate_cw.title=Girar a la derecha
|
||||
page_rotate_cw.label=Girar a la derecha
|
||||
page_rotate_cw_label=Girar a la derecha
|
||||
page_rotate_ccw.title=Girar a la izquierda
|
||||
page_rotate_ccw.label=Girar a la izquierda
|
||||
page_rotate_ccw_label=Girar a la izquierda
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=Mostrar u ocultar la barra lateral
|
||||
toggle_sidebar_label=Conmutar la barra lateral
|
||||
outline.title=Mostrar el esquema del documento
|
||||
outline_label=Esquema del documento
|
||||
thumbs.title=Mostrar las miniaturas
|
||||
thumbs_label=Miniaturas
|
||||
findbar.title=Buscar en el documento
|
||||
findbar_label=Buscar
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Página {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=Miniatura de la página {{page}}
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Buscar:
|
||||
find_previous.title=Ir a la frase encontrada anterior
|
||||
find_previous_label=Anterior
|
||||
find_next.title=Ir a la frase encontrada siguiente
|
||||
find_next_label=Siguiente
|
||||
find_highlight=Resaltar todo
|
||||
find_match_case_label=Coincidir mayúsculas y minúsculas
|
||||
find_reached_top=Se alcanzó el inicio del documento, se continúa desde el final
|
||||
find_reached_bottom=Se alcanzó el final del documento, se continúa desde el inicio
|
||||
find_not_found=No se encontró la frase
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Más información
|
||||
error_less_info=Menos información
|
||||
error_close=Cerrar
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (compilación: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Mensaje: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Pila: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Archivo: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Línea: {{line}}
|
||||
rendering_error=Ocurrió un error al renderizar la página.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Anchura de la página
|
||||
page_scale_fit=Ajustar a la página
|
||||
page_scale_auto=Ampliación automática
|
||||
page_scale_actual=Tamaño real
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Error
|
||||
loading_error=Ocurrió un error al cargar el PDF.
|
||||
invalid_file_error=El archivo PDF no es válido o está dañado.
|
||||
missing_file_error=Falta el archivo PDF.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type.alt=[Anotación {{type}}]
|
||||
request_password=El archivo PDF está protegido por una contraseña:
|
||||
|
||||
printing_not_supported=Aviso: Este navegador no es compatible completamente con la impresión.
|
||||
printing_not_ready=Aviso: El PDF no se ha cargado completamente para su impresión.
|
||||
web_fonts_disabled=Se han desactivado los tipos de letra web: no se pueden usar los tipos de letra incrustados en el PDF.
|
||||
web_colors_disabled=Se han desactivado los colores web.
|
||||
|
|
134
plugins/pdfviewer/viewer/locale/fa/viewer.properties
Normal file
|
@ -0,0 +1,134 @@
|
|||
# Copyright 2013 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=صفحهٔ قبلی
|
||||
previous_label=قبلی
|
||||
next.title=صفحهٔ بعدی
|
||||
next_label=بعدی
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=صفحه:
|
||||
page_of=از {{pageCount}}
|
||||
|
||||
zoom_out.title=کوچکنمایی
|
||||
zoom_out_label=کوچکنمایی
|
||||
zoom_in.title=بزرگنمایی
|
||||
zoom_in_label=بزرگنمایی
|
||||
zoom.title=زوم
|
||||
presentation_mode.title=تغییر وضع به حالت نمایش
|
||||
presentation_mode_label=حالت نمایش
|
||||
open_file.title=بازکردن پرونده
|
||||
open_file_label=بازکردن پرونده
|
||||
print.title=چاپ
|
||||
print_label=چاپ
|
||||
download.title=بارگیری
|
||||
download_label=بارگیری
|
||||
bookmark.title=دید فعلی (رونوشت یا بازکردن در پنجرهٔ جدید)
|
||||
bookmark_label=دید فعلی
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
tools.title=ابزارها
|
||||
tools_label=ابزارها
|
||||
first_page.title=رفتن به صفحهٔ اول
|
||||
first_page.label=رفتن به صفحهٔ اول
|
||||
first_page_label=رفتن به صفحهٔ اول
|
||||
last_page.title=رفتن به صفحهٔ آخر
|
||||
last_page.label=رفتن به صفحهٔ آخر
|
||||
last_page_label=رفتن به صفحهٔ آخر
|
||||
page_rotate_cw.title=چرخش در جهت عقربههای ساعت
|
||||
page_rotate_cw.label=چرخش در جهت عقربههای ساعت
|
||||
page_rotate_cw_label=چرخش در جهت عقربههای ساعت
|
||||
page_rotate_ccw.title=چرخش در خلاف جهت عقربههای ساعت
|
||||
page_rotate_ccw.label=چرخش در خلاف جهت عقربههای ساعت
|
||||
page_rotate_ccw_label=چرخش در خلاف جهت عقربههای ساعت
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=تغییر وضع نوار کناری
|
||||
toggle_sidebar_label=تغییر وضع نوار کناری
|
||||
outline.title=نمایش رئوس مطالب سند
|
||||
outline_label=رئوس مطالب سند
|
||||
thumbs.title=نمایش بندانگشتیها
|
||||
thumbs_label=بندانگشتیها
|
||||
findbar.title=یافتن در سند
|
||||
findbar_label=پیداکردن
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=صفحهٔ {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=بندانگشتی صفحهٔ {{page}}
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=پیداکردن:
|
||||
find_previous.title=یافتن رویداد قبلی عبارت
|
||||
find_previous_label=قبلی
|
||||
find_next.title=یافتن رویداد بعدی عبارت
|
||||
find_next_label=بعدی
|
||||
find_highlight=پررنگکردن همه
|
||||
find_match_case_label=تطبیق بزرگی/کوچکی حروف
|
||||
find_reached_top=به بالای سند رسید، ادامهیافته از زیر
|
||||
find_reached_bottom=به انتهای سند رسید، ادامهیافته از بالا
|
||||
find_not_found=عبارت پیدا نشد
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=اطلاعات بیشتر
|
||||
error_less_info=اطلاعات کمتر
|
||||
error_close=بستن
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=پیدیاف.جیاس نسخهٔ {{version}} (ساخت: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=پیغام: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=پشته: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=پرونده: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=خط: {{line}}
|
||||
rendering_error=خطایی هنگام رندرکردن صفحه روی داد.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=اندازهٔ صفحه
|
||||
page_scale_fit=متناسب صفحه
|
||||
page_scale_auto=زوم خودکار
|
||||
page_scale_actual=اندازهٔ حقیقی
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=خطا
|
||||
loading_error=خطایی هنگامی بارگیری پیدیاف روی داد.
|
||||
invalid_file_error=پروندهٔ پیدیاف نامعتیر یا خراب شده.
|
||||
missing_file_error=پروندهٔ پیدیاف مفقودشده.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type.alt=[گزارمان {{type}}]
|
||||
request_password=پیدیاف توسط یک گذرواژه محافظت شدهاست:
|
||||
invalid_password=گذرواژهٔ نامعتبر.
|
||||
|
||||
printing_not_supported=اخطار: چاپ توسط این مرورگر بهصورت کامل پشتبانی نشدهاست.
|
||||
printing_not_ready=اخطار: پیدیاف برای چاپ بهطور کامل بار نشدهاست.
|
||||
web_fonts_disabled=قلمهای وبی غیر فعال هستند: از قلمهای توکار پیدیاف نتوانست استفاده شود.
|
||||
document_colors_disabled=اسناد پیدیاف اجازه ندارند که رنگهای خودشان را استفاده کنند: «اجازهٔ انتخاب صفحهها برای انتخاب رنگهای خود» در مرورگر غیرفعال شدهاست.
|
|
@ -30,22 +30,36 @@ zoom_out_label=Suurenna
|
|||
zoom_in.title=Pienennä
|
||||
zoom_in_label=Pienennä
|
||||
zoom.title=Sivun suurennus
|
||||
print.title=Tulosta
|
||||
print_label=Tulosta
|
||||
fullscreen.title=Kokoruututila
|
||||
fullscreen_label=Kokoruututila
|
||||
presentation_mode.title=Esitystila
|
||||
presentation_mode_label=Esitystila
|
||||
open_file.title=Avaa tiedosto
|
||||
open_file_label=Avaa
|
||||
print.title=Tulosta
|
||||
print_label=Tulosta
|
||||
download.title=Lataa
|
||||
download_label=Lataa
|
||||
bookmark.title=Nykyinen näkymä (kopioi tai avaa uuteen ikkunaan)
|
||||
bookmark_label=Nykyinen näkymä
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=Ensimmäinen sivu
|
||||
first_page.label=Ensimmäinen sivu
|
||||
first_page_label=Ensimmäinen sivu
|
||||
last_page.title=Viimeinen sivu
|
||||
last_page.label=Viimeinen sivu
|
||||
last_page_label=Viimeinen sivu
|
||||
page_rotate_cw.title=Kierrä myötäpäivään
|
||||
page_rotate_cw.label=Kierrä myötäpäivään
|
||||
page_rotate_cw_label=Kierrä myötäpäivään
|
||||
page_rotate_ccw.title=Kierrä vastapäivään
|
||||
page_rotate_ccw.label=Kierrä vastapäivään
|
||||
page_rotate_ccw_label=Kierrä vastapäivään
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_slider.title=Vaihda vieritysnäkymä
|
||||
toggle_slider_label=Vaihda vieritysnäkymä
|
||||
toggle_sidebar.title=Vaihda sivunäkymä
|
||||
toggle_sidebar_label=Vaihda sivunäkymä
|
||||
outline.title=Näytä asiakirjan jäsennys
|
||||
outline_label=Asiakirjan jäsennys
|
||||
thumbs.title=Näytä esikatselukuvat
|
||||
|
@ -53,9 +67,6 @@ thumbs_label=Esikatselukuvat
|
|||
findbar.title=Etsi asiakirjasta
|
||||
findbar_label=Etsi
|
||||
|
||||
# Document outline messages
|
||||
no_outline=Jäsennystä ei ole tarjolla
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
|
@ -65,16 +76,24 @@ thumb_page_title=Sivu {{page}}
|
|||
thumb_page_canvas=Sivun {{page}} esikatselukuva
|
||||
|
||||
# Find panel button title and messages
|
||||
find=Etsi
|
||||
find_terms_not_found=(Ei löytynyt)
|
||||
find_label=Etsi
|
||||
find_previous.title=Etsi edellinen
|
||||
find_previous_label=Edellinen
|
||||
find_next.title=Etsi seuraava
|
||||
find_next_label=Seuraava
|
||||
find_highlight=Korosta kaikki hakutulokset
|
||||
find_match_case_label=Hae täysin samanlaisia
|
||||
find_reached_top=Asiakirjan alku saavutettiin, jatkettiin lopusta
|
||||
find_reached_bottom=Asiakirjan loppu saavutettiin, jatkettiin alusta
|
||||
find_not_found=Ei löytynyt
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Enemmän tietoa
|
||||
error_less_info=Vähemmän tietoa
|
||||
error_close=Sulje
|
||||
# LOCALIZATION NOTE (error_build): "{{build}}" will be replaced by the PDF.JS
|
||||
# build ID.
|
||||
error_build=PDF.JS rakennus: {{build}}
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (rakennus: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Viesti: {{message}}
|
||||
|
@ -96,13 +115,15 @@ page_scale_actual=Todellinen koko
|
|||
# Loading indicator messages
|
||||
loading_error_indicator=Virhe
|
||||
loading_error=Virhe on tapahtunut PDF:ää ladattaessa.
|
||||
invalid_file_error=Virheellinen tai vioittunut PDF tiedosto.
|
||||
missing_file_error=PDF tiedostoa ei löytynyt.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}} Selite]
|
||||
text_annotation_type.alt=[{{type}} Selite]
|
||||
request_password=PDF on salasanasuojattu:
|
||||
|
||||
printing_not_supported=Varoitus: Tämä selain ei täysin tue tulostusta.
|
||||
|
||||
web_fonts_disabled=Web fontit ovat poissa käytöstä: upotettuja PDF fontteja ei voida käyttää.
|
||||
|
|
|
@ -1,43 +1,79 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Page précédente
|
||||
previous_label=Précédent
|
||||
next.title=Page suivante
|
||||
next_label=Suivant
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Page :
|
||||
page_of=sur {{pageCount}}
|
||||
|
||||
zoom_out.title=Zoom arrière
|
||||
zoom_out_label=Zoom arrière
|
||||
zoom_in.title=Zoom avant
|
||||
zoom_in_label=Zoom avant
|
||||
zoom.title=Zoom
|
||||
print.title=Imprimer
|
||||
print_label=Imprimer
|
||||
presentation_mode.title=Basculer en mode présentation
|
||||
presentation_mode_label=Mode présentation
|
||||
open_file.title=Ouvrir le fichier
|
||||
open_file.title=Ouvrir un fichier
|
||||
open_file_label=Ouvrir
|
||||
print.title=Imprimer
|
||||
print_label=Imprimer
|
||||
download.title=Télécharger
|
||||
download_label=Télécharger
|
||||
bookmark.title=Affichage courant (copier ou ouvrir dans une nouvelle fenêtre)
|
||||
bookmark_label=Affichage actuel
|
||||
toggle_slider.title=Afficher/masquer le panneau latéral
|
||||
toggle_slider_label=Afficher/masquer le panneau latéral
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=Aller à la première page
|
||||
first_page.label=Aller à la première page
|
||||
first_page_label=Aller à la première page
|
||||
last_page.title=Aller à la dernière page
|
||||
last_page.label=Aller à la dernière page
|
||||
last_page_label=Aller à la dernière page
|
||||
page_rotate_cw.title=Rotation horaire
|
||||
page_rotate_cw.label=Rotation horaire
|
||||
page_rotate_cw_label=Rotation horaire
|
||||
page_rotate_ccw.title=Rotation anti-horaire
|
||||
page_rotate_ccw.label=Rotation anti-horaire
|
||||
page_rotate_ccw_label=Rotation anti-horaire
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=Afficher/Masquer le panneau latéral
|
||||
toggle_sidebar_label=Afficher/Masquer le panneau latéral
|
||||
outline.title=Afficher les signets
|
||||
outline_label=Signets du document
|
||||
thumbs.title=Afficher les vignettes
|
||||
thumbs_label=Vignettes
|
||||
findbar.title=Rechercher dans le document
|
||||
findbar_label=Rechercher
|
||||
no_outline=Aucun signet disponible
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Page {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=Vignette de la page {{page}}
|
||||
first_page.label=Aller à la première page
|
||||
last_page.label=Aller à la dernière page
|
||||
page_rotate_cw.label=Rotation horaire
|
||||
page_rotate_ccw.label=Rotation anti-horaire
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Rechercher :
|
||||
|
@ -47,25 +83,48 @@ find_next.title=Trouver la prochaine occurrence de la phrase
|
|||
find_next_label=Suivant
|
||||
find_highlight=Tout surligner
|
||||
find_match_case_label=Respecter la casse
|
||||
find_wrapped_to_bottom=Bas de la page atteint, poursuite depuis la fin
|
||||
find_wrapped_to_top=Bas de la page atteint, poursuite au début
|
||||
find_reached_top=Haut de la page atteint, poursuite depuis la fin
|
||||
find_reached_bottom=Bas de la page atteint, poursuite au début
|
||||
find_not_found=Phrase introuvable
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Plus d'informations
|
||||
error_less_info=Moins d'informations
|
||||
error_close=Fermer
|
||||
error_build=Version de PDF.JS : {{build}}
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (identifiant de compilation : {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Message : {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Pile : {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Fichier : {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Ligne : {{line}}
|
||||
rendering_error=Une erreur s'est produite lors de l'affichage de la page.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Pleine largeur
|
||||
page_scale_fit=Page entière
|
||||
page_scale_auto=Zoom automatique
|
||||
page_scale_actual=Taille réelle
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Erreur
|
||||
loading_error=Une erreur s'est produite lors du chargement du fichier PDF.
|
||||
text_annotation_type=[Annotation {{type}}]
|
||||
invalid_file_error=Fichier PDF invalide ou corrompu.
|
||||
missing_file_error=Fichier PDF manquant.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type.alt=[Annotation {{type}}]
|
||||
request_password=Le PDF est protégé par un mot de passe :
|
||||
|
||||
printing_not_supported=Attention : l'impression n'est pas totalement prise en charge par ce navigateur.
|
||||
printing_not_ready=Attention : le PDF n'est pas entièrement chargé pour pouvoir l'imprimer.
|
||||
web_fonts_disabled=Les polices web sont désactivées : impossible d'utiliser les polices intégrées au PDF.
|
||||
|
|
|
@ -40,9 +40,8 @@ loading_error=אירעה שגיאה בעת טעינת קובץ PDF.
|
|||
rendering_error=אירעה שגיאה בעת עיבוד הדף.
|
||||
page_label=דף:
|
||||
page_of=מתוך {{pageCount}}
|
||||
no_outline=אין מתאר זמין
|
||||
open_file.title=פתיחת קובץ
|
||||
text_annotation_type=[{{type}} Annotation]
|
||||
text_annotation_type.alt=[{{type}} Annotation]
|
||||
toggle_slider_label=מתג החלקה
|
||||
thumbs_label=תמונות ממוזערות
|
||||
outline_label=מתאר מסמך
|
||||
|
|
|
@ -19,7 +19,7 @@ print.title=Stampa
|
|||
download.title=Download
|
||||
zoom_out.title=Riduci Zoom
|
||||
zoom_in.title=Aumenta Zoom
|
||||
error_more_info=Più Informazioni
|
||||
error_more_info=Più Informazioni
|
||||
error_less_info=Meno Informazioni
|
||||
error_close=Chiudi
|
||||
error_build=PDF.JS Build: {{build}}
|
||||
|
@ -36,10 +36,9 @@ thumbs.title=Mostra Miniature
|
|||
outline.title=Mostra Indice Documento
|
||||
loading=Caricamento... {{percent}}%
|
||||
loading_error_indicator=Errore
|
||||
loading_error=È accaduto un errore durante il caricamento del PDF.
|
||||
rendering_error=È accaduto un errore durante il rendering della pagina.
|
||||
loading_error=È accaduto un errore durante il caricamento del PDF.
|
||||
rendering_error=È accaduto un errore durante il rendering della pagina.
|
||||
page_label=Pagina:
|
||||
page_of=di {{pageCount}}
|
||||
no_outline=Nessun Indice Disponibile
|
||||
open_file.title=Apri File
|
||||
text_annotation_type=[{{type}} Annotazione]
|
||||
text_annotation_type.alt=[{{type}} Annotazione]
|
|
@ -30,22 +30,38 @@ zoom_out_label=縮小
|
|||
zoom_in.title=拡大
|
||||
zoom_in_label=拡大
|
||||
zoom.title=ズーム
|
||||
print.title=印刷
|
||||
print_label=印刷
|
||||
presentation_mode.title=プレゼンテーションモードに切り替えます
|
||||
presentation_mode_label=プレゼンテーションモード
|
||||
open_file.title=ファイルを開く
|
||||
open_file_label=開く
|
||||
print.title=印刷
|
||||
print_label=印刷
|
||||
download.title=ダウンロード
|
||||
download_label=ダウンロード
|
||||
bookmark.title=現在のビューをブックマーク
|
||||
bookmark_label=現在のビューをブックマーク
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
tools.title=ツール
|
||||
tools_label=ツール
|
||||
first_page.title=最初のページへ移動
|
||||
first_page.label=最初のページへ移動
|
||||
first_page_label=最初のページへ移動
|
||||
last_page.title=最後のページへ移動
|
||||
last_page.label=最後のページへ移動
|
||||
last_page_label=最後のページへ移動
|
||||
page_rotate_cw.title=右回転
|
||||
page_rotate_cw.label=右回転
|
||||
page_rotate_cw_label=右回転
|
||||
page_rotate_ccw.title=左回転
|
||||
page_rotate_ccw.label=左回転
|
||||
page_rotate_ccw_label=左回転
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_slider.title=サイドバーの切り替え
|
||||
toggle_slider_label=サイドバーの切り替え
|
||||
toggle_sidebar.title=サイドバーの切り替え
|
||||
toggle_sidebar_label=サイドバーの切り替え
|
||||
outline.title=文書の目次
|
||||
outline_label=文書の目次
|
||||
thumbs.title=縮小版
|
||||
|
@ -53,9 +69,6 @@ thumbs_label=縮小版
|
|||
findbar.title=検索
|
||||
findbar_label=検索
|
||||
|
||||
# Document outline messages
|
||||
no_outline=利用可能な目次はありません
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
|
@ -64,12 +77,6 @@ thumb_page_title={{page}} ページ
|
|||
# number.
|
||||
thumb_page_canvas=ページの縮小版 {{page}}
|
||||
|
||||
# Context menu
|
||||
first_page.label=最初のページへ移動
|
||||
last_page.label=最後のページへ移動
|
||||
page_rotate_cw.label=右回転
|
||||
page_rotate_ccw.label=左回転
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=検索:
|
||||
find_previous.title=指定文字列に一致する 1 つ前の部分を検索します
|
||||
|
@ -78,16 +85,16 @@ find_next.title=指定文字列に一致する次の部分を検索します
|
|||
find_next_label=次へ
|
||||
find_highlight=すべて強調表示
|
||||
find_match_case_label=大文字/小文字を区別
|
||||
find_reached_top=文書先頭まで検索したので末尾に戻って検索しました。
|
||||
find_reached_bottom=文書末尾まで検索したので先頭に戻って検索しました。
|
||||
find_reached_top=文書先頭まで検索したので末尾に戻って検索しました。
|
||||
find_reached_bottom=文書末尾まで検索したので先頭に戻って検索しました。
|
||||
find_not_found=見つかりませんでした。
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=詳細情報
|
||||
error_less_info=詳細情報の非表示
|
||||
error_close=閉じる
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (ビルド: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
|
@ -109,15 +116,19 @@ page_scale_actual=実際のサイズ
|
|||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=エラー
|
||||
loading_error=PDFの読み込み中にエラーが発生しました
|
||||
invalid_file_error=無効または破損したPDFファイル
|
||||
loading_error=PDF の読み込み中にエラーが発生しました
|
||||
invalid_file_error=無効または破損した PDF ファイル
|
||||
missing_file_error=PDF ファイルが見つかりません。
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}} 注釈]
|
||||
request_password=PDFはパスワードによって保護されています
|
||||
text_annotation_type.alt=[{{type}} 注釈]
|
||||
request_password=PDF はパスワードによって保護されています
|
||||
invalid_password=無効なパスワードです
|
||||
|
||||
printing_not_supported=警告:このブラウザでは印刷が完全にサポートされていません
|
||||
web_fonts_disabled=Webフォントが無効になっています: 埋め込まれたPDFのフォントを使用することができません
|
||||
printing_not_ready=警告:PDF を印刷するための読み込みが終了していません
|
||||
web_fonts_disabled=Web フォントが無効になっています: 埋め込まれた PDF のフォントを使用することができません
|
||||
document_colors_disabled=PDF文書は、Web ページが指定した配色を使用することができません: \'Web ページが指定した配色\' はブラウザで無効になっています。
|
||||
|
|
131
plugins/pdfviewer/viewer/locale/ko/viewer.properties
Normal file
|
@ -0,0 +1,131 @@
|
|||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=이전 쪽
|
||||
previous_label=이전
|
||||
next.title=다음 쪽
|
||||
next_label=다음
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=쪽:
|
||||
page_of=/ {{pageCount}}
|
||||
|
||||
zoom_out.title=축소
|
||||
zoom_out_label=축소
|
||||
zoom_in.title=확대
|
||||
zoom_in_label=확대
|
||||
zoom.title=확대 비율
|
||||
presentation_mode.title=프레젠테이션 모드로 전환
|
||||
presentation_mode_label=프레젠테이션 모드
|
||||
open_file.title=파일 열기
|
||||
open_file_label=열기
|
||||
print.title=출력
|
||||
print_label=출력
|
||||
download.title=내려받기
|
||||
download_label=내려받기
|
||||
bookmark.title=현 화면 (복사하거나 새 창에서 열기)
|
||||
bookmark_label=현 화면
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=첫 쪽으로
|
||||
first_page.label=첫 쪽으로
|
||||
first_page_label=첫 쪽으로
|
||||
last_page.title=끝 쪽으로
|
||||
last_page.label=끝 쪽으로
|
||||
last_page_label=끝 쪽으로
|
||||
page_rotate_cw.title=시계방향 회전
|
||||
page_rotate_cw.label=시계방향 회전
|
||||
page_rotate_cw_label=시계방향 회전
|
||||
page_rotate_ccw.title=반시계방향 회전
|
||||
page_rotate_ccw.label=반시계방향 회전
|
||||
page_rotate_ccw_label=반시계방향 회전
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=사이드바 보이기/숨기기
|
||||
toggle_sidebar_label=사이드바 보이기/숨기기
|
||||
outline.title=문서 개요 보이기
|
||||
outline_label=문서 개요
|
||||
thumbs.title=쪽 작게 보기
|
||||
thumbs_label=쪽 작게 보기
|
||||
findbar.title=문서 내에서 찾기
|
||||
findbar_label=찾기
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title={{page}} 쪽
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas={{page}}쪽의 썸네일
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=찾기:
|
||||
find_previous.title=이전 구절 찾기
|
||||
find_previous_label=이전
|
||||
find_next.title=다음 구절 찾기
|
||||
find_next_label=다음
|
||||
find_highlight=모두 강조
|
||||
find_match_case_label=대/소문자까지 정확히
|
||||
find_reached_top=문서의 처음, 끝에서부터 계속
|
||||
find_reached_bottom=문서의 끝, 처음에서부터 계속
|
||||
find_not_found=구절을 찾을 수 없습니다
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=더 보기
|
||||
error_less_info=간략히
|
||||
error_close=닫기
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (build: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=메시지: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=스택: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=파일: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=행: {{line}}
|
||||
rendering_error=쪽 렌더링 중 오류가 발생했습니다.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=너비 맞춤
|
||||
page_scale_fit=쪽 맞춤
|
||||
page_scale_auto=자동 맞춤
|
||||
page_scale_actual=실제 크기
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=오류
|
||||
loading_error=PDF를 불러오던 중 오류가 발생했습니다.
|
||||
invalid_file_error=PDF 파일이 아니거나 깨진 파일입니다.
|
||||
missing_file_error=PDF 파일이 없습니다.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}} Annotation]
|
||||
request_password=암호로 보호되는 PDF파일입니다:
|
||||
|
||||
printing_not_supported=경고: 이 브라우져는 출력을 완전히는 지원하지 않습니다.
|
||||
printing_not_ready=경고: 이 PDF 파일은 완전히 적재되지 않았습니다.
|
||||
web_fonts_disabled=웹 폰트 사용이 비활성되었습니다: 내장 PDF 폰트를 사용할 수 없습니다.
|
||||
web_colors_disabled=웹 컬러가 비활성되었습니다.
|
|
@ -7,18 +7,27 @@
|
|||
[cs]
|
||||
@import url(cs/viewer.properties)
|
||||
|
||||
[cy]
|
||||
@import url(cy/viewer.properties)
|
||||
|
||||
[da]
|
||||
@import url(da/viewer.properties)
|
||||
|
||||
[de]
|
||||
@import url(de/viewer.properties)
|
||||
|
||||
[el]
|
||||
@import url(el/viewer.properties)
|
||||
|
||||
[en-US]
|
||||
@import url(en-US/viewer.properties)
|
||||
|
||||
[es]
|
||||
@import url(es/viewer.properties)
|
||||
|
||||
[fa]
|
||||
@import url(fa/viewer.properties)
|
||||
|
||||
[fi]
|
||||
@import url(fi/viewer.properties)
|
||||
|
||||
|
@ -34,9 +43,18 @@
|
|||
[ja]
|
||||
@import url(ja/viewer.properties)
|
||||
|
||||
[ko]
|
||||
@import url(ko/viewer.properties)
|
||||
|
||||
[lt]
|
||||
@import url(lt/viewer.properties)
|
||||
|
||||
[nl]
|
||||
@import url(nl/viewer.properties)
|
||||
|
||||
[no]
|
||||
@import url(no/viewer.properties)
|
||||
|
||||
[pl]
|
||||
@import url(pl/viewer.properties)
|
||||
|
||||
|
@ -55,6 +73,12 @@
|
|||
[sv]
|
||||
@import url(sv/viewer.properties)
|
||||
|
||||
[tr]
|
||||
@import url(tr/viewer.properties)
|
||||
|
||||
[vi]
|
||||
@import url(vi/viewer.properties)
|
||||
|
||||
[zh-CN]
|
||||
@import url(zh-CN/viewer.properties)
|
||||
|
||||
|
|
129
plugins/pdfviewer/viewer/locale/lt/viewer.properties
Normal file
|
@ -0,0 +1,129 @@
|
|||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Ankstesnis puslapis
|
||||
previous_label=Ankstesnis
|
||||
next.title=Sekantis puslapis
|
||||
next_label=Sekantis
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Puslapis:
|
||||
page_of=iš {{pageCount}}
|
||||
|
||||
zoom_out.title=Mažinti
|
||||
zoom_out_label=Mažinti
|
||||
zoom_in.title=Didinti
|
||||
zoom_in_label=Didinti
|
||||
zoom.title=Mastelis
|
||||
presentation_mode.title=Įjungti pateikimo būseną
|
||||
presentation_mode_label=Pateikimo būsena
|
||||
open_file.title=Atverti bylą
|
||||
open_file_label=Atverti
|
||||
print.title=Spausdinti
|
||||
print_label=Spausdinti
|
||||
download.title=Atsiųsti
|
||||
download_label=Atsiųsti
|
||||
bookmark.title=Dabartinis rodymas (kopijuoti arba atidaryti naudojame lange)
|
||||
bookmark_label=Dabartinis rodymas
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=Nukreipimas į pirmą puslapį
|
||||
first_page.label=Nukreipimas į pirmą puslapį
|
||||
first_page_label=Nukreipimas į pirmą puslapį
|
||||
last_page.title=Nukreipimas į paskutinį puslapį
|
||||
last_page.label=Nukreipimas į paskutinį puslapį
|
||||
last_page_label=Nukreipimas į paskutinį puslapį
|
||||
page_rotate_cw.title=Sukimas pagal laikrodžio rodyklę
|
||||
page_rotate_cw.label=Sukimas pagal laikrodžio rodyklę
|
||||
page_rotate_cw_label=Sukimas pagal laikrodžio rodyklę
|
||||
page_rotate_ccw.title=Sukimas prieš laikrodžio rodyklę
|
||||
page_rotate_ccw.label=Sukimas prieš laikrodžio rodyklę
|
||||
page_rotate_ccw_label=Sukimas prieš laikrodžio rodyklę
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=Perjungti šoninę juostą
|
||||
toggle_sidebar_label=Perjungti šoninę juostą
|
||||
outline.title=Rodyti dokumento turinį
|
||||
outline_label=Dokumento turinys
|
||||
thumbs.title=Rodyti miniatiūras
|
||||
thumbs_label=Miniatiūros
|
||||
findbar.title=Paieška dokumente
|
||||
findbar_label=Paieška
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Puslapis {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=Miniatūra iš {{page}} puslapio
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Paieška:
|
||||
find_previous.title=Ankstesnis paieškos atitikmuo
|
||||
find_previous_label=Ankstesnis
|
||||
find_next.title=Sekantis paieškos atitikmuo
|
||||
find_next_label=Sekantis
|
||||
find_highlight=Pažymėti visus
|
||||
find_match_case_label=Skirti didžiąsias ir mažąsias raides
|
||||
find_reached_top=Pasiektas dokumento viršus, pradėti nuo apačios
|
||||
find_reached_bottom=Pasiekta dokumento apačia, pradėti nuo viršaus
|
||||
find_not_found=Paieškos rezultatų nėra
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Daugiau informacijos
|
||||
error_less_info=Mažiau informacijos
|
||||
error_close=Uždaryti
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (build: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Žinutė: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Dėklas: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Byla: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Eilutė: {{line}}
|
||||
rendering_error=Įvyko klaida atvaizduojant puslapį.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Puslapio plotis
|
||||
page_scale_fit=Puslapio priderinimas
|
||||
page_scale_auto=Automatinis mastelis
|
||||
page_scale_actual=Numatytas dydis
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Klaida
|
||||
loading_error=PDF bylos įkelimo metu įvyko klaida.
|
||||
invalid_file_error=Neteisinga arba pažeista PDF byla.
|
||||
missing_file_error=Trūksta PDF bylos.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type.alt=[{{type}} Pastaba]
|
||||
request_password=PDF byla yra apsaugota slaptažodžiu:
|
||||
|
||||
printing_not_supported=Dėmesio: Naršyklė pilnai nepalaiko spausdinimo.
|
||||
web_fonts_disabled=Yra išjungti žiniatinklio šriftai: naudoti įterpus PDF šriftus nėra galima.
|
|
@ -30,22 +30,38 @@ zoom_out_label=Uitzoomen
|
|||
zoom_in.title=Inzoomen
|
||||
zoom_in_label=Inzoomen
|
||||
zoom.title=Zoomen
|
||||
print.title=Afdrukken
|
||||
print_label=Afdrukken
|
||||
presentation_mode.title=Omschakelen naar presentatiemodus
|
||||
presentation_mode_label=Presentatiemodus
|
||||
open_file.title=Bestand openen
|
||||
open_file_label=Openen
|
||||
print.title=Afdrukken
|
||||
print_label=Afdrukken
|
||||
download.title=Downloaden
|
||||
download_label=Downloaden
|
||||
bookmark.title=Huidige weergave (kopiëren of openen in nieuw venster)
|
||||
bookmark.title=Huidige weergave (kopiëren of openen in nieuw venster)
|
||||
bookmark_label=Huidige weergave
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
tools.title=Hulpmiddelen
|
||||
tools_label=Hulpmiddelen
|
||||
first_page.title=Naar de eerste pagina gaan
|
||||
first_page.label=Naar de eerste pagina gaan
|
||||
first_page_label=Naar de eerste pagina gaan
|
||||
last_page.title=Naar de laatste pagina gaan
|
||||
last_page.label=Naar de laatste pagina gaan
|
||||
last_page_label=Naar de laatste pagina gaan
|
||||
page_rotate_cw.title=Met de klok mee roteren
|
||||
page_rotate_cw.label=Met de klok mee roteren
|
||||
page_rotate_cw_label=Met de klok mee roteren
|
||||
page_rotate_ccw.title=Tegen de klok in roteren
|
||||
page_rotate_ccw.label=Tegen de klok in roteren
|
||||
page_rotate_ccw_label=Tegen de klok in roteren
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_slider.title=Zijbalk tonen/verbergen
|
||||
toggle_slider_label=Zijbalk tonen/verbergen
|
||||
toggle_sidebar.title=Zijbalk tonen/verbergen
|
||||
toggle_sidebar_label=Zijbalk tonen/verbergen
|
||||
outline.title=Documentstructuur tonen
|
||||
outline_label=Documentstructuur
|
||||
thumbs.title=Miniaturen tonen
|
||||
|
@ -53,9 +69,6 @@ thumbs_label=Miniaturen
|
|||
findbar.title=Zoeken in document
|
||||
findbar_label=Zoeken
|
||||
|
||||
# Document outline messages
|
||||
no_outline=Geen documentstructuur beschikbaar
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
|
@ -64,12 +77,6 @@ thumb_page_title=Pagina {{page}}
|
|||
# number.
|
||||
thumb_page_canvas=Miniatuur van pagina {{page}}
|
||||
|
||||
# Context menu
|
||||
first_page.label=Naar de eerste pagina gaan
|
||||
last_page.label=Naar de laatste pagina gaan
|
||||
page_rotate_cw.label=Met de klok mee roteren
|
||||
page_rotate_ccw.label=Tegen de klok in roteren
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Zoeken:
|
||||
find_previous.title=Het vorige voorkomen van de tekst zoeken
|
||||
|
@ -78,17 +85,17 @@ find_next.title=Het volgende voorkomen van de tekst zoeken
|
|||
find_next_label=Volgende
|
||||
find_highlight=Alles markeren
|
||||
find_match_case_label=Hoofdlettergevoelig
|
||||
find_wrapped_to_bottom=Onderkant van de pagina bereikt, doorgegaan vanaf de onderkant
|
||||
find_wrapped_to_top=Onderkant van de pagina bereikt, doorgegaan vanaf de bovenkant
|
||||
find_reached_top=Bovenkant van de pagina bereikt, doorgegaan vanaf de onderkant
|
||||
find_reached_bottom=Onderkant van de pagina bereikt, doorgegaan vanaf de bovenkant
|
||||
find_not_found=Tekst niet gevonden
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Meer informatie
|
||||
error_less_info=Minder informatie
|
||||
error_close=Sluiten
|
||||
# LOCALIZATION NOTE (error_build): "{{build}}" will be replaced by the PDF.JS
|
||||
# build ID.
|
||||
error_build=PDF.JS-build: {{build}}
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js versie {{version}} (build {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Bericht: {{message}}
|
||||
|
@ -109,13 +116,21 @@ page_scale_actual=Werkelijke grootte
|
|||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Fout
|
||||
loading_error=Er is een fout opgetreden bij het laden van de PDF.
|
||||
loading_error=Er is een fout opgetreden bij het laden van het PDF-bestand.
|
||||
invalid_file_error=Ongeldig of corrupt PDF-bestand.
|
||||
missing_file_error=Ontbrekend PDF-bestand.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}}-aantekening]
|
||||
request_password=Dit PDF-bestand is beveiligd met een wachtwoord:
|
||||
text_annotation_type.alt=[{{type}}-aantekening]
|
||||
password_label=Voer het wachtwoord in om dit PDF-bestand te openen.
|
||||
password_invalid=Onjuist wachtwoord. Probeer het opnieuw.
|
||||
password_ok=OK
|
||||
password_cancel=Annuleren
|
||||
|
||||
printing_not_supported=Waarschuwing: afdrukken wordt niet volledig ondersteund door deze browser.
|
||||
printing_not_supported=Waarschuwing: afdrukken wordt niet volledig ondersteund door deze browser.
|
||||
printing_not_ready=Waarschuwing: het PDF-bestand is niet volledig geladen en kan daarom nog niet afgedrukt worden.
|
||||
web_fonts_disabled=Weblettertypen zijn uitgeschakeld: kan geen ingebakken PDF-lettertypen gebruiken.
|
||||
document_colors_disabled=PDF-documenten mogen hun eigen kleuren niet gebruiken. \"Pagina\'s toestaan om hun eigen kleuren te kiezen\" is uitgeschakeld in de browser.
|
||||
|
|
134
plugins/pdfviewer/viewer/locale/no/viewer.properties
Normal file
|
@ -0,0 +1,134 @@
|
|||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Førre Side
|
||||
previous_label=Førre
|
||||
next.title=Neste side
|
||||
next_label=Neste
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Side:
|
||||
page_of=av {{pageCount}}
|
||||
|
||||
zoom_out.title=Zoom ut
|
||||
zoom_out_label=Zoom ut
|
||||
zoom_in.title=Zoom inn
|
||||
zoom_in_label=Zoom inn
|
||||
zoom.title=Zoom
|
||||
presentation_mode.title=Bytt til presentasjonsmodus
|
||||
presentation_mode_label=Presentasjonsmodus
|
||||
open_file.title=Opne fil
|
||||
open_file_label=Opne
|
||||
print.title=Skriv ut
|
||||
print_label=Skriv ut
|
||||
download.title=Last ned
|
||||
download_label=Last ned
|
||||
bookmark.title=Gjeldande visning (kopier eller opne i nytt vindauge)
|
||||
bookmark_label=Gjeldende visning
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
tools.title=Verktøy
|
||||
tools_label=Verktøy
|
||||
first_page.title=Gå til første side
|
||||
first_page.label=Gå til første side
|
||||
first_page_label=Gå til første side
|
||||
last_page.title=Gå til siste side
|
||||
last_page.label=Gå til siste side
|
||||
last_page_label=Gå til siste side
|
||||
page_rotate_cw.title=Roter med klokka
|
||||
page_rotate_cw.label=Roter med klokka
|
||||
page_rotate_cw_label=Roter med klokka
|
||||
page_rotate_ccw.title=Roter mot klokka
|
||||
page_rotate_ccw.label=Roter mot klokka
|
||||
page_rotate_ccw_label=Roter mot klokka
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=Veksle Sidebar
|
||||
toggle_sidebar_label=Veksle Sidebar
|
||||
outline.title=Vis Document Outline
|
||||
outline_label=Document Outline
|
||||
thumbs.title=Vis miniatyrbilder
|
||||
thumbs_label=Miniatyrbilder
|
||||
findbar.title=Finne i Dokument
|
||||
findbar_label=Finn
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Side {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=Thumbnail av siden {{page}}
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Finn:
|
||||
find_previous.title=Finn tidlegare førekomst av frasa
|
||||
find_previous_label=Førre
|
||||
find_next.title=Finn neste førekomst av frasa
|
||||
find_next_label=Neste
|
||||
find_highlight=Uthev alle
|
||||
find_match_case_label=Skil store/små bokstavar
|
||||
find_reached_top=Nådde toppen av dokumentet, held fram frå botnen
|
||||
find_reached_bottom=Nådde botnen av dokumentet, held fram frå toppen
|
||||
find_not_found=Fann ikkje teksten
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Meir info
|
||||
error_less_info=Mindre info
|
||||
error_close=Lukk
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v {{version}} (build: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Melding: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Stakk: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Fil: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Linje: {{line}}
|
||||
rendering_error=Ein feil oppstod ved oppteikning av sida.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Sidebreidde
|
||||
page_scale_fit=Tilpass til sida
|
||||
page_scale_auto=Automatisk zoom
|
||||
page_scale_actual=Verkeleg størrelse
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Feil
|
||||
loading_error=Ein feil oppstod ved lasting av PDF.
|
||||
invalid_file_error=Ugyldig eller korrupt PDF fil.
|
||||
missing_file_error=Manglande PDF-fil.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type.alt=[{{type}} annotasjon]
|
||||
request_password=PDF er beskytta av eit passord:
|
||||
invalid_password=Ugyldig passord.
|
||||
|
||||
printing_not_supported=Åtvaring: Utskrift er ikkje fullstendig støtta av denne nettlesaren.
|
||||
printing_not_ready=Åtvaring: PDF ikkje fullstendig innlasta for utskrift.
|
||||
web_fonts_disabled=Web-fontar er avslått: Kan ikkje bruke innbundne PDF-fontar.
|
||||
document_colors_disabled=PDF-dokument har ikkje løyve til å nytte eigne fargar: \'Tillat sider å velje eigne fargar\' er slått av i nettlesaren.
|
|
@ -12,46 +12,121 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
bookmark.title=Aktualny widok (kopiuj lub otwórz w nowym oknie)
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Poprzednia strona
|
||||
previous_label=Wstecz
|
||||
next.title=Następna strona
|
||||
print.title=Drukuj
|
||||
download.title=Pobierz
|
||||
next_label=Dalej
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Strona:
|
||||
page_of=z {{pageCount}}
|
||||
|
||||
zoom_out.title=Pomniejsz
|
||||
zoom_out_label=Pomniejsz
|
||||
zoom_in.title=Powiększ
|
||||
zoom_in_label=Powiększ
|
||||
zoom.title=Powiększenie
|
||||
presentation_mode.title=Przełącz do trybu prezentacji
|
||||
presentation_mode_label=Tryb prezentacji
|
||||
open_file.title=Otwórz plik
|
||||
open_file_label=Otwórz
|
||||
print.title=Drukuj
|
||||
print_label=Drukuj
|
||||
download.title=Pobierz
|
||||
download_label=Pobierz
|
||||
bookmark.title=Aktualny widok (kopiuj lub otwórz w nowym oknie)
|
||||
bookmark_label=Aktualny widok
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=Idź do pierwszej strony
|
||||
first_page.label=Idź do pierwszej strony
|
||||
first_page_label=Idź do pierwszej strony
|
||||
last_page.title=Idź do ostatniej strony
|
||||
last_page.label=Idź do ostatniej strony
|
||||
last_page_label=Idź do ostatniej strony
|
||||
page_rotate_cw.title=Obróć w prawo
|
||||
page_rotate_cw.label=Obróć w prawo
|
||||
page_rotate_cw_label=Obróć w prawo
|
||||
page_rotate_ccw.title=Obróć w lewo
|
||||
page_rotate_ccw.label=Obróć w lewo
|
||||
page_rotate_ccw_label=Obróć w lewo
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=Pokaż/Ukryj panel boczny
|
||||
toggle_sidebar_label=Pokaż/Ukryj panel
|
||||
outline.title=Wyświetl konspekt dokumentu
|
||||
outline_label=Konspekt dokumentu
|
||||
thumbs.title=Wyświetl miniatury
|
||||
thumbs_label=Miniatury
|
||||
findbar.title=Szukaj w tekście
|
||||
findbar_label=Znajdź
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Strona {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=Miniatura strony {{page}}
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Znajdź:
|
||||
find_previous.title=Znajdź poprzednie wystąpienie ostatnio szukanej frazy
|
||||
find_previous_label=Poprzednie
|
||||
find_next.title=Znajdź następne wystąpienie ostatnio szukanej frazy
|
||||
find_next_label=Następne
|
||||
find_highlight=Podświetl
|
||||
find_match_case_label=Rozróżniaj wielkość liter
|
||||
find_reached_top=Początek strony. Wyszukiwanie od końca.
|
||||
find_reached_bottom=Koniec strony. Wyszukiwanie od początku.
|
||||
find_not_found=Szukany tekst nie został odnaleziony.
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Więcej informacji
|
||||
error_less_info=Mniej informacji
|
||||
error_close=Zamknij
|
||||
error_build=Wersja PDF.JS: {{build}}
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=Wersja PDF.js: {{version}} (kompilacja: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Wiadomość: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Stos: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Plik: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Linia: {{line}}
|
||||
rendering_error=Wystąpił błąd podczas wyświetlania strony.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Szerokość strony
|
||||
page_scale_fit=Cała strona
|
||||
page_scale_auto=Automatyczne dopasowanie
|
||||
page_scale_actual=Rzeczywisty rozmiar
|
||||
toggle_slider.title=Włącz/wyłącz suwak
|
||||
thumbs.title=Wyświetl miniatury
|
||||
outline.title=Wyświetl konspekt dokumentu
|
||||
loading=Wczytywanie... {{percent}}%
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Błąd
|
||||
loading_error=Wystąpił błąd podczas wczytywania pliku PDF.
|
||||
invalid_file_error=Błędny lub zepsuty plik PDF.
|
||||
rendering_error=Wystąpił błąd podczas wyświetlania strony.
|
||||
page_label=Strona:
|
||||
page_of=z {{pageCount}}
|
||||
no_outline=Konspekt nie jest dostępny
|
||||
open_file.title=Otwórz plik
|
||||
text_annotation_type=[Komentarz {{type}}]
|
||||
toggle_slider_label=Przełącz suwak
|
||||
thumbs_label=Miniatury
|
||||
outline_label=Konspekt dokumentu
|
||||
bookmark_label=Aktualny widok
|
||||
previous_label=Wstecz
|
||||
next_label=Dalej
|
||||
print_label=Drukuj
|
||||
download_label=Pobierz
|
||||
zoom_out_label=Pomniejsz
|
||||
zoom_in_label=Powiększ
|
||||
zoom.title=Powiększenie
|
||||
invalid_file_error=Błędny lub uszkodzony plik PDF.
|
||||
missing_file_error=Nie znaleziono pliku PDF.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 - Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type.alt=[Komentarz {{type}}]
|
||||
request_password=Plik PDF jest chroniony przez hasło:
|
||||
invalid_password=Nieprawidłowe hasło.
|
||||
|
||||
printing_not_supported=Ostrzeżenie: Drukowanie nie jest w pełni obsługiwane przez tę przeglądarkę.
|
||||
printing_not_ready=Ostrzeżenie: Plik PDF nie jest całkowicie wczytany do drukowania.
|
||||
web_fonts_disabled=Web fonty są nieaktywne. Nie można korzystać z osadzonych czcionek w plikach PDF.
|
||||
document_colors_disabled=Dokumenty PDF nie mają pozwolenia na korzystanie z ich własnych kolorów: \'Pozwalaj stronom stosować inne kolory niż ustawione tutaj\' nie jest aktywne w przeglądarce.
|
||||
|
|
|
@ -40,6 +40,5 @@ loading_error=Um erro ocorreu ao carregar o arquivo.
|
|||
rendering_error=Um erro ocorreu ao apresentar a página.
|
||||
page_label=Página:
|
||||
page_of=de {{pageCount}}
|
||||
no_outline=Índice não disponível
|
||||
open_file.title=Abrir arquivo
|
||||
text_annotation_type=[{{type}} Anotações]
|
||||
text_annotation_type.alt=[{{type}} Anotações]
|
||||
|
|
|
@ -40,9 +40,8 @@ loading_error=S-a produs o eroare în timpul încărcării documentului.
|
|||
rendering_error=S-a produs o eroare în timpul procesării paginii.
|
||||
page_label=Pagina:
|
||||
page_of=din {{pageCount}}
|
||||
no_outline=Cuprins indisponibil
|
||||
open_file.title=Deschide fișier
|
||||
text_annotation_type=[Adnotare {{type}}]
|
||||
text_annotation_type.alt=[Adnotare {{type}}]
|
||||
toggle_slider_label=Vedere de ansamblu
|
||||
thumbs_label=Miniaturi
|
||||
outline_label=Cuprins
|
||||
|
|
|
@ -40,9 +40,8 @@ loading_error=Произошла ошибка во время загрузки P
|
|||
rendering_error=Произошла ошибка во время создания страницы.
|
||||
page_label=Страница:
|
||||
page_of=из {{pageCount}}
|
||||
no_outline=Содержание не доступно
|
||||
open_file.title=Открыть файл
|
||||
text_annotation_type=[Аннотация {{type}}]
|
||||
text_annotation_type.alt=[Аннотация {{type}}]
|
||||
toggle_slider_label=Вспомогательная панель
|
||||
thumbs_label=Уменьшенные изображения
|
||||
outline_label=Содержание документа
|
||||
|
|
|
@ -40,9 +40,8 @@ loading_error=Дошло је до грешке током учитавања П
|
|||
rendering_error=Дошло је до грешке приликом приказивања стране.
|
||||
page_label=Страна:
|
||||
page_of=од {{pageCount}}
|
||||
no_outline=Нема линија
|
||||
open_file.title=Отвори датотеку
|
||||
text_annotation_type=[{{type}} Annotation]
|
||||
text_annotation_type.alt=[{{type}} Annotation]
|
||||
toggle_slider_label=Клизач
|
||||
thumbs_label=Сличице
|
||||
outline_label=Документи у линијама
|
||||
|
|
|
@ -30,32 +30,45 @@ zoom_out_label=Zooma ut
|
|||
zoom_in.title=Zooma in
|
||||
zoom_in_label=Zooma in
|
||||
zoom.title=Zooma
|
||||
print.title=Skriv ut
|
||||
print_label=Skriv ut
|
||||
presentation_mode.title=Växla till presentationsläge
|
||||
presentation_mode_label=Presentatationsläge
|
||||
presentation_mode.title=Presentationsläge
|
||||
presentation_mode_label=Presentationsläge
|
||||
open_file.title=Öppna fil
|
||||
open_file_label=Öppna
|
||||
print.title=Skriv ut
|
||||
print_label=Skriv ut
|
||||
download.title=Ladda ner
|
||||
download_label=Ladda ner
|
||||
bookmark.title=Aktuell vy (kopiera eller öppna i nytt fönster)
|
||||
bookmark_label=Aktuell vy
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
tools.title=Verktyg
|
||||
tools_label=Verktyg
|
||||
first_page.title=Gå till första sidan
|
||||
first_page.label=Gå till första sidan
|
||||
first_page_label=Gå till första sidan
|
||||
last_page.title=Gå till sista sidan
|
||||
last_page.label=Gå till sista sidan
|
||||
last_page_label=Gå till sista sidan
|
||||
page_rotate_cw.title=Rotera medurs
|
||||
page_rotate_cw.label=Rotera medurs
|
||||
page_rotate_cw_label=Rotera medurs
|
||||
page_rotate_ccw.title=Rotera moturs
|
||||
page_rotate_ccw.label=Rotera moturs
|
||||
page_rotate_ccw_label=Rotera moturs
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_slider.title=Visa/Dölj panel
|
||||
toggle_slider_label=Visa/Dölj panel
|
||||
outline.title=Visa dokumentdisposition
|
||||
outline_label=Dokumentdisposition
|
||||
thumbs.title=Visa miniatyrer
|
||||
thumbs_label=Miniatyrer
|
||||
toggle_sidebar.title=Visa/Dölj sidopanel
|
||||
toggle_sidebar_label=Visa/Dölj sidopanel
|
||||
outline.title=Visa bokmärken
|
||||
outline_label=Bokmärken
|
||||
thumbs.title=Visa sidminiatyrer
|
||||
thumbs_label=Sidminiatyrer
|
||||
findbar.title=Sök i dokumentet
|
||||
findbar_label=Sök
|
||||
|
||||
# Document outline messages
|
||||
no_outline=Ingen dokumentdisposition tillgänglig
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
|
@ -64,12 +77,6 @@ thumb_page_title=Sida {{page}}
|
|||
# number.
|
||||
thumb_page_canvas=Miniatyr av sida {{page}}
|
||||
|
||||
# Context menu
|
||||
first_page.label=Gå till första sidan
|
||||
last_page.label=Gå till sista sidan
|
||||
page_rotate_cw.label=Rotera medurs
|
||||
page_rotate_ccw.label=Rotera moturs
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Sök:
|
||||
find_previous.title=Hitta föregående förekomst av frasen
|
||||
|
@ -77,18 +84,18 @@ find_previous_label=Föregående
|
|||
find_next.title=Hitta nästa förekomst av frasen
|
||||
find_next_label=Nästa
|
||||
find_highlight=Markera alla
|
||||
find_match_case_label=Matcha versaler/gemener
|
||||
find_wrapped_to_bottom=Nådde toppen av sidan, fortsätter från slutet
|
||||
find_wrapped_to_top=Nådde slutet av sidan, fortsätter från toppen
|
||||
find_match_case_label=Matcha VERSALER/gemener
|
||||
find_reached_top=Kommit till början av dokumentet, börjat om
|
||||
find_reached_bottom=Kommit till slutet av dokumentet, börjat om
|
||||
find_not_found=Frasen hittades inte
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Mer information
|
||||
error_less_info=Mindre information
|
||||
error_close=Stäng
|
||||
# LOCALIZATION NOTE (error_build): "{{build}}" will be replaced by the PDF.JS
|
||||
# build ID.
|
||||
error_build=PDF.JS Bygge: {{build}}
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (bygge: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Meddelande: {{message}}
|
||||
|
@ -103,20 +110,28 @@ rendering_error=Ett fel inträffade när sidan renderades.
|
|||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Sidbredd
|
||||
page_scale_fit=Passa sida
|
||||
page_scale_auto=Automatisk Zoom
|
||||
page_scale_fit=Helsida
|
||||
page_scale_auto=Automatisk zoom
|
||||
page_scale_actual=Faktisk storlek
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Fel
|
||||
loading_error=Ett fel inträffade när PDFen skulle laddas.
|
||||
loading_error=Ett fel inträffade när PDF-filen laddades.
|
||||
invalid_file_error=Ogiltig eller korrupt PDF-fil.
|
||||
missing_file_error=PDF-filen saknas.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}} Annotering]
|
||||
request_password=PDFen är skyddad av lösenord:
|
||||
text_annotation_type.alt=[{{type}}-anteckning]
|
||||
|
||||
printing_not_supported=Varning: Utskrifter stöds inte fullt ut av denna webbläsare.
|
||||
password_label=Ange lösenordet för att öppna PDF-filen.
|
||||
password_invalid=Felaktigt lösenord. Försök igen.
|
||||
password_ok=OK
|
||||
password_cancel=Avbryt
|
||||
|
||||
printing_not_supported=Varning: Utskrifter stöds inte fullt ut av denna webbläsare.
|
||||
printing_not_ready=Varning: Hela PDF-filen måste laddas innan utskrift kan ske.
|
||||
web_fonts_disabled=Webbtypsnitt är inaktiverade: Typsnitt inbäddade i PDF-filer kan inte användas.
|
||||
document_colors_disabled=PDF-dokument kan inte använda egna färger: \'Låt sidor använda egna färger\' är inaktiverat i webbläsaren.
|
||||
|
|
129
plugins/pdfviewer/viewer/locale/tr/viewer.properties
Normal file
|
@ -0,0 +1,129 @@
|
|||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Önceki Sayfa
|
||||
previous_label=Önceki
|
||||
next.title=Sonraki Sayfa
|
||||
next_label=Sonraki
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Sayfa:
|
||||
page_of=- {{pageCount}}
|
||||
|
||||
zoom_out.title=Uzaklaş
|
||||
zoom_out_label=Uzaklaş
|
||||
zoom_in.title=Yakınlaş
|
||||
zoom_in_label=Yakınlaş
|
||||
zoom.title=Yakınlaştır
|
||||
presentation_mode.title=Sunum moduna geçiş yap
|
||||
presentation_mode_label=Sunum Modu
|
||||
open_file.title=Dosya Aç
|
||||
open_file_label=Aç
|
||||
print.title=Yazdır
|
||||
print_label=Yazdır
|
||||
download.title=İndir
|
||||
download_label=İndir
|
||||
bookmark.title=Mevcut görünüm (kopyala yada yeni sayfada aç)
|
||||
bookmark_label=Mevcut Görünüm
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=İlk Sayfaya Git
|
||||
first_page.label=İlk Sayfaya Git
|
||||
first_page_label=İlk Sayfaya Git
|
||||
last_page.title=Son Sayfaya Git
|
||||
last_page.label=Son Sayfaya Git
|
||||
last_page_label=Son Sayfaya Git
|
||||
page_rotate_cw.title=Sağa Çevir
|
||||
page_rotate_cw.label=Sağa Çevir
|
||||
page_rotate_cw_label=Sağa Çevir
|
||||
page_rotate_ccw.title=Sola Çevir
|
||||
page_rotate_ccw.label=Sola Çevir
|
||||
page_rotate_ccw_label=Sola Çevir
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=Yan Menü Aç/Kapa
|
||||
toggle_sidebar_label=Yan Menü
|
||||
outline.title=Sayfa kenarlıklarını döster
|
||||
outline_label=Sayfa Kenarlıkları
|
||||
thumbs.title=Önizleme resimlerini göster
|
||||
thumbs_label=Önizleme
|
||||
findbar.title=Döküman içerisinde bul
|
||||
findbar_label=Bul
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Sayfa {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas={{page}} sayfasının ön izlemesi
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Bul:
|
||||
find_previous.title=Önceki cümleyi bul
|
||||
find_previous_label=Önceki
|
||||
find_next.title=Sonraki cümleyi bul
|
||||
find_next_label=Sonraki
|
||||
find_highlight=Hepsini belirt
|
||||
find_match_case_label=harf eşleme
|
||||
find_reached_top=Dosyanın en üstüne varıldı. Sonundan devam ediliyor
|
||||
find_reached_bottom=Dosyanın sonuna varıldı. Başından devam ediliyor
|
||||
find_not_found=Aramanızla eşleşen sonuç yok
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Daha falza bilgi
|
||||
error_less_info=daha az bilgi
|
||||
error_close=Kapat
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (build: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Mesaj: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Yığın: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Dosya: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Satır: {{line}}
|
||||
rendering_error=Sayfa oluşturulurken bir hata meydana geldi.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Sayfa Genişliği
|
||||
page_scale_fit=Sayfayı Sığdır
|
||||
page_scale_auto=Otomatik Yakınlaşma
|
||||
page_scale_actual=Gerçek boyut
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Hata
|
||||
loading_error=PDF yüklenirken hata.
|
||||
invalid_file_error=Geçersiz yada bozuk dosya.
|
||||
missing_file_error=PDF dosyası bulunamadı.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type.alt=[{{type}} Not]
|
||||
request_password=PDF Şifre ile korunmakta:
|
||||
|
||||
printing_not_supported=Uyarı: Yazdırma işlemi bu tarayıcı ile tam desteklenmiyor.
|
||||
web_fonts_disabled=Web Fontları devre dışı. Web fontlar yüklenemiyor.
|
131
plugins/pdfviewer/viewer/locale/vi/viewer.properties
Normal file
|
@ -0,0 +1,131 @@
|
|||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=Trang Trước
|
||||
previous_label=Trước
|
||||
next.title=Trang Tiếp
|
||||
next_label=Tiếp
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=Trang:
|
||||
page_of=trên {{pageCount}}
|
||||
|
||||
zoom_out.title=Phóng to
|
||||
zoom_out_label=Phóng to
|
||||
zoom_in.title=Thu nhỏ
|
||||
zoom_in_label=Thu nhỏ
|
||||
zoom.title=Thu phóng
|
||||
presentation_mode.title=Chuyển sang chế độ thuyết trình
|
||||
presentation_mode_label=Chế độ Thuyết trình
|
||||
open_file.title=Mở Tệp
|
||||
open_file_label=Tệp
|
||||
print.title=In
|
||||
print_label=In
|
||||
download.title=Tải xuống
|
||||
download_label=Tải xuống
|
||||
bookmark.title=Đánh dấu (sao chép hoặc mở cửa sổ mới)
|
||||
bookmark_label=Đánh dấu
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=Đến trang đầu tiên
|
||||
first_page.label=Đến trang đầu tiên
|
||||
first_page_label=Đến trang đầu tiên
|
||||
last_page.title=Đến trang cuối cùng
|
||||
last_page.label=Đến trang cuối cùng
|
||||
last_page_label=Đến trang cuối cùng
|
||||
page_rotate_cw.title=Quay sang phải
|
||||
page_rotate_cw.label=Quay sang phải
|
||||
page_rotate_cw_label=Quay sang phải
|
||||
page_rotate_ccw.title=Quay sang trái
|
||||
page_rotate_ccw.label=Quay sang trái
|
||||
page_rotate_ccw_label=Quay sang trái
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=Đóng bật thanh lề
|
||||
toggle_sidebar_label=Bật tắt thanh lề
|
||||
outline.title=Hiện thị giản lược tài liệu
|
||||
outline_label=Giản lược
|
||||
thumbs.title=hiện tài liệu ở dạng ảnh thu nhỏ
|
||||
thumbs_label=Ảnh thu nhỏ
|
||||
findbar.title=Tìm trong văn bản
|
||||
findbar_label=Tìm kiếm
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=Page {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=Thumbnail of Page {{page}}
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=Tìm:
|
||||
find_previous.title=Tìm kiếm câu xuất hiện phía trước
|
||||
find_previous_label=Về trước
|
||||
find_next.title=Tìm kiếm câu xuất hiện phía sau
|
||||
find_next_label=Tiếp theo
|
||||
find_highlight=Tô sáng toàn bộ
|
||||
find_match_case_label=Giống chữ
|
||||
find_reached_top=Đến cuối đầu tài liệu, tiếp tục từ cuối
|
||||
find_reached_bottom=Đến cuối tài liệu, tiếp tục từ đầu
|
||||
find_not_found=Không tìm thấy
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=Thông tim thêm
|
||||
error_less_info=Thông tin giản lược
|
||||
error_close=Đóng
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (dịch: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=Thông báo: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=Ngăn xếp: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=Tệp: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=Dòng: {{line}}
|
||||
rendering_error=An error occurred while rendering the page.
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=Ngang
|
||||
page_scale_fit=Xem Toàn Trang
|
||||
page_scale_auto=Tự Động
|
||||
page_scale_actual=Kích thước thực
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=Lỗi
|
||||
loading_error=Lỗi khi mở tệp PDF.
|
||||
invalid_file_error=Tệp PDF bị hỏng hoặc lỗi.
|
||||
missing_file_error=Thiếu tệp tin PDF.
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}} Đánh dấu]
|
||||
request_password=PDF được bảo vệ bởi mật mã:
|
||||
|
||||
printing_not_supported=Chú ý: Công việc in ẩn không được hỗ trợ bởi trình duyệt.
|
||||
printing_not_ready=Chú ý: Tệp PDF không sẵn sàng cho in ấn.
|
||||
web_fonts_disabled=Phồng chữ cho Web bị vô tác dụng: không thể dùng phông chữ kèm theo tệp PDF.
|
||||
web_colors_disabled=Màu cho Wev bị vô tác dụng.
|
|
@ -30,22 +30,36 @@ zoom_out_label=缩小
|
|||
zoom_in.title=放大
|
||||
zoom_in_label=放大
|
||||
zoom.title=缩放
|
||||
print.title=打印
|
||||
print_label=打印
|
||||
presentation_mode.title=切换至幻灯模式
|
||||
presentation_mode_label=幻灯模式
|
||||
open_file.title=打开文件
|
||||
open_file_label=打开
|
||||
print.title=打印
|
||||
print_label=打印
|
||||
download.title=下载
|
||||
download_label=下载
|
||||
bookmark.title=当前视图(复制或在新窗口中打开)
|
||||
bookmark_label=当前视图
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
first_page.title=转到第一页
|
||||
first_page.label=转到第一页
|
||||
first_page_label=转到第一页
|
||||
last_page.title=转到结尾页
|
||||
last_page.label=转到结尾页
|
||||
last_page_label=转到结尾页
|
||||
page_rotate_cw.title=顺时针旋转
|
||||
page_rotate_cw.label=顺时针旋转
|
||||
page_rotate_cw_label=顺时针旋转
|
||||
page_rotate_ccw.title=逆时针旋转
|
||||
page_rotate_ccw.label=逆时针旋转
|
||||
page_rotate_ccw_label=逆时针旋转
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_slider.title=切换侧栏
|
||||
toggle_slider_label=切换侧栏
|
||||
toggle_sidebar.title=切换侧栏
|
||||
toggle_sidebar_label=切换侧栏
|
||||
outline.title=显示文档大纲
|
||||
outline_label=文档大纲
|
||||
thumbs.title=显示缩略图
|
||||
|
@ -53,9 +67,6 @@ thumbs_label=缩略图
|
|||
findbar.title=在该文档内查找
|
||||
findbar_label=查找
|
||||
|
||||
# Document outline messages
|
||||
no_outline=没有可用的大纲
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
|
@ -64,12 +75,6 @@ thumb_page_title=页码 {{page}}
|
|||
# number.
|
||||
thumb_page_canvas=页面 {{page}} 的缩略图
|
||||
|
||||
# Context menu
|
||||
first_page.label=转到第一页
|
||||
last_page.label=转到结尾页
|
||||
page_rotate_cw.label=顺时针旋转
|
||||
page_rotate_ccw.label=逆时针旋转
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=查找:
|
||||
find_previous.title=查找该短语上一次出现的位置
|
||||
|
@ -111,12 +116,13 @@ page_scale_actual=实际大小
|
|||
loading_error_indicator=错误
|
||||
loading_error=加载 PDF 文件时出错。
|
||||
invalid_file_error=PDF 文件无效或已损坏。
|
||||
missing_file_error=缺失 PDF 文件。
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type): This is used as a tooltip.
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type=[{{type}} 注解]
|
||||
text_annotation_type.alt=[{{type}} 注解]
|
||||
request_password=该 PDF 文档受密码保护:
|
||||
|
||||
printing_not_supported=警告:该浏览器不能完全支持打印。
|
||||
|
|
|
@ -1,113 +1,134 @@
|
|||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# 主工具列按鍵 (工具提示和圖像的替代文字)
|
||||
previous.title=上一頁
|
||||
previous_label=上一頁
|
||||
next.title=下一頁
|
||||
next_label=下一頁
|
||||
|
||||
# 本地化提示 (page_label, page_of):
|
||||
# 這些字符串會連接成 "Page: X of Y" 的表示方式。
|
||||
# 不要翻譯 "{{pageCount}}" , 因為它用來表示總頁數。
|
||||
page_label=第
|
||||
page_of=頁,共 {{pageCount}} 頁
|
||||
|
||||
zoom_out.title=縮小
|
||||
zoom_out_label=縮小
|
||||
zoom_in.title=放大
|
||||
zoom_in_label=放大
|
||||
zoom.title=縮放
|
||||
print.title=列印
|
||||
print_label=列印
|
||||
presentation_mode.title=切換到簡報模式
|
||||
presentation_mode_label=簡報模式
|
||||
open_file.title=開啟檔案
|
||||
open_file_label=開啟
|
||||
download.title=下載
|
||||
download_label=下載
|
||||
bookmark.title=目前檢視(複製或在新視窗中開啟)
|
||||
bookmark_label=目前檢視
|
||||
|
||||
# 側邊欄工具列按鍵 (工具提示和圖像的替代文字)
|
||||
# (_label 字符串是按鍵的替代文字, .title 字符串是工具提示)
|
||||
toggle_slider.title=切換側邊欄
|
||||
toggle_slider_label=切換側邊欄
|
||||
outline.title=顯示文件綱要
|
||||
outline_label=文件綱要
|
||||
thumbs.title=顯示縮圖
|
||||
thumbs_label=縮圖
|
||||
findbar.title=在文件中搜尋
|
||||
findbar_label=搜索
|
||||
|
||||
# 文件綱要相關訊息
|
||||
no_outline=無可用的綱要
|
||||
|
||||
# 縮圖面板項目 (工具提示和圖像的替代文字)
|
||||
# 本地化提示 (thumb_page_title): "{{page}}" 會被頁數取代。
|
||||
thumb_page_title=第 {{page}} 頁
|
||||
# 本地化提示 (thumb_page_canvas): "{{page}}" 會被頁數取代。
|
||||
thumb_page_canvas=第 {{page}} 頁的縮圖
|
||||
|
||||
# 右鍵菜單
|
||||
page_rotate_cw.label=順時針旋轉
|
||||
page_rotate_ccw.label=逆時針旋轉
|
||||
|
||||
# 搜尋面板按鍵文字及訊息
|
||||
find_label=搜尋:
|
||||
find_previous.title=尋找上一個出現的詞組
|
||||
find_previous_label=上一個
|
||||
find_next.title=尋找下一個出現的詞組
|
||||
find_next_label=下一個
|
||||
find_highlight=全部以高亮顯示
|
||||
find_match_case_label=區分大小寫
|
||||
find_reached_top=到達文件頂端,由末端繼續搜尋
|
||||
find_reached_bottom=到達文件末端,由頂端繼續搜尋
|
||||
find_not_found=找不到詞組
|
||||
|
||||
# 錯誤面板標籤
|
||||
error_more_info=更多資訊
|
||||
error_less_info=更少資訊
|
||||
error_close=關閉
|
||||
# 本地化提示 (error_version_info): "{{version}}" and "{{build}}" 會被PDF.JS版本編號及組建編號取代。
|
||||
error_version_info=PDF.js v{{version}} (組建: {{build}})
|
||||
# 本地化提示 (error_message): "{{message}}" 會被英文的錯誤描述取代。
|
||||
error_message=錯誤信息:{{message}}
|
||||
# 本地化提示 (error_stack): "{{stack}}" 會被錯誤堆疊取代。
|
||||
error_stack=堆疊:{{stack}}
|
||||
# 本地化提示 (error_file): "{{file}}" 會被檔案名稱取代。
|
||||
error_file=檔案:{{file}}
|
||||
# 本地化提示 (error_line): "{{line}}" 會被行數取代。
|
||||
error_line=行數:{{line}}
|
||||
rendering_error=渲染頁面時發生錯誤。
|
||||
|
||||
# 預設的縮放值
|
||||
page_scale_width=符合頁寬
|
||||
page_scale_fit=符合頁面
|
||||
page_scale_auto=自動縮放
|
||||
page_scale_actual=實際大小
|
||||
|
||||
# 載入指示訊息
|
||||
loading_error_indicator=錯誤
|
||||
loading_error=載入PDF檔案時發生錯誤。
|
||||
invalid_file_error=無效或受損的PDF檔案。
|
||||
|
||||
# 其他標籤和訊息
|
||||
# "{{type}}" 用來表示PDF格式規範 (32000-1:2008 Table 169 – Annotation types) 入面所定義的註解種類。
|
||||
# 一些常見的類型有: "Check"、 "Text"、 "Comment"、 "Note"
|
||||
text_annotation_type=[{{type}} 註解]
|
||||
request_password=PDF檔案受密碼保護:
|
||||
|
||||
printing_not_supported=警告:這個瀏覽器不完全支援列印。
|
||||
web_fonts_disabled=禁止使用網路字型:無法使用嵌入PDF檔案的字型。
|
||||
# Copyright 2012 Mozilla Foundation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Main toolbar buttons (tooltips and alt text for images)
|
||||
previous.title=上一頁
|
||||
previous_label=上一頁
|
||||
next.title=下一頁
|
||||
next_label=下一頁
|
||||
|
||||
# LOCALIZATION NOTE (page_label, page_of):
|
||||
# These strings are concatenated to form the "Page: X of Y" string.
|
||||
# Do not translate "{{pageCount}}", it will be substituted with a number
|
||||
# representing the total number of pages.
|
||||
page_label=頁:
|
||||
page_of=/ {{pageCount}}
|
||||
|
||||
zoom_out.title=縮小
|
||||
zoom_out_label=縮小
|
||||
zoom_in.title=放大
|
||||
zoom_in_label=放大
|
||||
zoom.title=縮放
|
||||
presentation_mode.title=切換至簡報模式
|
||||
presentation_mode_label=簡報模式
|
||||
open_file.title=開啟檔案
|
||||
open_file_label=開啟
|
||||
print.title=列印
|
||||
print_label=列印
|
||||
download.title=下載
|
||||
download_label=下載
|
||||
bookmark.title=目前檢視的內容(複製或開啟於新視窗)
|
||||
bookmark_label=目前檢視
|
||||
|
||||
# Secondary toolbar and context menu
|
||||
tools.title=工具
|
||||
tools_label=工具
|
||||
first_page.title=跳到第一頁
|
||||
first_page.label=跳到第一頁
|
||||
first_page_label=跳到第一頁
|
||||
last_page.title=跳到最後一頁
|
||||
last_page.label=跳到最後一頁
|
||||
last_page_label=跳到最後一頁
|
||||
page_rotate_cw.title=順時針旋轉
|
||||
page_rotate_cw.label=順時針旋轉
|
||||
page_rotate_cw_label=順時針旋轉
|
||||
page_rotate_ccw.title=逆時針旋轉
|
||||
page_rotate_ccw.label=逆時針旋轉
|
||||
page_rotate_ccw_label=逆時針旋轉
|
||||
|
||||
# Tooltips and alt text for side panel toolbar buttons
|
||||
# (the _label strings are alt text for the buttons, the .title strings are
|
||||
# tooltips)
|
||||
toggle_sidebar.title=切換側邊欄
|
||||
toggle_sidebar_label=切換側邊欄
|
||||
outline.title=顯示文件大綱
|
||||
outline_label=文件大綱
|
||||
thumbs.title=顯示縮圖
|
||||
thumbs_label=縮圖
|
||||
findbar.title=在文件中尋找
|
||||
findbar_label=尋找
|
||||
|
||||
# Thumbnails panel item (tooltip and alt text for images)
|
||||
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_title=頁 {{page}}
|
||||
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
|
||||
# number.
|
||||
thumb_page_canvas=頁 {{page}} 的縮圖
|
||||
|
||||
# Find panel button title and messages
|
||||
find_label=尋找:
|
||||
find_previous.title=尋找文字前次出現的位置
|
||||
find_previous_label=上一個
|
||||
find_next.title=尋找文字下次出現的位置
|
||||
find_next_label=下一個
|
||||
find_highlight=全部強調標示
|
||||
find_match_case_label=區分大小寫
|
||||
find_reached_top=已搜尋至文件頂端,自底端繼續搜尋
|
||||
find_reached_bottom=已搜尋至文件底端,自頂端繼續搜尋
|
||||
find_not_found=找不到指定文字
|
||||
|
||||
# Error panel labels
|
||||
error_more_info=更多資訊
|
||||
error_less_info=更少資訊
|
||||
error_close=關閉
|
||||
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
|
||||
# replaced by the PDF.JS version and build ID.
|
||||
error_version_info=PDF.js v{{version}} (build: {{build}})
|
||||
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
|
||||
# english string describing the error.
|
||||
error_message=訊息: {{message}}
|
||||
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
|
||||
# trace.
|
||||
error_stack=堆疊: {{stack}}
|
||||
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
|
||||
error_file=檔案: {{file}}
|
||||
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
|
||||
error_line=行: {{line}}
|
||||
rendering_error=描繪頁面時發生錯誤。
|
||||
|
||||
# Predefined zoom values
|
||||
page_scale_width=頁面寬度
|
||||
page_scale_fit=縮放至頁面大小
|
||||
page_scale_auto=自動縮放
|
||||
page_scale_actual=實際大小
|
||||
|
||||
# Loading indicator messages
|
||||
loading_error_indicator=錯誤
|
||||
loading_error=載入 PDF 時發生錯誤。
|
||||
invalid_file_error=無效或毀損的 PDF 檔案。
|
||||
missing_file_error=找不到 PDF 檔案。
|
||||
|
||||
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
|
||||
# "{{type}}" will be replaced with an annotation type from a list defined in
|
||||
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
|
||||
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
|
||||
text_annotation_type.alt=[{{type}} 註解]
|
||||
request_password=PDF 已被密碼保護:
|
||||
invalid_password=密碼無效。
|
||||
|
||||
printing_not_supported=警告: 此瀏覽器未完整支援列印功能。
|
||||
printing_not_ready=警告: 此 PDF 未完成下載以供列印。
|
||||
web_fonts_disabled=已停用網路字型 (Web fonts): 無法使用 PDF 內嵌字型。
|
||||
document_colors_disabled=瀏覽器的「優先使用網頁指定的色彩」未被勾選,PDF 文件無法使用自己的色彩。
|
||||
|
|
39219
plugins/pdfviewer/viewer/pdf.worker.js
vendored
Normal file
|
@ -14,10 +14,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<html dir="ltr">
|
||||
<html dir="ltr" mozdisallowselectionprint moznomarginboxes>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="google" content="notranslate">
|
||||
<title>PDF.js viewer</title>
|
||||
|
||||
|
||||
|
@ -33,20 +34,22 @@ limitations under the License.
|
|||
<script type="text/javascript" src="pdf.js"></script>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="debugger.js"></script>
|
||||
<script type="text/javascript" src="viewer.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="outerContainer">
|
||||
<body tabindex="1">
|
||||
<div id="outerContainer" class="loadingInProgress">
|
||||
|
||||
<div id="sidebarContainer">
|
||||
<div id="toolbarSidebar">
|
||||
<div class="splitToolbarButton toggled">
|
||||
<button id="viewThumbnail" class="toolbarButton group toggled" title="Show Thumbnails" tabindex="1" data-l10n-id="thumbs">
|
||||
<button id="viewThumbnail" class="toolbarButton group toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs">
|
||||
<span data-l10n-id="thumbs_label">Thumbnails</span>
|
||||
</button>
|
||||
<button id="viewOutline" class="toolbarButton group" title="Show Document Outline" tabindex="2" data-l10n-id="outline">
|
||||
<button id="viewOutline" class="toolbarButton group" title="Show Document Outline" tabindex="3" data-l10n-id="outline">
|
||||
<span data-l10n-id="outline_label">Document Outline</span>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -60,74 +63,108 @@ limitations under the License.
|
|||
</div> <!-- sidebarContainer -->
|
||||
|
||||
<div id="mainContainer">
|
||||
<div class="findbar hidden doorHanger" id="findbar">
|
||||
<div class="findbar hidden doorHanger hiddenSmallView" id="findbar">
|
||||
<label for="findInput" class="toolbarLabel" data-l10n-id="find_label">Find:</label>
|
||||
<input id="findInput" class="toolbarField" tabindex="20">
|
||||
<input id="findInput" class="toolbarField" tabindex="41">
|
||||
<div class="splitToolbarButton">
|
||||
<button class="toolbarButton findPrevious" title="" id="findPrevious" tabindex="21" data-l10n-id="find_previous">
|
||||
<button class="toolbarButton findPrevious" title="" id="findPrevious" tabindex="42" data-l10n-id="find_previous">
|
||||
<span data-l10n-id="find_previous_label">Previous</span>
|
||||
</button>
|
||||
<div class="splitToolbarButtonSeparator"></div>
|
||||
<button class="toolbarButton findNext" title="" id="findNext" tabindex="22" data-l10n-id="find_next">
|
||||
<button class="toolbarButton findNext" title="" id="findNext" tabindex="43" data-l10n-id="find_next">
|
||||
<span data-l10n-id="find_next_label">Next</span>
|
||||
</button>
|
||||
</div>
|
||||
<input type="checkbox" id="findHighlightAll" class="toolbarField">
|
||||
<label for="findHighlightAll" class="toolbarLabel" tabindex="23" data-l10n-id="find_highlight">Highlight all</label>
|
||||
<label for="findHighlightAll" class="toolbarLabel" tabindex="44" data-l10n-id="find_highlight">Highlight all</label>
|
||||
<input type="checkbox" id="findMatchCase" class="toolbarField">
|
||||
<label for="findMatchCase" class="toolbarLabel" tabindex="24" data-l10n-id="find_match_case_label">Match case</label>
|
||||
<label for="findMatchCase" class="toolbarLabel" tabindex="45" data-l10n-id="find_match_case_label">Match case</label>
|
||||
<span id="findMsg" class="toolbarLabel"></span>
|
||||
</div>
|
||||
</div> <!-- findbar -->
|
||||
|
||||
<div id="secondaryToolbar" class="secondaryToolbar hidden doorHangerRight">
|
||||
<div id="secondaryToolbarButtonContainer">
|
||||
<button id="secondaryPresentationMode" class="secondaryToolbarButton presentationMode visibleLargeView" title="Switch to Presentation Mode" tabindex="18" data-l10n-id="presentation_mode">
|
||||
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
|
||||
</button>
|
||||
|
||||
<button id="secondaryPrint" class="secondaryToolbarButton print visibleMediumView" title="Print" tabindex="20" data-l10n-id="print">
|
||||
<span data-l10n-id="print_label">Print</span>
|
||||
</button>
|
||||
|
||||
<div class="horizontalToolbarSeparator visibleLargeView"></div>
|
||||
|
||||
<button id="firstPage" class="secondaryToolbarButton firstPage" title="Go to First Page" tabindex="22" data-l10n-id="first_page">
|
||||
<span data-l10n-id="first_page_label">Go to First Page</span>
|
||||
</button>
|
||||
<button id="lastPage" class="secondaryToolbarButton lastPage" title="Go to Last Page" tabindex="23" data-l10n-id="last_page">
|
||||
<span data-l10n-id="last_page_label">Go to Last Page</span>
|
||||
</button>
|
||||
|
||||
<div class="horizontalToolbarSeparator"></div>
|
||||
|
||||
<button id="pageRotateCw" class="secondaryToolbarButton rotateCw" title="Rotate Clockwise" tabindex="24" data-l10n-id="page_rotate_cw">
|
||||
<span data-l10n-id="page_rotate_cw_label">Rotate Clockwise</span>
|
||||
</button>
|
||||
<button id="pageRotateCcw" class="secondaryToolbarButton rotateCcw" title="Rotate Counterclockwise" tabindex="25" data-l10n-id="page_rotate_ccw">
|
||||
<span data-l10n-id="page_rotate_ccw_label">Rotate Counterclockwise</span>
|
||||
</button>
|
||||
</div>
|
||||
</div> <!-- secondaryToolbar -->
|
||||
|
||||
<div class="toolbar">
|
||||
<div id="toolbarContainer">
|
||||
<div id="toolbarViewer">
|
||||
<div id="toolbarViewerLeft">
|
||||
<button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="3" data-l10n-id="toggle_slider">
|
||||
<span data-l10n-id="toggle_slider_label">Toggle Sidebar</span>
|
||||
<button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="4" data-l10n-id="toggle_sidebar">
|
||||
<span data-l10n-id="toggle_sidebar_label">Toggle Sidebar</span>
|
||||
</button>
|
||||
<div class="toolbarButtonSpacer"></div>
|
||||
<button id="viewFind" class="toolbarButton group" title="Find in Document" tabindex="4" data-l10n-id="findbar">
|
||||
<button id="viewFind" class="toolbarButton group hiddenSmallView" title="Find in Document" tabindex="5" data-l10n-id="findbar">
|
||||
<span data-l10n-id="findbar_label">Find</span>
|
||||
</button>
|
||||
<div class="splitToolbarButton">
|
||||
<button class="toolbarButton pageUp" title="Previous Page" id="previous" tabindex="5" data-l10n-id="previous">
|
||||
<button class="toolbarButton pageUp" title="Previous Page" id="previous" tabindex="6" data-l10n-id="previous">
|
||||
<span data-l10n-id="previous_label">Previous</span>
|
||||
</button>
|
||||
<div class="splitToolbarButtonSeparator"></div>
|
||||
<button class="toolbarButton pageDown" title="Next Page" id="next" tabindex="6" data-l10n-id="next">
|
||||
<button class="toolbarButton pageDown" title="Next Page" id="next" tabindex="7" data-l10n-id="next">
|
||||
<span data-l10n-id="next_label">Next</span>
|
||||
</button>
|
||||
</div>
|
||||
<label id="pageNumberLabel" class="toolbarLabel" for="pageNumber" data-l10n-id="page_label">Page: </label>
|
||||
<input type="number" id="pageNumber" class="toolbarField pageNumber" value="1" size="4" min="1" tabindex="7">
|
||||
<input type="number" id="pageNumber" class="toolbarField pageNumber" value="1" size="4" min="1" tabindex="8">
|
||||
</input>
|
||||
<span id="numPages" class="toolbarLabel"></span>
|
||||
</div>
|
||||
<div id="toolbarViewerRight">
|
||||
<input id="fileInput" class="fileInput" type="file" oncontextmenu="return false;" style="visibility: hidden; position: fixed; right: 0; top: 0" />
|
||||
|
||||
|
||||
<button id="fullscreen" class="toolbarButton fullscreen" title="Switch to Presentation Mode" tabindex="11" data-l10n-id="presentation_mode">
|
||||
<button id="presentationMode" class="toolbarButton presentationMode hiddenLargeView" title="Switch to Presentation Mode" tabindex="12" data-l10n-id="presentation_mode">
|
||||
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
|
||||
</button>
|
||||
|
||||
<button id="print" class="toolbarButton print" title="Print" tabindex="13" data-l10n-id="print">
|
||||
<button id="print" class="toolbarButton print hiddenMediumView" title="Print" tabindex="14" data-l10n-id="print">
|
||||
<span data-l10n-id="print_label">Print</span>
|
||||
</button>
|
||||
|
||||
<div class="verticalToolbarSeparator hiddenSmallView"></div>
|
||||
|
||||
<button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="17" data-l10n-id="tools">
|
||||
<span data-l10n-id="tools_label">Tools</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="outerCenter">
|
||||
<div class="innerCenter" id="toolbarViewerMiddle">
|
||||
<div class="splitToolbarButton">
|
||||
<button class="toolbarButton zoomOut" title="Zoom Out" tabindex="8" data-l10n-id="zoom_out">
|
||||
<button id="zoomOut" class="toolbarButton zoomOut" title="Zoom Out" tabindex="9" data-l10n-id="zoom_out">
|
||||
<span data-l10n-id="zoom_out_label">Zoom Out</span>
|
||||
</button>
|
||||
<div class="splitToolbarButtonSeparator"></div>
|
||||
<button class="toolbarButton zoomIn" title="Zoom In" tabindex="9" data-l10n-id="zoom_in">
|
||||
<button id="zoomIn" class="toolbarButton zoomIn" title="Zoom In" tabindex="10" data-l10n-id="zoom_in">
|
||||
<span data-l10n-id="zoom_in_label">Zoom In</span>
|
||||
</button>
|
||||
</div>
|
||||
<span id="scaleSelectContainer" class="dropdownToolbarButton">
|
||||
<select id="scaleSelect" title="Zoom" oncontextmenu="return false;" tabindex="10" data-l10n-id="zoom">
|
||||
<select id="scaleSelect" title="Zoom" tabindex="11" data-l10n-id="zoom">
|
||||
<option id="pageAutoOption" value="auto" selected="selected" data-l10n-id="page_scale_auto">Automatic Zoom</option>
|
||||
<option id="pageActualOption" value="page-actual" data-l10n-id="page_scale_actual">Actual Size</option>
|
||||
<option id="pageFitOption" value="page-fit" data-l10n-id="page_scale_fit">Fit Page</option>
|
||||
|
@ -144,41 +181,42 @@ limitations under the License.
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="loadingBar">
|
||||
<div class="progress">
|
||||
<div class="glimmer">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<menu type="context" id="viewerContextMenu">
|
||||
<menuitem label="First Page" id="first_page"
|
||||
data-l10n-id="first_page" ></menuitem>
|
||||
<menuitem label="Last Page" id="last_page"
|
||||
data-l10n-id="last_page" ></menuitem>
|
||||
<menuitem label="Rotate Counter-Clockwise" id="page_rotate_ccw"
|
||||
data-l10n-id="page_rotate_ccw" ></menuitem>
|
||||
<menuitem label="Rotate Clockwise" id="page_rotate_cw"
|
||||
data-l10n-id="page_rotate_cw" ></menuitem>
|
||||
<menuitem id="contextFirstPage" label="First Page"
|
||||
data-l10n-id="first_page"></menuitem>
|
||||
<menuitem id="contextLastPage" label="Last Page"
|
||||
data-l10n-id="last_page"></menuitem>
|
||||
<menuitem id="contextPageRotateCw" label="Rotate Clockwise"
|
||||
data-l10n-id="page_rotate_cw"></menuitem>
|
||||
<menuitem id="contextPageRotateCcw" label="Rotate Counter-Clockwise"
|
||||
data-l10n-id="page_rotate_ccw"></menuitem>
|
||||
</menu>
|
||||
|
||||
<div id="viewerContainer">
|
||||
<div id="viewer" contextmenu="viewerContextMenu"></div>
|
||||
</div>
|
||||
|
||||
<div id="loadingBox">
|
||||
<div id="loading"></div>
|
||||
<div id="loadingBar"><div class="progress"></div></div>
|
||||
<div id="viewerContainer" tabindex="0">
|
||||
<div id="viewer"></div>
|
||||
</div>
|
||||
|
||||
<div id="errorWrapper" hidden='true'>
|
||||
<div id="errorMessageLeft">
|
||||
<span id="errorMessage"></span>
|
||||
<button id="errorShowMore" onclick="" oncontextmenu="return false;" data-l10n-id="error_more_info">
|
||||
<button id="errorShowMore" data-l10n-id="error_more_info">
|
||||
More Information
|
||||
</button>
|
||||
<button id="errorShowLess" onclick="" oncontextmenu="return false;" data-l10n-id="error_less_info" hidden='true'>
|
||||
<button id="errorShowLess" data-l10n-id="error_less_info" hidden='true'>
|
||||
Less Information
|
||||
</button>
|
||||
</div>
|
||||
<div id="errorMessageRight">
|
||||
<button id="errorClose" oncontextmenu="return false;" data-l10n-id="error_close">
|
||||
<button id="errorClose" data-l10n-id="error_close">
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
|
@ -187,6 +225,23 @@ limitations under the License.
|
|||
</div>
|
||||
</div> <!-- mainContainer -->
|
||||
|
||||
<div id="overlayContainer" class="hidden">
|
||||
<div id="promptContainer">
|
||||
<div id="passwordContainer" class="prompt doorHanger">
|
||||
<div class="row">
|
||||
<p id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</p>
|
||||
</div>
|
||||
<div class="row">
|
||||
<input type="password" id="password" class="toolbarField" />
|
||||
</div>
|
||||
<div class="row">
|
||||
<button id="passwordCancel" class="promptButton"><span data-l10n-id="password_cancel">Cancel</span></button>
|
||||
<button id="passwordSubmit" class="promptButton"><span data-l10n-id="password_ok">OK</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- outerContainer -->
|
||||
<div id="printContainer"></div>
|
||||
</body>
|
||||
|
|
|
@ -2,10 +2,10 @@ var DEFAULT_URL=null,DEFAULT_SCALE="auto",DEFAULT_SCALE_DELTA=1.1,UNKNOWN_SCALE=
|
|||
function getFileName(a){var b=a.indexOf("#"),c=a.indexOf("?"),b=Math.min(0<b?b:a.length,0<c?c:a.length);return a.substring(a.lastIndexOf("/",b)+1,b)}function scrollIntoView(a,b){for(var c=a.offsetParent,d=a.offsetTop;c.clientHeight==c.scrollHeight;)if(d+=c.offsetTop,c=c.offsetParent,!c)return;b&&(d+=b.top);c.scrollTop=d}
|
||||
var Cache=function(a){var b=[];this.push=function(c){var d=b.indexOf(c);0<=d&&b.splice(d);b.push(c);b.length>a&&b.shift().destroy()}},ProgressBar=function(){function a(a,c){this.div=document.querySelector(a+" .progress");this.height=c.height||100;this.width=c.width||100;this.units=c.units||"%";this.div.style.height=this.height+this.units}a.prototype={updateBar:function(){if(this._indeterminate)this.div.classList.add("indeterminate");else{var a=this.width*this._percent/100;95<this._percent?this.div.classList.add("full"):
|
||||
this.div.classList.remove("full");this.div.classList.remove("indeterminate");this.div.style.width=a+this.units}},get percent(){return this._percent},set percent(a){this._indeterminate=isNaN(a);this._percent=Math.min(Math.max(a,0),100);this.updateBar()}};return a}(),Settings=function(){function a(a){this.fingerprint=a;this.initializedPromise=new PDFJS.Promise;a=function(a){this.initialize(a||"{}");this.initializedPromise.resolve()}.bind(this);b&&a(localStorage.getItem("database"))}var b;try{b="localStorage"in
|
||||
window&&null!==window.localStorage&&localStorage}catch(c){b=!1}a.prototype={initialize:function(a){a=JSON.parse(a);"files"in a||(a.files=[]);a.files.length>=SETTINGS_MEMORY&&a.files.shift();for(var b,c=0,f=a.files.length;c<f;c++)if(a.files[c].fingerprint==this.fingerprint){b=c;break}"number"!=typeof b&&(b=a.files.push({fingerprint:this.fingerprint})-1);this.file=a.files[b];this.database=a},set:function(a,c){if(this.initializedPromise.isResolved){this.file[a]=c;var j=JSON.stringify(this.database);
|
||||
b&&localStorage.setItem("database",j)}},get:function(a,b){return!this.initializedPromise.isResolved?b:this.file[a]||b}};return a}(),cache=new Cache(CACHE_SIZE),currentPageNumber=1,PDFFindController={startedTextExtraction:!1,extractTextPromises:[],active:!1,pageContents:[],pageMatches:[],selected:{pageIdx:-1,matchIdx:-1},offset:{pageIdx:null,matchIdx:null},resumePageIdx:null,resumeCallback:null,state:null,dirtyMatch:!1,findTimeout:null,initialize:function(){var a=["find","findagain","findhighlightallchange",
|
||||
"findcasesensitivitychange"];this.handleEvent=this.handleEvent.bind(this);for(var b=0;b<a.length;b++)window.addEventListener(a[b],this.handleEvent)},calcFindMatch:function(a){var b=this.pageContents[a],c=this.state.query,d=this.state.caseSensitive,e=c.length;if(0!==e){d||(b=b.toLowerCase(),c=c.toLowerCase());for(var d=[],j=-e;;){j=b.indexOf(c,j+e);if(-1===j)break;d.push(j)}this.pageMatches[a]=d;this.updatePage(a);this.resumePageIdx===a&&(a=this.resumeCallback,this.resumeCallback=this.resumePageIdx=
|
||||
null,a())}},extractText:function(){function a(b){PDFView.pages[b].getTextContent().then(function(c){c=c.bidiTexts;for(var f="",h=0;h<c.length;h++)f+=c[h].str;d.pageContents.push(f);d.extractTextPromises[b].resolve(b);b+1<PDFView.pages.length&&a(b+1)})}if(!this.startedTextExtraction){this.startedTextExtraction=!0;this.pageContents=[];for(var b=0,c=PDFView.pdfDocument.numPages;b<c;b++)this.extractTextPromises.push(new PDFJS.Promise);var d=this;a(0);return this.extractTextPromise}},handleEvent:function(a){if(null===
|
||||
window&&null!==window.localStorage&&localStorage}catch(c){b=!1}a.prototype={initialize:function(a){a=JSON.parse(a);"files"in a||(a.files=[]);a.files.length>=SETTINGS_MEMORY&&a.files.shift();for(var b,c=0,e=a.files.length;c<e;c++)if(a.files[c].fingerprint==this.fingerprint){b=c;break}"number"!=typeof b&&(b=a.files.push({fingerprint:this.fingerprint})-1);this.file=a.files[b];this.database=a},set:function(a,c){if(this.initializedPromise.isResolved){this.file[a]=c;var h=JSON.stringify(this.database);
|
||||
b&&localStorage.setItem("database",h)}},get:function(a,b){return this.initializedPromise.isResolved?this.file[a]||b:b}};return a}(),cache=new Cache(CACHE_SIZE),currentPageNumber=1,PDFFindController={startedTextExtraction:!1,extractTextPromises:[],active:!1,pageContents:[],pageMatches:[],selected:{pageIdx:-1,matchIdx:-1},offset:{pageIdx:null,matchIdx:null},resumePageIdx:null,resumeCallback:null,state:null,dirtyMatch:!1,findTimeout:null,initialize:function(){var a=["find","findagain","findhighlightallchange",
|
||||
"findcasesensitivitychange"];this.handleEvent=this.handleEvent.bind(this);for(var b=0;b<a.length;b++)window.addEventListener(a[b],this.handleEvent)},calcFindMatch:function(a){var b=this.pageContents[a],c=this.state.query,d=this.state.caseSensitive,f=c.length;if(0!==f){d||(b=b.toLowerCase(),c=c.toLowerCase());for(var d=[],h=-f;;){h=b.indexOf(c,h+f);if(-1===h)break;d.push(h)}this.pageMatches[a]=d;this.updatePage(a);this.resumePageIdx===a&&(a=this.resumeCallback,this.resumeCallback=this.resumePageIdx=
|
||||
null,a())}},extractText:function(){function a(b){PDFView.pages[b].getTextContent().then(function(c){c=c.bidiTexts;for(var e="",g=0;g<c.length;g++)e+=c[g].str;d.pageContents.push(e);d.extractTextPromises[b].resolve(b);b+1<PDFView.pages.length&&a(b+1)})}if(!this.startedTextExtraction){this.startedTextExtraction=!0;this.pageContents=[];for(var b=0,c=PDFView.pdfDocument.numPages;b<c;b++)this.extractTextPromises.push(new PDFJS.Promise);var d=this;a(0);return this.extractTextPromise}},handleEvent:function(a){if(null===
|
||||
this.state||"findagain"!==a.type)this.dirtyMatch=!0;this.state=a.detail;this.updateUIState(FindStates.FIND_PENDING);this.extractText();clearTimeout(this.findTimeout);"find"===a.type?this.findTimeout=setTimeout(this.nextMatch.bind(this),250):this.nextMatch()},updatePage:function(a){var b=PDFView.pages[a];this.selected.pageIdx===a&&b.scrollIntoView();b.textLayer&&b.textLayer.updateMatches()},nextMatch:function(){var a=this.state.findPrevious,b=PDFView.pages.length;this.active=!0;if(this.dirtyMatch){this.dirtyMatch=
|
||||
!1;this.selected.pageIdx=this.selected.matchIdx=-1;this.offset.pageIdx=a?b-1:0;this.offset.matchIdx=null;this.hadMatch=!1;this.resumePageIdx=this.resumeCallback=null;this.pageMatches=[];for(var c=this,d=0;d<b;d++)this.updatePage(d),this.extractTextPromises[d].onData(function(a){setTimeout(function(){c.calcFindMatch(a)})})}if(""===this.state.query)this.updateUIState(FindStates.FIND_FOUND);else if(!this.resumeCallback){b=this.offset;if(null!==b.matchIdx){d=this.pageMatches[b.pageIdx].length;if(!a&&
|
||||
b.matchIdx+1<d||a&&0<b.matchIdx){this.hadMatch=!0;b.matchIdx=a?b.matchIdx-1:b.matchIdx+1;this.updateMatch(!0);return}this.advanceOffsetPage(a)}this.nextPageMatch()}},nextPageMatch:function(){null!==this.resumePageIdx&&console.error("There can only be one pending page.");var a=function(a){var b=this.offset;a=a.length;var c=this.state.findPrevious;if(a)this.hadMatch=!0,b.matchIdx=c?a-1:0,this.updateMatch(!0);else{this.advanceOffsetPage(c);if(b.wrapped&&(b.matchIdx=null,!this.hadMatch)){this.updateMatch(!1);
|
||||
|
@ -13,81 +13,81 @@ return}this.nextPageMatch()}}.bind(this),b=this.offset.pageIdx,c=this.pageMatche
|
|||
this.offset.pageIdx,this.selected.matchIdx=this.offset.matchIdx,b=c?FindStates.FIND_WRAPPED:FindStates.FIND_FOUND,-1!==a&&a!==this.selected.pageIdx&&this.updatePage(a));this.updateUIState(b,this.state.findPrevious);-1!==this.selected.pageIdx&&this.updatePage(this.selected.pageIdx,!0)},updateUIState:function(a,b){PDFView.supportsIntegratedFind?FirefoxCom.request("updateFindControlState",{result:a,findPrevious:b}):PDFFindBar.updateUIState(a,b)}},PDFFindBar={opened:!1,initialize:function(){this.bar=
|
||||
document.getElementById("findbar");this.toggleButton=document.getElementById("viewFind");this.findField=document.getElementById("findInput");this.highlightAll=document.getElementById("findHighlightAll");this.caseSensitive=document.getElementById("findMatchCase");this.findMsg=document.getElementById("findMsg");this.findStatusIcon=document.getElementById("findStatusIcon");var a=this;this.toggleButton.addEventListener("click",function(){a.toggle()});this.findField.addEventListener("input",function(){a.dispatchEvent("")});
|
||||
this.bar.addEventListener("keydown",function(b){switch(b.keyCode){case 13:b.target===a.findField&&a.dispatchEvent("again",b.shiftKey);break;case 27:a.close()}});document.getElementById("findPrevious").addEventListener("click",function(){a.dispatchEvent("again",!0)});document.getElementById("findNext").addEventListener("click",function(){a.dispatchEvent("again",!1)});this.highlightAll.addEventListener("click",function(){a.dispatchEvent("highlightallchange")});this.caseSensitive.addEventListener("click",
|
||||
function(){a.dispatchEvent("casesensitivitychange")})},dispatchEvent:function(a,b){var c=document.createEvent("CustomEvent");c.initCustomEvent("find"+a,!0,!0,{query:this.findField.value,caseSensitive:this.caseSensitive.checked,highlightAll:this.highlightAll.checked,findPrevious:b});return window.dispatchEvent(c)},updateUIState:function(a,b){var c=!1,d="",e="";switch(a){case FindStates.FIND_PENDING:e="pending";break;case FindStates.FIND_NOTFOUND:d=mozL10n.get("find_not_found",null,"Phrase not found");
|
||||
c=!0;break;case FindStates.FIND_WRAPPED:d=b?mozL10n.get("find_reached_top",null,"Reached top of document, continued from bottom"):mozL10n.get("find_reached_bottom",null,"Reached end of document, continued from top")}c?this.findField.classList.add("notFound"):this.findField.classList.remove("notFound");this.findField.setAttribute("data-status",e);this.findMsg.textContent=d},open:function(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.bar.classList.remove("hidden"),this.findField.select(),
|
||||
function(){a.dispatchEvent("casesensitivitychange")})},dispatchEvent:function(a,b){var c=document.createEvent("CustomEvent");c.initCustomEvent("find"+a,!0,!0,{query:this.findField.value,caseSensitive:this.caseSensitive.checked,highlightAll:this.highlightAll.checked,findPrevious:b});return window.dispatchEvent(c)},updateUIState:function(a,b){var c=!1,d="",f="";switch(a){case FindStates.FIND_PENDING:f="pending";break;case FindStates.FIND_NOTFOUND:d=mozL10n.get("find_not_found",null,"Phrase not found");
|
||||
c=!0;break;case FindStates.FIND_WRAPPED:d=b?mozL10n.get("find_reached_top",null,"Reached top of document, continued from bottom"):mozL10n.get("find_reached_bottom",null,"Reached end of document, continued from top")}c?this.findField.classList.add("notFound"):this.findField.classList.remove("notFound");this.findField.setAttribute("data-status",f);this.findMsg.textContent=d},open:function(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.bar.classList.remove("hidden"),this.findField.select(),
|
||||
this.findField.focus())},close:function(){this.opened&&(this.opened=!1,this.toggleButton.classList.remove("toggled"),this.bar.classList.add("hidden"),PDFFindController.active=!1)},toggle:function(){this.opened?this.close():this.open()}},PDFView={pages:[],thumbnails:[],currentScale:UNKNOWN_SCALE,currentScaleValue:null,initialBookmark:document.location.hash.substring(1),startedTextExtraction:!1,pageText:[],container:null,thumbnailContainer:null,initialized:!1,fellback:!1,pdfDocument:null,sidebarOpen:!1,
|
||||
pageViewScroll:null,thumbnailViewScroll:null,isFullscreen:!1,previousScale:null,pageRotation:0,mouseScrollTimeStamp:0,mouseScrollDelta:0,lastScroll:0,previousPageNumber:1,initialize:function(){var a=this,b=this.container=document.getElementById("viewerContainer");this.pageViewScroll={};this.watchScroll(b,this.pageViewScroll,updateViewarea);var c=this.thumbnailContainer=document.getElementById("thumbnailView");this.thumbnailViewScroll={};this.watchScroll(c,this.thumbnailViewScroll,this.renderHighestPriority.bind(this));
|
||||
PDFFindBar.initialize();PDFFindController.initialize();this.initialized=!0;b.addEventListener("scroll",function(){a.lastScroll=Date.now()},!1)},watchScroll:function(a,b,c){b.down=!0;b.lastY=a.scrollTop;a.addEventListener("scroll",function(){var d=a.scrollTop,e=b.lastY;d>e?b.down=!0:d<e&&(b.down=!1);b.lastY=d;c()},!0)},setScale:function(a,b,c){if(a!=this.currentScale){for(var d=this.pages,e=0;e<d.length;e++)d[e].update(a*CSS_UNITS);!c&&this.currentScale!=a&&this.pages[this.page-1].scrollIntoView();
|
||||
this.currentScale=a;c=document.createEvent("UIEvents");c.initUIEvent("scalechange",!1,!1,window,0);c.scale=a;c.resetAutoSettings=b;window.dispatchEvent(c)}},parseScale:function(a,b,c){if("custom"!=a){var d=parseFloat(a);this.currentScaleValue=a;if(d)this.setScale(d,!0,c);else{var e=this.container,j=this.pages[this.page-1];if(j){var f=(e.clientWidth-SCROLLBAR_PADDING)/j.width*j.scale/CSS_UNITS,e=(e.clientHeight-VERTICAL_PADDING)/j.height*j.scale/CSS_UNITS;switch(a){case "page-actual":d=1;break;case "page-width":d=
|
||||
f;break;case "page-height":d=e;break;case "page-fit":d=Math.min(f,e);break;case "auto":d=Math.min(1,f)}this.setScale(d,b,c);selectScaleOption(a)}}}},zoomIn:function(){var a=(this.currentScale*DEFAULT_SCALE_DELTA).toFixed(2),a=Math.min(MAX_SCALE,a);this.parseScale(a,!0)},zoomOut:function(){var a=(this.currentScale/DEFAULT_SCALE_DELTA).toFixed(2),a=Math.max(MIN_SCALE,a);this.parseScale(a,!0)},set page(a){var b=this.pages;document.getElementById("pageNumber");var c=document.createEvent("UIEvents");c.initUIEvent("pagechange",
|
||||
PDFFindBar.initialize();PDFFindController.initialize();this.initialized=!0;b.addEventListener("scroll",function(){a.lastScroll=Date.now()},!1)},watchScroll:function(a,b,c){b.down=!0;b.lastY=a.scrollTop;a.addEventListener("scroll",function(d){d=a.scrollTop;var f=b.lastY;d>f?b.down=!0:d<f&&(b.down=!1);b.lastY=d;c()},!0)},setScale:function(a,b,c){if(a!=this.currentScale){for(var d=this.pages,f=0;f<d.length;f++)d[f].update(a*CSS_UNITS);c||this.currentScale==a||this.pages[this.page-1].scrollIntoView();
|
||||
this.currentScale=a;c=document.createEvent("UIEvents");c.initUIEvent("scalechange",!1,!1,window,0);c.scale=a;c.resetAutoSettings=b;window.dispatchEvent(c)}},parseScale:function(a,b,c){if("custom"!=a){var d=parseFloat(a);this.currentScaleValue=a;if(d)this.setScale(d,!0,c);else{var f=this.container,h=this.pages[this.page-1];if(h){var e=(f.clientWidth-SCROLLBAR_PADDING)/h.width*h.scale/CSS_UNITS,f=(f.clientHeight-VERTICAL_PADDING)/h.height*h.scale/CSS_UNITS;switch(a){case "page-actual":d=1;break;case "page-width":d=
|
||||
e;break;case "page-height":d=f;break;case "page-fit":d=Math.min(e,f);break;case "auto":d=Math.min(1,e)}this.setScale(d,b,c);selectScaleOption(a)}}}},zoomIn:function(){var a=(this.currentScale*DEFAULT_SCALE_DELTA).toFixed(2),a=Math.min(MAX_SCALE,a);this.parseScale(a,!0)},zoomOut:function(){var a=(this.currentScale/DEFAULT_SCALE_DELTA).toFixed(2),a=Math.max(MIN_SCALE,a);this.parseScale(a,!0)},set page(a){var b=this.pages;document.getElementById("pageNumber");var c=document.createEvent("UIEvents");c.initUIEvent("pagechange",
|
||||
!1,!1,window,0);0<a&&a<=b.length?(b[a-1].updateStats(),this.previousPageNumber=currentPageNumber,currentPageNumber=a,c.pageNumber=a,window.dispatchEvent(c),updateViewarea.inProgress||this.loading&&1==a||b[a-1].scrollIntoView()):(this.previousPageNumber=a,c.pageNumber=this.page,window.dispatchEvent(c))},get page(){return currentPageNumber},get supportsPrinting(){var a="mozPrintCallback"in document.createElement("canvas");Object.defineProperty(this,"supportsPrinting",{value:a,enumerable:!0,configurable:!0,
|
||||
writable:!1});return a},get supportsFullscreen(){var a=document.documentElement,a=a.requestFullscreen||a.mozRequestFullScreen||a.webkitRequestFullScreen;window.frameElement&&(a=!1);Object.defineProperty(this,"supportsFullScreen",{value:a,enumerable:!0,configurable:!0,writable:!1});return a},get supportsIntegratedFind(){Object.defineProperty(this,"supportsIntegratedFind",{value:!1,enumerable:!0,configurable:!0,writable:!1});return!1},get supportsDocumentFonts(){Object.defineProperty(this,"supportsDocumentFonts",
|
||||
{value:!0,enumerable:!0,configurable:!0,writable:!1});return!0},get isHorizontalScrollbarEnabled(){var a=document.getElementById("viewerContainer");return a.scrollWidth>a.clientWidth},initPassiveLoading:function(){PDFView.loadingBar||(PDFView.loadingBar=new ProgressBar("#loadingBar",{}));window.addEventListener("message",function(a){var b=a.data;if("object"===typeof b&&"pdfjsLoadAction"in b)switch(b.pdfjsLoadAction){case "progress":PDFView.progress(b.loaded/b.total);break;case "complete":if(!b.data){PDFView.error(mozL10n.get("loading_error",
|
||||
null,"An error occurred while loading the PDF."),a);break}PDFView.open(b.data,0)}});FirefoxCom.requestSync("initPassiveLoading",null)},setTitleUsingUrl:function(a){this.url=a;try{this.setTitle(decodeURIComponent(getFileName(a))||a)}catch(b){this.setTitle(a)}},setTitle:function(a){document.title=a},open:function(a,b,c){var d={password:c};"string"===typeof a?(this.setTitleUsingUrl(a),d.url=a):a&&"byteLength"in a&&(d.data=a);PDFView.loadingBar||(PDFView.loadingBar=new ProgressBar("#loadingBar",{}));
|
||||
this.pdfDocument=null;var e=this;e.loading=!0;PDFJS.getDocument(d).then(function(a){e.load(a,b);e.loading=!1},function(d,f){if(f&&"PasswordException"===f.name&&"needpassword"===f.code){var h=mozL10n.get("request_password",null,"PDF is protected by a password:");if((c=prompt(h))&&0<c.length)return PDFView.open(a,b,c)}h=mozL10n.get("loading_error",null,"An error occurred while loading the PDF.");f&&"InvalidPDFException"===f.name&&(h=mozL10n.get("invalid_file_error",null,"Invalid or corrupted PDF file."));
|
||||
document.getElementById("loading").textContent=mozL10n.get("loading_error_indicator",null,"Error");e.error(h,{message:d});e.loading=!1},function(a){e.progress(a.loaded/a.total)})},download:function(){var a=this.url.split("#")[0];window.open(a+"#pdfjs.action=download","_parent")},fallback:function(){},navigateTo:function(a){"string"===typeof a&&(a=this.destinations[a]);if(a instanceof Array){var b=a[0],b=b instanceof Object?this.pagesRefMap[b.num+" "+b.gen+" R"]:b+1;b>this.pages.length&&(b=this.pages.length);
|
||||
b&&(this.page=b,this.pages[b-1].scrollIntoView(a))}},getDestinationHash:function(a){if("string"===typeof a)return PDFView.getAnchorUrl("#"+escape(a));if(a instanceof Array){var b=a[0];if(b=b instanceof Object?this.pagesRefMap[b.num+" "+b.gen+" R"]:b+1){var b=PDFView.getAnchorUrl("#page="+b),c=a[1];if("object"===typeof c&&("name"in c&&"XYZ"==c.name)&&(b+="&zoom="+100*(a[4]||this.currentScale),a[2]||a[3]))b+=","+(a[2]||0)+","+(a[3]||0);return b}}return""},getAnchorUrl:function(a){return a},getOutputScale:function(){var a=
|
||||
this.pdfDocument=null;var f=this;f.loading=!0;PDFJS.getDocument(d).then(function(a){f.load(a,b);f.loading=!1},function(d,e){if(e&&"PasswordException"===e.name&&"needpassword"===e.code){var g=mozL10n.get("request_password",null,"PDF is protected by a password:");if((c=prompt(g))&&0<c.length)return PDFView.open(a,b,c)}g=mozL10n.get("loading_error",null,"An error occurred while loading the PDF.");e&&"InvalidPDFException"===e.name&&(g=mozL10n.get("invalid_file_error",null,"Invalid or corrupted PDF file."));
|
||||
document.getElementById("loading").textContent=mozL10n.get("loading_error_indicator",null,"Error");f.error(g,{message:d});f.loading=!1},function(a){f.progress(a.loaded/a.total)})},download:function(){var a=this.url.split("#")[0];window.open(a+"#pdfjs.action=download","_parent")},fallback:function(){},navigateTo:function(a){"string"===typeof a&&(a=this.destinations[a]);if(a instanceof Array){var b=a[0],b=b instanceof Object?this.pagesRefMap[b.num+" "+b.gen+" R"]:b+1;b>this.pages.length&&(b=this.pages.length);
|
||||
b&&(this.page=b,this.pages[b-1].scrollIntoView(a))}},getDestinationHash:function(a){if("string"===typeof a)return PDFView.getAnchorUrl("#"+escape(a));if(a instanceof Array){var b=a[0];if(b=b instanceof Object?this.pagesRefMap[b.num+" "+b.gen+" R"]:b+1){var b=PDFView.getAnchorUrl("#page="+b),c=a[1];"object"===typeof c&&"name"in c&&"XYZ"==c.name&&(b+="&zoom="+100*(a[4]||this.currentScale),a[2]||a[3])&&(b+=","+(a[2]||0)+","+(a[3]||0));return b}}return""},getAnchorUrl:function(a){return a},getOutputScale:function(){var a=
|
||||
"devicePixelRatio"in window?window.devicePixelRatio:1;return{sx:a,sy:a,scaled:1!=a}},error:function(a,b){var c=mozL10n.get("error_version_info",{version:PDFJS.version||"?",build:PDFJS.build||"?"},"PDF.js v{{version}} (build: {{build}})")+"\n";b&&(c+=mozL10n.get("error_message",{message:b.message},"Message: {{message}}"),b.stack?c+="\n"+mozL10n.get("error_stack",{stack:b.stack},"Stack: {{stack}}"):(b.filename&&(c+="\n"+mozL10n.get("error_file",{file:b.filename},"File: {{file}}")),b.lineNumber&&(c+=
|
||||
"\n"+mozL10n.get("error_line",{line:b.lineNumber},"Line: {{line}}"))));document.getElementById("loadingBox").setAttribute("hidden","true");var d=document.getElementById("errorWrapper");d.removeAttribute("hidden");document.getElementById("errorMessage").textContent=a;document.getElementById("errorClose").onclick=function(){d.setAttribute("hidden","true")};var e=document.getElementById("errorMoreInfo"),j=document.getElementById("errorShowMore"),f=document.getElementById("errorShowLess");j.onclick=function(){e.removeAttribute("hidden");
|
||||
j.setAttribute("hidden","true");f.removeAttribute("hidden")};f.onclick=function(){e.setAttribute("hidden","true");j.removeAttribute("hidden");f.setAttribute("hidden","true")};j.removeAttribute("hidden");f.setAttribute("hidden","true");e.value=c;e.rows=c.split("\n").length-1},progress:function(a){a=Math.round(100*a);PDFView.loadingBar.percent=a},load:function(a,b){function c(a,b){a.onAfterDraw=function(){b.setImage(a.canvas)}}this.pdfDocument=a;document.getElementById("errorWrapper").setAttribute("hidden",
|
||||
"true");document.getElementById("loadingBox").setAttribute("hidden","true");document.getElementById("loading").textContent="";var d=document.getElementById("thumbnailView");for(d.parentNode.scrollTop=0;d.hasChildNodes();)d.removeChild(d.lastChild);"_loadingInterval"in d&&clearInterval(d._loadingInterval);for(var e=document.getElementById("viewer");e.hasChildNodes();)e.removeChild(e.lastChild);var j=a.numPages,f=a.fingerprint;document.getElementById("numPages").textContent=mozL10n.get("page_of",{pageCount:j},
|
||||
"of {{pageCount}}");document.getElementById("pageNumber").max=j;PDFView.documentFingerprint=f;var h=PDFView.store=new Settings(f),f=h.initializedPromise;this.pageRotation=0;var g=this.pages=[];this.pageText=[];this.startedTextExtraction=!1;for(var m={},k=this.thumbnails=[],l=[],n=1;n<=j;n++)l.push(a.getPage(n));var p=this,l=PDFJS.Promise.all(l);l.then(function(a){for(var f=1;f<=j;f++){var h=a[f-1],l=new PageView(e,h,f,b,h.stats,p.navigateTo.bind(p)),n=new ThumbnailView(d,h,f);c(l,n);g.push(l);k.push(n);
|
||||
h=h.ref;m[h.num+" "+h.gen+" R"]=f}p.pagesRefMap=m});n=a.getDestinations();n.then(function(a){p.destinations=a});PDFJS.Promise.all([l,n,f]).then(function(){a.getOutline().then(function(a){p.outline=new DocumentOutlineView(a)});var c=null;if(h.get("exists",!1))var c=h.get("page","1"),d=h.get("zoom",PDFView.currentScale),e=h.get("scrollLeft","0"),f=h.get("scrollTop","0"),c="page="+c+"&zoom="+d+","+e+","+f;p.setInitialView(c,b)});a.getMetadata().then(function(b){var c=b.info;b=b.metadata;p.documentInfo=
|
||||
c;p.metadata=b;console.log("PDF "+a.fingerprint+" ["+c.PDFFormatVersion+" "+(c.Producer||"-")+" / "+(c.Creator||"-")+"]"+(PDFJS.version?" (PDF.js: "+PDFJS.version+")":""));var d;b&&b.has("dc:title")&&(d=b.get("dc:title"));!d&&(c&&c.Title)&&(d=c.Title);d&&p.setTitle(d+" - "+document.title)})},setInitialView:function(a,b){this.currentScale=0;this.currentScaleValue=null;this.initialBookmark?(this.setHash(this.initialBookmark),this.initialBookmark=null):a?this.setHash(a):b&&(this.parseScale(b,!0),this.page=
|
||||
1);PDFView.currentScale===UNKNOWN_SCALE&&this.parseScale(DEFAULT_SCALE,!0)},renderHighestPriority:function(){var a=this.getVisiblePages();(a=this.getHighestPriority(a,this.pages,this.pageViewScroll.down))?this.renderView(a,"page"):this.sidebarOpen&&(a=this.getVisibleThumbs(),(a=this.getHighestPriority(a,this.thumbnails,this.thumbnailViewScroll.down))&&this.renderView(a,"thumbnail"))},getHighestPriority:function(a,b,c){var d=a.views,e=d.length;if(0===e)return!1;for(var j=0;j<e;++j){var f=d[j].view;
|
||||
if(!this.isViewFinished(f))return f}a=c?a.last.id:a.first.id-2;return b[a]&&!this.isViewFinished(b[a])?b[a]:!1},isViewFinished:function(a){return a.renderingState===RenderingStates.FINISHED},renderView:function(a,b){switch(a.renderingState){case RenderingStates.FINISHED:return!1;case RenderingStates.PAUSED:PDFView.highestPriorityPage=b+a.id;a.resume();break;case RenderingStates.RUNNING:PDFView.highestPriorityPage=b+a.id;break;case RenderingStates.INITIAL:PDFView.highestPriorityPage=b+a.id,a.draw(this.renderHighestPriority.bind(this))}return!0},
|
||||
"\n"+mozL10n.get("error_line",{line:b.lineNumber},"Line: {{line}}"))));document.getElementById("loadingBox").setAttribute("hidden","true");var d=document.getElementById("errorWrapper");d.removeAttribute("hidden");document.getElementById("errorMessage").textContent=a;document.getElementById("errorClose").onclick=function(){d.setAttribute("hidden","true")};var f=document.getElementById("errorMoreInfo"),h=document.getElementById("errorShowMore"),e=document.getElementById("errorShowLess");h.onclick=function(){f.removeAttribute("hidden");
|
||||
h.setAttribute("hidden","true");e.removeAttribute("hidden")};e.onclick=function(){f.setAttribute("hidden","true");h.removeAttribute("hidden");e.setAttribute("hidden","true")};h.removeAttribute("hidden");e.setAttribute("hidden","true");f.value=c;f.rows=c.split("\n").length-1},progress:function(a){a=Math.round(100*a);PDFView.loadingBar.percent=a},load:function(a,b){function c(a,b){a.onAfterDraw=function(){b.setImage(a.canvas)}}this.pdfDocument=a;document.getElementById("errorWrapper").setAttribute("hidden",
|
||||
"true");document.getElementById("loadingBox").setAttribute("hidden","true");document.getElementById("loading").textContent="";var d=document.getElementById("thumbnailView");for(d.parentNode.scrollTop=0;d.hasChildNodes();)d.removeChild(d.lastChild);"_loadingInterval"in d&&clearInterval(d._loadingInterval);for(var f=document.getElementById("viewer");f.hasChildNodes();)f.removeChild(f.lastChild);var h=a.numPages,e=a.fingerprint;document.getElementById("numPages").textContent=mozL10n.get("page_of",{pageCount:h},
|
||||
"of {{pageCount}}");document.getElementById("pageNumber").max=h;PDFView.documentFingerprint=e;var g=PDFView.store=new Settings(e),e=g.initializedPromise;this.pageRotation=0;var k=this.pages=[];this.pageText=[];this.startedTextExtraction=!1;for(var n={},l=this.thumbnails=[],m=[],s=1;s<=h;s++)m.push(a.getPage(s));var r=this,m=PDFJS.Promise.all(m);m.then(function(a){for(var p=1;p<=h;p++){var e=a[p-1],g=new PageView(f,e,p,b,e.stats,r.navigateTo.bind(r)),m=new ThumbnailView(d,e,p);c(g,m);k.push(g);l.push(m);
|
||||
e=e.ref;n[e.num+" "+e.gen+" R"]=p}r.pagesRefMap=n});s=a.getDestinations();s.then(function(a){r.destinations=a});PDFJS.Promise.all([m,s,e]).then(function(){a.getOutline().then(function(a){r.outline=new DocumentOutlineView(a)});var c=null;if(g.get("exists",!1))var c=g.get("page","1"),d=g.get("zoom",PDFView.currentScale),f=g.get("scrollLeft","0"),e=g.get("scrollTop","0"),c="page="+c+"&zoom="+d+","+f+","+e;r.setInitialView(c,b)});a.getMetadata().then(function(b){var c=b.info;b=b.metadata;r.documentInfo=
|
||||
c;r.metadata=b;console.log("PDF "+a.fingerprint+" ["+c.PDFFormatVersion+" "+(c.Producer||"-")+" / "+(c.Creator||"-")+"]"+(PDFJS.version?" (PDF.js: "+PDFJS.version+")":""));var d;b&&b.has("dc:title")&&(d=b.get("dc:title"));!d&&c&&c.Title&&(d=c.Title);d&&r.setTitle(d+" - "+document.title)})},setInitialView:function(a,b){this.currentScale=0;this.currentScaleValue=null;this.initialBookmark?(this.setHash(this.initialBookmark),this.initialBookmark=null):a?this.setHash(a):b&&(this.parseScale(b,!0),this.page=
|
||||
1);PDFView.currentScale===UNKNOWN_SCALE&&this.parseScale(DEFAULT_SCALE,!0)},renderHighestPriority:function(){var a=this.getVisiblePages();(a=this.getHighestPriority(a,this.pages,this.pageViewScroll.down))?this.renderView(a,"page"):this.sidebarOpen&&(a=this.getVisibleThumbs(),(a=this.getHighestPriority(a,this.thumbnails,this.thumbnailViewScroll.down))&&this.renderView(a,"thumbnail"))},getHighestPriority:function(a,b,c){var d=a.views,f=d.length;if(0===f)return!1;for(var h=0;h<f;++h){var e=d[h].view;
|
||||
if(!this.isViewFinished(e))return e}a=c?a.last.id:a.first.id-2;return b[a]&&!this.isViewFinished(b[a])?b[a]:!1},isViewFinished:function(a){return a.renderingState===RenderingStates.FINISHED},renderView:function(a,b){switch(a.renderingState){case RenderingStates.FINISHED:return!1;case RenderingStates.PAUSED:PDFView.highestPriorityPage=b+a.id;a.resume();break;case RenderingStates.RUNNING:PDFView.highestPriorityPage=b+a.id;break;case RenderingStates.INITIAL:PDFView.highestPriorityPage=b+a.id,a.draw(this.renderHighestPriority.bind(this))}return!0},
|
||||
setHash:function(a){if(a)if(0<=a.indexOf("=")){var b=PDFView.parseQueryString(a);if("nameddest"in b)PDFView.navigateTo(b.nameddest);else if("page"in b)if(a=b.page|0||1,"zoom"in b){var b=b.zoom.split(","),c=b[0],d=parseFloat(c);d&&(c=d/100);this.pages[a-1].scrollIntoView([null,{name:"XYZ"},b[1]|0,b[2]|0,c])}else this.page=a}else/^\d+$/.test(a)?this.page=a:PDFView.navigateTo(unescape(a))},switchSidebarView:function(a){var b=document.getElementById("thumbnailView"),c=document.getElementById("outlineView"),
|
||||
d=document.getElementById("viewThumbnail"),e=document.getElementById("viewOutline");switch(a){case "thumbs":a=b.classList.contains("hidden");d.classList.add("toggled");e.classList.remove("toggled");b.classList.remove("hidden");c.classList.add("hidden");PDFView.renderHighestPriority();a&&scrollIntoView(document.getElementById("thumbnailContainer"+this.page));break;case "outline":d.classList.remove("toggled"),e.classList.add("toggled"),b.classList.add("hidden"),c.classList.remove("hidden"),e.getAttribute("disabled")}},
|
||||
getVisiblePages:function(){return this.getVisibleElements(this.container,this.pages,!0)},getVisibleThumbs:function(){return this.getVisibleElements(this.thumbnailContainer,this.thumbnails)},getVisibleElements:function(a,b,c){for(var d=0,e,j=a.scrollTop,f=1,h=b.length;f<=h;++f){e=b[f-1];d=e.el.offsetTop;if(d+e.el.clientHeight>j)break;d+=e.el.clientHeight}var g=[];if(this.isFullscreen)return c=this.pages[this.page-1],g.push({id:c.id,view:c}),{first:c,last:c,views:g};a=j+a.clientHeight;for(var m,k,l;f<=
|
||||
h&&d<a;++f)e=b[f-1],l=e.el.clientHeight,d=e.el.offsetTop,m=d+l,k=Math.max(0,j-d)+Math.max(0,m-a),k=Math.floor(100*(l-k)/l),g.push({id:e.id,y:d,view:e,percent:k}),d=m;b=g[0];d=g[g.length-1];c&&g.sort(function(a,b){var c=a.percent-b.percent;return 0.0010<Math.abs(c)?-c:a.id-b.id});return{first:b,last:d,views:g}},parseQueryString:function(a){a=a.split("&");for(var b={},c=0;c<a.length;++c){var d=a[c].split("="),e=1<d.length?d[1]:null;b[unescape(d[0])]=unescape(e)}return b},beforePrint:function(){if(this.supportsPrinting){document.querySelector("body").setAttribute("data-mozPrintCallback",
|
||||
d=document.getElementById("viewThumbnail"),f=document.getElementById("viewOutline");switch(a){case "thumbs":a=b.classList.contains("hidden");d.classList.add("toggled");f.classList.remove("toggled");b.classList.remove("hidden");c.classList.add("hidden");PDFView.renderHighestPriority();a&&scrollIntoView(document.getElementById("thumbnailContainer"+this.page));break;case "outline":d.classList.remove("toggled"),f.classList.add("toggled"),b.classList.add("hidden"),c.classList.remove("hidden"),f.getAttribute("disabled")}},
|
||||
getVisiblePages:function(){return this.getVisibleElements(this.container,this.pages,!0)},getVisibleThumbs:function(){return this.getVisibleElements(this.thumbnailContainer,this.thumbnails)},getVisibleElements:function(a,b,c){for(var d=0,f,h=a.scrollTop,e=1,g=b.length;e<=g;++e){f=b[e-1];d=f.el.offsetTop;if(d+f.el.clientHeight>h)break;d+=f.el.clientHeight}var k=[];if(this.isFullscreen)return c=this.pages[this.page-1],k.push({id:c.id,view:c}),{first:c,last:c,views:k};a=h+a.clientHeight;for(var n,l,m;e<=
|
||||
g&&d<a;++e)f=b[e-1],m=f.el.clientHeight,d=f.el.offsetTop,n=d+m,l=Math.max(0,h-d)+Math.max(0,n-a),l=Math.floor(100*(m-l)/m),k.push({id:f.id,y:d,view:f,percent:l}),d=n;b=k[0];d=k[k.length-1];c&&k.sort(function(a,b){var c=a.percent-b.percent;return 0.0010<Math.abs(c)?-c:a.id-b.id});return{first:b,last:d,views:k}},parseQueryString:function(a){a=a.split("&");for(var b={},c=0;c<a.length;++c){var d=a[c].split("="),f=1<d.length?d[1]:null;b[unescape(d[0])]=unescape(f)}return b},beforePrint:function(){if(this.supportsPrinting){document.querySelector("body").setAttribute("data-mozPrintCallback",
|
||||
!0);for(var a=0,b=this.pages.length;a<b;++a)this.pages[a].beforePrint()}else a=mozL10n.get("printing_not_supported",null,"Warning: Printing is not fully supported by this browser."),this.error(a)},afterPrint:function(){for(var a=document.getElementById("printContainer");a.hasChildNodes();)a.removeChild(a.lastChild)},fullscreen:function(){if(document.fullscreenElement||document.mozFullScreen||document.webkitIsFullScreen)return!1;var a=document.getElementById("viewerContainer");if(document.documentElement.requestFullscreen)a.requestFullscreen();
|
||||
else if(document.documentElement.mozRequestFullScreen)a.mozRequestFullScreen();else if(document.documentElement.webkitRequestFullScreen)a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);else return!1;this.isFullscreen=!0;var b=this.pages[this.page-1];this.previousScale=this.currentScaleValue;this.parseScale("page-fit",!0);setTimeout(function(){b.scrollIntoView()},0);this.showPresentationControls();return!0},exitFullscreen:function(){this.isFullscreen=!1;this.parseScale(this.previousScale);this.page=
|
||||
this.page;this.clearMouseScrollState();this.hidePresentationControls()},showPresentationControls:function(){var a=document.getElementById("viewerContainer");this.presentationControlsTimeout?clearTimeout(this.presentationControlsTimeout):a.classList.add("presentationControls");this.presentationControlsTimeout=setTimeout(function(){a.classList.remove("presentationControls");delete PDFView.presentationControlsTimeout},3E3)},hidePresentationControls:function(){this.presentationControlsTimeout&&(clearTimeout(this.presentationControlsTimeout),
|
||||
delete this.presentationControlsTimeout,document.getElementById("viewerContainer").classList.remove("presentationControls"))},rotatePages:function(a){this.pageRotation=(this.pageRotation+360+a)%360;a=0;for(var b=this.pages.length;a<b;a++){var c=this.pages[a];c.update(c.scale,this.pageRotation)}a=0;for(b=this.thumbnails.length;a<b;a++)this.thumbnails[a].updateRotation(this.pageRotation);var d=this.pages[this.page-1];this.parseScale(this.currentScaleValue,!0);this.renderHighestPriority();setTimeout(function(){d.scrollIntoView()},
|
||||
0)},mouseScroll:function(a){var b=(new Date).getTime(),c=this.mouseScrollTimeStamp;b>c&&50>b-c||((0<this.mouseScrollDelta&&0>a||0>this.mouseScrollDelta&&0<a)&&this.clearMouseScrollState(),this.mouseScrollDelta+=a,120<=Math.abs(this.mouseScrollDelta)&&(a=0<this.mouseScrollDelta?-1:1,this.clearMouseScrollState(),c=this.page,1==c&&-1==a||c==this.pages.length&&1==a||(this.page+=a,this.mouseScrollTimeStamp=b)))},clearMouseScrollState:function(){this.mouseScrollDelta=this.mouseScrollTimeStamp=0}},PageView=
|
||||
function(a,b,c,d){this.id=c;this.pdfPage=b;this.rotation=0;this.scale=d||1;this.viewport=this.pdfPage.getViewport(this.scale,this.pdfPage.rotate);this.renderingState=RenderingStates.INITIAL;this.textLayer=this.textContent=this.resume=null;c=document.createElement("a");c.name=""+this.id;var e=this.el=document.createElement("div");e.id="pageContainer"+this.id;e.className="page";e.style.width=Math.floor(this.viewport.width)+"px";e.style.height=Math.floor(this.viewport.height)+"px";a.appendChild(c);a.appendChild(e);
|
||||
this.destroy=function(){this.update();this.pdfPage.destroy()};this.update=function(a,b){this.renderingState=RenderingStates.INITIAL;this.resume=null;"undefined"!==typeof b&&(this.rotation=b);this.scale=a||this.scale;var c=this.pdfPage.getViewport(this.scale,(this.rotation+this.pdfPage.rotate)%360);this.viewport=c;e.style.width=Math.floor(c.width)+"px";for(e.style.height=Math.floor(c.height)+"px";e.hasChildNodes();)e.removeChild(e.lastChild);e.removeAttribute("data-loaded");delete this.canvas;this.loadingIconDiv=
|
||||
document.createElement("div");this.loadingIconDiv.className="loadingIcon";e.appendChild(this.loadingIconDiv)};Object.defineProperty(this,"width",{get:function(){return this.viewport.width},enumerable:!0});Object.defineProperty(this,"height",{get:function(){return this.viewport.height},enumerable:!0});this.getPagePoint=function(a,b){return this.viewport.convertToPdfPoint(a,b)};this.scrollIntoView=function(a){if(a){var b=0,c=0,d=0,m=0,k;k=0;switch(a[1].name){case "XYZ":b=a[2];c=a[3];k=a[4];break;case "Fit":case "FitB":k=
|
||||
"page-fit";break;case "FitH":case "FitBH":c=a[2];k="page-width";break;case "FitV":case "FitBV":b=a[2];k="page-height";break;case "FitR":b=a[2];c=a[3];d=a[4]-b;m=a[5]-c;a=(this.container.clientWidth-SCROLLBAR_PADDING)/d/CSS_UNITS;k=(this.container.clientHeight-SCROLLBAR_PADDING)/m/CSS_UNITS;k=Math.min(a,k);break;default:return}k&&k!==PDFView.currentScale?PDFView.parseScale(k,!0,!0):PDFView.currentScale===UNKNOWN_SCALE&&PDFView.parseScale(DEFAULT_SCALE,!0,!0);var l=[this.viewport.convertToViewportPoint(b,
|
||||
c),this.viewport.convertToViewportPoint(b+d,c+m)];setTimeout(function(){var a=Math.min(l[0][0],l[1][0]),b=Math.min(l[0][1],l[1][1]),c=Math.abs(l[0][0]-l[1][0]),d=Math.abs(l[0][1]-l[1][1]);scrollIntoView(e,{left:a,top:b,width:c,height:d})},0)}else scrollIntoView(e)};this.getTextContent=function(){this.textContent||(this.textContent=this.pdfPage.getTextContent());return this.textContent};this.draw=function(a){function c(d){n.renderingState=RenderingStates.FINISHED;n.loadingIconDiv&&(e.removeChild(n.loadingIconDiv),
|
||||
delete n.loadingIconDiv);d&&PDFView.error(mozL10n.get("rendering_error",null,"An error occurred while rendering the page."),d);n.stats=b.stats;n.updateStats();if(n.onAfterDraw)n.onAfterDraw();cache.push(n);a()}this.renderingState!==RenderingStates.INITIAL&&error("Must be in new state before drawing");this.renderingState=RenderingStates.RUNNING;var d=document.createElement("canvas");d.id="page"+this.id;d.mozOpaque=!0;e.appendChild(d);this.canvas=d;var g=null;PDFJS.disableTextLayer||(g=document.createElement("div"),
|
||||
g.className="textLayer",e.appendChild(g));var m=this.textLayer=g?new TextLayerBuilder(g,this.id-1):null,k=this.viewport,l=PDFView.getOutputScale();d.width=Math.floor(k.width)*l.sx;d.height=Math.floor(k.height)*l.sy;l.scaled&&(k="scale("+1/l.sx+", "+1/l.sy+")",CustomStyle.setProp("transform",d,k),CustomStyle.setProp("transformOrigin",d,"0% 0%"),g&&(CustomStyle.setProp("transform",g,k),CustomStyle.setProp("transformOrigin",g,"0% 0%")));g=d.getContext("2d");g.save();g.fillStyle="rgb(255, 255, 255)";
|
||||
g.fillRect(0,0,d.width,d.height);g.restore();l.scaled&&g.scale(l.sx,l.sy);var n=this;this.pdfPage.render({canvasContext:g,viewport:this.viewport,textLayer:m,continueCallback:function(a){PDFView.highestPriorityPage!=="page"+n.id?(n.renderingState=RenderingStates.PAUSED,n.resume=function(){n.renderingState=RenderingStates.RUNNING;a()}):a()}}).then(function(){c(null)},function(a){c(a)});m&&this.getTextContent().then(function(a){m.setTextContent(a)});var p=this.viewport,q=function(a,b){a.href=PDFView.getDestinationHash(b);
|
||||
a.onclick=function(){b&&PDFView.navigateTo(b);return!1}},r=function(a,b,c){c||(c=p.convertToViewportRectangle(b.rect),c=PDFJS.Util.normalizeRect(c));a=document.createElement(a);a.style.left=Math.floor(c[0])+"px";a.style.top=Math.floor(c[1])+"px";a.style.width=Math.ceil(c[2]-c[0])+"px";a.style.height=Math.ceil(c[3]-c[1])+"px";return a},s=function(a){var b=document.createElement("section");b.className="annotText";var c=p.convertToViewportRectangle(a.rect),c=PDFJS.Util.normalizeRect(c);c[3]-c[1]<ANNOT_MIN_SIZE&&
|
||||
(c[3]=c[1]+ANNOT_MIN_SIZE);c[2]-c[0]<ANNOT_MIN_SIZE&&(c[2]=c[0]+(c[3]-c[1]));var d=r("img",a,c),e=a.name;d.src=IMAGE_DIR+"annotation-"+e.toLowerCase()+".svg";d.alt=mozL10n.get("text_annotation_type",{type:e},"[{{type}} Annotation]");var f=document.createElement("div");f.setAttribute("hidden",!0);var e=document.createElement("h1"),j=document.createElement("p");f.style.left=Math.floor(c[2])+"px";f.style.top=Math.floor(c[1])+"px";e.textContent=a.title;if(!a.content&&!a.title)f.setAttribute("hidden",
|
||||
!0);else{c=document.createElement("span");a=a.content.split(/(?:\r\n?|\n)/);for(var h=0,g=a.length;h<g;++h)c.appendChild(document.createTextNode(a[h])),h<g-1&&c.appendChild(document.createElement("br"));j.appendChild(c);d.addEventListener("mouseover",function(){f.removeAttribute("hidden")},!1);d.addEventListener("mouseout",function(){f.setAttribute("hidden",!0)},!1)}f.appendChild(e);f.appendChild(j);b.appendChild(d);b.appendChild(f);return b};this.pdfPage.getAnnotations().then(function(a){for(var b=
|
||||
0;b<a.length;b++){var c=a[b];switch(c.type){case "Link":var d=r("a",c);d.href=c.url||"";c.url||q(d,"dest"in c?c.dest:null);e.appendChild(d);break;case "Text":(c=s(c))&&e.appendChild(c);break;case "Widget":PDFView.fallback()}}});e.setAttribute("data-loaded",!0)};this.beforePrint=function(){var a=this.pdfPage,b=a.getViewport(1),c=this.canvas=document.createElement("canvas");c.width=2*Math.floor(b.width);c.height=2*Math.floor(b.height);c.style.width=2*b.width+"pt";c.style.height=2*b.height+"pt";CustomStyle.setProp("transform",
|
||||
c,"scale(0.5, 0.5)");CustomStyle.setProp("transformOrigin",c,"0% 0%");document.getElementById("printContainer").appendChild(c);var d=this;c.mozPrintCallback=function(e){var k=e.context;k.save();k.fillStyle="rgb(255, 255, 255)";k.fillRect(0,0,c.width,c.height);k.restore();k.scale(2,2);a.render({canvasContext:k,viewport:b}).then(function(){e.done();d.pdfPage.destroy()},function(a){console.error(a);"abort"in object?e.abort():e.done();d.pdfPage.destroy()})}};this.updateStats=function(){PDFJS.pdfBug&&
|
||||
Stats.enabled&&Stats.add(this.id,this.stats)}},ThumbnailView=function(a,b,c){function d(){var a=document.createElement("canvas");a.id="thumbnail"+c;a.mozOpaque=!0;a.width=k;a.height=l;a.className="thumbnailImage";a.setAttribute("aria-label",mozL10n.get("thumb_page_canvas",{page:c},"Thumbnail of Page {{page}}"));p.setAttribute("data-loaded",!0);q.appendChild(a);a=a.getContext("2d");a.save();a.fillStyle="rgb(255, 255, 255)";a.fillRect(0,0,k,l);a.restore();return a}var e=document.createElement("a");
|
||||
e.href=PDFView.getAnchorUrl("#page="+c);e.title=mozL10n.get("thumb_page_title",{page:c},"Page {{page}}");e.onclick=function(){PDFView.page=c;return!1};var j=0,f=(j+b.rotate)%360,h=b.getViewport(1,f),g=this.width=h.width,m=this.height=h.height;this.id=c;var k=98,l=k/this.width*this.height,n=this.scaleX=k/g;this.scaleY=l/m;var p=this.el=document.createElement("div");p.id="thumbnailContainer"+c;p.className="thumbnail";1===c&&p.classList.add("selected");var q=document.createElement("div");q.className=
|
||||
"thumbnailSelectionRing";q.style.width=k+"px";q.style.height=l+"px";p.appendChild(q);e.appendChild(p);a.appendChild(e);this.hasImage=!1;this.renderingState=RenderingStates.INITIAL;this.updateRotation=function(a){j=a;f=(j+b.rotate)%360;h=b.getViewport(1,f);g=this.width=h.width;m=this.height=h.height;l=k/this.width*this.height;n=this.scaleX=k/g;this.scaleY=l/m;p.removeAttribute("data-loaded");q.textContent="";q.style.width=k+"px";q.style.height=l+"px";this.hasImage=!1;this.renderingState=RenderingStates.INITIAL;
|
||||
this.resume=null};this.drawingRequired=function(){return!this.hasImage};this.draw=function(a){this.renderingState!==RenderingStates.INITIAL&&error("Must be in new state before drawing");this.renderingState=RenderingStates.RUNNING;if(this.hasImage)a();else{var c=this,e=d(),j=b.getViewport(n,f);b.render({canvasContext:e,viewport:j,continueCallback:function(a){PDFView.highestPriorityPage!=="thumbnail"+c.id?(c.renderingState=RenderingStates.PAUSED,c.resume=function(){c.renderingState=RenderingStates.RUNNING;
|
||||
a()}):a()}}).then(function(){c.renderingState=RenderingStates.FINISHED;a()},function(){c.renderingState=RenderingStates.FINISHED;a()});this.hasImage=!0}};this.setImage=function(a){if(!this.hasImage&&a){this.renderingState=RenderingStates.FINISHED;var b=d();b.drawImage(a,0,0,a.width,a.height,0,0,b.canvas.width,b.canvas.height);this.hasImage=!0}}},DocumentOutlineView=function(a){function b(a,b){a.href=PDFView.getDestinationHash(b.dest);a.onclick=function(){PDFView.navigateTo(b.dest);return!1}}for(var c=
|
||||
document.getElementById("outlineView");c.firstChild;)c.removeChild(c.firstChild);if(a)for(c=[{parent:c,items:a}];0<c.length;){a=c.shift();var d,e=a.items.length;for(d=0;d<e;d++){var j=a.items[d],f=document.createElement("div");f.className="outlineItem";var h=document.createElement("a");b(h,j);h.textContent=j.title;f.appendChild(h);0<j.items.length&&(h=document.createElement("div"),h.className="outlineItems",f.appendChild(h),c.push({parent:h,items:j.items}));a.parent.appendChild(f)}}else a=document.createElement("div"),
|
||||
a.classList.add("noOutline"),a.textContent=mozL10n.get("no_outline",null,"No Outline Available"),c.appendChild(a)},CustomStyle=function(){function a(){}var b=["ms","Moz","Webkit","O"],c={};a.getProp=function(a,e){if(1==arguments.length&&"string"==typeof c[a])return c[a];e=e||document.documentElement;var j=e.style,f,h;if("string"==typeof j[a])return c[a]=a;h=a.charAt(0).toUpperCase()+a.slice(1);for(var g=0,m=b.length;g<m;g++)if(f=b[g]+h,"string"==typeof j[f])return c[a]=f;return c[a]="undefined"};
|
||||
a.setProp=function(a,b,c){a=this.getProp(a);"undefined"!=a&&(b.style[a]=c)};return a}(),TextLayerBuilder=function(a,b){var c=document.createDocumentFragment();this.textLayerDiv=a;this.divContentDone=this.layoutDone=!1;this.pageIdx=b;this.matches=[];this.beginLayout=function(){this.textDivs=[];this.textLayerQueue=[];this.renderingDone=!1};this.endLayout=function(){this.layoutDone=!0;this.insertDivContent()};this.renderLayer=function(){var a=this.textDivs,b=this.textLayerDiv,j=document.createElement("canvas").getContext("2d");
|
||||
if(!(1E5<a.length)){for(var f=0,h=a.length;f<h;f++){var g=a[f];c.appendChild(g);j.font=g.style.fontSize+" "+g.style.fontFamily;var m=j.measureText(g.textContent).width;0<m&&(CustomStyle.setProp("transform",g,"scale("+g.dataset.canvasWidth/m+", 1)"),CustomStyle.setProp("transformOrigin",g,"0% 0%"),b.appendChild(g))}this.renderingDone=!0;this.updateMatches();b.appendChild(c)}};this.setupRenderLayoutTimer=function(){var a=this;200<Date.now()-PDFView.lastScroll?this.renderLayer():(this.renderTimer&&clearTimeout(this.renderTimer),
|
||||
this.renderTimer=setTimeout(function(){a.setupRenderLayoutTimer()},200))};this.appendText=function(a){var b=document.createElement("div"),c=a.fontSize*a.vScale;b.dataset.canvasWidth=a.canvasWidth*a.hScale;b.dataset.fontName=a.fontName;b.style.fontSize=c+"px";b.style.fontFamily=a.fontFamily;b.style.left=a.x+"px";b.style.top=a.y-c+"px";this.textDivs.push(b)};this.insertDivContent=function(){if(this.layoutDone&&!this.divContentDone&&this.textContent){this.divContentDone=!0;for(var a=this.textDivs,b=
|
||||
this.textContent.bidiTexts,c=0;c<b.length;c++){var f=b[c],h=a[c];h.textContent=f.str;h.dir=f.ltr?"ltr":"rtl"}this.setupRenderLayoutTimer()}};this.setTextContent=function(a){this.textContent=a;this.insertDivContent()};this.convertMatches=function(a){for(var b=0,c=0,f=this.textContent.bidiTexts,h=f.length-1,g=PDFFindController.state.query.length,m=[],k=0;k<a.length;k++){for(var l=a[k];b!==h&&l>=c+f[b].str.length;)c+=f[b].str.length,b++;b==f.length&&console.error("Could not find matching mapping");for(var n=
|
||||
{begin:{divIdx:b,offset:l-c}},l=l+g;b!==h&&l>c+f[b].str.length;)c+=f[b].str.length,b++;n.end={divIdx:b,offset:l-c};m.push(n)}return m};this.renderMatches=function(a){function b(a,c){var d=a.divIdx,e=h[d];e.textContent="";var g=f[d].str.substring(0,a.offset),g=document.createTextNode(g);if(c){var d=m&&d===k,j=document.createElement("span");j.className=c+(d?" selected":"");j.appendChild(g);e.appendChild(j)}else e.appendChild(g)}function c(a,b,d){var e=a.divIdx,g=h[e];a=f[e].str.substring(a.offset,b.offset);
|
||||
a=document.createTextNode(a);d?(b=document.createElement("span"),b.className=d,b.appendChild(a),g.appendChild(b)):g.appendChild(a)}if(0!==a.length){var f=this.textContent.bidiTexts,h=this.textDivs,g=null,m=this.pageIdx===PDFFindController.selected.pageIdx,k=PDFFindController.selected.matchIdx,l={divIdx:-1,offset:void 0},n=k,p=n+1;if(PDFFindController.state.highlightAll)n=0,p=a.length;else if(!m)return;for(;n<p;n++){var q=a[n],r=q.begin,q=q.end,s=m&&n===k,t=s?" selected":"";s&&scrollIntoView(h[r.divIdx],
|
||||
{top:-50});!g||r.divIdx!==g.divIdx?(null!==g&&c(g,l),b(r)):c(g,r);if(r.divIdx===q.divIdx)c(r,q,"highlight"+t);else{c(r,l,"highlight begin"+t);for(g=r.divIdx+1;g<q.divIdx;g++)h[g].className="highlight middle"+t;b(q,"highlight end"+t)}g=q}g&&c(g,l)}};this.updateMatches=function(){if(this.renderingDone){for(var a=this.matches,b=this.textDivs,c=this.textContent.bidiTexts,f=-1,h=0;h<a.length;h++){for(var g=a[h],f=Math.max(f,g.begin.divIdx);f<=g.end.divIdx;f++){var m=b[f];m.textContent=c[f].str;m.className=
|
||||
""}f=g.end.divIdx+1}PDFFindController.active&&(this.matches=this.convertMatches(PDFFindController.pageMatches[this.pageIdx]||[]),this.renderMatches(this.matches))}}};
|
||||
document.addEventListener("DOMContentLoaded",function(){PDFView.initialize();var a=PDFView.parseQueryString(document.location.search.substring(1)).file||DEFAULT_URL;window.File&&(window.FileReader&&window.FileList&&window.Blob)&&(document.getElementById("fileInput").value=null);var b=document.location.hash.substring(1),b=PDFView.parseQueryString(b);"disableWorker"in b&&(PDFJS.disableWorker="true"===b.disableWorker);var c=navigator.language;"locale"in b&&(c=b.locale);mozL10n.setLanguage(c);if("textLayer"in
|
||||
function(a,b,c,d,f,h){function e(a,b){function c(a,b){a.href=PDFView.getDestinationHash(b);a.onclick=function(){b&&PDFView.navigateTo(b);return!1}}function d(a,c,f){f||(f=b.convertToViewportRectangle(c.rect),f=PDFJS.Util.normalizeRect(f));a=document.createElement(a);a.style.left=Math.floor(f[0])+"px";a.style.top=Math.floor(f[1])+"px";a.style.width=Math.ceil(f[2]-f[0])+"px";a.style.height=Math.ceil(f[3]-f[1])+"px";return a}function f(a){var c=document.createElement("section");c.className="annotText";
|
||||
var e=b.convertToViewportRectangle(a.rect),e=PDFJS.Util.normalizeRect(e);e[3]-e[1]<ANNOT_MIN_SIZE&&(e[3]=e[1]+ANNOT_MIN_SIZE);e[2]-e[0]<ANNOT_MIN_SIZE&&(e[2]=e[0]+(e[3]-e[1]));var h=d("img",a,e),g=a.name;h.src=IMAGE_DIR+"annotation-"+g.toLowerCase()+".svg";h.alt=mozL10n.get("text_annotation_type",{type:g},"[{{type}} Annotation]");var k=document.createElement("div");k.setAttribute("hidden",!0);var g=document.createElement("h1"),l=document.createElement("p");k.style.left=Math.floor(e[2])+"px";k.style.top=
|
||||
Math.floor(e[1])+"px";g.textContent=a.title;if(a.content||a.title){e=document.createElement("span");a=a.content.split(/(?:\r\n?|\n)/);for(var s=0,v=a.length;s<v;++s)e.appendChild(document.createTextNode(a[s])),s<v-1&&e.appendChild(document.createElement("br"));l.appendChild(e);h.addEventListener("mouseover",function(){k.removeAttribute("hidden")},!1);h.addEventListener("mouseout",function(){k.setAttribute("hidden",!0)},!1)}else k.setAttribute("hidden",!0);k.appendChild(g);k.appendChild(l);c.appendChild(h);
|
||||
c.appendChild(k);return c}a.getAnnotations().then(function(a){for(var b=0;b<a.length;b++){var e=a[b];switch(e.type){case "Link":var h=d("a",e);h.href=e.url||"";e.url||c(h,"dest"in e?e.dest:null);g.appendChild(h);break;case "Text":(e=f(e))&&g.appendChild(e);break;case "Widget":PDFView.fallback()}}})}this.id=c;this.pdfPage=b;this.rotation=0;this.scale=d||1;this.viewport=this.pdfPage.getViewport(this.scale,this.pdfPage.rotate);this.renderingState=RenderingStates.INITIAL;this.textLayer=this.textContent=
|
||||
this.resume=null;c=document.createElement("a");c.name=""+this.id;var g=this.el=document.createElement("div");g.id="pageContainer"+this.id;g.className="page";g.style.width=Math.floor(this.viewport.width)+"px";g.style.height=Math.floor(this.viewport.height)+"px";a.appendChild(c);a.appendChild(g);this.destroy=function(){this.update();this.pdfPage.destroy()};this.update=function(a,b){this.renderingState=RenderingStates.INITIAL;this.resume=null;"undefined"!==typeof b&&(this.rotation=b);this.scale=a||this.scale;
|
||||
var c=this.pdfPage.getViewport(this.scale,(this.rotation+this.pdfPage.rotate)%360);this.viewport=c;g.style.width=Math.floor(c.width)+"px";for(g.style.height=Math.floor(c.height)+"px";g.hasChildNodes();)g.removeChild(g.lastChild);g.removeAttribute("data-loaded");delete this.canvas;this.loadingIconDiv=document.createElement("div");this.loadingIconDiv.className="loadingIcon";g.appendChild(this.loadingIconDiv)};Object.defineProperty(this,"width",{get:function(){return this.viewport.width},enumerable:!0});
|
||||
Object.defineProperty(this,"height",{get:function(){return this.viewport.height},enumerable:!0});this.getPagePoint=function(a,b){return this.viewport.convertToPdfPoint(a,b)};this.scrollIntoView=function(a){if(a){var b=0,c=0,d=0,f=0,e;e=0;switch(a[1].name){case "XYZ":b=a[2];c=a[3];e=a[4];break;case "Fit":case "FitB":e="page-fit";break;case "FitH":case "FitBH":c=a[2];e="page-width";break;case "FitV":case "FitBV":b=a[2];e="page-height";break;case "FitR":b=a[2];c=a[3];d=a[4]-b;f=a[5]-c;a=(this.container.clientWidth-
|
||||
SCROLLBAR_PADDING)/d/CSS_UNITS;e=(this.container.clientHeight-SCROLLBAR_PADDING)/f/CSS_UNITS;e=Math.min(a,e);break;default:return}e&&e!==PDFView.currentScale?PDFView.parseScale(e,!0,!0):PDFView.currentScale===UNKNOWN_SCALE&&PDFView.parseScale(DEFAULT_SCALE,!0,!0);var h=[this.viewport.convertToViewportPoint(b,c),this.viewport.convertToViewportPoint(b+d,c+f)];setTimeout(function(){var a=Math.min(h[0][0],h[1][0]),b=Math.min(h[0][1],h[1][1]),c=Math.abs(h[0][0]-h[1][0]),d=Math.abs(h[0][1]-h[1][1]);scrollIntoView(g,
|
||||
{left:a,top:b,width:c,height:d})},0)}else scrollIntoView(g)};this.getTextContent=function(){this.textContent||(this.textContent=this.pdfPage.getTextContent());return this.textContent};this.draw=function(a){function c(d){p.renderingState=RenderingStates.FINISHED;p.loadingIconDiv&&(g.removeChild(p.loadingIconDiv),delete p.loadingIconDiv);d&&PDFView.error(mozL10n.get("rendering_error",null,"An error occurred while rendering the page."),d);p.stats=b.stats;p.updateStats();if(p.onAfterDraw)p.onAfterDraw();
|
||||
cache.push(p);a()}this.renderingState!==RenderingStates.INITIAL&&error("Must be in new state before drawing");this.renderingState=RenderingStates.RUNNING;var d=document.createElement("canvas");d.id="page"+this.id;d.mozOpaque=!0;g.appendChild(d);this.canvas=d;var f=null;PDFJS.disableTextLayer||(f=document.createElement("div"),f.className="textLayer",g.appendChild(f));var h=this.textLayer=f?new TextLayerBuilder(f,this.id-1):null,r=this.viewport,q=PDFView.getOutputScale();d.width=Math.floor(r.width)*
|
||||
q.sx;d.height=Math.floor(r.height)*q.sy;q.scaled&&(r="scale("+1/q.sx+", "+1/q.sy+")",CustomStyle.setProp("transform",d,r),CustomStyle.setProp("transformOrigin",d,"0% 0%"),f&&(CustomStyle.setProp("transform",f,r),CustomStyle.setProp("transformOrigin",f,"0% 0%")));f=d.getContext("2d");f.save();f.fillStyle="rgb(255, 255, 255)";f.fillRect(0,0,d.width,d.height);f.restore();q.scaled&&f.scale(q.sx,q.sy);var p=this;this.pdfPage.render({canvasContext:f,viewport:this.viewport,textLayer:h,continueCallback:function(a){PDFView.highestPriorityPage!==
|
||||
"page"+p.id?(p.renderingState=RenderingStates.PAUSED,p.resume=function(){p.renderingState=RenderingStates.RUNNING;a()}):a()}}).then(function(){c(null)},function(a){c(a)});h&&this.getTextContent().then(function(a){h.setTextContent(a)});e(this.pdfPage,this.viewport);g.setAttribute("data-loaded",!0)};this.beforePrint=function(){var a=this.pdfPage,b=a.getViewport(1),c=this.canvas=document.createElement("canvas");c.width=2*Math.floor(b.width);c.height=2*Math.floor(b.height);c.style.width=2*b.width+"pt";
|
||||
c.style.height=2*b.height+"pt";CustomStyle.setProp("transform",c,"scale(0.5, 0.5)");CustomStyle.setProp("transformOrigin",c,"0% 0%");document.getElementById("printContainer").appendChild(c);var d=this;c.mozPrintCallback=function(f){var e=f.context;e.save();e.fillStyle="rgb(255, 255, 255)";e.fillRect(0,0,c.width,c.height);e.restore();e.scale(2,2);a.render({canvasContext:e,viewport:b}).then(function(){f.done();d.pdfPage.destroy()},function(a){console.error(a);"abort"in object?f.abort():f.done();d.pdfPage.destroy()})}};
|
||||
this.updateStats=function(){PDFJS.pdfBug&&Stats.enabled&&Stats.add(this.id,this.stats)}},ThumbnailView=function(a,b,c){function d(){var a=document.createElement("canvas");a.id="thumbnail"+c;a.mozOpaque=!0;a.width=l;a.height=m;a.className="thumbnailImage";a.setAttribute("aria-label",mozL10n.get("thumb_page_canvas",{page:c},"Thumbnail of Page {{page}}"));r.setAttribute("data-loaded",!0);q.appendChild(a);a=a.getContext("2d");a.save();a.fillStyle="rgb(255, 255, 255)";a.fillRect(0,0,l,m);a.restore();return a}
|
||||
var f=document.createElement("a");f.href=PDFView.getAnchorUrl("#page="+c);f.title=mozL10n.get("thumb_page_title",{page:c},"Page {{page}}");f.onclick=function(){PDFView.page=c;return!1};var h=0,e=(h+b.rotate)%360,g=b.getViewport(1,e),k=this.width=g.width,n=this.height=g.height;this.id=c;var l=98,m=l/this.width*this.height,s=this.scaleX=l/k;this.scaleY=m/n;var r=this.el=document.createElement("div");r.id="thumbnailContainer"+c;r.className="thumbnail";1===c&&r.classList.add("selected");var q=document.createElement("div");
|
||||
q.className="thumbnailSelectionRing";q.style.width=l+"px";q.style.height=m+"px";r.appendChild(q);f.appendChild(r);a.appendChild(f);this.hasImage=!1;this.renderingState=RenderingStates.INITIAL;this.updateRotation=function(a){h=a;e=(h+b.rotate)%360;g=b.getViewport(1,e);k=this.width=g.width;n=this.height=g.height;m=l/this.width*this.height;s=this.scaleX=l/k;this.scaleY=m/n;r.removeAttribute("data-loaded");q.textContent="";q.style.width=l+"px";q.style.height=m+"px";this.hasImage=!1;this.renderingState=
|
||||
RenderingStates.INITIAL;this.resume=null};this.drawingRequired=function(){return!this.hasImage};this.draw=function(a){this.renderingState!==RenderingStates.INITIAL&&error("Must be in new state before drawing");this.renderingState=RenderingStates.RUNNING;if(this.hasImage)a();else{var c=this,f=d(),h=b.getViewport(s,e);b.render({canvasContext:f,viewport:h,continueCallback:function(a){PDFView.highestPriorityPage!=="thumbnail"+c.id?(c.renderingState=RenderingStates.PAUSED,c.resume=function(){c.renderingState=
|
||||
RenderingStates.RUNNING;a()}):a()}}).then(function(){c.renderingState=RenderingStates.FINISHED;a()},function(b){c.renderingState=RenderingStates.FINISHED;a()});this.hasImage=!0}};this.setImage=function(a){if(!this.hasImage&&a){this.renderingState=RenderingStates.FINISHED;var b=d();b.drawImage(a,0,0,a.width,a.height,0,0,b.canvas.width,b.canvas.height);this.hasImage=!0}}},DocumentOutlineView=function(a){function b(a,b){a.href=PDFView.getDestinationHash(b.dest);a.onclick=function(a){PDFView.navigateTo(b.dest);
|
||||
return!1}}for(var c=document.getElementById("outlineView");c.firstChild;)c.removeChild(c.firstChild);if(a)for(c=[{parent:c,items:a}];0<c.length;){a=c.shift();var d,f=a.items.length;for(d=0;d<f;d++){var h=a.items[d],e=document.createElement("div");e.className="outlineItem";var g=document.createElement("a");b(g,h);g.textContent=h.title;e.appendChild(g);0<h.items.length&&(g=document.createElement("div"),g.className="outlineItems",e.appendChild(g),c.push({parent:g,items:h.items}));a.parent.appendChild(e)}}else a=
|
||||
document.createElement("div"),a.classList.add("noOutline"),a.textContent=mozL10n.get("no_outline",null,"No Outline Available"),c.appendChild(a)},CustomStyle=function(){function a(){}var b=["ms","Moz","Webkit","O"],c={};a.getProp=function(a,f){if(1==arguments.length&&"string"==typeof c[a])return c[a];f=f||document.documentElement;var h=f.style,e,g;if("string"==typeof h[a])return c[a]=a;g=a.charAt(0).toUpperCase()+a.slice(1);for(var k=0,n=b.length;k<n;k++)if(e=b[k]+g,"string"==typeof h[e])return c[a]=
|
||||
e;return c[a]="undefined"};a.setProp=function(a,b,c){a=this.getProp(a);"undefined"!=a&&(b.style[a]=c)};return a}(),TextLayerBuilder=function(a,b){var c=document.createDocumentFragment();this.textLayerDiv=a;this.divContentDone=this.layoutDone=!1;this.pageIdx=b;this.matches=[];this.beginLayout=function(){this.textDivs=[];this.textLayerQueue=[];this.renderingDone=!1};this.endLayout=function(){this.layoutDone=!0;this.insertDivContent()};this.renderLayer=function(){var a=this.textDivs,b=this.textLayerDiv,
|
||||
h=document.createElement("canvas").getContext("2d");if(!(1E5<a.length)){for(var e=0,g=a.length;e<g;e++){var k=a[e];c.appendChild(k);h.font=k.style.fontSize+" "+k.style.fontFamily;var n=h.measureText(k.textContent).width;0<n&&(CustomStyle.setProp("transform",k,"scale("+k.dataset.canvasWidth/n+", 1)"),CustomStyle.setProp("transformOrigin",k,"0% 0%"),b.appendChild(k))}this.renderingDone=!0;this.updateMatches();b.appendChild(c)}};this.setupRenderLayoutTimer=function(){var a=this;200<Date.now()-PDFView.lastScroll?
|
||||
this.renderLayer():(this.renderTimer&&clearTimeout(this.renderTimer),this.renderTimer=setTimeout(function(){a.setupRenderLayoutTimer()},200))};this.appendText=function(a){var b=document.createElement("div"),c=a.fontSize*a.vScale;b.dataset.canvasWidth=a.canvasWidth*a.hScale;b.dataset.fontName=a.fontName;b.style.fontSize=c+"px";b.style.fontFamily=a.fontFamily;b.style.left=a.x+"px";b.style.top=a.y-c+"px";this.textDivs.push(b)};this.insertDivContent=function(){if(this.layoutDone&&!this.divContentDone&&
|
||||
this.textContent){this.divContentDone=!0;for(var a=this.textDivs,b=this.textContent.bidiTexts,c=0;c<b.length;c++){var e=b[c],g=a[c];g.textContent=e.str;g.dir=e.ltr?"ltr":"rtl"}this.setupRenderLayoutTimer()}};this.setTextContent=function(a){this.textContent=a;this.insertDivContent()};this.convertMatches=function(a){for(var b=0,c=0,e=this.textContent.bidiTexts,g=e.length-1,k=PDFFindController.state.query.length,n=[],l=0;l<a.length;l++){for(var m=a[l];b!==g&&m>=c+e[b].str.length;)c+=e[b].str.length,
|
||||
b++;b==e.length&&console.error("Could not find matching mapping");for(var s={begin:{divIdx:b,offset:m-c}},m=m+k;b!==g&&m>c+e[b].str.length;)c+=e[b].str.length,b++;s.end={divIdx:b,offset:m-c};n.push(s)}return n};this.renderMatches=function(a){function b(a,c){var d=a.divIdx,f=g[d];f.textContent="";var h=e[d].str.substring(0,a.offset),h=document.createTextNode(h);if(c){var d=n&&d===l,k=document.createElement("span");k.className=c+(d?" selected":"");k.appendChild(h);f.appendChild(k)}else f.appendChild(h)}
|
||||
function c(a,b,d){var f=a.divIdx,h=g[f];a=e[f].str.substring(a.offset,b.offset);a=document.createTextNode(a);d?(b=document.createElement("span"),b.className=d,b.appendChild(a),h.appendChild(b)):h.appendChild(a)}if(0!==a.length){var e=this.textContent.bidiTexts,g=this.textDivs,k=null,n=this.pageIdx===PDFFindController.selected.pageIdx,l=PDFFindController.selected.matchIdx,m={divIdx:-1,offset:void 0},s=l,r=s+1;if(PDFFindController.state.highlightAll)s=0,r=a.length;else if(!n)return;for(;s<r;s++){var q=
|
||||
a[s],p=q.begin,q=q.end,u=n&&s===l,t=u?" selected":"";u&&scrollIntoView(g[p.divIdx],{top:-50});k&&p.divIdx===k.divIdx?c(k,p):(null!==k&&c(k,m),b(p));if(p.divIdx===q.divIdx)c(p,q,"highlight"+t);else{c(p,m,"highlight begin"+t);for(k=p.divIdx+1;k<q.divIdx;k++)g[k].className="highlight middle"+t;b(q,"highlight end"+t)}k=q}k&&c(k,m)}};this.updateMatches=function(){if(this.renderingDone){for(var a=this.matches,b=this.textDivs,c=this.textContent.bidiTexts,e=-1,g=0;g<a.length;g++){for(var k=a[g],e=Math.max(e,
|
||||
k.begin.divIdx);e<=k.end.divIdx;e++){var n=b[e];n.textContent=c[e].str;n.className=""}e=k.end.divIdx+1}PDFFindController.active&&(this.matches=this.convertMatches(PDFFindController.pageMatches[this.pageIdx]||[]),this.renderMatches(this.matches))}}};
|
||||
document.addEventListener("DOMContentLoaded",function(a){PDFView.initialize();a=PDFView.parseQueryString(document.location.search.substring(1)).file||DEFAULT_URL;window.File&&window.FileReader&&window.FileList&&window.Blob&&(document.getElementById("fileInput").value=null);var b=document.location.hash.substring(1),b=PDFView.parseQueryString(b);"disableWorker"in b&&(PDFJS.disableWorker="true"===b.disableWorker);var c=navigator.language;"locale"in b&&(c=b.locale);mozL10n.setLanguage(c);if("textLayer"in
|
||||
b)switch(b.textLayer){case "off":PDFJS.disableTextLayer=!0;break;case "visible":case "shadow":case "hover":document.getElementById("viewer").classList.add("textLayer-"+b.textLayer)}"pdfBug"in b&&(PDFJS.pdfBug=!0,b=b.pdfBug.split(","),PDFBug.enable(b),PDFBug.init());PDFView.supportsPrinting||document.getElementById("print").classList.add("hidden");PDFView.supportsFullscreen||document.getElementById("fullscreen").classList.add("hidden");PDFView.supportsIntegratedFind&&document.querySelector("#viewFind").classList.add("hidden");
|
||||
PDFJS.LogManager.addLogger({warn:function(){PDFView.fallback()}});var d=document.getElementById("mainContainer"),e=document.getElementById("outerContainer");d.addEventListener("transitionend",function(a){a.target==d&&(a=document.createEvent("UIEvents"),a.initUIEvent("resize",!1,!1,window,0),window.dispatchEvent(a),e.classList.remove("sidebarMoving"))},!0);document.getElementById("sidebarToggle").addEventListener("click",function(){this.classList.toggle("toggled");e.classList.add("sidebarMoving");
|
||||
e.classList.toggle("sidebarOpen");PDFView.sidebarOpen=e.classList.contains("sidebarOpen");PDFView.renderHighestPriority()});document.getElementById("viewThumbnail").addEventListener("click",function(){PDFView.switchSidebarView("thumbs")});document.getElementById("viewOutline").addEventListener("click",function(){PDFView.switchSidebarView("outline")});document.getElementById("previous").addEventListener("click",function(){PDFView.page--});document.getElementById("next").addEventListener("click",function(){PDFView.page++});
|
||||
PDFJS.LogManager.addLogger({warn:function(){PDFView.fallback()}});var d=document.getElementById("mainContainer"),f=document.getElementById("outerContainer");d.addEventListener("transitionend",function(a){a.target==d&&(a=document.createEvent("UIEvents"),a.initUIEvent("resize",!1,!1,window,0),window.dispatchEvent(a),f.classList.remove("sidebarMoving"))},!0);document.getElementById("sidebarToggle").addEventListener("click",function(){this.classList.toggle("toggled");f.classList.add("sidebarMoving");
|
||||
f.classList.toggle("sidebarOpen");PDFView.sidebarOpen=f.classList.contains("sidebarOpen");PDFView.renderHighestPriority()});document.getElementById("viewThumbnail").addEventListener("click",function(){PDFView.switchSidebarView("thumbs")});document.getElementById("viewOutline").addEventListener("click",function(){PDFView.switchSidebarView("outline")});document.getElementById("previous").addEventListener("click",function(){PDFView.page--});document.getElementById("next").addEventListener("click",function(){PDFView.page++});
|
||||
document.querySelector(".zoomIn").addEventListener("click",function(){PDFView.zoomIn()});document.querySelector(".zoomOut").addEventListener("click",function(){PDFView.zoomOut()});document.getElementById("fullscreen").addEventListener("click",function(){PDFView.fullscreen()});document.getElementById("print").addEventListener("click",function(){window.print()});document.getElementById("pageNumber").addEventListener("change",function(){PDFView.page=this.value});document.getElementById("scaleSelect").addEventListener("change",
|
||||
function(){PDFView.parseScale(this.value)});document.getElementById("first_page").addEventListener("click",function(){PDFView.page=1});document.getElementById("last_page").addEventListener("click",function(){PDFView.page=PDFView.pdfDocument.numPages});document.getElementById("page_rotate_ccw").addEventListener("click",function(){PDFView.rotatePages(-90)});document.getElementById("page_rotate_cw").addEventListener("click",function(){PDFView.rotatePages(90)});PDFView.open(a,0)},!0);
|
||||
function updateViewarea(){if(PDFView.initialized){var a=PDFView.getVisiblePages(),b=a.views;if(0!==b.length){PDFView.renderHighestPriority();for(var c=PDFView.page,a=a.first,d=0,e=b.length,j=!1;d<e;++d){var f=b[d];if(100>f.percent)break;if(f.id===PDFView.page){j=!0;break}}j||(c=b[0].id);PDFView.isFullscreen||(updateViewarea.inProgress=!0,PDFView.page=c,updateViewarea.inProgress=!1);var b=PDFView.currentScale,c=PDFView.currentScaleValue,h=c==b?100*b:c,g=a.id,b="#page="+g+("&zoom="+h),m=PDFView.pages[g-
|
||||
1].getPagePoint(PDFView.container.scrollLeft,PDFView.container.scrollTop-a.y),b=b+(","+Math.round(m[0])+","+Math.round(m[1])),k=PDFView.store;k.initializedPromise.then(function(){k.set("exists",!0);k.set("page",g);k.set("zoom",h);k.set("scrollLeft",Math.round(m[0]));k.set("scrollTop",Math.round(m[1]))});PDFView.getAnchorUrl(b)}}}
|
||||
window.addEventListener("resize",function(){PDFView.initialized&&(document.getElementById("pageWidthOption").selected||document.getElementById("pageFitOption").selected||document.getElementById("pageAutoOption").selected)&&PDFView.parseScale(document.getElementById("scaleSelect").value);updateViewarea()});window.addEventListener("hashchange",function(){PDFView.setHash(document.location.hash.substring(1))});
|
||||
window.addEventListener("change",function(a){var b=a.target.files;b&&0!=b.length&&(a=new FileReader,a.onload=function(a){a=new Uint8Array(a.target.result);PDFView.open(a,0)},b=b[0],a.readAsArrayBuffer(b),PDFView.setTitleUsingUrl(b.name))},!0);function selectScaleOption(a){for(var b=document.getElementById("scaleSelect").options,c=!1,d=0;d<b.length;d++){var e=b[d];e.value!=a?e.selected=!1:c=e.selected=!0}return c}
|
||||
window.addEventListener("localized",function(){document.getElementsByTagName("html")[0].dir=mozL10n.getDirection()},!0);
|
||||
window.addEventListener("scalechange",function(a){var b=document.getElementById("customScaleOption");b.selected=!1;if((a.resetAutoSettings||!document.getElementById("pageWidthOption").selected&&!document.getElementById("pageFitOption").selected&&!document.getElementById("pageAutoOption").selected)&&!selectScaleOption(""+a.scale))b.textContent=Math.round(1E4*a.scale)/100+"%",b.selected=!0;updateViewarea()},!0);
|
||||
window.addEventListener("pagechange",function(a){a=a.pageNumber;if(PDFView.previousPageNumber!==a){document.getElementById("pageNumber").value=a;var b=document.querySelector(".thumbnail.selected");b&&b.classList.remove("selected");b=document.getElementById("thumbnailContainer"+a);b.classList.add("selected");var c=PDFView.getVisibleThumbs(),d=c.views.length;if(0<d){var e=c.first.id,c=1<d?c.last.id:e;(a<=e||a>=c)&&scrollIntoView(b)}}document.getElementById("previous").disabled=1>=a;document.getElementById("next").disabled=
|
||||
a>=PDFView.pages.length},!0);window.addEventListener("DOMMouseScroll",function(a){if(a.ctrlKey){a.preventDefault();var b=a.detail;a=0<b?"zoomOut":"zoomIn";for(var c=0,b=Math.abs(b);c<b;c++)PDFView[a]()}else PDFView.isFullscreen&&PDFView.mouseScroll(-40*a.detail)},!1);window.addEventListener("mousemove",function(){PDFView.isFullscreen&&PDFView.showPresentationControls()},!1);window.addEventListener("mousedown",function(a){PDFView.isFullscreen&&0===a.button&&(a.preventDefault(),PDFView.page++)},!1);
|
||||
function updateViewarea(){if(PDFView.initialized){var a=PDFView.getVisiblePages(),b=a.views;if(0!==b.length){PDFView.renderHighestPriority();for(var c=PDFView.page,a=a.first,d=0,f=b.length,h=!1;d<f;++d){var e=b[d];if(100>e.percent)break;if(e.id===PDFView.page){h=!0;break}}h||(c=b[0].id);PDFView.isFullscreen||(updateViewarea.inProgress=!0,PDFView.page=c,updateViewarea.inProgress=!1);var b=PDFView.currentScale,c=PDFView.currentScaleValue,g=c==b?100*b:c,k=a.id,b="#page="+k+("&zoom="+g),n=PDFView.pages[k-
|
||||
1].getPagePoint(PDFView.container.scrollLeft,PDFView.container.scrollTop-a.y),b=b+(","+Math.round(n[0])+","+Math.round(n[1])),l=PDFView.store;l.initializedPromise.then(function(){l.set("exists",!0);l.set("page",k);l.set("zoom",g);l.set("scrollLeft",Math.round(n[0]));l.set("scrollTop",Math.round(n[1]))});PDFView.getAnchorUrl(b)}}}
|
||||
window.addEventListener("resize",function(a){PDFView.initialized&&(document.getElementById("pageWidthOption").selected||document.getElementById("pageFitOption").selected||document.getElementById("pageAutoOption").selected)&&PDFView.parseScale(document.getElementById("scaleSelect").value);updateViewarea()});window.addEventListener("hashchange",function(a){PDFView.setHash(document.location.hash.substring(1))});
|
||||
window.addEventListener("change",function(a){var b=a.target.files;b&&0!=b.length&&(a=new FileReader,a.onload=function(a){a=new Uint8Array(a.target.result);PDFView.open(a,0)},b=b[0],a.readAsArrayBuffer(b),PDFView.setTitleUsingUrl(b.name))},!0);function selectScaleOption(a){for(var b=document.getElementById("scaleSelect").options,c=!1,d=0;d<b.length;d++){var f=b[d];f.value!=a?f.selected=!1:c=f.selected=!0}return c}
|
||||
window.addEventListener("localized",function(a){document.getElementsByTagName("html")[0].dir=mozL10n.getDirection()},!0);
|
||||
window.addEventListener("scalechange",function(a){var b=document.getElementById("customScaleOption");b.selected=!1;!a.resetAutoSettings&&(document.getElementById("pageWidthOption").selected||document.getElementById("pageFitOption").selected||document.getElementById("pageAutoOption").selected)||selectScaleOption(""+a.scale)||(b.textContent=Math.round(1E4*a.scale)/100+"%",b.selected=!0);updateViewarea()},!0);
|
||||
window.addEventListener("pagechange",function(a){a=a.pageNumber;if(PDFView.previousPageNumber!==a){document.getElementById("pageNumber").value=a;var b=document.querySelector(".thumbnail.selected");b&&b.classList.remove("selected");b=document.getElementById("thumbnailContainer"+a);b.classList.add("selected");var c=PDFView.getVisibleThumbs(),d=c.views.length;if(0<d){var f=c.first.id,c=1<d?c.last.id:f;(a<=f||a>=c)&&scrollIntoView(b)}}document.getElementById("previous").disabled=1>=a;document.getElementById("next").disabled=
|
||||
a>=PDFView.pages.length},!0);window.addEventListener("DOMMouseScroll",function(a){if(a.ctrlKey){a.preventDefault();var b=a.detail;a=0<b?"zoomOut":"zoomIn";for(var c=0,b=Math.abs(b);c<b;c++)PDFView[a]()}else PDFView.isFullscreen&&PDFView.mouseScroll(-40*a.detail)},!1);window.addEventListener("mousemove",function(a){PDFView.isFullscreen&&PDFView.showPresentationControls()},!1);window.addEventListener("mousedown",function(a){PDFView.isFullscreen&&0===a.button&&(a.preventDefault(),PDFView.page++)},!1);
|
||||
window.addEventListener("keydown",function(a){var b=!1,c=(a.ctrlKey?1:0)|(a.altKey?2:0)|(a.shiftKey?4:0)|(a.metaKey?8:0);if(1==c||8==c)switch(a.keyCode){case 70:PDFView.supportsIntegratedFind||(PDFFindBar.toggle(),b=!0);break;case 61:case 107:case 187:case 171:PDFView.zoomIn();b=!0;break;case 173:case 109:case 189:PDFView.zoomOut();b=!0;break;case 48:case 96:PDFView.parseScale(DEFAULT_SCALE,!0),b=!0}if(1==c||8==c||5==c||12==c)switch(a.keyCode){case 71:PDFView.supportsIntegratedFind||(PDFFindBar.dispatchEvent("again",
|
||||
5==c||12==c),b=!0)}if(b)a.preventDefault();else{var d=document.activeElement;if(!d||!("INPUT"==d.tagName||"SELECT"==d.tagName)){for(var e=document.getElementById("toolbar");d;){if(d===e&&!PDFView.isFullscreen)return;d=d.parentNode}if(0==c)switch(a.keyCode){case 38:case 33:case 8:if(!PDFView.isFullscreen&&"page-fit"!==PDFView.currentScaleValue)break;case 37:if(PDFView.isHorizontalScrollbarEnabled)break;case 75:case 80:PDFView.page--;b=!0;break;case 40:case 34:case 32:if(!PDFView.isFullscreen&&"page-fit"!==
|
||||
PDFView.currentScaleValue)break;case 39:if(PDFView.isHorizontalScrollbarEnabled)break;case 74:case 78:PDFView.page++;b=!0;break;case 36:PDFView.isFullscreen&&(PDFView.page=1,b=!0);break;case 35:PDFView.isFullscreen&&(PDFView.page=PDFView.pdfDocument.numPages,b=!0);break;case 82:PDFView.rotatePages(90)}if(4==c)switch(a.keyCode){case 82:PDFView.rotatePages(-90)}b&&(a.preventDefault(),PDFView.clearMouseScrollState())}}});window.addEventListener("beforeprint",function(){PDFView.beforePrint()});
|
||||
window.addEventListener("afterprint",function(){PDFView.afterPrint()});(function(){function a(){!document.fullscreenElement&&(!document.mozFullScreen&&!document.webkitIsFullScreen)&&PDFView.exitFullscreen()}window.addEventListener("fullscreenchange",a,!1);window.addEventListener("mozfullscreenchange",a,!1);window.addEventListener("webkitfullscreenchange",a,!1)})();
|
||||
5==c||12==c),b=!0)}if(b)a.preventDefault();else{var d=document.activeElement;if(!d||"INPUT"!=d.tagName&&"SELECT"!=d.tagName){for(var f=document.getElementById("toolbar");d;){if(d===f&&!PDFView.isFullscreen)return;d=d.parentNode}if(0==c)switch(a.keyCode){case 38:case 33:case 8:if(!PDFView.isFullscreen&&"page-fit"!==PDFView.currentScaleValue)break;case 37:if(PDFView.isHorizontalScrollbarEnabled)break;case 75:case 80:PDFView.page--;b=!0;break;case 40:case 34:case 32:if(!PDFView.isFullscreen&&"page-fit"!==
|
||||
PDFView.currentScaleValue)break;case 39:if(PDFView.isHorizontalScrollbarEnabled)break;case 74:case 78:PDFView.page++;b=!0;break;case 36:PDFView.isFullscreen&&(PDFView.page=1,b=!0);break;case 35:PDFView.isFullscreen&&(PDFView.page=PDFView.pdfDocument.numPages,b=!0);break;case 82:PDFView.rotatePages(90)}if(4==c)switch(a.keyCode){case 82:PDFView.rotatePages(-90)}b&&(a.preventDefault(),PDFView.clearMouseScrollState())}}});window.addEventListener("beforeprint",function(a){PDFView.beforePrint()});
|
||||
window.addEventListener("afterprint",function(a){PDFView.afterPrint()});(function(){function a(a){document.fullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||PDFView.exitFullscreen()}window.addEventListener("fullscreenchange",a,!1);window.addEventListener("mozfullscreenchange",a,!1);window.addEventListener("webkitfullscreenchange",a,!1)})();
|
||||
|
|