jcushman/pdfquery — pull request #8 by henriktudborg (2013-08-16 13:08:52+00:00)
Title: Fixing the cssselect monkeypatching problem

Instead of monkeypatching cssselect with the bbox pseudo functions i moved it to a custom translator
as described in the cssselect docs is the intended way to extend with custom functions.

I inherit from `GenericTranslator` instead of `JQueryTranslator` that is the default PuQuery translator class full of html-specific stuff, and hand the custom translator to PyQuery via the `css_translator` kwarg.

Note that this means that all the HTML specific stuff in `HTMLTranslator` and `JQueryTranslator` have been removed.

Also made it possible to specify args to `in_bbox` and `overlaps_bbox` instead of a comma seperated string. It seemed more css-like. The old comma seperated string is still supported.

There should be no actual change in the way one would use pdfquery.