aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-01-30 23:38:11 +0000
committerJohn Ankarström <john@ankarstrom.se>2021-01-30 23:38:11 +0000
commit4d51dc76d08e80c0a5ac0abf31d8e1ced153d161 (patch)
tree19f1ac5f05b002aa9acd6cf890af8ea2baa8e202
parent7f1361520dec7f89e8b530f25987af8337c4db90 (diff)
downloadem-4d51dc76d08e80c0a5ac0abf31d8e1ced153d161.tar.gz
Update README
-rw-r--r--README42
-rw-r--r--README.html39
2 files changed, 42 insertions, 39 deletions
diff --git a/README b/README
index 4ec2956..8dd0f01 100644
--- a/README
+++ b/README
@@ -1,30 +1,32 @@
-Em is a limited hypertext markup language.
-
-It is similar to Markdown, but it has a few key advantages:
+_Em is a limited hypertext markup language that is designed to be
+maximally readable._ It is similar to Markdown, but it has a few key advantages:
1. It is more readable.
2. It is simpler to parse.
- 3. There is *not* more than one way to do it (forgive me, Larry).
+ 3. There is *not* more than one way to do it: for any given HTML, there is
+never more than a single possible em representation.
-Em takes plain-text readability seriously. You should be able to
-write em in a plain-text e-mail message without the recipient noticing.
-On the other hand, that means that it is limited in terms of what HTML
-it can produce. Most noticeably, only a very limited form of inline links
-are supported (see *Lists* and *Inline formatting*).
+Em values readability over expressiveness. This means that it is rather limited
+in terms of what HTML it can produce. Most noticeably, only a very limited
+form of inline links are supported (see *Lists* and *Inline formatting*).
-For examples, see the source code for this text [a] or the test file [b].
+Em also values consistency and predictability. As such, the syntax is rather
+strict. This makes it a bit harder to learn, but much more predictable.
- [a] ../tree/README
- [b] ../tree/test.em
+Em's complete and exact syntax is defined by its implementation [1], but a
+general description follows below. For longer examples, see the source
+code for this text [2] or the test file [3].
-Em is implemented in portable awk, with an rc script to bind it together.
-The rc script can (more or less) trivially be translated to POSIX shell,
-but the work has not been done yet.
+ [1] ../tree/README
+ [2] ../tree/test.em
+ [3] ../tree/emparse
-Em's complete and exact syntax is defined by its implementation [c],
-but a general description follows below.
+Em is implemented in portable awk, with an rc script to bind it together.
+It is written on and for Plan 9 primarily, but the rc code can (more or less)
+trivially be translated to POSIX shell; the work just hasn't been done yet.
- [c] ../tree/emparse
+Em also includes the rc script *htwrap*, which can be used to create a
+standalone HTML document from em output.
---
@@ -66,9 +68,9 @@ Hyperlinks are a special case of inline references. When an inline
reference refers to a reference containing only a web address,
the inline reference is replaced with a hyperlink to that address.
- It is available for download [a].
+ It is available for download [2].
- [a] v1.tgz
+ [2] v1.tgz
The above example translates to the following HTML:
diff --git a/README.html b/README.html
index 1c7707c..c6fa908 100644
--- a/README.html
+++ b/README.html
@@ -1,38 +1,39 @@
<p>
-Em is a limited hypertext markup language.
-</p>
-<p>
-It is similar to Markdown, but it has a few key advantages:
+<b>Em is a limited hypertext markup language that is designed to be
+maximally readable.</b> It is similar to Markdown, but it has a few key advantages:
</p>
<ol>
<li value="1">It is more readable.
</li><li value="2">It is simpler to parse.
-</li><li value="3">There is <i>not</i> more than one way to do it (forgive me, Larry).
+</li><li value="3">There is <i>not</i> more than one way to do it: for any given HTML, there is
+never more than a single possible em representation.
</li>
</ol>
<p>
-Em takes plain-text readability seriously. You should be able to
-write em in a plain-text e-mail message without the recipient noticing.
-On the other hand, that means that it is limited in terms of what HTML
-it can produce. Most noticeably, only a very limited form of inline links
-are supported (see <i>Lists</i> and <i>Inline formatting</i>).
+Em values readability over expressiveness. This means that it is rather limited
+in terms of what HTML it can produce. Most noticeably, only a very limited
+form of inline links are supported (see <i>Lists</i> and <i>Inline formatting</i>).
+</p>
+<p>
+Em also values consistency and predictability. As such, the syntax is rather
+strict. This makes it a bit harder to learn, but much more predictable.
</p>
<p>
-For examples, see the source code for this text (<a href="../tree/README">link</a>) or the test file (<a href="../tree/test.em">link</a>).
+Em's complete and exact syntax is defined by its implementation (<a href="../tree/README">link</a>), but a
+general description follows below. For longer examples, see the source
+code for this text (<a href="../tree/test.em">link</a>) or the test file (<a href="../tree/emparse">link</a>).
</p>
<ol class="reflist" style="font-size: small;">
</ol>
<p>
Em is implemented in portable awk, with an rc script to bind it together.
-The rc script can (more or less) trivially be translated to POSIX shell,
-but the work has not been done yet.
+It is written on and for Plan 9 primarily, but the rc code can (more or less)
+trivially be translated to POSIX shell; the work just hasn't been done yet.
</p>
<p>
-Em's complete and exact syntax is defined by its implementation (<a href="../tree/emparse">link</a>),
-but a general description follows below.
+Em also includes the rc script <i>htwrap</i>, which can be used to create a
+standalone HTML document from em output.
</p>
-<ol class="reflist" style="font-size: small;">
-</ol>
<hr/>
<h2>Inline formatting</h2>
<hr/>
@@ -75,9 +76,9 @@ reference refers to a reference containing only a web address,
the inline reference is replaced with a hyperlink to that address.
</p>
<pre>
-It is available for download [a].
+It is available for download [2].
- [a] v1.tgz
+ [2] v1.tgz
</pre>
<p>
The above example translates to the following HTML: