From: renato.pontefice@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: how to handle rtf
Date: Thu, 31 Jul 2014 06:15:40 -0700 (PDT) [thread overview]
Message-ID: <091f7037-8acb-4253-9b65-7761d47badfa@googlegroups.com> (raw)
In-Reply-To: <02986f99-bb2d-4ef9-b07d-eb61f478f9a3@googlegroups.com>
Il giorno giovedì 31 luglio 2014 12:30:02 UTC+2, Rusi ha scritto:
> On Thursday, July 31, 2014 3:33:26 PM UTC+5:30, renato wrote:
>
> > I try to explain, why do I do I need to use .rtf, and why do I'd like to do with emacs:
>
> > In the company where I work, I have to open rtf files, insert some text (plain text), save it, upload on a server, that will elaborate that file, replace the text tha I've inserted (that is a a variable name) with the content of the variable.
>
> > The prob to use MS Word or LO, is that, when I open this file with this program, the insert some rtf code, that let the server app not to process the replacement. (i.e., my program look for [**VARIABLE_NAME**] and replaces it with the real content of the variable), but, when I save from MS or LO, my variable will be corrupted (i.e., is no more [**VARIABLE_NAME**-], but... [**VAR(\hich\af1\dbch\af37\loch\f1_IABLE_NAME**])
>
> > of course, in this way, my parser, will not recognize the variable name.
>
>
>
> > So, my prob is to try to edit this rtf in the more plain text as possible. But, not be confused, with the .rtf code.
>
>
>
> > This is why, I'm lookin for sothings that let me edit .rtf in emacs, but with sothings that let me read without the rtf code.
>
>
>
> > Have I been more clear?
>
>
>
> Yes
>
>
>
> You need to clarify one important thing: How much of the 'r' in the 'rtf'
>
> (aka the formatting) you really need.
>
>
>
> It appears from your description to be very little or none at all.
>
> In which case saving (from MSO or LO) as (plain not rich) text and working with
>
> that would be the natural way. After that munging that text-file in emacs or
>
> python or ... is a different question.
>
>
>
> If however you *do* need the formatting one way that comes to mind offhand is:
>
> Use org mode and the odt exporter.
>
>
>
> In general, rtf is nominally text with 'richness' ie formatting.
>
> However the formatting is WAY WAY too much for you to be able to do normal
>
> text processing on it and maintain your sanity
I need many 'r'...
the doc, are normaly .doc text. Imean:
- formatting (text, tab, margin...etc)
- fonts
-etc.
I need to format in .rtf, because:
- it is well formatted text
- are plain text
- the parser can find e subsiuite variable
I cannot use other format, because the server side application, already use this format (because, is text format, and can also support formatting).
So you tell me to look at org-mode?
wich package can I use in org mode?
TIA
Renato
next prev parent reply other threads:[~2014-07-31 13:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-29 13:07 how to handle rtf renato.pontefice
2014-07-29 15:39 ` Danil Orlov
[not found] ` <mailman.6237.1406648406.1147.help-gnu-emacs@gnu.org>
2014-07-29 16:46 ` Emanuel Berg
2014-07-29 17:39 ` Grant Rettke
[not found] ` <mailman.6241.1406655598.1147.help-gnu-emacs@gnu.org>
2014-07-30 8:49 ` Joost Kremers
2014-07-30 8:58 ` renato.pontefice
2014-07-30 13:18 ` Emanuel Berg
2014-07-30 16:50 ` Rusi
2014-07-30 21:28 ` Emanuel Berg
2014-07-31 10:03 ` renato.pontefice
2014-07-31 10:30 ` Rusi
2014-07-31 13:15 ` renato.pontefice [this message]
2014-07-31 15:02 ` Rusi
2014-08-08 12:26 ` Hans BKK
2014-08-08 13:41 ` Eli Zaretskii
2014-08-08 14:09 ` Hans BKK
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=091f7037-8acb-4253-9b65-7761d47badfa@googlegroups.com \
--to=renato.pontefice@gmail.com \
--cc=help-gnu-emacs@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.
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).