Enhancement: tool to migrate bst files to pythonic style files

Issue #89 new
Sergio Callegari created an issue

Hi, thanks for pybtex!!!

would it be possible to take advantage to the bst machinery already coded into pybtex to create a tool capable of eating a bst file and outputting a corresponding pythonic style file? This would help moving away from the rather obscure bst style format and favor the customization of existing styles.

Obviously, the enhancement request implies that pythonic style files can support all that a bst file can do, which, as I understand it, is not currently possible, being pythonic style files all implicitly backend agnostic (since they are based on rich text objects).

If the previous consideration is true, would it be possible to have "backend-specific" pythonic style files, to finally get rid of bst files even where very low end LaTeX features need to be employed?

Comments (1)

  1. Andrey Golovizin

    It is of course possible to translate bst to Python, I've even experimented with it in the bst-speed branch. The problem is, the bst language is very low level and the resulting Python code is not very human readable. Generating high level idiomatic Python code from low level bst code might be theoretically possible, but it would be extremely difficult.

    A more promising approach would be to add support for CiteProc CSL styles. There is even a Python implementation, all we have to do is plug it into Pybtex and make it produce Pybtex' rich text objects.

  2. Log in to comment