Apache OpenOffice (AOO) Bugzilla – Issue 102153
Support Mediawiki Syntax as Clipboard format for text
Last modified: 2024-02-18 12:38:30 UTC
I wish that OOo supports Mediawiki Syntax as clipboard format. This could be useful if someone want copy format text section from or to Wiki pages. Two use cases as example: 1.) Many web applications support text formated in Mediawiki Syntax today, but it's easier to format it using a Office-Suite like OOo. After the text is written and formated it's just needed to select the, press Ctrl-C and paste it as MediaWiki-Syntax in the Webbrowser. 2.) A Student found a important chapter in a Wikipedia Article. He want to cite it in his thesis. It would be quite easy to select the source code an paste it to OOo Writer by Paste-Special->Mediawiki-Syntax
Confirmed with AOO410m1(Build:9750) - Rev. 1557669 2014-01-14_04:11:13 - Rev. 1557927 Debian
Mediawiki text lacks its own MIME type, and copying and pasting some Mediawiki markup only gets Firefox to offer these clipboard formats: $ xclip -selection clipboard -target TARGETS TIMESTAMP TARGETS MULTIPLE SAVE_TARGETS UTF8_STRING COMPOUND_TEXT TEXT STRING text/plain;charset=utf-8 text/plain So pasting would have to be done through "Paste Special" offering "Mediawiki syntax". Markdown, however, does have its own MIME type (https://www.iana.org/assignments/markdown-variants/markdown-variants.xhtml), and could be pasted directly, if we supported it. However even there, Firefox does not put the text/markdown format on the clipboard. As for copying rich text from OpenOffice and pasting to a web browser, that could be difficult. On a normal copy, we can only distinguish by MIME type, and can only provide Wiki markup if its specific MIME type is requested. The web browser would have to request that MIME type, which it might not. Alternatively we could provide Mediawiki markup over the text/plain MIME type, but then that would have to be something users opt into (eg. "Copy As..."). Our Mediawiki extension might be a good place to try out some of these ideas.