[O] Experimental media-wiki export

2011-05-28 Thread David Mason

I've found myself using the media-wiki export code in EXPERIMENTAL quite
a bit - but it seems to have broken in the most recent builds.

I'm curious what the status of that is - are there any plans to move it
into the main codebase? Is anyone even maintaining it?

I find it is the best mediawiki export, especially for tables.


Much thanks,

Dave



Re: [O] Experimental media-wiki export

2011-05-28 Thread Jambunathan K
David Mason dma...@mozilla.com writes:

 I've found myself using the media-wiki export code in EXPERIMENTAL quite
 a bit - but it seems to have broken in the most recent builds.

May be this will help.
http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00316.html

 I'm curious what the status of that is - are there any plans to move it
 into the main codebase? Is anyone even maintaining it?

You have the option of exporting it to html or odt and have it converted
to mediawiki. Open/Libre Office seems to be one uber converter and you can use
it to export to mediawiki (by hand) or through commandline (use
unoconv). If you are unhappy with unoconv, you can write some basic
macros and have a made-to-order commandline that exports html/odt to
mediawiki.

I am attaching test org file and the corresponding mediawiki export
(generated via the html backend). I am not sure how good the mediawiki
export is.

 I find it is the best mediawiki export, especially for tables.

Btw, the attached test file has tables, both simple and complex.

On a related note, in all honesty, 

1. I think that Org shouldn't support all backends in the world as part
   of it's core. The previous statement equally applies to the org-odt
   backend. It would suffice if Org provides a generic exporter and
   people unhappy with existing converters or who have plenty of time in
   hand (like me) can author standalone modules that is in tune with ORg
   way of things and distribute it via GNU's ELPA.

2. I think Org should provide a way (out of the box) to post-process an
   exported file to one of the other formats using an external
   converter. LibreOffice, if not now, atleast in distant future would
   become the One True Converter to rule the world.

   Something like M-x org-export-as-other 

Jambunathan K.

#part type=text/plain filename=~/src/org-jambu/contrib/odt/files/test.org 
disposition=attachment description=test.org
#/part

#part type=text/plain filename=~/src/org-jambu/contrib/odt/files/test.txt 
disposition=inline description=test.mediawiki
#/part


-- 



Re: [O] Experimental media-wiki export

2011-05-28 Thread Jambunathan K


The attachment didn't come through. I am attaching it here.

 I am attaching test org file and the corresponding mediawiki export
 (generated via the html backend). I am not sure how good the mediawiki
 export is.

#+TITLE: Testfile for OpenDocumentText Exporter
#+AUTHOR:Jambunathan K
#+EMAIL: kjambunat...@gmail.com
#+DATE:  2011-04-04 Mon
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:4 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:verbatim skip:nil d:nil todo:t pri:nil tags:not-in-toc

#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:
#+STARTUP: overview


# Use C-c C-e O or C-c C-e o to export this buffer to OpenDocumentText

* ODT Exporter  :project:hacking:
** Online References
   - 
[[http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-v1.1-html/OpenDocument-v1.1.html][ODF
 Specification]]
   - [[http://books.evc-cit.info/odbook/book.html][OASIS OpenDocument 
Essentials (Book)]]
   - 
[[http://wiki.services.openoffice.org/wiki/Documentation/OOo3_User_Guides/Writer_Guide][OpenOffice.org's
 Writer Guide]]
 Downloadable pdf version are available 
[[http://wiki.services.openoffice.org/wiki/Documentation/OOo3_User_Guides/Chapters][here]]

** Validation tools
   - 
[[http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-schema-v1.1.rng][OpenDocument-schema-v1.1.rng]]
   - Use [[http://www.thaiopensource.com/relaxng/trang.html][Trang]] to 
generate .rnc file from .rng file.

** org-odt.el Bugs and Pending Items
*** TODO Links to Listified Headlines are not generated
Export this documen with H:3 and note that link references under
[[References]] are broken. To circumvent this issue change default
settings from H:3 to H:4 for now.
*** TODO Cleanup on crash
When odt exporter throws an error the xml files are content.xml,
styles.xml etc are left staying around. Need to clean these up
using unwind-protect?
*** TODO Fix all interactive commands
org-export-region-as-odt, org-export-as-odt-to-buffer etc. 
#+begin_src sh
  emacs --batch -L ~/src/org-jambu/lisp --eval (progn (require 'org-odt) 
(setq org-export-headline-levels 3) (toggle-debug-on-error)) 
--visit=draftcopy.org --funcall org-export-as-odt-batch
#+end_src

*** TODO Fix issues reported by Christian Moe (first post)
SCHEDULED: 2011-01-31 Mon
See 
[[http://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg01293.html][this 
post]].

- Fix cross references to Tables, Images etc. Ability to choose
  other types names, like Chart, Figure, etc.
- Paragraphs were frequently split up, mid-sentence, by unwanted
  paragraph breaks. Not sure whether this problem still exists
  with the latest release of org-odt.

*** TODO Fix issues reported by Christian Moe (second post)
SCHEDULED: 2011-03-21 Mon
See 
[[http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01379.html][this 
post]]

 TODO Syntax highlighting of source code blocks
 - Use htmlfontify.el maybe

 TODO OrgVerse can be aesthetically more pleasing?

 TODO Export of test.org with LaTeX:verbatim option
 Equations under  [[LaTeX Fragments]] go invisible

 TODO Broken link within [[References to Dedicated Target]] 

*** TODO Support for MathML
[2011-03-29 Tue]
MathToWeb could be used for this. See 
[[http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01755.html][following
 post]].

*** TODO Validation failures with =HTML_CONTAINER_CLASS= 
[2011-04-02 Sat]
:PROPERTIES:
:HTML_CONTAINER_CLASS: custom
:END:

This section introduces two issues. 
- A text:span element cannot occur within text:bookmark-ref. How
  to handle this.
- text:style-name attribute for text:section cannot have
  spaces. Explore styling of section in OpenOffice.

*** TODO Tables within a list-item :noexport:
Tables cannot occur as list-item. OpenOffice Writer seems to
handle this scenario as follows: While encountering a table
terminate the top-level list. Insert formatted Table with the same
indentation as if it were a list-item of the original list. Once
the table is inserted, re-open the list and start emitting the
following list-items at the right nested level.

Fixing this bug would require that the list callbacks provide
information on the indentation level of the current list. Not sure
how to set the Table indentation properties?

- L1.1
- L1.2
  - L2.1
  - L2.2

|   | formula debugger label | processing stage   |
| / |   |  |
|---++|
|   | Result:| output of Calc |
|   | Format:| reformatting with =printf= |


  - L2.3
- L1.3
  
*** DONE Support for Custom