Blog Archive

Showing posts with label Lightweight. Show all posts
Showing posts with label Lightweight. Show all posts

Monday, May 25, 2009

Lightweight CHM viewer?

Most of the books that we find in the web are in the CHM file format, at least it's better to extract the HTML than from PDF files, but when you saw my last post i wrote about another library that do what we want ;), now its time for the CHM file format.

Let's extract what matters.

Well, if you wanna try yourself, get the source here(wow a new update 2 days ago \o/, thanks goes to Hey Jed Wing).

Hey, remember before you do the stuff "configure --prefix=<path>&&make&&make install" check the features that you can enable, so FIRST "configure --help|less", there might be still an option like --enable-examples(im not with the source right now, and i can't compile it because im compiling a lot of things at this moment).

After the job is done, you might see a new application with a name that should be something like extract_chmLib, to use it check the command-line help anyway, but if you is a kid hard to handle, so type "extract_chmLib <mychmfile.chm> <directory to put the results>"

You will see a lot of files, the directory where the relevant files are are usually under a directory that its name contains just numbers, and under it you always see 2 files, "toc.html" and "main.html".

You want organize the resulting files by hand? o.O

Ok, thats hard for you? learn some shell scripting language, like bash.

I known something about bash ;)

Ohh that's ugly, yes it's but, it works.

You might find usefull sed + bash.

Good luck, when you start getting fluent with bash programming plus some stream line editor(sed ;) you will see why we sometimes like the CLI interface.

But, those things we just see if we are able to, like eyes, just those that has can see.But, those developed that skill, but how? I don't known, but our progress might tell us ;)

Lightweight PDF viewer?

I don't known why pdf exist(html is not enought?why? ok for printing... :| ), but ok we might find a way to get this thing back to a format that is easy to edit and look the source code, the convertion to the HTML.

First we need to say thanks to xpdf authors that have started developing nice tools, not just a viewer.And, later we might say thanks to the new tool that a KDE developer is maintaining at the poppler.freedesktop.org, thats a library to replace the "hacks" some people do using the xpdf to add support to the pdf file format to their apps.As stated, when something must be fixed, we just fix the library.

That's more than a library, take a look at what the source can produce, you will see a nicely done tool that i hope they continue improving it, that one is >>> pdftohtml <<<.

A moment for a smile ;)

Continuing...

That tool has nice parameters that you can put to get good results, the -c to generate complex html documents, a feature for exchanging pdf links by html links, if you want skip the images you can specify the -i parameter, output hidden text and other common parameters like ones to specify the owner and the password, well what i have to say, a great tool, even i'm not using KDE(i say 100%) im eating a slice of the cake that developers are producing.

If i find tools related to html convertion, sure i will post here.

Now we almost have a nice lightweight desktop, but some readers get books in CHM file format.

That's not a problem.

Do you want extract the HTML from it?

Next post.

;)

Lightweight web browsers

No, its not Chrome or Safari, im talking about lightweight, and when im talking about lightweight forget rich and fancy GUI stuff.


  • Links2: good
  • Lynx: a bit outdated
  • w3m: hmm what to say about this one? emacs users maybe...
  • Elinks: nice

One of them support regular expressions, that one is really nice. ;)

The others?

hmmm, the developers are walking a bit slow in some projects, but, anyway there are few people
in this world that can see the amount of interfaces that we could use to control a browser or say anything else, the pure text is nice some times, the markup language for example, say SSML
that's not only for disabled people, who say that is the "disabled one" IMHO.


Note, i like beautiful GUI like Apple ones, but i think that the information on the web(ok the filtered one) is much more beautiful than any GUI.

;]

Sunday, May 24, 2009

Lightweight X? X under Embedded systems?

So i known that the Xorg is modular for some time, but, i have my own reasons to look for something more small.

So after it came the question, is there some kind of Xorg replacement for Embedded systems?

If so, i would like to known.But before anything we can think about something that can almost
solve it, the framebuffer.

DirectFB, that's the project, but ok if i want use my gnome/kde apps inside it without the Xorg stuff?

A wrapper?

Just questions, at moment i need dig more deep to find out what is more trivial, i like simple applications that are easy to port to most platforms.

Ok i found one the MicroXwin(proprietary)

Where i am, where i will go?