From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Emacs as a word processor (ways to convert Word/RTF proprietary files) Date: Fri, 25 Dec 2020 10:14:40 +0300 Message-ID: References: <0E591E8B-FD55-4829-8421-6F2C02AFD20C@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33028"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 25 08:21:19 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kshPa-0008WN-Ot for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Dec 2020 08:21:18 +0100 Original-Received: from localhost ([::1]:55472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kshPZ-00009o-SJ for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Dec 2020 02:21:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kshO5-000859-TT for emacs-devel@gnu.org; Fri, 25 Dec 2020 02:19:46 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:39693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kshO3-0001x7-GE for emacs-devel@gnu.org; Fri, 25 Dec 2020 02:19:45 -0500 Original-Received: from localhost ([::ffff:41.210.146.133]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000002DFDF.000000005FE5928C.00006EEB; Fri, 25 Dec 2020 00:19:40 -0700 Mail-Followup-To: emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261719 Archived-At: * Richard Stallman [2020-12-25 07:38]: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > I'm not going to fight against support for Word files. - in my opinion both Word and RFT are not necessary for Emacs as that just acknowledges proprietary formats and tells users message that shall not be told from GNU programs. But there are already possibilities to convert Word programs to and from, see below. - there are Word importing capabilities by using other available free software. Emacs could advise users to install some external software to convert from Word. - one of best for me personally is `antiword' it just extracts simple text. But I have no Word files on computer. - another good one is Abiword which has Word import/export capabilities on the command line. So a simple Emacs function of few lines could already use Abiword as external convertor and import file into Emacs word processing >From Abiword manual page: -t DEST, --to=DEST Convert the given file to another format, writing the result to DEST. The format of DEST is determined by its extension. See also --to=FORMAT and --to-name. -t FORMAT, --to=FORMAT Convert the given files(s) to the given format. Unless explicitly specified with --to-name, the original filename will be used (with a different extension, if necessary). See also EXAMPLES. The more popular values for FORMAT include: lb lx. abw T{ Abiword XML format (zabw for gzip, bzabw for bzip2 compression) T} dbk DocBook XML doc Microsoft Word binary format docx T{ Office Open XML (newer Microsoft Word versions) T} html Hypertext Markup Language kwd KWord odt OpenDocument Text pdf Portable Document Format rtf Rich Text Format sxw OpenOffice.org Writer 1.0 txt Plain text