Issue 102153 - Support Mediawiki Syntax as Clipboard format for text
Summary: Support Mediawiki Syntax as Clipboard format for text
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-22 19:55 UTC by joergwartenberg
Modified: 2024-02-18 12:38 UTC (History)
4 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: 4.1.0-dev
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description joergwartenberg 2009-05-22 19:55:37 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
Comment 1 Edwin Sharp 2014-01-19 19:48:01 UTC
Confirmed with
AOO410m1(Build:9750)  -  Rev. 1557669
2014-01-14_04:11:13 - Rev. 1557927
Debian
Comment 2 damjan 2024-02-18 12:38:30 UTC
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.