diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a1aac9c..851297c 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,7 +1,10 @@
# Contributing
-Contributions are welcome: issues, fixes and features alike. Before
-sending a change, preview the site ([README.md](README.md)).
+We accept contributions: issues, fixes and new features. Before you send
+a change, preview the site (refer to [README.md](README.md)).
+
+Write all technical documentation in ASD-STE100 Simplified Technical
+English. Follow [STYLE.md](STYLE.md).
## The contributor agreement
@@ -50,9 +53,13 @@ does it):
It says that you agree to the above for that commit. A contribution
without it cannot be merged.
-A check on each pull request looks for that line, with the commit
-author's email, on every commit. If it's missing, `git rebase --signoff
-main` (or `git commit --amend -s` for the last commit) adds it; then
-force-push. Pull requests from the D-Modem Authors themselves (the
-repository's owner and the D-Modem organization's members) are not
-checked.
+A check on each pull request looks for that line on every commit. The
+line must have the email address of the commit author. If the line is
+missing, do these steps:
+
+1. Add the line with `git rebase --signoff main`. For the last commit
+ only, you can use `git commit --amend -s`.
+2. Force-push the branch.
+
+The check does not examine pull requests from the D-Modem Authors (the
+owner of the repository and the members of the D-Modem organization).
diff --git a/README.md b/README.md
index 2d4edd2..04bb262 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,16 @@
# D-Modem.github.io
-The D-Modem suite's website, : what the
-suite is and where each of its repositories' sites lives.
+This is the website of the D-Modem suite, .
+It tells what the suite is, and gives the location of the site of each
+repository in the suite.
-The pages are under `docs/`. They're built with Zensical and the shared
-theme from [brand](https://github.com/D-Modem/brand) (its
-[docs/sites.md](https://github.com/D-Modem/brand/blob/main/docs/sites.md)),
-and deployed by `.github/workflows/pages.yml` on every push to main.
+The pages are in `docs/`. Zensical builds them with the shared theme from
+[brand](https://github.com/D-Modem/brand) (refer to its
+[docs/sites.md](https://github.com/D-Modem/brand/blob/main/docs/sites.md)).
+`.github/workflows/pages.yml` deploys them on each push to main.
-To preview, with brand cloned beside this repository:
+To preview the site, clone brand next to this repository. Then run these
+commands:
pip install -r ../brand/pages/requirements.txt
../brand/tools/site.sh . serve
diff --git a/STYLE.md b/STYLE.md
new file mode 100644
index 0000000..2e7fd3e
--- /dev/null
+++ b/STYLE.md
@@ -0,0 +1,142 @@
+# Documentation style: ASD-STE100 Simplified Technical English
+
+All technical documentation in the D-Modem project uses ASD-STE100
+Simplified Technical English (STE). This guide gives the rules that we use.
+It applies to READMEs, the `docs/` folders, wikis, specifications, design
+documents, protocol write-ups, CONTRIBUTING files (except legal text) and
+technical notes in the project files.
+
+The official source is the ASD-STE100 specification (Issue 9) and its
+dictionary. If this guide and the specification are different, use the
+specification. You can get the specification free of charge from
+.
+
+## 1. What STE does not change
+
+Do not change these items. Copy them exactly:
+
+- Code, commands, file names, paths, URLs, identifiers and configuration keys.
+- AT commands, S-registers, result codes and protocol message names.
+- Numbers, units, addresses, offsets and register values.
+- Titles of standards (for example, ITU-T V.92) and quotations from them.
+- Product names, company names and the names of people.
+- Legal text: licenses, the contributor agreement, copyright and trademark
+ notices. Legal text keeps its legal wording.
+- Text that we copied from a third party (for example, `ORIGINAL-readme.txt`
+ files, firmware release notes, test fixtures).
+
+## 2. Words
+
+1. Use approved words from the STE dictionary, with their approved meaning
+ only. For example, "close" means "to move to the closed position". It
+ does not mean "near".
+2. Use technical names (Category: technical names). For example: modem,
+ handshake, carrier, codec, constellation, packet, socket, thread,
+ buffer, firmware, sample rate, call, line, PBX, trunk, server, client.
+3. Use technical verbs (Category: technical verbs) for processes that STE
+ does not cover. This project uses these technical verbs: build, compile,
+ link, configure, install, uninstall, boot, flash, download, upload, dial,
+ log in, log out, debug, decode, encode, modulate, demodulate, train,
+ retrain, negotiate, sign, encrypt, decrypt, compress, decompress, parse,
+ render, cache, merge, commit, push, clone, emulate, probe.
+4. Use one word for one thing. Do not change between synonyms. For example,
+ if you write "softmodem", do not write "software modem" in the next
+ paragraph.
+5. Use these verb forms only: infinitive, imperative, simple present, simple
+ past, simple future, and the past participle as an adjective.
+6. Do not use "-ing" forms of verbs, except in technical names (for example,
+ "ring signal", "echo canceller"). Write "the modem starts to train", not
+ "the modem is training".
+7. Do not use phrasal verbs. Write "start", not "start up". Write "find",
+ not "find out".
+8. Do not make noun clusters of more than three words. Use prepositions to
+ break up longer clusters. Write "the receive buffer of the V.34 data
+ pump", not "the V.34 data pump receive buffer".
+9. Use articles ("the", "a") and demonstrative adjectives ("this", "these")
+ before nouns where possible.
+10. Do not use slang, idioms, contractions ("can't", "it's") or Latin
+ abbreviations ("e.g.", "i.e.", "etc."). Write "for example", "that is",
+ "and other items".
+
+### Common replacements
+
+| Do not write | Write |
+|---|---|
+| utilize, make use of | use |
+| ensure, make certain | make sure |
+| require, need to | is necessary, must |
+| should | must (a rule) or write what occurs (a fact) |
+| allow, enable (a person) | let, make it possible |
+| approximately, roughly | about |
+| perform, carry out | do |
+| obtain, fetch, grab | get |
+| prior to | before |
+| in order to | to |
+| via | through |
+| currently | now |
+| additional | more |
+| e.g., i.e., etc. | for example, that is, and other items |
+| turn on / turn off (a setting) | enable / disable (technical verbs for software settings) |
+| set up (verb) | configure, install |
+| figure out, find out | find, calculate |
+| it's, can't, don't | it is, cannot, do not |
+
+## 3. Sentences
+
+1. Write one topic in one sentence.
+2. Procedural sentences (instructions): 20 words or fewer.
+3. Descriptive sentences: 25 words or fewer.
+4. Use the active voice. In descriptive text, you can use the passive voice
+ only when you do not know who or what does the action.
+5. Do not use semicolons to join sentences. Write two sentences.
+6. Use a colon before a list. Use a vertical list when there are more than
+ two items.
+7. Use connecting words ("then", "but", "if", "because") to show how two
+ sentences are related.
+
+## 4. Procedures
+
+1. Write instructions in the imperative ("Install the package").
+2. Write one instruction in one sentence. You can write two actions in one
+ sentence only when the reader does them at the same time.
+3. Write each step as a numbered item.
+4. If a condition applies, write the condition first: "If the build fails,
+ delete the `build/` folder."
+5. Put a warning or a caution before the step that it applies to. Do not put
+ it at the end of the procedure.
+6. Write the result of a step in a separate sentence after the step, if the
+ reader must know it.
+
+## 5. Descriptive writing
+
+1. Give the most important information first.
+2. Write one topic in one paragraph.
+3. Do not write more than six sentences in a paragraph.
+4. Use headings to divide long text into short sections.
+5. Use tables for data that has rows and columns.
+
+## 6. Warnings and cautions
+
+Use a warning for a risk to persons. Use a caution for a risk to equipment,
+data or the telephone line. Start with a short title, then the instruction,
+then the risk:
+
+> **CAUTION: DO NOT CONNECT THE BOARD TO A LIVE LINE WITHOUT THE ISOLATION
+> TRANSFORMER.** The line voltage can cause damage to the codec.
+
+## 7. Examples
+
+| Before | After (STE) |
+|---|---|
+| You'll need to make sure the PBX is set up before you dial out. | Configure the PBX before you dial. |
+| The handshake is performed by the answering modem, which then starts sending ANSam. | The answering modem starts the handshake. Then it sends ANSam. |
+| Turn it off if it's causing trouble. | If this feature causes problems, disable it. |
+| `crypto/tls` can't take such a hello, and it can't be rewritten for it. | `crypto/tls` cannot accept this type of hello. Also, you cannot change `crypto/tls` to accept it. |
+
+## 8. Check before you commit
+
+- Are all sentences short (20 words for instructions, 25 for descriptions)?
+- Is each instruction in the imperative, with one action?
+- Is there a word with "-ing", a phrasal verb or a contraction?
+- Are code, commands and identifiers exactly the same as before?
+- Did you keep legal text and third-party text unchanged?
diff --git a/docs/index.md b/docs/index.md
index 82582d3..edf1d7a 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -14,8 +14,8 @@ hide:
**An open V.92 softmodem, and the app, boards and servers built around it.**
Dial a BBS, a fax machine or an ISP from a SIP call, a phone, or a real
-phone line, with no modem hardware. Or run the other end: answer modem
-callers on a PBX and give them a login, a menu and a bulletin board.
+phone line, without modem hardware. Or run the other end: answer modem
+callers on a PBX, and give them a login, a menu and a bulletin board.
@@ -31,15 +31,16 @@ callers on a PBX and give them a login, a menu and a bulletin board.
---
The softmodem: V.92 down to Bell 103, class 1, 2 and 2.0 fax, V.42 and
- V.44. `dmodemd` puts it on a SIP line; modules put it in Asterisk,
- FreeSWITCH and FreePBX. Linux, Windows, macOS and Haiku.
+ V.44. `dmodemd` connects it to a SIP line. Modules put it in Asterisk,
+ FreeSWITCH and FreePBX. It runs on Linux, Windows, macOS and Haiku.
- **[app](https://github.com/D-Modem/app)**
---
- The D-Modem app for Android and iOS: a modem whose phone line is a SIP
- call, with a terminal, a dialling directory, fax and dial-up internet.
+ The D-Modem app for Android and iOS: a modem that uses a SIP call as
+ its phone line. It has a terminal, a dialling directory, fax and
+ dial-up internet.
- **[hardware](https://github.com/D-Modem/hardware)**
@@ -52,8 +53,8 @@ callers on a PBX and give them a login, a menu and a bulletin board.
---
- modemmenu: the login and menu dial-up callers see first, with PPP, a
- shell, the BBS or any program behind it.
+ modemmenu: the login and the menu that dial-up callers see first.
+ Behind it, it can have PPP, a shell, the BBS or any other program.
- **[bbs](https://github.com/D-Modem/bbs)**
@@ -66,33 +67,34 @@ callers on a PBX and give them a login, a menu and a bulletin board.
---
- A Go library for TN3270 servers, the suite's fork of
- racingmars/go3270. bbs draws its 3270 screens with it.
+ A Go library for TN3270 servers. It is the fork of racingmars/go3270
+ for the suite. bbs uses it to draw its 3270 screens.
- **[gui](https://github.com/D-Modem/gui)**
---
- Native desktop apps for D-Modem, in the works: the modem, its
- terminal and fax in a window on Windows, macOS and Linux.
+ Native desktop apps for D-Modem. We now develop them, and they are not
+ complete. They will put the modem, its terminal and fax in a window on Windows,
+ macOS and Linux.
- **[brand](https://github.com/D-Modem/brand)**
---
The mark, the Rainbow Book colours, type, the naming guide, and the
- theme every D-Modem site shares.
+ theme that all D-Modem sites share.
## Start here
-- **Dial out from a computer:** build [D-Modem](https://github.com/D-Modem/D-Modem)
- and run `dmodemd` with a SIP account, then dial from any terminal program.
-- **Dial out from a phone:** install the [D-Modem app](https://github.com/D-Modem/app).
-- **Use a real phone line or serial port:** see the
+- **Dial from a computer:** build [D-Modem](https://github.com/D-Modem/D-Modem)
+ and run `dmodemd` with a SIP account. Then dial from a terminal program.
+- **Dial from a phone:** install the [D-Modem app](https://github.com/D-Modem/app).
+- **Use a real phone line or serial port:** refer to the
[pico-serial boards](https://github.com/D-Modem/hardware).
-- **Answer callers:** put D-Modem in Asterisk, then
+- **Answer callers:** put D-Modem in Asterisk. Then put
[modemmenu](https://github.com/D-Modem/menu) and the
[bbs](https://github.com/D-Modem/bbs) behind it.
diff --git a/docs/suite.md b/docs/suite.md
index be13a46..18963d9 100644
--- a/docs/suite.md
+++ b/docs/suite.md
@@ -1,7 +1,8 @@
# How the pieces fit together
-D-Modem's modem core is the centre of the suite. Everything else either
-carries it somewhere or answers the calls it makes.
+The modem core of D-Modem is the centre of the suite. Each other part of
+the suite either carries the core to a different location or answers the
+calls that it makes.
```
caller's side answering side
@@ -17,32 +18,32 @@ carries it somewhere or answers the calls it makes.
## Calling out
-- **On a computer**, [D-Modem](https://github.com/D-Modem/D-Modem)'s
- `dmodemd` places a SIP call and gives the computer a serial port (a pty,
- a COM port or a socket). Terminal programs, fax software and `pppd` dial
- from it with AT commands, as they would a hardware modem.
+- **On a computer**, `dmodemd` of [D-Modem](https://github.com/D-Modem/D-Modem)
+ makes a SIP call and gives the computer a serial port (a pty, a COM
+ port or a socket). Terminal programs, fax software and `pppd` dial
+ through this port with AT commands, as with a hardware modem.
- **On a phone**, the [D-Modem app](https://github.com/D-Modem/app) runs
the same core on Android or iOS, with its own terminal, fax and dial-up
internet.
- **On a real phone line**, a [pico-serial](https://github.com/D-Modem/hardware)
- Line stick is the line's interface, and D-Modem is the modem behind it.
- The serial adapters connect vintage computers to D-Modem as if it were
- a modem on their serial port.
+ Line stick is the interface to the line, and D-Modem is the modem
+ behind it. The serial adapters connect vintage computers to D-Modem.
+ To the computer, D-Modem is the same as a modem on its serial port.
## Answering
-- **D-Modem's PBX modules** (`app_dmodem` for Asterisk and FreePBX,
+- **The PBX modules of D-Modem** (`app_dmodem` for Asterisk and FreePBX,
`mod_dmodem` for FreeSWITCH, `dmodem-ari`) answer a modem call on a
phone number.
-- **[modemmenu](https://github.com/D-Modem/menu)** is what the caller
- meets once the modems connect: a login, the message of the day and a
- menu of what they may do.
-- **[bbs](https://github.com/D-Modem/bbs)** is one of those things: a
- bulletin board that also takes telnet, SSH and TN3270 callers, with
- [go3270](https://github.com/D-Modem/go3270) drawing its 3270 screens.
+- **[modemmenu](https://github.com/D-Modem/menu)** is the first thing
+ that the caller sees when the modems connect. It gives a login, the
+ message of the day and a menu of the tasks that the caller can do.
+- **[bbs](https://github.com/D-Modem/bbs)** is one of those tasks. It is
+ a bulletin board that also accepts telnet, SSH and TN3270 callers.
+ [go3270](https://github.com/D-Modem/go3270) draws its 3270 screens.
## Licences
-Every repository is under the GNU AGPL 3.0 only, or a commercial licence
-from the D-Modem Authors. go3270's code from upstream also keeps its MIT
-licence. Each repository's README has the details.
+Each repository is under the GNU AGPL 3.0 only, or a commercial licence
+from the D-Modem Authors. The upstream code of go3270 also keeps its MIT
+licence. The README of each repository has the details.