(texinfo docbook) support for @acronym
authorAndy Wingo <wingo@pobox.com>
Mon, 7 May 2012 18:39:14 +0000 (20:39 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 7 May 2012 18:39:14 +0000 (20:39 +0200)
* module/texinfo/docbook.scm (*sdocbook->stexi-rules*): Recognize
  "acronym" as parsing to the @acronym texinfo command.

module/texinfo/docbook.scm

index 7277926..50a7bbc 100644 (file)
@@ -1,6 +1,6 @@
 ;;;; (texinfo docbook) -- translating sdocbook into stexinfo
 ;;;;
-;;;;   Copyright (C) 2009, 2010  Free Software Foundation, Inc.
+;;;;   Copyright (C) 2009, 2010, 2012  Free Software Foundation, Inc.
 ;;;;    Copyright (C) 2007, 2009 Andy Wingo <wingo at pobox dot com>
 ;;;; 
 ;;;; This library is free software; you can redistribute it and/or
@@ -89,6 +89,8 @@ a number of generic rules for transforming docbook into texinfo."
                          `(item ,@body))))
                   . ,(lambda (tag . body)
                        `(itemize ,@body)))
+    (acronym . ,(lambda (tag . body)
+                  `(acronym (% (acronym . ,body)))))
     (term . ,detag-one)
     (informalexample . ,detag-one)
     (section . ,identity)