emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Matthias <matthias@ln.edu.hk>
To: emacs-orgmode@gnu.org
Subject: Default emphasis regexp problems
Date: Fri, 8 Jun 2012 02:06:56 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120608T035042-610@post.gmane.org> (raw)

Hi,

the following cases fail to display italics correctly in org-mode 7.4:

----------------------------- snip -----------------------------

1. The user would also certainly think that “it’s all actually happening,”
simply because it /would be happening,/ albeit in an environment that is
different from the physical one his body is located in. We seem to have much
less difficulty than Jones acknowledging that one is able to perform such
activities in a /shared/ environment.

2. Obviously, cooking a dish presupposes that there /is/ a dish to be cooked.
Therefore, a crucial question in evaluating the possibility of cooking a dish
would be /whether there is food inside the kitchen,/ which the user could
process without leaving the virtual world. If this were the case, and we would
still uphold Jones’s judgement that cooking in a virtual world is impossible,
then indeed we would be confronted with something or other. If, on the other
hand, the impossibility of cooking a dish is due to the fact that there simply
/are/ no dishes inside that environment, then Jones’s criticism does not apply
to virtual environments at all.

3. This is another way in which we can understand Jones’s remark about there
being “no way [the dish] /is./” This is not an uncommon position.

----------------------------- snip -----------------------------

Including punctuation in italics passages is (as I understand it) preferred from
a typography point of view, but it breaks org-mode's emphasis regexp. An ad-hoc
adjustment of the default Emphasis Regexp Components solves the problem:

------------------------------ fix begin ------------------------
Org Emphasis Regexp Components: Hide Value
Allowed chars in pre      : " 	('\"{"
Allowed chars in post     : "- 	.,:!?;'\")}\\”"
Forbidden chars in border : " 	^M\n'"
Regexp for body           : "."
------------------------------ fix end --------------------------

As far as I can see, the change does not break anything, but I am not sure,
because I don't really understand the rationale behind all the choices in the
original regexp. Perhaps its author can have a look at my changes?

I suggest that the default be changed to fix the above problems, since the
normal user cannot be expected to fix the regexp himself.

Thanks!

A.M.

                 reply	other threads:[~2012-06-08  2:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=loom.20120608T035042-610@post.gmane.org \
    --to=matthias@ln.edu.hk \
    --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).