emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: anhnmncb <anhnmncb@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to convert org file to such a plain text
Date: Wed, 06 Aug 2008 00:18:24 +0800	[thread overview]
Message-ID: <86od47juzz.fsf@fbsd.hasee.cpu> (raw)
In-Reply-To: b71b18520808041843o36f176f7lc66559aad263b518@mail.gmail.com

"Eddward DeVilla" <eddward@gmail.com> writes:

> I don't know if you use perl at all.  My first guess is:
>
>     perl -pe's/^(\*+)(\s+.*)$/("\t"x length$1).$2/e' < TODO.org > TODO.txt
>
> Having tried it on a live file, I don't think the results are very
> pleasing  Replacing a single character '*' with a tab creates a
> formatting mess with any other text in the file.
>
> Edd
Yes, it's a bit mess, thank you anyway.

>
> On Mon, Aug 4, 2008 at 12:39 PM, anhnmncb <anhnmncb@gmail.com> wrote:
>> anhnmncb <anhnmncb@gmail.com> writes:
>>
>>> Carsten Dominik <dominik@science.uva.nl> writes:
>>>
>>>> On Jul 26, 2008, at 9:52 AM, anhnmncb wrote:
>>>>
>>>>> "Hugo Schmitt" <hugows@gmail.com> writes:
>>>>>
>>>>>> What are the odds that Carsten has plans to export to a format
>>>>>> *you* just invented?
>>>>> Oh, my pda app projekt can import this format of file, but if all of
>>>>> you
>>>>> think it's no use, nervermind.
>>>>
>>>> Hey, why the huff?
>>>>
>>>> The point is, you have not given us any chance at all to
>>>> think it might be of any use!
>>>>
>>>> - Carsten
>>>>
>>> Sorry for delay, I can't reach the app website[1] right now, when it
>>> can, I will provide the relavent information.
>>>
>>> [1] http://www.kylom.com/
>>
>> Sorry, I can't find more useful info, the app just says it can import
>> the txt file which has different level of indents. So I think replace
>> star(*) with <tab> is enough. Such like this:
>>
>> Org file              -->  txt file
>> --------------------       --------------------
>> |* level 1                 |level 1
>> |** level 2           -->  |<tab>level 2
>> |<tab>- item               |<tab>- item
>> |*** level 3               |<tab><tab>level 3
>> --------------------       --------------------
>>
>> I'm not a programmer, so if my request is stupid and easy to achieve by
>> any other way, please let me know.
>>
>>>
>>>>>
>>>>>>
>>>>>> On Fri, Jul 25, 2008 at 3:47 PM, anhnmncb <anhnmncb@gmail.com> wrote:
>>>>>>
>>>>>>   Carsten Dominik <dominik@uva.nl> writes:
>>>>>>
>>>>>>> We do not have an exporter that can do this right now.
>>>>>>>
>>>>>>> - Carsten
>>>>>>   Will it come in furture?
>>>>>>>
>>>>>>> On Jul 24, 2008, at 4:59 PM, anhnmncb wrote:
>>>>>>>
>>>>>>>   I want to export org to plan text, which pattern is:
>>>>>>>   --------------------
>>>>>>>   |level 1
>>>>>>>   |<tab>level 2
>>>>>>>   |<tab>- item
>>>>>>>   |<tab><tab>level 3
>>>>>>>   --------------------
>>>>>>>   instead of
>>>>>>>   --------------------
>>>>>>>   |* level 1
>>>>>>>   |** level 2
>>>>>>>   |<tab>- item
>>>>>>>   |*** level 3
>>>>>>>   --------------------
>>>>>>>   --
>>>>>>>   Regards,
>>>>>>>
>>>>>>>    anhnmncb
>>>>>>>   gpg key: 44A31344
>>>>>>>
>>>>>>>   _______________________________________________
>>>>>>>   Emacs-orgmode mailing list
>>>>>>>   Remember: use `Reply All' to send replies to the list.
>>>>>>>   Emacs-orgmode@gnu.org
>>>>>>>   http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Emacs-orgmode mailing list
>>>>>>> Remember: use `Reply All' to send replies to the list.
>>>>>>> Emacs-orgmode@gnu.org
>>>>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>>>
>>>>>>   --
>>>>>>   Regards,
>>>>>>
>>>>>>    anhnmncb
>>>>>>    gpg key: 44A31344
>>>>>>
>>>>>>   _______________________________________________
>>>>>>   Emacs-orgmode mailing list
>>>>>>   Remember: use `Reply All' to send replies to the list.
>>>>>>   Emacs-orgmode@gnu.org
>>>>>>   http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>>>
>>>>>> _______________________________________________
>>>>>> Emacs-orgmode mailing list
>>>>>> Remember: use `Reply All' to send replies to the list.
>>>>>> Emacs-orgmode@gnu.org
>>>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>>
>>>>> --
>>>>> Regards,
>>>>>
>>>>> anhnmncb
>>>>> gpg key: 44A31344
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Emacs-orgmode mailing list
>>>>> Remember: use `Reply All' to send replies to the list.
>>>>> Emacs-orgmode@gnu.org
>>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Emacs-orgmode mailing list
>>>> Remember: use `Reply All' to send replies to the list.
>>>> Emacs-orgmode@gnu.org
>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>
>>
>> --
>> Regards,
>>
>>  anhnmncb
>>  gpg key: 44A31344
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
Regards,

  anhnmncb
 gpg key: 44A31344

      parent reply	other threads:[~2008-08-05 16:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-24 23:59 How to convert org file to such a plain text anhnmncb
2008-07-25 14:24 ` Carsten Dominik
2008-07-25 18:47   ` anhnmncb
2008-07-26 15:43     ` Hugo Schmitt
2008-07-26 16:52       ` anhnmncb
2008-07-28 17:40         ` Carsten Dominik
2008-07-30  5:06           ` anhnmncb
2008-08-04 17:39             ` anhnmncb
2008-08-04 21:21               ` Peter Jones
2008-08-05  1:43               ` Eddward DeVilla
2008-08-05 11:28                 ` Hugo Schmitt
2008-08-05 16:19                   ` anhnmncb
2008-08-05 16:18                 ` anhnmncb [this message]

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=86od47juzz.fsf@fbsd.hasee.cpu \
    --to=anhnmncb@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 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).