From: Frederic G. <fre...@ep...> - 2000-10-17 14:13:08
|
Hi, I've release Pybliographer 1.0.6. So, what's new ? - it should now compile with python 2.0, 1.6, 1.5.x - I fixed a bug when converting some characters (like angström) to bibtex. - it is now possible to define custom key generators, so that you can have emacs-like keys for example. To define such a generator for your personal use, edit your .pybrc.py file and add something like # ---------- from Pyblio import Autoload, Key def my_key_generator (entry, table): ... return key Autoload.register ('key', 'My_Key', my_key_generator) # ---------- The function takes an entry with no key, and the database that will hold it. It is up to this function to check for the new key unicity. The returned key must be an instance of Key.Key () For an example, have a look at generate_key () in Pyblio/Utils.py I'm waiting for your custom key generators on this mailing list, so that everybody will be able to share its examples ! Bye, Frédéric |