From 350f8740a2bd806ee6b62d611db455e84b172bec Mon Sep 17 00:00:00 2001 From: kaoru Date: Fri, 2 Sep 2005 14:24:10 +0000 Subject: [PATCH] * ptexinfmt.el: Support @frenchspacing, @euro, @sansserif. (texinfo-format-ordf): Fix typo. --- utils/ChangeLog | 5 +++++ utils/ptexinfmt.el | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/utils/ChangeLog b/utils/ChangeLog index 001114d..7be4824 100644 --- a/utils/ChangeLog +++ b/utils/ChangeLog @@ -1,3 +1,8 @@ +2005-09-02 TAKAHASHI Kaoru + + * ptexinfmt.el: Support @frenchspacing, @euro, @sansserif. + (texinfo-format-ordf): Fix typo. + 2005-08-08 Hiroya Murata * wl-addrbook.el (wl-addrbook-setup): Set diff --git a/utils/ptexinfmt.el b/utils/ptexinfmt.el index f854f23..c958490 100644 --- a/utils/ptexinfmt.el +++ b/utils/ptexinfmt.el @@ -51,6 +51,7 @@ ;; @definfoenclose ;; @deftypeivar ;; @deftypeop +;; @allowcodebreaks ;;; Code: @@ -202,6 +203,7 @@ DOCSTRING will be printed if ASSERTION is nil and (put 'setcontentsaftertitlepage 'texinfo-format 'texinfo-discard-line) (put 'setshortcontentsaftertitlepage 'texinfo-format 'texinfo-discard-line) (put 'novalidate 'texinfo-format 'texinfo-discard-line-with-args) +(put 'frenchspacing 'texinfo-format 'texinfo-discard-line-with-args) ;; head & foot (put 'headings 'texinfo-format 'texinfo-discard-line-with-args) @@ -219,6 +221,9 @@ DOCSTRING will be printed if ASSERTION is nil and ;; @slanted{} (makeinfo 4.8 or later) (put 'slanted 'texinfo-format 'texinfo-format-noop) +;; @sansserif{} (makeinfo 4.8 or later) +(put 'sansserif 'texinfo-format 'texinfo-format-noop) + ;; @tie{} (makeinfo 4.3 or later) (put 'tie 'texinfo-format 'texinfo-format-tie) (ptexinfmt-defun-if-void texinfo-format-tie () @@ -412,6 +417,12 @@ For example, @verb\{|@|\} results in @ and (insert "(R)")) ;;; Accents and Special characters +;; @euro{} ==> Euro +(put 'euro 'texinfo-format 'texinfo-format-euro) +(ptexinfmt-defun-if-void texinfo-format-euro () + (texinfo-parse-arg-discard) + (insert "Euro ")) + ;; @pounds{} ==> # Pounds Sterling (put 'pounds 'texinfo-format 'texinfo-format-pounds) (ptexinfmt-defun-if-void texinfo-format-pounds () @@ -422,7 +433,7 @@ For example, @verb\{|@|\} results in @ and (put 'ordf 'texinfo-format 'texinfo-format-ordf) (ptexinfmt-defun-if-void texinfo-format-ordf () (texinfo-parse-arg-discard) - (insert "o")) + (insert "a")) ;; @ordm{} ==> o Spanish masculine (put 'ordm 'texinfo-format 'texinfo-format-ordm) -- 1.7.10.4