From b1e4d9c4ef0d66905fff2a00fbf711ae9277aa37 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Fri, 1 Jan 2016 12:02:27 +0100 Subject: [PATCH] fix typos --- TODO | 2 +- pdf2htmlEX.1.in | 2 +- share/pdf2htmlEX.js.in | 4 ++-- src/HTMLRenderer/font.cc | 4 ++-- src/util/unicode.h | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/TODO b/TODO index 928f339..02d500d 100644 --- a/TODO +++ b/TODO @@ -45,7 +45,7 @@ Not enough motivation/Lazy - multiple charcode mapped to a same glyph - minimum line width of css drawing - separate classes for annotations (such that we don't have to hide all css drawings for printing) - - Widget Annoataion + - Widget Annotation - handle large negative letter space - optimization levels diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in index 9c9976d..7df4614 100644 --- a/pdf2htmlEX.1.in +++ b/pdf2htmlEX.1.in @@ -311,7 +311,7 @@ Print debug information. .TP .B \-\-proof <0|1|2> (Default: 0) -Output a proof version. If a positive value is specified, texts are drawn on both text layer and background image for comparision. +Output a proof version. If a positive value is specified, texts are drawn on both text layer and background image for comparison. If 2 is specified, texts on background are in different colors. If png/jpg background format is used, a higher hdpi/vdpi (e.g. 288) is recommended for legibility. diff --git a/share/pdf2htmlEX.js.in b/share/pdf2htmlEX.js.in index 37f1008..518eb5e 100644 --- a/share/pdf2htmlEX.js.in +++ b/share/pdf2htmlEX.js.in @@ -818,7 +818,7 @@ Viewer.prototype = { }, /** - * @param{string} detail_str may come from user provided hashtag, need sanitzing + * @param{string} detail_str may come from user provided hashtag, need sanitizing * @param{Page=} src_page page containing the source event (e.g. link) */ navigate_to_dest : function(detail_str, src_page) { @@ -901,7 +901,7 @@ Viewer.prototype = { var self = this; /** - * page should of type Page + * page should have type Page * @param{Page} page */ var transform_and_scroll = function(page) { diff --git a/src/HTMLRenderer/font.cc b/src/HTMLRenderer/font.cc index 10ff215..0f4680a 100644 --- a/src/HTMLRenderer/font.cc +++ b/src/HTMLRenderer/font.cc @@ -445,7 +445,7 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo * re-encoding the font by glyph names * * for 8bit + TrueType - * sort the glpyhs as the original order, and load the code2GID table + * sort the glyphs as the original order, and load the code2GID table * later we will map GID (instead of char code) to Unicode * * for CID + nonTrueType @@ -884,7 +884,7 @@ const FontInfo * HTMLRenderer::install_font(GfxFont * font) /* * The 2nd parameter of locateFont should be true only for PS * which does not make much sense in our case - * If we specify gFalse here, font_loc->locaType cannot be gfxFontLocResident + * If we specify gFalse here, font_loc->locType cannot be gfxFontLocResident */ if(auto * font_loc = font->locateFont(xref, nullptr)) { diff --git a/src/util/unicode.h b/src/util/unicode.h index 2100695..6e287b1 100644 --- a/src/util/unicode.h +++ b/src/util/unicode.h @@ -17,7 +17,7 @@ namespace pdf2htmlEX { * Check whether a unicode character is illegal for the output HTML. * Unlike PDF readers, browsers has special treatments for such characters (normally treated as * zero-width space), regardless of metrics and glyphs provided by fonts. So these characters - * should be mapped to unicode private area to "cheat" browsers, at the cost of loosing actual + * should be mapped to unicode private area to "cheat" browsers, at the cost of losing actual * unicode values in the HTML. * * The following chart shows illegal characters in HTML by webkit, mozilla, and pdf2htmlEX (p2h).