HTMList

Introduction

HTMList is a 2.x-only Newton "autopart" which appears in Extras Extensions. It is a simple HTML "authoring" tool that can save

HTMList is demoware and cannot be redistributed without my permission. © 1997-2005. S. Weyer. All Rights Reserved Worldwide.

Download

Command Summary

Notes
Save as HTML (to Notes)
Newt's Cape:Add Bookmarks (2.x)
NewtWorks
Save as HTML (2.1) (to NewtWorks)
Newt's Cape:Add Bookmarks [2.1]
books
Page Range
Save (formatted text/graphics) to NewtWorks (2.1)
Save as HTML to NewtWorks (2.1)
Save as HTML to Notes
Save as HTML to Desktop
Mail,Speak,... [2.1]
Inbox
Newt's Cape:Add Bookmarks [2.x]

Change History

HTMList 1.0k-2 (23 Jan 00)

1.0j-2 (13 Jan 99)

1.0i-2 (8 Jan 99)

1.0h-2 (26 Sep 98)

1.0g-2 (25 Sep 98)

1.0f-2 (11 Sep 98)

1.0e-2 (10 Sep 98)

1.0d,-2 (28 Aug 98)

1.0c-2 (24 Jun 98)

1.0b-2 (17 Jan 98): added "Add Newt's Cape Bookmarks"

1.0a-2 (4 Oct 97): initial release

The remainder of this document currently describes only the original list features and needs a major update! (including incorporating RouteBook functionality).

  1. open Notes
  2. create a New:Outline or :Checklist (or select an existing one)
  3. add/move/remove list items and levels
  4. select in Notes action menu, and view result:
    Export to HTML
    email/beam HTML source (new Note) to a friend, or view it with Newt's Cape (Newt's Cape:Open in Notes action menu) (or other web browser that can access Notes documents)
    Newt's Cape:Add Bookmarks
    tap Newt's Cape's Bookmarks button. note: you can use Newt's Cape's Bookmarks:Save as Outline command to export current bookmarks as a Notes outline.

HTMList generally creates groups of unordered list items, i.e., UL, which usually are rendered as bulleted items in most browsers. But depending on content conventions, you can also create ordered or definition lists, with URLs. Examples below are also available separately in Sloup.

Unordered List Example: UL test

This Notes example (bulleted items):

would generate the following HTML source (HTMList uses the title of the Note as TITLE in HTML source):

<HTML><HEAD>
<TITLE>UL test<TITLE>
<META NAME="ISBN" CONTENT="UL_test.htm">
</HEAD><BODY>
<UL>
<LI>a
  <UL>
  <LI>b
  <LI>c
    <UL>
    <LI>d
    </UL>
  </UL>
<LI>e
</UL>
</BODY></HTML>

which would appear in a browser as...

Patterns

There are some special patterns that HTMList recognizes to create other kinds of list items:

nn. (initial number)
when an initial digit followed by period occurs in the first item in a group, HTMList uses OL instead of UL; it also strips the number and . from this and subsequent items (most browsers will automatically add consecutive number prefixes). In particular, you need to add a number only to the first item (or any items that contain a period). example
label:value
when a colon occurs in the first item in a group, HTMList uses DL instead of UL; it will put the label after DT; and value after DD (instead of LI). Any subsequent item without a : appears entirely after DT. example
<url>label
HTMList surrounds the url with HREF; if there is no label, the url is used. This can be used in combination with the two earlier patterns; it could be handy for organizing/annotating your own bookmarks. example

Ordered (numbered) List Example: OL Test

This Notes example (items prefixed with nn.):

would generate the following HTML fragment...

<OL>
<LI>one
  <OL>
  <LI>a
  <LI>b
  </OL>
<LI>two
</OL>

which would appear in a browser as...

  1. one
    1. a
    2. b
  2. two

Definition List Example: DL Test

This Notes example (term and definition separated by :):

would generate the following HTML fragment...

<DL>
<DT>one
<DD>uno
<DT>two
<DD>dos
</DL>

which would appear in a browser as...

one
uno
two
dos

URL Example: URL Test

And finally, this Note example combines several things, along with URLs (surrounded by <...>):

would generate the following HTML fragment...

<UL>
<LI>important pages (as bullets) with labels
  <UL>
  <LI><A HREF="http://communicrossings.com/html/newton/index.htm">Steve's Newton page</A>
  <LI><A HREF="http://www.apple.com/">Apple Product Info?</A>
  </UL>
<LI>some pages (numbered) with urls displayed
  <OL>
  <LI><A HREF="http://www.foo.com/">http://www.foo.com/</A>
  <LI><A HREF="http://bar.com/">http://bar.com/</A>
  </OL>
<LI>some pages (as "definitions" (comments?))
  <DL>
  <DT>this is a really great page
  <DD><A HREF="http://www.foo.com/">foo's page</A>
  <DT>a so-so page
  <DD><A HREF="http://bar.com/">http://bar.com/</A>
  <DT><A HREF="http://www.zzz.com/">http://www.zzz.com/</A>
  </DL>
</UL>

which would appear in a browser as...