From 07a24c55896f533fa85a297bf232b75ba7222e7a Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Thu, 28 Jun 2012 07:51:18 -0500 Subject: [PATCH 1/4] Warn instead of fail for CID fonts --- src/fonts.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fonts.js b/src/fonts.js index e340ab3d9..fd5c72dd2 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -4363,8 +4363,10 @@ var CFFParser = (function CFFParserClosure() { // DirectWrite does not like CID fonts data. Trying to convert/flatten // the font data and remove CID properties. - if (cff.fdArray.length !== 1) - error('Unable to normalize CID font in CFF data'); + if (cff.fdArray.length !== 1) { + warn('Unable to normalize CID font in CFF data -- using font as is'); + return cff; + } var fontDict = cff.fdArray[0]; fontDict.setByKey(17, topDict.getByName('CharStrings')); From f46b8b98bad3f133fc7fa0e3a86a3eeb2713a2f4 Mon Sep 17 00:00:00 2001 From: Adolfo Jayme Barrientos Date: Wed, 4 Jul 2012 22:32:15 -0500 Subject: [PATCH 2/4] Add Spanish localization --- l10n/es/metadata.inc | 8 ++++ l10n/es/viewer.properties | 89 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 l10n/es/metadata.inc create mode 100644 l10n/es/viewer.properties diff --git a/l10n/es/metadata.inc b/l10n/es/metadata.inc new file mode 100644 index 000000000..9cc5ed63d --- /dev/null +++ b/l10n/es/metadata.inc @@ -0,0 +1,8 @@ + + + es + Visor de PDF + Usa HTML5 para mostrar archivos PDF directamente en Firefox. + + + diff --git a/l10n/es/viewer.properties b/l10n/es/viewer.properties new file mode 100644 index 000000000..6429ba001 --- /dev/null +++ b/l10n/es/viewer.properties @@ -0,0 +1,89 @@ +# 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=of {{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 +open_file.title=Abrir archivo +open_file_label=Abrir +download.title=Descargar +download_label=Descargar +bookmark.title=Vista actual (copiar o abrir 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 +search_panel.title=Buscar en el documento +search_panel_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}} + +# Search panel button title and messages +search=Buscar +search_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=Compil. 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=An error occurred while rendering the page. + +# 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 al cargar 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 por una contraseña: From 9e8838756b37d88a83ced30c7535290a503249ab Mon Sep 17 00:00:00 2001 From: Adolfo Jayme Barrientos Date: Wed, 4 Jul 2012 22:38:43 -0500 Subject: [PATCH 3/4] Small fix --- l10n/es/viewer.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n/es/viewer.properties b/l10n/es/viewer.properties index 6429ba001..90bf19b93 100644 --- a/l10n/es/viewer.properties +++ b/l10n/es/viewer.properties @@ -9,7 +9,7 @@ next_label=Siguiente # Do not translate "{{pageCount}}", it will be substituted with a number # representing the total number of pages. page_label=Página: -page_of=of {{pageCount}} +page_of=de {{pageCount}} zoom_out.title=Reducir zoom_out_label=Reducir From 9762275b44ea393068371d02463c6c8bd10c8ee7 Mon Sep 17 00:00:00 2001 From: Adolfo Jayme Barrientos Date: Wed, 4 Jul 2012 22:44:22 -0500 Subject: [PATCH 4/4] Moar small fixes Dah. --- l10n/es/viewer.properties | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/l10n/es/viewer.properties b/l10n/es/viewer.properties index 90bf19b93..8e7080d03 100644 --- a/l10n/es/viewer.properties +++ b/l10n/es/viewer.properties @@ -17,7 +17,7 @@ zoom_in.title=Ampliar zoom_in_label=Ampliar zoom.title=Ampliación print.title=Imprimir -print_label=imprimir +print_label=Imprimir open_file.title=Abrir archivo open_file_label=Abrir download.title=Descargar @@ -58,7 +58,7 @@ 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=Compil. PDF.JS: {{build}} +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}} @@ -69,7 +69,7 @@ error_stack=Pila: {{stack}} error_file=Archivo: {{file}} # LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number error_line=Línea: {{line}} -rendering_error=An error occurred while rendering the page. +rendering_error=Ocurrió un error al renderizar la página. # Predefined zoom values page_scale_width=Anchura de página @@ -86,4 +86,4 @@ loading_error=Ocurrió un error al cargar el PDF. # 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 por una contraseña: +request_password=El PDF está protegido con una contraseña: