emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Italics support fails after non-breaking space [8.2.6 (8.2.6-67-g9e09b2-elpa @ /home/crculver/.emacs.d/elpa/org-20140602/)]
@ 2014-06-08 23:48 Christopher Culver
  2014-06-09  1:51 ` Eric Abrahamsen
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Culver @ 2014-06-08 23:48 UTC (permalink / raw)
  To: emacs-orgmode



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

The code for changing the font face to italics assumes that the opening
slash in text surrounded by /.../ will be preceded by a plain
space. However, authors preparing documents with LaTeX or HTML output in
mind may employ a non-breaking space before the text in italics (the
Unicode character U+00A0 NO-BREAK SPACE).

I encountered this bug with the text "Fi. /mennä/", where the only space
is a non-breaking space (as it must be in any output to a typesetter for
my needs). Emacs keeps the text within slashes in the normal font face
instead of changing it to italics.

Emacs  : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2)
 of 2014-06-06 on barber, modified by Debian
Package: Org-mode version 8.2.6 (8.2.6-67-g9e09b2-elpa @ /home/crculver/.emacs.d/elpa/org-20140602/)

current state:
==============
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe
		      org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-log-done t
 org-confirm-shell-link-function 'yes-or-no-p
 org-default-notes-file "~/TODO.org"
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
		   [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
		 #[nil "\300\301\302\303\304$\207"
		   [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
		 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks
		  org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-modules '(org-bbdb org-bibtex org-crypt)
 org-agenda-span 'month
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-completion-use-ido t
 org-reveal-start-hook '(org-decrypt-entry)
 org-agenda-files '("~/TODO.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: Italics support fails after non-breaking space [8.2.6 (8.2.6-67-g9e09b2-elpa @ /home/crculver/.emacs.d/elpa/org-20140602/)]
  2014-06-08 23:48 Bug: Italics support fails after non-breaking space [8.2.6 (8.2.6-67-g9e09b2-elpa @ /home/crculver/.emacs.d/elpa/org-20140602/)] Christopher Culver
@ 2014-06-09  1:51 ` Eric Abrahamsen
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Abrahamsen @ 2014-06-09  1:51 UTC (permalink / raw)
  To: emacs-orgmode

Christopher Culver <crculver@christopherculver.com> writes:

> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?  See
>
>      http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
>
> The code for changing the font face to italics assumes that the opening
> slash in text surrounded by /.../ will be preceded by a plain
> space. However, authors preparing documents with LaTeX or HTML output in
> mind may employ a non-breaking space before the text in italics (the
> Unicode character U+00A0 NO-BREAK SPACE).
>
> I encountered this bug with the text "Fi. /mennä/", where the only space
> is a non-breaking space (as it must be in any output to a typesetter for
> my needs). Emacs keeps the text within slashes in the normal font face
> instead of changing it to italics.

Check the variable org-emphasis-regexp-components -- the first two
elements specify what characters are allowed before and after an
emphasis delimiter. You could add the non-breaking space to both of
those elements, and it ought to work. I can't speak to potental gotchas
that might arise because of this, or whether this ought to be part of
the default value...

Hope that helps,
Eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-09  1:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-08 23:48 Bug: Italics support fails after non-breaking space [8.2.6 (8.2.6-67-g9e09b2-elpa @ /home/crculver/.emacs.d/elpa/org-20140602/)] Christopher Culver
2014-06-09  1:51 ` Eric Abrahamsen

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).