GNOME Bugzilla – Bug 543072
latex support in chat
Last modified: 2012-12-28 14:00:18 UTC
As pidgin does, the following patch can replace $$latex_formula$$ by an image representing the formula. It uses a bash script (tex2im - http://www.nought.de/tex2im.html). I actually took the patch that Xavier made for gossip (see #354350). I didn't take the one with the ctrl+v feature for the moment. Please, take a look at the many gtk_text_buffer_get_end_iter (buffer, &iter); because I'm not sure about all of that... Other information:
Created attachment 114587 [details] [review] latex support
Created attachment 114588 [details] empathy-tex2im script This script must be placed on the src/ directory with execute priority.
I didn't looked at the code in details, but surely it needs to be disabled with a gconf key and an option in the preference dialog.
This patch has bit rotted since the Regex code has been removed from libempathy/empathy-utils.c. Xavier, if you can comment on where this should be integrated, I'd like to have a go at it.
I think such feature should be implemented as a plugin.
I think this is quite out of Empathy's scope, or at least you would need to rework the patch into a plugin that works with recent versions of Empathy... I doubt the maintainers are going to implement it themselves anytime soon.
For the record, this may be implemented using MathJax: bug #685998