emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Exporting smart single quotes in Org 8.3 seems broken [8.3.2 (8.3.2-elpa @ /Users/jonathan/.emacs.d/elpa/org-20150929/)]
@ 2015-10-01 22:45 Jonathan Oddie
  2015-10-02 16:35 ` Nicolas Goaziou
  0 siblings, 1 reply; 17+ messages in thread
From: Jonathan Oddie @ 2015-10-01 22:45 UTC (permalink / raw)
  To: emacs-orgmode

Hello Org folks,

(This is a duplicate of a Stackexchange question posted at 
http://emacs.stackexchange.com/questions/17061/is-exporting-of-smart-single-quotes-broken-in-org-8-3)

I cannot seem get single quotes to export as 'smart' quotes under Org
8.3.2.  Here is a minimal file that reproduces the problem:

    #+OPTIONS: ':t
    #+LANGUAGE: en

    This is 'within single quotes'.  This is "within double quotes".

Expected behavior: from "emacs -Q", under which "M-x org-version"
reports 8.2.10, the output when exporting to UTF-8 plaintext is:

    This is ‘within single quotes’. This is “within double quotes”

and the output when exporting to LaTeX is:

    This is `within single quotes'.  This is ``within double quotes''.

If I load the most recent version of org-mode (starting from "emacs -Q",
typing "M-x package-initialize RET", and "M-x load-library RET org
RET"), "org-version" reports 8.3.2, and the output no longer correctly
translates single quotes.  In UTF-8 text, the result is:

    This is ’within single quotes’. This is “within double quotes”.

In LaTeX, the result is:

    This is 'within single quotes'.  This is ``within double quotes''.

Thanks in advance for any advice,

Jonathan



Emacs  : GNU Emacs 24.4.1 (i686-apple-darwin, NS apple-appkit-1038.36)
of 2014-10-20 on builder10-6.porkrind.org
Package: Org-mode version 8.3.2 (8.3.2-elpa @ /Users/jonathan/.emacs.d/elpa=
/org-20150929/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
                          org-babel-execute-safely-maybe)
org-plantuml-jar-path "~/bin/plantuml.jar"
org-ditaa-jar-path "/opt/local/share/java/ditaa0_9.jar"
org-tab-first-hook '(org-hide-block-toggle-maybe
                      org-babel-hide-result-toggle-maybe
                      org-babel-header-arg-expand)
org-archive-hook '(org-attach-archive-delete-maybe)
org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo
               org-irc org-mew org-mhe org-rmail org-special-blocks org-vm
               org-wl org-w3m)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
org-clocktable-defaults '(:maxlevel 2 :lang "en" :scope file :block thismo=
nth
                           :wstart 1 :mstart 1 :tstart nil :tend nil :step
                           week :stepskip0 nil :fileskip0 nil :tags nil
                           :emphasize nil :link nil :narrow 40! :indent t
                           :formula nil :timestamp nil :level nil :tcolumns
                           nil :formatter nil)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-confirm-babel-evaluate nil
org-speed-command-hook '(org-speed-command-default-hook
                          org-babel-speed-command-hook)
org-babel-pre-tangle-hook '(save-buffer)
org-occur-hook '(org-first-headline-recenter)
org-latex-default-packages-alist '(("AUTO" "inputenc" t) ("T1" "fontenc" t)
                                    ("" "fixltx2e" nil) ("" "graphicx" t)
                                    ("" "longtable" nil) ("" "float" nil)
                                    ("" "wrapfig" nil) ("" "rotating" nil)
                                    ("normalem" "ulem" t) ("" "amsmath" t)
                                    ("" "textcomp" t) ("" "marvosym" t)
                                    ("" "wasysym" t) ("" "amssymb" t)
                                    ("" "hyperref" nil) ("" "oddie" t)
                                    "\\tolerance=3D1000")
org-structure-template-alist '(("s" "#+BEGIN_SRC ?\n\n#+END_SRC"
                                 "<src lang=3D\"?\">\n\n</src>")
                                ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE"
                                 "<example>\n?\n</example>")
                                ("q" "#+BEGIN_QUOTE\n?\n#+END_QUOTE"
                                 "<quote>\n?\n</quote>")
                                ("v" "#+BEGIN_VERSE\n?\n#+END_VERSE"
                                 "<verse>\n?\n</verse>")
                                ("V" "#+BEGIN_VERBATIM\n?\n#+END_VERBATIM"
                                 "<verbatim>\n?\n</verbatim>")
                                ("c" "#+BEGIN_CENTER\n?\n#+END_CENTER"
                                 "<center>\n?\n</center>")
                                ("l" "#+BEGIN_LaTeX\n?\n#+END_LaTeX"
                                 "<literal style=3D\"latex\">\n?\n</literal=
>")
                                ("L" "#+LaTeX: "
                                 "<literal style=3D\"latex\">?</literal>")
                                ("h" "#+BEGIN_HTML\n?\n#+END_HTML"
                                 "<literal style=3D\"html\">\n?\n</literal>=
")
                                ("H" "#+HTML: "
                                 "<literal style=3D\"html\">?</literal>")
                                ("a" "#+BEGIN_ASCII\n?\n#+END_ASCII")
                                ("A" "#+ASCII: ")
                                ("i" "#+INDEX: ?" "#+INDEX: ?")
                                ("I" "#+INCLUDE: %file ?"
                                 "<include file=3D%file markup=3D\"?\">")
                                ("f"
                                 "#+CAPTION: ?\n#+LABEL: \n[[file:%file]]\n=
\n")
                                )
org-metaup-hook '(org-babel-load-in-session-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-hide-leading-stars t
org-default-notes-file "~/notes/notes.org"
org-src-tab-acts-natively t
org-export-backends '(ascii html icalendar latex md)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-mode-hook '(my-org-mode-custom
                 #[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-time-clocksum-format '(:hours "%d" :require-hours t :minutes ":%02d"
                            :require-minutes t)
org-directory "~/notes"
org-footnote-auto-adjust t
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-todo-keywords '((sequence "TODO" "WIP" "DONE") (sequence "REFILE")
                     (sequence "LOOKUP" "NEXT" "FOUND" "READING" "READ"))
org-startup-folded 'content
org-agenda-files '("/Users/jonathan/ox-it/notes.org" "~/notes/notes.org")
org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-babel-tangle-lang-exts '(("lisp" . "lisp") ("python" . "py")
                              ("LilyPond" . "ly") ("emacs-lisp" . "el")
                              ("elisp" . "el"))
org-todo-keyword-faces '(("TODO" :foreground "red" :weight bold)
                          ("WIP" :foreground "orange" :weight bold)
                          ("DONE" :foreground "forest green" :weight bold)
                          ("REFILE" :foreground "red" :weight bold)
                          ("LOOKUP" :foreground "red" :weight bold)
                          ("NEXT" :foreground "yellow" :weight bold)
                          ("FOUND" :foreground "orange" :weight bold)
                          ("READING" :foreground "blue" :weight bold)
                          ("READ" :foreground "forest green" :weight bold))
org-babel-load-languages '((R . t) (emacs-lisp . t) (lilypond . t)
                            (python . t) (lisp . t) (sql . t) (ditaa . t)
                            (sqlite . t) (shell . t) (plantuml . t))
org-confirm-shell-link-function 'yes-or-no-p
)

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

end of thread, other threads:[~2016-09-16 16:40 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 22:45 Bug: Exporting smart single quotes in Org 8.3 seems broken [8.3.2 (8.3.2-elpa @ /Users/jonathan/.emacs.d/elpa/org-20150929/)] Jonathan Oddie
2015-10-02 16:35 ` Nicolas Goaziou
2015-10-02 17:32   ` Jonathan Oddie
2015-10-02 18:53     ` Nicolas Goaziou
2015-10-02 19:36       ` Jonathan Oddie
2015-10-02 20:13         ` Rasmus
2015-10-02 21:55           ` Nicolas Goaziou
2015-10-02 22:24             ` Rasmus
2015-10-03  7:30               ` Nicolas Goaziou
2015-12-06 13:55                 ` lipidic man
2015-12-06 15:28                   ` Rasmus
2015-12-06 17:45                     ` Nicolas Goaziou
2015-12-06 18:21                     ` lipidic man
2016-09-15  6:59                 ` Suvayu Ali
2016-09-15 13:29                   ` Nicolas Goaziou
2016-09-16  7:08                     ` Suvayu Ali
2016-09-16 16:40                       ` Nicolas Goaziou

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