diff options
author | Steve Langasek <vorlon@debian.org> | 2005-01-10 08:53:33 +0000 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:30 -0800 |
commit | e33f9eb9cf5cc29c36ce2aa7e10cd0f37ae0cc8e (patch) | |
tree | abbf06041619e445f9d0b772b0d58132009d8234 /html4each.txi | |
parent | f559c149c83da84d0b1c285f0298c84aec564af9 (diff) | |
parent | 8466d8cfa486fb30d1755c4261b781135083787b (diff) | |
download | slib-e33f9eb9cf5cc29c36ce2aa7e10cd0f37ae0cc8e.tar.gz slib-e33f9eb9cf5cc29c36ce2aa7e10cd0f37ae0cc8e.zip |
Import Debian changes 3a1-4.2debian/3a1-4.2
slib (3a1-4.2) unstable; urgency=low
* Non-maintainer upload.
* Add guile.init.local for use within the build dir, since otherwise we
have an (earlier unnoticed) circular build-dep due to a difference
between scm and guile.
slib (3a1-4.1) unstable; urgency=low
* Non-maintainer upload.
* Build-depend on guile-1.6 instead of scm, since the new version of
scm is wedged in unstable (closes: #281809).
slib (3a1-4) unstable; urgency=low
* Also check for expected creation on slibcat. (Closes: #240096)
slib (3a1-3) unstable; urgency=low
* Also check for /usr/share/guile/1.6/slib before installing for guile
1.6. (Closes: #239267)
slib (3a1-2) unstable; urgency=low
* Add format.scm back into slib until gnucash stops using it.
* Call guile-1.6 new-catalog (Closes: #238231)
slib (3a1-1) unstable; urgency=low
* New upstream release
* Remove Info section from doc-base file (Closes: #186950)
* Remove period from end of description (linda, lintian)
* html gen fixed upstream (Closes: #111778)
slib (2d4-2) unstable; urgency=low
* Fix url for upstream source (Closes: #144981)
* Fix typo in slib.texi (enquque->enqueue) (Closes: #147475)
* Add build depends.
slib (2d4-1) unstable; urgency=low
* New upstream.
slib (2d3-1) unstable; urgency=low
* New upstream.
* Remove texi2html call in debian/rules. Now done upstream. Add make
html instead.
* Changes to rules and doc-base to conform to upstream html gen
* Clean up upstream makefile to make sure it cleans up after itself.
Diffstat (limited to 'html4each.txi')
-rw-r--r-- | html4each.txi | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/html4each.txi b/html4each.txi new file mode 100644 index 0000000..d331b25 --- /dev/null +++ b/html4each.txi @@ -0,0 +1,70 @@ +@code{(require 'html-for-each)} +@ftindex html-for-each + + +@defun html-for-each file word-proc markup-proc white-proc newline-proc + +@var{file} is an input port or a string naming an existing file containing +HTML text. +@var{word-proc} is a procedure of one argument or #f. +@var{markup-proc} is a procedure of one argument or #f. +@var{white-proc} is a procedure of one argument or #f. +@var{newline-proc} is a procedure of no arguments or #f. + +@code{html-for-each} opens and reads characters from port @var{file} or the file named by +string @var{file}. Sequential groups of characters are assembled into +strings which are either + +@itemize @bullet +@item +enclosed by @samp{<} and @samp{>} (hypertext markups or comments); +@item +end-of-line; +@item +whitespace; or +@item +none of the above (words). +@end itemize + +Procedures are called according to these distinctions in order of +the string's occurrence in @var{file}. + +@var{newline-proc} is called with no arguments for end-of-line @emph{not within a +markup or comment}. + +@var{white-proc} is called with strings of non-newline whitespace. + +@var{markup-proc} is called with hypertext markup strings (including @samp{<} and +@samp{>}). + +@var{word-proc} is called with the remaining strings. + +@code{html-for-each} returns an unspecified value. +@end defun + +@defun html:read-title file limit + + +@defunx html:read-title file +@var{file} is an input port or a string naming an existing file containing +HTML text. If supplied, @var{limit} must be an integer. @var{limit} defaults to +1000. + +@code{html:read-title} opens and reads HTML from port @var{file} or the file named by string @var{file}, +until reaching the (mandatory) @samp{TITLE} field. @code{html:read-title} returns the +title string with adjacent whitespaces collapsed to one space. @code{html:read-title} +returns #f if the title field is empty, absent, if the first +character read from @var{file} is not @samp{#\<}, or if the end of title is +not found within the first (approximately) @var{limit} words. +@end defun + +@defun htm-fields htm + +@var{htm} is a hypertext markup string. + +If @var{htm} is a (hypertext) comment, then @code{htm-fields} returns #f. +Otherwise @code{htm-fields} returns the hypertext element symbol (created by +@code{string-ci->symbol}) consed onto an association list of the +attribute name-symbols and values. Each value is a number or +string; or #t if the name had no value assigned within the markup. +@end defun |