From a8db45cddfcb3403b848c90be7b9f477848d1af3 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 8 Oct 2012 16:50:42 +0800 Subject: [PATCH 1/5] README --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e2a4ba0..d41535a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,5 @@ # pdf2html**EX** -### [**Donate Now**](http://coolwanglu.github.com/pdf2htmlEX/donate.html) - -### [**Feature Commission**](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ#wiki-feature_commission) are now accepted. - A beautiful demo is worth a thousand words: [**Typography**](http://coolwanglu.github.com/pdf2htmlEX/demo/geneve.html) [Original](https://github.com/raphink/geneve_1564/raw/master/geneve_1564.pdf) @@ -16,11 +12,6 @@ A beautiful demo is worth a thousand words: [**Chinese**](http://coolwanglu.github.com/pdf2htmlEX/demo/chn.html) [Original](http://files.cnblogs.com/phphuaibei/git%E6%90%AD%E5%BB%BA.pdf) - -**WINDOWS XP USERS: Please make sure ClearType is turned on** - -(Control Panel -> Display -> Appearance -> Effects -> "Use the following method to smooth edges of screen fonts" -> ClearType) - ## Introduction pdf2htmlEX renders PDF files in HTML, utilizing modern Web technologies, aims to provide an accuracy rendering, while keeping optimized for Web display. @@ -111,10 +102,16 @@ More info can be found on [the pdf2htmlEX page in TeX Wiki](http://oku.edu.mie-u ## FAQ * [Troubleshooting compilation errors](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ#wiki-compile) +* [The demo pages are ugly](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ#wiki-ugly) * [How can I help](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ#wiki-help) * [I want more features](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ#wiki-feature_commission) * [More](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ) + +**WINDOWS XP USERS: Please make sure ClearType is turned on** + +(Control Panel -> Display -> Appearance -> Effects -> "Use the following method to smooth edges of screen fonts" -> ClearType) + ## LICENSE GPLv2 & GPLv3 Dual licensed @@ -125,6 +122,8 @@ GPLv2 & GPLv3 Dual licensed **Font extraction, conversion or redistribution may be illegal, please check your local laws** +### [**Donate Now**](http://coolwanglu.github.com/pdf2htmlEX/donate.html) + ## Acknowledge pdf2htmlEX is made possible thanks to the following projects: From 3710f38e893435d824e4a78171bffc1c9cf0a594 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 8 Oct 2012 17:02:34 +0800 Subject: [PATCH 2/5] update README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d41535a..79b89fb 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,8 @@ More info can be found on [the pdf2htmlEX page in TeX Wiki](http://oku.edu.mie-u #### Compiling + git clone --depth 1 git://github.com/coolwanglu/pdf2htmlEX.git + cd pdf2htmlEX cmake . && make && sudo make install ## Usage From b3dabae52a2ecd5949b6d1ef9c8e2c7657594e96 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 8 Oct 2012 20:16:43 +0800 Subject: [PATCH 3/5] squeeze-widt-glyph is now default --- pdf2htmlEX.1.in | 2 +- src/pdf2htmlEX.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in index b0da584..9775233 100644 --- a/pdf2htmlEX.1.in +++ b/pdf2htmlEX.1.in @@ -120,7 +120,7 @@ Turn it on if space characters are not displayed correctly, or you want to remov .B --stretch-narrow-glyph <0|1> (Default: 0) If set to 1, glyphs narrower than described in PDF will be strecth; otherwise space will be padded to the right of the glyphs .TP -.B --squeeze_wide_glyph <0|1> (Default: 0) +.B --squeeze_wide_glyph <0|1> (Default: 1) If set to 1, glyphs wider than described in PDF will be squeezed; otherwise it will be truncated. .TP .B --remove-unused-glyph <0|1> (Default: 1) diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index f0588a9..f56b778 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -82,7 +82,7 @@ void parse_options (int argc, char **argv) .add("tounicode", ¶m.tounicode, 0, "Specify how to deal with ToUnicode map, 0 for auto, 1 for forced, -1 for disabled") .add("space-as-offset", ¶m.space_as_offset, 0, "treat space characters as offsets") .add("stretch-narrow-glyph", ¶m.stretch_narrow_glyph, 0, "stretch narrow glyphs instead of padding space") - .add("squeeze-wide-glyph", ¶m.squeeze_wide_glyph, 0, "squeeze wide glyphs instead of truncating") + .add("squeeze-wide-glyph", ¶m.squeeze_wide_glyph, 1, "squeeze wide glyphs instead of truncating") .add("remove-unused-glyph", ¶m.remove_unused_glyph, 1, "remove unused glyphs in embedded fonts") .add("font-suffix", ¶m.font_suffix, ".ttf", "suffix for extracted font files") From 29795ff056df92aa63305f93e7d7b7c4b9550de7 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 8 Oct 2012 20:19:38 +0800 Subject: [PATCH 4/5] TODO --- TODO | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/TODO b/TODO index 88ec458..37107ed 100644 --- a/TODO +++ b/TODO @@ -14,10 +14,9 @@ position history stack (popstate) try harder finding glyph names (using fontforge) for CID Type 0 rename single-html -> embed-font/image/css ... - merge sub/sup into one line precise link dest: zoom - +multiple charcode mapped to a same glyph ==Future== argument auto-completion @@ -27,5 +26,4 @@ detect duplicate base fonts when embedding disable selection if we know unicode is wrong combine lines (unwarp) Printing -multiple charcode mapped to a same glyph check if we can add information to the font, and let browsers show ligatures automatically From 0dae3cc7583f61eea15e5454ae4dd6b899e39bf8 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 11 Oct 2012 03:41:58 +0800 Subject: [PATCH 5/5] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 79b89fb..c8c689e 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ A beautiful demo is worth a thousand words: -[**Typography**](http://coolwanglu.github.com/pdf2htmlEX/demo/geneve.html) [Original](https://github.com/raphink/geneve_1564/raw/master/geneve_1564.pdf) +- [**Typography**](http://coolwanglu.github.com/pdf2htmlEX/demo/geneve.html) [Original](https://github.com/raphink/geneve_1564/raw/master/geneve_1564.pdf) -[**Full Circle Magazine(large)**](http://coolwanglu.github.com/pdf2htmlEX/demo/issue65_en.html) [Sample](http://coolwanglu.github.com/pdf2htmlEX/demo/issue65_en_sample.html) [Original](http://dl.fullcirclemagazine.org/issue65_en.pdf) +- [**Full Circle Magazine(large)**](http://coolwanglu.github.com/pdf2htmlEX/demo/issue65_en.html) [Sample](http://coolwanglu.github.com/pdf2htmlEX/demo/issue65_en_sample.html) [Original](http://dl.fullcirclemagazine.org/issue65_en.pdf) -[**Formulas**](http://coolwanglu.github.com/pdf2htmlEX/demo/cheat.html) [Original](http://www.tug.org/texshowcase/cheat.pdf) +- [**Formulas**](http://coolwanglu.github.com/pdf2htmlEX/demo/cheat.html) [Original](http://www.tug.org/texshowcase/cheat.pdf) -[**Scientific Paper**](http://coolwanglu.github.com/pdf2htmlEX/demo/demo.html) [Original](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.148.349&rep=rep1&type=pdf) +- [**Scientific Paper**](http://coolwanglu.github.com/pdf2htmlEX/demo/demo.html) [Original](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.148.349&rep=rep1&type=pdf) -[**Chinese**](http://coolwanglu.github.com/pdf2htmlEX/demo/chn.html) [Original](http://files.cnblogs.com/phphuaibei/git%E6%90%AD%E5%BB%BA.pdf) +- [**Chinese**](http://coolwanglu.github.com/pdf2htmlEX/demo/chn.html) [Original](http://files.cnblogs.com/phphuaibei/git%E6%90%AD%E5%BB%BA.pdf) ## Introduction