[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
smartquotes.el -- Insertion of unicode quotes in text documents
From: |
Martin Blais |
Subject: |
smartquotes.el -- Insertion of unicode quotes in text documents |
Date: |
Sun, 26 Aug 2007 01:21:18 -0400 |
;;; Commentary
;; The functions provided by xmlunicode.el for the insertion of the fancy
;; unicode quotes (double and single) take into account the context of the
;; document for XML documents. Those quotes are more useful, in my experience,
;; in text files written in UTF-8 encoding, such as ReST syntax. The XML
;; functions from xmlunicode often do not work properly in text files, due to
;; the presence of the occasional < or > symbol.
;; Therefore, the smart insertion functions are difficult to use, because their
;; behavior is unpredictable. In accordance with The Humane Interface principles
;; (see J.Raskins' book), we provide context-independent versions of these
;; functions that are much easier to learn and use quickly, since their
;; behaviour is unambigous.
;;; Usage
;; To use the suggested bindings, insert this in your .emacs:
;; (require 'smartquotes)
;; (add-hook 'text-mode-hook 'text-mode-unicode-hook)
;; This does the following for text-mode bindings:
;; - C-" inserts then cycles through the fancier double quotes;
;; - C-' inserts then cycles through the fancier single quotes;
;; - Inserting four dots inserts an ellipsis character. Inserting an additional
;; fourth dot resumes with a string of dots;
;; - Inserting four hyphens inserts an mdash (a long dash character), then an
;; ndash (an inter-word dash character), and then resumes with a string of
;; normal hyphens.
smartquotes.el
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- smartquotes.el -- Insertion of unicode quotes in text documents,
Martin Blais <=