Annotate Dvipng images/Math formula and strengthen error handling
authorJambunathan K <kjambunathan@gmail.com>
Sun, 6 Nov 2011 18:51:58 +0000 (23:51 +0530)
committerJambunathan K <kjambunathan@gmail.com>
Sun, 6 Nov 2011 19:02:27 +0000 (00:02 +0530)
commitf8168144a95136ab93650a3c80ac28bb0b69fd90
treeb9ccdb9b49e9f77ac04492715eadf00e11420cdf
parentd6898e589a889ecc603bfc040bf0f219d00564cd
Annotate Dvipng images/Math formula and strengthen error handling

* contrib/lisp/org-odt.el (org-odt-encode-plain-text): New.
(org-odt-format-line)
(org-odt-format-source-code-or-example-plain): Use it.
(org-odt-format-object-description): New.  Format svg:title
and svg:desc elements out of plain text.
(org-export-odt-format-formula, org-export-odt-format-image):
Check whether the incoming formula or image is generated out
of a latex fragment.  If yes, pass the latex fragment for
downstream processing.
(org-odt-format-frame): Check if the object that is enclosed
in the frame has metadata associated with it.  If yes, dump it
as part of svg:title and svg:desc elements.
(org-odt-protect-latex-fragment): New after advice for
`org-format-latex-as-mathml'.  Fixes the following bug
http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00176.html
contrib/lisp/org-odt.el