emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: Org-mode table/links -> mediawiki
Date: Mon, 19 Jun 2017 11:25:03 +0200	[thread overview]
Message-ID: <87tw3cba8g.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87bmplblvi.fsf@skimble.plus.com> (Sharon Kimble's message of "Sun, 18 Jun 2017 12:01:21 +0100")

Hello,

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> I'm at the stage of building an org-mode table to be exported to
> mediawiki and its going to be the front page of my DrugFacts site.
>
> So far I'm here -
>
> | *Illegal*                       | *Category's*               | 	*Legal*       | *Prescription only*   | *Substitute*	    | *Others*       |
> |-------------------------------+--------------------------+---------------+---------------------+-----------------+--------------|
> | * Amphetamines                | * :Category:Anaesthetics | * Alcohol     | * Alprazolam        | * Buprenorphine | * Flumazenil |
> | * AMT                         | * Analgesics             | * [[Betel nut][Betel nut]]   | * Citalopram        | * [[Methadone][Methadone]]     | * [[Naxolone][Naxolone]]   |
> | * Anabolic Steroids           | * Anticonvulsants        | * [[Caffeine][Caffeine]]    | * Codeine           | * [[Naltrexone][Naltrexone]]    |              |
> | * Benzodiazepines             | * Antidepressants        | * [[Paracetamol][Paracetamol]] | * Dextroamphetamine | * [[Suboxone][Suboxone]]      |              |
> | * BZP                         | * Anxiolytics‏‎            | * [[Tobacco][Tobacco]]     | * Diazepam          |                 |              |
> | * Cannabis                    | * Appetite suppressants‏‎  |               | * Fentanyl          |                 |              |
>
> But I'm running up against problems, like these -
>
> - If I make it an org-mode link, like in 'Betel nut' then when I try to
>   export it I get a message like this "(user-error "Unable to resolve
>   link: \"Betel nut\"") in user-error".
>   - in mediawiki the link would be [[Betel nut]].
>
> - In mediawiki 'Cannabis' is shown as [[Marijuana|Cannabis]], but
>   org-mode thinks that its another column in the table.
>
> Using an org-mode table means that its very easy to generate/export the
> table into mediawiki format, so I really do want to use one, but I do
> need to have an org-mode link be able to be changed into an mediawiki
> link.
>
> How can I resolve both these problems please?

I guess you could use a dedicated Org -> MediaWiki export backend, e.g.,

  https://github.com/tomalexander/orgmode-mediawiki/

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-06-19  9:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-18 11:01 Org-mode table/links -> mediawiki Sharon Kimble
2017-06-19  9:25 ` Nicolas Goaziou [this message]
2017-06-19 12:54   ` Sharon Kimble

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tw3cba8g.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=boudiccas@skimble.plus.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).