linux/scripts

Welcome to encomiabile.it
“Gather ye rosebuds while ye may, old time is still a-flying. And this same flower that smiles today tomorrow will be dying” (Dream Theater - A Change of Season)

* The one converts HTML into BBCODE

What is its purpose?
Me and a friend of mine have written a script in python that allows user to convert an HTML page into BBCODE using regexps.
These regexps are stored into a configuration file and can be adjusted for every purpose.
Infact, this script, it's really powerful since can be used to transform almost every kind of source into something just by writing a proper regexps' list, pretty cool uh? :)
It hasn't been tested hardly so far, so there might be some bugs that you want to report to me (you can find my email in the upper-right corner of the page) or to him (dak.tales 'at ' gmail 'dot' com).
However, you can find us in #gechi channel on Freenode network.

Briefly, the script does:

  • Grab a source file, treat it and give a transformed content according to configuration file (regexps' list)
  • Fetch a remote page directly (see -u switch)
  • Allow user to write custom regexp to acheive its goals
  • Support Unicode (this has to be tested strongly)
  • Serialize regexps in order to avoid useless recompiling downtime
  • Verbose switch

External tools:
md5sum (should be part of the core system)

Download: It's not available, at the moment, a snapshot; but you can download the script through ineluttabile.it git repository by running git clone git://ineluttabile.it/pyhtml2bbcode. The script is released under LGPL license.


last update: 2009-10-24 at 00:18