From: Xebar Saram <zeltakc@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: Complex conversion of text to org table
Date: Sun, 12 Mar 2017 17:14:44 +0200 [thread overview]
Message-ID: <CAOQHXPpvXo9borR223TOAjoyy+_HAE-4jwxND7VSUMnuErOovw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1764 bytes --]
Hi list
so im trying to use orgmode to collect food recepies. i have one issue
which is to convert text based ingridents list into org tables.
for example take this list
3/4 cup milk
2 tablespoons white vinegar
1 cup all-purpose flour
2 tablespoons white sugar
1 teaspoon baking powder
1/2 teaspoon baking soda
1/2 teaspoon salt
1 egg
2 tablespoons butter, melted
cooking spray
if i mark this as a region and issue
`org-table-create-or-convert-from-region` this is the result
| 3/4 | cup | milk | | | | |
| |
| 2 | tablespoons | white | vinegar | (%or | better | yet |
lemon | juice%) |
| 1 | cup | all-purpose | flour | | | |
| |
| 2 | tablespoons | white | sugar | | | |
| |
| 1 | teaspoon | baking | powder | | | |
| |
| 1/2 | teaspoon | baking | soda | | | |
| |
| 1/2 | teaspoon | salt | | | | |
| |
| 1 | egg | | | | | |
| |
| 2 | tablespoons | butter, | melted | | | |
| |
| cooking | spray | | | | | |
| |
as you can see it got the amount (1/2) and the unit (cup) right yet the
actual ingredients is cut into several columns
i dont really know how to deal with this. is there a more intelligent way
of auto directing the conversion to split it the correct way?
if not any suggestions on how to convert it in a better way? perhaps a
command to quick delete the separator (|) across all the column?
thx alot in advance
Z
[-- Attachment #2: Type: text/html, Size: 2717 bytes --]
next reply other threads:[~2017-03-12 15:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-12 15:14 Xebar Saram [this message]
2017-03-12 15:26 ` Complex conversion of text to org table Vicente Vera
2017-03-12 15:35 ` Xebar Saram
2017-03-12 16:46 ` Scott Randby
2017-03-12 16:52 ` Scott Randby
2017-03-14 0:56 ` Vicente Vera
2017-03-14 13:18 ` John Kitchin
2017-03-12 16:51 ` Thierry Banel
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOQHXPpvXo9borR223TOAjoyy+_HAE-4jwxND7VSUMnuErOovw@mail.gmail.com \
--to=zeltakc@gmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.