Skip to content

Commit

Permalink
Update PDF.js to v3.11.174
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuratak committed Sep 28, 2023
1 parent 7da0c12 commit 277d012
Show file tree
Hide file tree
Showing 49 changed files with 1,983 additions and 483 deletions.
4 changes: 2 additions & 2 deletions dev/viewer/viewer.html.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- ../tmp/pdfjs-3.10/web/viewer.html 2023-08-27 17:53:36.000000000 +0900
+++ viewer/viewer.html 2023-09-02 10:03:30.000000000 +0900
--- ../tmp/pdfjs-3.11/web/viewer.html 2023-09-24 19:37:10.000000000 +0900
+++ viewer/viewer.html 2023-09-28 07:53:48.000000000 +0900
@@ -25,18 +25,25 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
Expand Down
20 changes: 10 additions & 10 deletions dev/viewer/viewer.js.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- ../tmp/pdfjs-3.10/web/viewer.js 2023-08-27 17:53:52.000000000 +0900
+++ viewer/viewer.js 2023-09-02 10:04:39.000000000 +0900
--- ../tmp/pdfjs-3.11/web/viewer.js 2023-09-24 19:37:24.000000000 +0900
+++ viewer/viewer.js 2023-09-28 07:56:46.000000000 +0900
@@ -43,10 +43,10 @@
exports.GenericCom = GenericCom;
class GenericPreferences extends _preferences.BasePreferences {
Expand All @@ -13,7 +13,7 @@
}
}
class GenericExternalServices extends _app.DefaultExternalServices {
@@ -680,7 +680,7 @@
@@ -683,7 +683,7 @@
title = url;
}
}
Expand All @@ -22,7 +22,7 @@
},
setTitle(title = this._title) {
this._title = title;
@@ -4889,7 +4889,7 @@
@@ -5155,7 +5155,7 @@
};
exports.FindState = FindState;
const FIND_TIMEOUT = 250;
Expand All @@ -31,7 +31,7 @@
const MATCH_SCROLL_OFFSET_LEFT = -400;
const CHARACTERS_TO_NORMALIZE = {
"\u2010": "-",
@@ -7489,7 +7489,7 @@
@@ -7755,7 +7755,7 @@
this.#dispatchEvent();
return;
}
Expand All @@ -40,7 +40,7 @@
if (!this.isInitialEventDispatched) {
this.#dispatchEvent();
}
@@ -8387,7 +8387,7 @@
@@ -8655,7 +8655,7 @@
this.#annotationEditorMode = options.annotationEditorMode ?? _pdfjsLib.AnnotationEditorType.NONE;
this.imageResourcesPath = options.imageResourcesPath || "";
this.enablePrintAutoRotate = options.enablePrintAutoRotate || false;
Expand All @@ -49,7 +49,7 @@
if (options.useOnlyCssZoom) {
console.error("useOnlyCssZoom was removed, please use `maxCanvasPixels = 0` instead.");
options.maxCanvasPixels = 0;
@@ -12232,10 +12232,10 @@
@@ -12516,10 +12516,10 @@
}
async _writeToStorage() {
const databaseStr = JSON.stringify(this.database);
Expand All @@ -62,7 +62,7 @@
}
async set(name, val) {
await this._initializedPromise;
@@ -13081,7 +13081,7 @@
@@ -13365,7 +13365,7 @@
function getL10nData(key, args, fallback) {
var data = gL10nData[key];
if (!data) {
Expand All @@ -71,7 +71,7 @@
if (!fallback) {
return null;
}
@@ -13517,6 +13517,9 @@
@@ -13801,6 +13801,9 @@
}
window.addEventListener("keydown", function (event) {
if (event.keyCode === 80 && (event.ctrlKey || event.metaKey) && !event.altKey && (!event.shiftKey || window.chrome || window.opera)) {
Expand All @@ -81,7 +81,7 @@
window.print();
event.preventDefault();
event.stopImmediatePropagation();
@@ -13789,7 +13792,7 @@
@@ -14081,7 +14084,7 @@
try {
parent.document.dispatchEvent(event);
} catch (ex) {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@
"latex-utensils": "6.2.0",
"mathjax-full": "3.2.2",
"micromatch": "4.0.5",
"pdfjs-dist": "3.10.111",
"pdfjs-dist": "3.11.174",
"workerpool": "6.5.0",
"ws": "8.14.2"
},
Expand Down
3 changes: 3 additions & 0 deletions viewer/images/altText_add.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions viewer/images/altText_done.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 17 additions & 3 deletions viewer/locale/cs/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ editor_free_text2_label=Text
editor_ink2.title=Kreslení
editor_ink2_label=Kreslení

editor_stamp.title=Přidat obrázek
editor_stamp_label=Přidat obrázek

editor_stamp1.title=Přidání či úprava obrázků
editor_stamp1_label=Přidání či úprava obrázků

Expand All @@ -268,3 +265,20 @@ editor_stamp_add_image.title=Přidat obrázek
editor_free_text2_aria_label=Textový editor
editor_ink2_aria_label=Editor kreslení
editor_ink_canvas_aria_label=Uživatelem vytvořený obrázek

# Alt-text dialog
# LOCALIZATION NOTE (editor_alt_text_button_label): Alternative text (alt text) helps
# when people can't see the image.
editor_alt_text_button_label=Náhradní popis
editor_alt_text_edit_button_label=Upravit náhradní popis
editor_alt_text_dialog_label=Vyberte možnost
editor_alt_text_dialog_description=Náhradní popis pomáhá, když lidé obrázek nevidí nebo když se nenačítá.
editor_alt_text_add_description_label=Přidat popis
editor_alt_text_add_description_description=Snažte se o 1-2 věty, které popisují předmět, prostředí nebo činnosti.
editor_alt_text_mark_decorative_label=Označit jako dekorativní
editor_alt_text_mark_decorative_description=Používá se pro okrasné obrázky, jako jsou rámečky nebo vodoznaky.
editor_alt_text_cancel_button=Zrušit
editor_alt_text_save_button=Uložit
editor_alt_text_decorative_tooltip=Označen jako dekorativní
# This is a placeholder for the alt text input area
editor_alt_text_textarea.placeholder=Například: “Mladý muž si sedá ke stolu, aby se najedl.”
20 changes: 17 additions & 3 deletions viewer/locale/dsb/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ editor_free_text2_label=Tekst
editor_ink2.title=Kresliś
editor_ink2_label=Kresliś

editor_stamp.title=Wobraz pśidaś
editor_stamp_label=Wobraz pśidaś

editor_stamp1.title=Wobraze pśidaś abo wobźěłaś
editor_stamp1_label=Wobraze pśidaś abo wobźěłaś

Expand All @@ -268,3 +265,20 @@ editor_stamp_add_image.title=Wobraz pśidaś
editor_free_text2_aria_label=Tekstowy editor
editor_ink2_aria_label=Kresleński editor
editor_ink_canvas_aria_label=Wobraz napórany wót wužywarja

# Alt-text dialog
# LOCALIZATION NOTE (editor_alt_text_button_label): Alternative text (alt text) helps
# when people can't see the image.
editor_alt_text_button_label=Alternatiwny tekst
editor_alt_text_edit_button_label=Alternatiwny tekst wobźěłaś
editor_alt_text_dialog_label=Nastajenje wubraś
editor_alt_text_dialog_description=Alternatiwny tekst pomaga, gaž luźe njamógu wobraz wiźeś abo gaž se wobraz njezacytajo.
editor_alt_text_add_description_label=Wopisanje pśidaś
editor_alt_text_add_description_description=Pišćo 1 sadu abo 2 saźe, kótarejž temu, nastajenje abo akcije wopisujotej.
editor_alt_text_mark_decorative_label=Ako dekoratiwny markěrowaś
editor_alt_text_mark_decorative_description=To se za pyšnjece wobraze wužywa, na pśikład ramiki abo wódowe znamjenja.
editor_alt_text_cancel_button=Pśetergnuś
editor_alt_text_save_button=Składowaś
editor_alt_text_decorative_tooltip=Ako dekoratiwny markěrowany
# This is a placeholder for the alt text input area
editor_alt_text_textarea.placeholder=Na pśikład, „Młody muski za blidom sejźi, aby jěź jědł“
6 changes: 6 additions & 0 deletions viewer/locale/el/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ editor_ink2_label=Σχέδιο
editor_stamp.title=Προσθήκη εικόνας
editor_stamp_label=Προσθήκη εικόνας

editor_stamp1.title=Προσθήκη ή επεξεργασία εικόνων
editor_stamp1_label=Προσθήκη ή επεξεργασία εικόνων

free_text2_default_content=Ξεκινήστε να πληκτρολογείτε…

# Editor Parameters
Expand All @@ -258,6 +261,9 @@ editor_ink_color=Χρώμα
editor_ink_thickness=Πάχος
editor_ink_opacity=Αδιαφάνεια

editor_stamp_add_image_label=Προσθήκη εικόνας
editor_stamp_add_image.title=Προσθήκη εικόνας

# Editor aria
editor_free_text2_aria_label=Επεξεργασία κειμένου
editor_ink2_aria_label=Επεξεργασία σχεδίων
Expand Down
20 changes: 18 additions & 2 deletions viewer/locale/en-CA/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,17 @@ print.title=Print
print_label=Print
save.title=Save
save_label=Save

# LOCALIZATION NOTE (download_button.title): used in Firefox for Android as a tooltip for the download button (“download” is a verb).
download_button.title=Download
# LOCALIZATION NOTE (download_button_label): used in Firefox for Android as a label for the download button (“download” is a verb).
# Length of the translation matters since we are in a mobile context, with limited screen estate.
download_button_label=Download
bookmark1.title=Current Page (View URL from Current Page)
bookmark1_label=Current Page
# LOCALIZATION NOTE (open_in_app.title): This string is used in Firefox for Android.
open_in_app.title=Open in app
# LOCALIZATION NOTE (open_in_app_label): This string is used in Firefox for Android. Length of the translation matters since we are in a mobile context, with limited screen estate.
open_in_app_label=Open in app

# Secondary toolbar and context menu
tools.title=Tools
Expand Down Expand Up @@ -212,7 +220,6 @@ loading_error=An error occurred while loading the PDF.
invalid_file_error=Invalid or corrupted PDF file.
missing_file_error=Missing PDF file.
unexpected_response_error=Unexpected server response.

rendering_error=An error occurred while rendering the page.

# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
Expand All @@ -239,6 +246,12 @@ editor_free_text2_label=Text
editor_ink2.title=Draw
editor_ink2_label=Draw

editor_stamp.title=Add an image
editor_stamp_label=Add an image

editor_stamp1.title=Add or edit images
editor_stamp1_label=Add or edit images

free_text2_default_content=Start typing…

# Editor Parameters
Expand All @@ -248,6 +261,9 @@ editor_ink_color=Colour
editor_ink_thickness=Thickness
editor_ink_opacity=Opacity

editor_stamp_add_image_label=Add image
editor_stamp_add_image.title=Add image

# Editor aria
editor_free_text2_aria_label=Text Editor
editor_ink2_aria_label=Draw Editor
Expand Down
20 changes: 17 additions & 3 deletions viewer/locale/en-GB/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ editor_free_text2_label=Text
editor_ink2.title=Draw
editor_ink2_label=Draw

editor_stamp.title=Add an image
editor_stamp_label=Add an image

editor_stamp1.title=Add or edit images
editor_stamp1_label=Add or edit images

Expand All @@ -268,3 +265,20 @@ editor_stamp_add_image.title=Add image
editor_free_text2_aria_label=Text Editor
editor_ink2_aria_label=Draw Editor
editor_ink_canvas_aria_label=User-created image

# Alt-text dialog
# LOCALIZATION NOTE (editor_alt_text_button_label): Alternative text (alt text) helps
# when people can't see the image.
editor_alt_text_button_label=Alt text
editor_alt_text_edit_button_label=Edit alt text
editor_alt_text_dialog_label=Choose an option
editor_alt_text_dialog_description=Alt text (alternative text) helps when people can’t see the image or when it doesn’t load.
editor_alt_text_add_description_label=Add a description
editor_alt_text_add_description_description=Aim for 1-2 sentences that describe the subject, setting, or actions.
editor_alt_text_mark_decorative_label=Mark as decorative
editor_alt_text_mark_decorative_description=This is used for ornamental images, like borders or watermarks.
editor_alt_text_cancel_button=Cancel
editor_alt_text_save_button=Save
editor_alt_text_decorative_tooltip=Marked as decorative
# This is a placeholder for the alt text input area
editor_alt_text_textarea.placeholder=For example, “A young man sits down at a table to eat a meal”
17 changes: 17 additions & 0 deletions viewer/locale/en-US/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,20 @@ editor_stamp_add_image.title=Add image
editor_free_text2_aria_label=Text Editor
editor_ink2_aria_label=Draw Editor
editor_ink_canvas_aria_label=User-created image

# Alt-text dialog
# LOCALIZATION NOTE (editor_alt_text_button_label): Alternative text (alt text) helps
# when people can't see the image.
editor_alt_text_button_label=Alt text
editor_alt_text_edit_button_label=Edit alt text
editor_alt_text_dialog_label=Choose an option
editor_alt_text_dialog_description=Alt text (alternative text) helps when people can’t see the image or when it doesn’t load.
editor_alt_text_add_description_label=Add a description
editor_alt_text_add_description_description=Aim for 1-2 sentences that describe the subject, setting, or actions.
editor_alt_text_mark_decorative_label=Mark as decorative
editor_alt_text_mark_decorative_description=This is used for ornamental images, like borders or watermarks.
editor_alt_text_cancel_button=Cancel
editor_alt_text_save_button=Save
editor_alt_text_decorative_tooltip=Marked as decorative
# This is a placeholder for the alt text input area
editor_alt_text_textarea.placeholder=For example, “A young man sits down at a table to eat a meal”
20 changes: 17 additions & 3 deletions viewer/locale/es-AR/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ editor_free_text2_label=Texto
editor_ink2.title=Dibujar
editor_ink2_label=Dibujar

editor_stamp.title=Agregar una imagen
editor_stamp_label=Agregar una imagen

editor_stamp1.title=Agregar o editar imágenes
editor_stamp1_label=Agregar o editar imágenes

Expand All @@ -268,3 +265,20 @@ editor_stamp_add_image.title=Agregar una imagen
editor_free_text2_aria_label=Editor de texto
editor_ink2_aria_label=Editor de dibujos
editor_ink_canvas_aria_label=Imagen creada por el usuario

# Alt-text dialog
# LOCALIZATION NOTE (editor_alt_text_button_label): Alternative text (alt text) helps
# when people can't see the image.
editor_alt_text_button_label=Texto alternativo
editor_alt_text_edit_button_label=Editar el texto alternativo
editor_alt_text_dialog_label=Eligir una opción
editor_alt_text_dialog_description=El texto alternativo (texto alternativo) ayuda cuando las personas no pueden ver la imagen o cuando no se carga.
editor_alt_text_add_description_label=Agregar una descripción
editor_alt_text_add_description_description=Intente escribir 1 o 2 oraciones que describan el tema, el entorno o las acciones.
editor_alt_text_mark_decorative_label=Marcar como decorativo
editor_alt_text_mark_decorative_description=Esto se usa para imágenes ornamentales, como bordes o marcas de agua.
editor_alt_text_cancel_button=Cancelar
editor_alt_text_save_button=Guardar
editor_alt_text_decorative_tooltip=Marcado como decorativo
# This is a placeholder for the alt text input area
editor_alt_text_textarea.placeholder=Por ejemplo: “Un joven se sienta a la mesa a comer”
20 changes: 17 additions & 3 deletions viewer/locale/es-CL/viewer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ editor_free_text2_label=Texto
editor_ink2.title=Dibujar
editor_ink2_label=Dibujar

editor_stamp.title=Añadir una imagen
editor_stamp_label=Añadir una imagen

editor_stamp1.title=Añadir o editar imágenes
editor_stamp1_label=Añadir o editar imágenes

Expand All @@ -268,3 +265,20 @@ editor_stamp_add_image.title=Añadir imagen
editor_free_text2_aria_label=Editor de texto
editor_ink2_aria_label=Editor de dibujos
editor_ink_canvas_aria_label=Imagen creada por el usuario

# Alt-text dialog
# LOCALIZATION NOTE (editor_alt_text_button_label): Alternative text (alt text) helps
# when people can't see the image.
editor_alt_text_button_label=Texto alternativo
editor_alt_text_edit_button_label=Editar texto alternativo
editor_alt_text_dialog_label=Elige una opción
editor_alt_text_dialog_description=El texto alternativo (alt text) ayuda cuando las personas no pueden ver la imagen o cuando no se carga.
editor_alt_text_add_description_label=Añade una descripción
editor_alt_text_add_description_description=Intenta escribir 1 o 2 oraciones que describan el tema, el ambiente o las acciones.
editor_alt_text_mark_decorative_label=Marcar como decorativa
editor_alt_text_mark_decorative_description=Se utiliza para imágenes ornamentales, como bordes o marcas de agua.
editor_alt_text_cancel_button=Cancelar
editor_alt_text_save_button=Guardar
editor_alt_text_decorative_tooltip=Marcada como decorativa
# This is a placeholder for the alt text input area
editor_alt_text_textarea.placeholder=Por ejemplo: “Un joven se sienta a la mesa a comer”
Loading

0 comments on commit 277d012

Please sign in to comment.