Translate HTML tags into BiBTeX

Robby Stephenson robby at periapsis.org
Thu Aug 31 19:31:28 MDT 2006


On Thursday 31 August 2006 3:37, Steffen Ganschow wrote:
> I'm using tellico to manage my literature collection und use html tags
> extensively to format the output on the screen, e.g. indices in formulas
> etc. I understand that when exporting to BiBTeX special characters are
> translated according to the 'bibtex-translation.xml' shipped with
> tellico. But how to translate tags like <sub> ... </sub>? Is there a way
> to do this in a smart way like with the special characters?

One possibility is to use actual unicode characters instead. Then add those 
to the bibtex-translation file. For example, you could have U+00B2, which 
is ² (not sure if that will come through email correctly), superscript 2. 
Then add that to bibtex-translation to export to bibtex as a normal 2.

That only works for single characters. The bibtex character map is a 
character-to-string conversion. There's no facility to strip the HTML tags 
at the moment. Though it could be added to the BibtexHandler::cleanText() 
function easily enough.

Robby



More information about the tellico-users mailing list