Implement a nicer way of publishing tables. Fix some regexps.
commit6cce4d0251b954c5ae3fd731c6805c3068c45e83
authorMichael Olson <mwolson@gnu.org>
Sat, 24 Dec 2005 20:01:37 +0000 (24 20:01 +0000)
committerMichael Olson <mwolson@gnu.org>
Sat, 24 Dec 2005 20:01:37 +0000 (24 20:01 +0000)
treedc3ed09e2552707d45741f4e7b193f75dd116fcb
parent964d008cf7f9c7dd0c4adec8e2e64a440a4ac92b
Implement a nicer way of publishing tables.  Fix some regexps.

* lisp/muse-html.el (muse-html-markup-footnote): Fix logic error.  I
  thought "/=" was a typo, but it really meant "!=".  Odd.  Let's avoid
  that so that people familiar with C derivatives won't be confused :^) .
  (muse-html-insert-anchor, muse-html-markup-paragraph): Fix regexp.  We
  have to make sure to add "\n" to most negated sets if we don't want
  them to span multiple lines.
  (muse-html-escape-string): Move to muse-xml-common.el.
  (muse-html-prepare-buffer): Use muse-xml-escape-string.

* lisp/muse-journal.el (muse-journal-html-heading-regexp): Fix.

* lisp/muse-latex.el (muse-latex-markup-regexps): Remove the kludgy
  table-joining regexp.
  (muse-latex-markup-table): Call muse-publish-table-fields to get a
  table structure that we can work with.  Now we can publish the entire
  table at once.

* lisp/muse-protocols.el (muse-browse-url-info): Fix regexps.

* lisp/muse-publish.el (muse-publish-markup-regexps): Compact some
  regexps.  Use a table-matching regexp that matches the entire region of
  a table, rather than just one line.
  (muse-publish-file): Docfix.
  (muse-publish-markup-footnote): Compact regexp.
  (muse-publish-table-fields): New function that snarfs the given region
  and returns a table structure.

* lisp/muse-regexps.el (muse-table-field-regexp): New regexp that matches
  the field separator for tables.
  (muse-table-line-regexp): New regexp that matches a table line.
  (muse-tag-regexp): Fix regexp.

* lisp/muse-registry.el (muse-registry-url-regexp)
  (muse-registry-link-regexp): Fix.

* lisp/muse-xml.el (muse-xml-insert-anchor): Fix regexp.

* lisp/muse-xml-common.el: New file containing routines that are commonly
  used by XML-ish publishing styles.
  (muse-xml-sort-table): New function that sorts a table structure so
  that it validates properly.  We don't use it yet, but we will.
git-archimport-id: mwolson@gnu.org--2005/muse--main--1.0--patch-314
ChangeLog
lisp/muse-html.el
lisp/muse-journal.el
lisp/muse-latex.el
lisp/muse-protocols.el
lisp/muse-publish.el
lisp/muse-regexps.el
lisp/muse-registry.el
lisp/muse-xml-common.el [new file with mode: 0644]
lisp/muse-xml.el