I am developing an online game with typography, dealing with crash testing letters. This implies to create an hit of each letter. I am using paper.js to manage all kinds of vector geometry computation and rendering, what is actually doing a very nice job so far. I have written a little svg parser, because i would like to load whole fonts from the server. These fonts are converted via the apache batik font converter. This all working fine but there is one problem left which really drives me nuts.
I have to remove all the counters from the glyphs which have one. paper.js does not provide a method for boolean operations with paths yet, so i googled around and found out that the implementation of this operations is quiet complicated.
So finally i had the idea of coding an inkscape extension which should do the following things:
1. getting all <font> - tags.
2. cloning it, setting an appropriate id and adding a namespace attribute to it.
3. iterating over each glyph, taking its data from the d attribute
4. using this string to construct a bezier curve
------------------------------------------------------
!!! 5. running a boolean union command over all subpaths !!!
------------------------------------------------------
6. converting the curve back to a string and set it to the cloned glyphs d attribute.
done.
here is a little illustration of the problem:

At the moment i have a basic script with an *.inx - file and a *.py file which includes a class the extends inkex. But for now i cannot find any reference that could give me an overview of the inkscape object, the methods and so on. I don't think that this script might become very difficult, but i where can i find an Object reference and some coding hints??
Greetings philipp