From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sCLeIbRRzGIjywAAbAwnHQ (envelope-from ) for ; Mon, 11 Jul 2022 18:37:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MMDjIbRRzGIZQQAAauVa8A (envelope-from ) for ; Mon, 11 Jul 2022 18:37:08 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 43B2DFCBA for ; Mon, 11 Jul 2022 18:37:08 +0200 (CEST) Received: from localhost ([::1]:39762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAwPC-00035K-Qm for larch@yhetil.org; Mon, 11 Jul 2022 12:37:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAwBG-0000PH-0P for emacs-orgmode@gnu.org; Mon, 11 Jul 2022 12:22:46 -0400 Received: from ciao.gmane.io ([116.202.254.214]:58768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAwBE-0007hN-Il for emacs-orgmode@gnu.org; Mon, 11 Jul 2022 12:22:41 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oAwBC-0009T9-MW for emacs-orgmode@gnu.org; Mon, 11 Jul 2022 18:22:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Org mode escape characters Date: Mon, 11 Jul 2022 23:22:32 +0700 Message-ID: References: <1831243639.3822729.1657506981314.ref@mail.yahoo.com> <1831243639.3822729.1657506981314@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: en-US In-Reply-To: <1831243639.3822729.1657506981314@mail.yahoo.com> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657557428; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=nTMw2Ja2AngNBqbVuAf3jWyRYG+6/XobGsxoiLTrabg=; b=qxKn2D4kD3tq1j0Y84T/kRAWq0x6xRBeOyjcMl+akDq97/0rHvn5+N/wcDmO/lIElhN88w 9lPUDHIwmm8oQPcolBTrx6vIMfyXARmZlOrsG9xcs0h8a5vFKrEhPrJCK4aEwVvUpNLsx+ R71UFcF2okpQlpKofRpbJzABWgGPhId96E3QWElro9RF0JGfHw5q++WYbXyafWi5qM0m0t w08kMMOOkjPtbuaQGrXIGgMxa3WLI8PhDMxyev1MOozWGyHbT9TpTybli459UKdDTMgYU/ BrvJT7Wssh9K3dDhghqymnfHNrLdvmKWVWsH7fx+JV+k+nmAsFcSvVpYvhUDhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657557428; a=rsa-sha256; cv=none; b=NlaeahJLkL3zTeJwY0+JdxDbW+marVzJ2V7ue1/qAYY4M5/+q1hFWuvKgNVpOxiw76E0K2 QHKWnf8jlA4oUH13ZpuOOIorSd3tSho/SMZFSPhTVOv05NfpoY2Hw79NJyMH0sjf/1xU7o ETPb+E5tfeeST0jlGYKIfZlxDBdjvoySSepYcnBuUpv/gYxKV9qGtqAZ11Gao1D6vzs5QF iAuIvBPzN5dDqpsw5CJL95bRjMcYsfpIDdM5+NWl9A9SDvwaP4rVJz59pRxN6VTpvkQP9M EHxhLM7eRuW4Lvd/sC09VxTkS23TgPMWrQjVC6hcNrOqMXstyv2DC6VD/MhXMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.95 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 43B2DFCBA X-Spam-Score: 1.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: B2ZUqxBfb99F On 11/07/2022 09:36, David Boss wrote: > I generally run in Fundamental mode. Since ASCII is really only a 7-bit > code, I use the high bit to indicate italics. ... > 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, who > knows, 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. You did not provided any detail which email client and which OS you are using. I do not know how it is implemented on Windows, but on Linux applications declares several MIME types for selection: UTF8_STRING, text/html, etc. Applications that can insert formatted text use HTML, pure text application query plain text. To inspect available types the following command may be used: xclip -target TARGETS -out -selection CLIPBOARD AFAIK emacs can not provide several types for selection content and xclip does not have such feature as well. When you are sure that namely formatted text is required, you can try to feed markup to xclip -target text/html. I do not think that Org is appropriate tool for your purpose, escaping is tricky, zero-width spaces when used in such case should be removed from the target document. Constructing org-element AST directly may be more reliable. Within Emacs yank-handler text property may help to copy text from your specific encoding to other buffers.