emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Complex conversion of text to org table
@ 2017-03-12 15:14 Xebar Saram
  2017-03-12 15:26 ` Vicente Vera
  2017-03-12 16:51 ` Thierry Banel
  0 siblings, 2 replies; 8+ messages in thread
From: Xebar Saram @ 2017-03-12 15:14 UTC (permalink / raw)
  To: org mode

[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-03-14 13:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-12 15:14 Complex conversion of text to org table Xebar Saram
2017-03-12 15:26 ` 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

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).