HNHacker News
TopNewBestAskShowJobs

coolwanglu

191 karma · joined September 16, 2012

https://wang-lu.com
submissionscomments
coolwanglu··on BrowserHack: NetHack ported to the web
The UI is mostly finished. How does the current version look?
coolwanglu··on BrowserHack: NetHack ported to the web
Try typing this in the browser console (might need to reload the game first)

nethack.apply_tileset('http://cook.web.eschelon.com/pictures/geoduck20x12.bmp', 12, 20)

I felt that a complete ASCII port worth a separate project, yet it might not be that interesting as we've already got NAO.

But if you guys feel that a ASCII tileset is ok, I'm happy to add it. How about this smaller version?

coolwanglu··on Vim.js – JavaScript port of Vim
Hi, this could be what you need :) https://github.com/kripken/emscripten/wiki/Asyncify
coolwanglu··on Plans for Vim 7.4
Hmm, the signature looks interesting.
coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
um? why?
coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
MF uses pdf2htmlEX :) And it also provides public folder and public dropbox <- I really like that.

This means that you can create one of your own.

coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
It's for embedding, when you want to control the document or access the content.

Say you have a resume written in LaTeX and you want to insert Google Analytics inside?

coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
Hey thanks for the info!

2nd & 3rd are in the future plan, as I'm still working on accuracy and speed. And #115(https://github.com/coolwanglu/pdf2htmlEX/issues/115) is about the 2nd issue.

About the first one, I've not got an elegant solution yet, maybe a CSS file per page?

Please file new issues at GitHub if you think it's necessary :)

coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
Right, that is in the schedule, just heard enough complains, in a good way.
coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
Yes, actually they had this kind of plan, but I am not sure how it has been going.

It would be definitely interesting in that way, but in that case it may not be worth it to rewrite everything in JS.

coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
It's still a startup, so currently it's focused on accurate rendering, and fast speed(which is not achieved yet so far).

Features about recognition would be planned in the future, usually PDF viewers do not recognize too many things, do they? :)

coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
Usually I don't use social services, at least not "socially" (e.g. twitter as public text messaging). IMHO whether the service is crap or not, depends on what kind of stuff that it encourages you to do, either finding useful information, or playing boring games and pay for higher rankings.

Still like old Google Reader with its OLD social features.

coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
You don't want to rely on the computing power at the client side, do you? :)
coolwanglu··on Pdf2htmlEX – Convert PDF to HTML without losing text or format
I heard that with careful optimization on the server side and a clever JS may solve this. So far the default UI just demostrates the ability of reading-while-downloading.

The idea is that now the document becomes more controllable and accessible, say you can put Google Analytics in your resume written in LaTeX; or maybe an social reading service, where you can comment, annotate and share.

Unlike PDF viewers, web browers are never optimized for this kind of messy inputs. The next version of pdf2htmlEX will be focused on optimizations, e.g. smaller size of background images, hopefully that would help.

coolwanglu··on Obscure C++ Features
Oh I just love C++ better!
coolwanglu··on Oneko: The cat chasing the mouse (cursor)
I wonder have long will they get to know this stuff.
coolwanglu··on PyPy's Speed Center
I wonder if CPython will have JIT in the future
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
The compiling problem should have been fixed. Could you please try the latest master branch, see if it works well or maybe fail at one assertion?
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
OCR is beyond the scope of pdf2htmlEX I'm just trying to find out the real meaning of the glyphs through glyph names.

Actually usually you should be able to select/copy text without problem, if there's no type 0 fonts.

coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
If you use HTML inspectors and remove that piece of mess, you'll find text on the html also disappear.

It's the problem of font encoding, which is one of the difference between PDF and HTML. Sometimes you cannot copy the text out of PDF, but you can read correctly.

I'm working on that problem. I made things like this so far because I think visual accuracy is more important.

coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
Usually I built from git. There has been some improvement relevant to pdf2htmlEX during the path month.

However it should not crash, and it's confirmed by many people now.

Could you please try the commit f02e1d4 ?

coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
Please try with commit f02e1d4 if any of you cannot build it on Mac
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
Probably not, as font conversion is slow. pdftohtml does not extract fonts for now.
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
I've tried and succeeded with CYGWIN. But no idea how can I distribute the package with the dependencies.
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
AFAIK, IE8 doesn't support enough HTML5 stuffs, so no. IE9 should be OK
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
Yeah, known issue. Currently I've no idea how to fix it :(
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
What do you mean no fonts? You can try to copy the text out, which is not possible if images are used.
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
It's confirmed by some guys using Mac. We are working on this. Please hold on, and join the discussion on github if you like. Thanks for your patience.
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
I meant I took a look at a HTML page generated by crocodoc. Their approach was interesting.
coolwanglu··on Pdf2htmlEX: A PDF to HTML converter
sorry to hear that. some guys are working on MacPorts and Homebrew formula.

I hope this would help you. https://trac.macports.org/ticket/36028

Page 1 of 2Next →