emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Boss <dave.boss@yahoo.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Org mode escape characters
Date: Mon, 11 Jul 2022 02:36:21 +0000 (UTC)	[thread overview]
Message-ID: <1831243639.3822729.1657506981314@mail.yahoo.com> (raw)
In-Reply-To: 1831243639.3822729.1657506981314.ref@mail.yahoo.com

[-- Attachment #1: Type: text/plain, Size: 2090 bytes --]

I generally run in Fundamental mode. Since ASCII is really only a 7-bit code, I use the high bit to indicate italics. I wrote a Java program for printing; it makes all characters 16-bit, despite their starting as 8-bit,so no problem. For emacs, I wrote the necessary hooks to catch high bits in a file's 8-bit characters; on readin, the high bits are cleared, and characters intended to be italic get an italic property, instead; on writeout, characters with the italic property get their high bits set; no sweat, the hooks work.
I want to be able to copy an emacs buffer, with some characters having italic mode set, and paste that into an email compose buffer, and have the italics set in the email buffer; this should work, but it doesn't, whoknows, who cares, why not. But if I copy/paste a .odt file, with italicized characters, the italics show up as intended, in the email buffer. But, how to generate the .odt file? Pandoc, of course, but pandoc only eats emacsfiles if they're Org mode. So, I wrote a lisp function, to generate the Org mode file I need, from  fundamental-mode-plus-hooks emacs. And yes, pandoc will eat the Org mode file, as intended, and convert it to .odt, as intended, and I can copy/paste the .odt, and italics show up, as intended, in the email buffer. Except,
Org mode is very crude: it indicates italics by surrounding text by slashes, and so,
what if the original text contained slashes, intended as ordinary text, not escape characters? What if the slashes themselves are intended to be italicized?
Is there some way to tell Org mode to use different escape characters? Or to make ordinary emacs characters with the italic property, copy and paste, like God intended?
                                                                                                                                                                                         David Boss

[-- Attachment #2: Type: text/html, Size: 3579 bytes --]

       reply	other threads:[~2022-07-11  8:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1831243639.3822729.1657506981314.ref@mail.yahoo.com>
2022-07-11  2:36 ` David Boss [this message]
2022-07-11 11:05   ` Org mode escape characters Ihor Radchenko
     [not found]     ` <1085471464.4732784.1657559607712@mail.yahoo.com>
2022-07-12  2:38       ` Ihor Radchenko
2022-07-11 16:22   ` Max Nikulin

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=1831243639.3822729.1657506981314@mail.yahoo.com \
    --to=dave.boss@yahoo.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).