Skip to content

Commit ce0fa97

Browse files
committed
Merge pull request coolwanglu#598 from jwilk/spelling
fix typos
2 parents c9235e5 + b1e4d9c commit ce0fa97

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

TODO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Not enough motivation/Lazy
4545
- multiple charcode mapped to a same glyph
4646
- minimum line width of css drawing
4747
- separate classes for annotations (such that we don't have to hide all css drawings for printing)
48-
- Widget Annoataion
48+
- Widget Annotation
4949
- handle large negative letter space
5050
- optimization levels
5151

pdf2htmlEX.1.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Print debug information.
311311

312312
.TP
313313
.B \-\-proof <0|1|2> (Default: 0)
314-
Output a proof version. If a positive value is specified, texts are drawn on both text layer and background image for comparision.
314+
Output a proof version. If a positive value is specified, texts are drawn on both text layer and background image for comparison.
315315
If 2 is specified, texts on background are in different colors. If png/jpg background format is used,
316316
a higher hdpi/vdpi (e.g. 288) is recommended for legibility.
317317

share/pdf2htmlEX.js.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ Viewer.prototype = {
818818
},
819819

820820
/**
821-
* @param{string} detail_str may come from user provided hashtag, need sanitzing
821+
* @param{string} detail_str may come from user provided hashtag, need sanitizing
822822
* @param{Page=} src_page page containing the source event (e.g. link)
823823
*/
824824
navigate_to_dest : function(detail_str, src_page) {
@@ -901,7 +901,7 @@ Viewer.prototype = {
901901

902902
var self = this;
903903
/**
904-
* page should of type Page
904+
* page should have type Page
905905
* @param{Page} page
906906
*/
907907
var transform_and_scroll = function(page) {

src/HTMLRenderer/font.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
445445
* re-encoding the font by glyph names
446446
*
447447
* for 8bit + TrueType
448-
* sort the glpyhs as the original order, and load the code2GID table
448+
* sort the glyphs as the original order, and load the code2GID table
449449
* later we will map GID (instead of char code) to Unicode
450450
*
451451
* for CID + nonTrueType
@@ -884,7 +884,7 @@ const FontInfo * HTMLRenderer::install_font(GfxFont * font)
884884
/*
885885
* The 2nd parameter of locateFont should be true only for PS
886886
* which does not make much sense in our case
887-
* If we specify gFalse here, font_loc->locaType cannot be gfxFontLocResident
887+
* If we specify gFalse here, font_loc->locType cannot be gfxFontLocResident
888888
*/
889889
if(auto * font_loc = font->locateFont(xref, nullptr))
890890
{

src/util/unicode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace pdf2htmlEX {
1717
* Check whether a unicode character is illegal for the output HTML.
1818
* Unlike PDF readers, browsers has special treatments for such characters (normally treated as
1919
* zero-width space), regardless of metrics and glyphs provided by fonts. So these characters
20-
* should be mapped to unicode private area to "cheat" browsers, at the cost of loosing actual
20+
* should be mapped to unicode private area to "cheat" browsers, at the cost of losing actual
2121
* unicode values in the HTML.
2222
*
2323
* The following chart shows illegal characters in HTML by webkit, mozilla, and pdf2htmlEX (p2h).

0 commit comments

Comments
 (0)