Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilk committed Jan 1, 2016
1 parent c9235e5 commit b1e4d9c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion pdf2htmlEX.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions share/pdf2htmlEX.js.in
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/HTMLRenderer/font.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
{
Expand Down
2 changes: 1 addition & 1 deletion src/util/unicode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit b1e4d9c

Please sign in to comment.