;;; To ascii macro file for emacs
;;; by Gary T. Leavens <leavens@cs.iastate.edu>
;;;
;;; Last update $Date: 2014/12/09 02:19:04 $

;; 
(fset 'to-ascii
      (lambda ()
	"Convert the buffer to ascii, replacing microsoft and unicode charcters with ascii equivalents."
	(interactive)
	(save-excursion
	  (mapc (function (lambda (pair)
			    (goto-char (point-min))
			    (replace-string (car pair) (cadr pair))))
		'(("\205" "...")
		  ("\u2026" "...")
		  ("\221" "`")
		  ("\u2018" "`")
		  ("\222" "\'")
		  ("\u2019" "'")
		  ("\223" "\"")
		  ("\u201C" "\"")
		  ("\224" "\"")
		  ("\u201D" "\"")
		  ("\225" "*")
		  ("\226" "---")
		  ("\u2014" "---")
		  ("\u2013" "--")
		  ("\227" "--")))
	)))

