Fossil SCM

Minor editorial improvements to chat documentation

andygoth 2021-01-12 00:11 trunk
Commit 9428699039c6f7d1d7dc776ef1f4b983c83891628693e983530aad6637928d94
1 file changed +16 -16
+16 -16
--- www/chat.md
+++ www/chat.md
@@ -18,11 +18,11 @@
1818
In an existing [server setup](./server/),
1919
simply enable the [C capability](/setup_ucap_list) for users
2020
whom you want to give access to the chatroom.
2121
2222
* **Ephemeral** →
23
- Chat messages do not sync to peer repositories. And they are
23
+ Chat messages do not sync to peer repositories, and they are
2424
automatically deleted after a configurable delay (default: 7 days).
2525
Individual messages or the entire conversation
2626
can be deleted at any time without impacting any other part
2727
of the system.
2828
@@ -29,11 +29,11 @@
2929
Fossil chat is designed for use by insiders - people with check-in
3030
privileges or higher. It is not intended as a general-purpose gathering
3131
place for random passers-by on the internet.
3232
Fossil chat seeks to provide a communication venue for discussion
3333
that does *not* become part of the permanent record for the project.
34
-For persist and durable discussion, use the [Forum](./forum.wiki).
34
+For persistent and durable discussion, use the [Forum](./forum.wiki).
3535
Because the conversation is intended to be ephemeral, the chat messages
3636
are local to a single repository. Chat content does not sync.
3737
3838
3939
## Setup
@@ -55,27 +55,27 @@
5555
the amount of time that chat messages are retained before being purged
5656
from the repository database.
5757
5858
## Usage
5959
60
-For users with appropriate permissions simply browse to the
60
+For users with appropriate permissions, simply browse to the
6161
[/chat](/help?cmd=/chat) to start up a chat session. The default
6262
skin includes a "Chat" entry on the menu bar on wide screens for
6363
people with chat privilege. There is also a "Chat" option on
64
-the [Sitemap page](/sitemap), which means that chat will appears
64
+the [Sitemap page](/sitemap), which means that chat will appear
6565
as an option under the hamburger menu for many [skins](./customskin.md).
6666
6767
Message text is delivered verbatim. There is no markup. However,
6868
the chat system does try to identify and tag hyperlinks, as follows:
6969
7070
* Any word that begins with "http://" or "https://" is assumed
7171
to be a hyperlink and is tagged.
7272
73
- * Text within `[...]` is parsed and it if is a valid hyperlink
73
+ * Text within `[...]` is parsed, and it if is a valid hyperlink
7474
target (according to the way that [Fossil Wiki](/wiki_rules) or
75
- [Markdown](/md_rules) understand hyperlinks) then that text is
76
- tagged. Note that only URLs and fossil-internal constructs such
75
+ [Markdown](/md_rules) understand hyperlinks), then that text is
76
+ tagged. Note that only URLs and Fossil-internal constructs such
7777
as checkin hashes and wiki pages names are recognized here, not
7878
constructs such as `[URL | label]` or `[label](URL)`.
7979
8080
Apart from adding hyperlink anchor tags to bits of text that look
8181
like hyperlinks, no changes are made to the input text.
@@ -85,20 +85,20 @@
8585
files may be dragged and dropped onto that element. Files are not
8686
automatically sent - selection of a file can be cancelled using the
8787
Cancel button which appears only when a file is selected. When the
8888
Send button is pressed, any pending text is submitted along with the
8989
selected file. Image files sent this way will, by default, appear
90
-inline in messages but each user may toggle that via the settings
90
+inline in messages, but each user may toggle that via the settings
9191
popup menu, such that images instead appear as downloadable links.
9292
Non-image files always appear in messages as download links.
9393
9494
### Deletion of Messages
9595
9696
Any user may *locally* delete a given message by clicking on the "tab"
9797
at the top of the message and clicking the button which appears. Such
98
-deletions are local-only and the messages will reappear if the page
99
-page is reloaded. Admin users may additionally choose to globally
98
+deletions are local-only, and the messages will reappear if the page
99
+is reloaded. Admin users may additionally choose to globally
100100
delete a message from the chat record, which deletes it not only from
101101
their own browser but also propagates the removal to all connected
102102
clients the next time they poll for new messages.
103103
104104
## Implementation Details
@@ -112,22 +112,22 @@
112112
javascript uses XMLHttpRequest (XHR) to download chat content, post
113113
new content, or delete historical messages. The following web
114114
interfaces are used by the XHR:
115115
116116
* **/chat-poll** →
117
- Download chat content as JSON.
118
- Chat messages are number sequentially.
117
+ Downloads chat content as JSON.
118
+ Chat messages are numbered sequentially.
119119
The client tells the server the largest chat message it currently
120
- holds and the server sends back subsequent messages. If there
120
+ holds, and the server sends back subsequent messages. If there
121121
are no subsequent messages, the /chat-poll page blocks until new
122122
messages are available.
123123
124124
* **/chat-send** →
125125
Sends a new chat message to the server.
126126
127127
* **/chat-delete** →
128
- Delete a chat message.
128
+ Deletes a chat message.
129129
130130
Fossil chat uses the venerable "hanging GET" or
131131
"[long polling](wikipedia:/wiki/Push_technology#Long_polling)"
132132
technique to recieve asynchronous notification of new messages.
133133
This is done because long polling works well with CGI and SCGI,
@@ -168,11 +168,11 @@
168168
169169
On the server-side, message text is stored exactly as entered by the
170170
users. The /chat-poll page queries the CHAT table and constructs a
171171
JSON reply described in the [/chat-poll
172172
documentation](/help?cmd=/chat-poll). The message text is translated
173
-into HTML prior to being converted into JSON so that the text can be
173
+into HTML before being converted to JSON so that the text can be
174174
safely added to the display using assignment to `innerHTML`. Though
175175
`innerHTML` assignment is generally considered unsafe, it is only so
176176
with untrusted content from untrusted sources. The chat content goes
177
-through sanitation steps which eliminate any potential security
177
+through sanitization steps which eliminate any potential security
178178
vulnerabilities of assigning that content to `innerHTML`.
179179
--- www/chat.md
+++ www/chat.md
@@ -18,11 +18,11 @@
18 In an existing [server setup](./server/),
19 simply enable the [C capability](/setup_ucap_list) for users
20 whom you want to give access to the chatroom.
21
22 * **Ephemeral** →
23 Chat messages do not sync to peer repositories. And they are
24 automatically deleted after a configurable delay (default: 7 days).
25 Individual messages or the entire conversation
26 can be deleted at any time without impacting any other part
27 of the system.
28
@@ -29,11 +29,11 @@
29 Fossil chat is designed for use by insiders - people with check-in
30 privileges or higher. It is not intended as a general-purpose gathering
31 place for random passers-by on the internet.
32 Fossil chat seeks to provide a communication venue for discussion
33 that does *not* become part of the permanent record for the project.
34 For persist and durable discussion, use the [Forum](./forum.wiki).
35 Because the conversation is intended to be ephemeral, the chat messages
36 are local to a single repository. Chat content does not sync.
37
38
39 ## Setup
@@ -55,27 +55,27 @@
55 the amount of time that chat messages are retained before being purged
56 from the repository database.
57
58 ## Usage
59
60 For users with appropriate permissions simply browse to the
61 [/chat](/help?cmd=/chat) to start up a chat session. The default
62 skin includes a "Chat" entry on the menu bar on wide screens for
63 people with chat privilege. There is also a "Chat" option on
64 the [Sitemap page](/sitemap), which means that chat will appears
65 as an option under the hamburger menu for many [skins](./customskin.md).
66
67 Message text is delivered verbatim. There is no markup. However,
68 the chat system does try to identify and tag hyperlinks, as follows:
69
70 * Any word that begins with "http://" or "https://" is assumed
71 to be a hyperlink and is tagged.
72
73 * Text within `[...]` is parsed and it if is a valid hyperlink
74 target (according to the way that [Fossil Wiki](/wiki_rules) or
75 [Markdown](/md_rules) understand hyperlinks) then that text is
76 tagged. Note that only URLs and fossil-internal constructs such
77 as checkin hashes and wiki pages names are recognized here, not
78 constructs such as `[URL | label]` or `[label](URL)`.
79
80 Apart from adding hyperlink anchor tags to bits of text that look
81 like hyperlinks, no changes are made to the input text.
@@ -85,20 +85,20 @@
85 files may be dragged and dropped onto that element. Files are not
86 automatically sent - selection of a file can be cancelled using the
87 Cancel button which appears only when a file is selected. When the
88 Send button is pressed, any pending text is submitted along with the
89 selected file. Image files sent this way will, by default, appear
90 inline in messages but each user may toggle that via the settings
91 popup menu, such that images instead appear as downloadable links.
92 Non-image files always appear in messages as download links.
93
94 ### Deletion of Messages
95
96 Any user may *locally* delete a given message by clicking on the "tab"
97 at the top of the message and clicking the button which appears. Such
98 deletions are local-only and the messages will reappear if the page
99 page is reloaded. Admin users may additionally choose to globally
100 delete a message from the chat record, which deletes it not only from
101 their own browser but also propagates the removal to all connected
102 clients the next time they poll for new messages.
103
104 ## Implementation Details
@@ -112,22 +112,22 @@
112 javascript uses XMLHttpRequest (XHR) to download chat content, post
113 new content, or delete historical messages. The following web
114 interfaces are used by the XHR:
115
116 * **/chat-poll** →
117 Download chat content as JSON.
118 Chat messages are number sequentially.
119 The client tells the server the largest chat message it currently
120 holds and the server sends back subsequent messages. If there
121 are no subsequent messages, the /chat-poll page blocks until new
122 messages are available.
123
124 * **/chat-send** →
125 Sends a new chat message to the server.
126
127 * **/chat-delete** →
128 Delete a chat message.
129
130 Fossil chat uses the venerable "hanging GET" or
131 "[long polling](wikipedia:/wiki/Push_technology#Long_polling)"
132 technique to recieve asynchronous notification of new messages.
133 This is done because long polling works well with CGI and SCGI,
@@ -168,11 +168,11 @@
168
169 On the server-side, message text is stored exactly as entered by the
170 users. The /chat-poll page queries the CHAT table and constructs a
171 JSON reply described in the [/chat-poll
172 documentation](/help?cmd=/chat-poll). The message text is translated
173 into HTML prior to being converted into JSON so that the text can be
174 safely added to the display using assignment to `innerHTML`. Though
175 `innerHTML` assignment is generally considered unsafe, it is only so
176 with untrusted content from untrusted sources. The chat content goes
177 through sanitation steps which eliminate any potential security
178 vulnerabilities of assigning that content to `innerHTML`.
179
--- www/chat.md
+++ www/chat.md
@@ -18,11 +18,11 @@
18 In an existing [server setup](./server/),
19 simply enable the [C capability](/setup_ucap_list) for users
20 whom you want to give access to the chatroom.
21
22 * **Ephemeral** →
23 Chat messages do not sync to peer repositories, and they are
24 automatically deleted after a configurable delay (default: 7 days).
25 Individual messages or the entire conversation
26 can be deleted at any time without impacting any other part
27 of the system.
28
@@ -29,11 +29,11 @@
29 Fossil chat is designed for use by insiders - people with check-in
30 privileges or higher. It is not intended as a general-purpose gathering
31 place for random passers-by on the internet.
32 Fossil chat seeks to provide a communication venue for discussion
33 that does *not* become part of the permanent record for the project.
34 For persistent and durable discussion, use the [Forum](./forum.wiki).
35 Because the conversation is intended to be ephemeral, the chat messages
36 are local to a single repository. Chat content does not sync.
37
38
39 ## Setup
@@ -55,27 +55,27 @@
55 the amount of time that chat messages are retained before being purged
56 from the repository database.
57
58 ## Usage
59
60 For users with appropriate permissions, simply browse to the
61 [/chat](/help?cmd=/chat) to start up a chat session. The default
62 skin includes a "Chat" entry on the menu bar on wide screens for
63 people with chat privilege. There is also a "Chat" option on
64 the [Sitemap page](/sitemap), which means that chat will appear
65 as an option under the hamburger menu for many [skins](./customskin.md).
66
67 Message text is delivered verbatim. There is no markup. However,
68 the chat system does try to identify and tag hyperlinks, as follows:
69
70 * Any word that begins with "http://" or "https://" is assumed
71 to be a hyperlink and is tagged.
72
73 * Text within `[...]` is parsed, and it if is a valid hyperlink
74 target (according to the way that [Fossil Wiki](/wiki_rules) or
75 [Markdown](/md_rules) understand hyperlinks), then that text is
76 tagged. Note that only URLs and Fossil-internal constructs such
77 as checkin hashes and wiki pages names are recognized here, not
78 constructs such as `[URL | label]` or `[label](URL)`.
79
80 Apart from adding hyperlink anchor tags to bits of text that look
81 like hyperlinks, no changes are made to the input text.
@@ -85,20 +85,20 @@
85 files may be dragged and dropped onto that element. Files are not
86 automatically sent - selection of a file can be cancelled using the
87 Cancel button which appears only when a file is selected. When the
88 Send button is pressed, any pending text is submitted along with the
89 selected file. Image files sent this way will, by default, appear
90 inline in messages, but each user may toggle that via the settings
91 popup menu, such that images instead appear as downloadable links.
92 Non-image files always appear in messages as download links.
93
94 ### Deletion of Messages
95
96 Any user may *locally* delete a given message by clicking on the "tab"
97 at the top of the message and clicking the button which appears. Such
98 deletions are local-only, and the messages will reappear if the page
99 is reloaded. Admin users may additionally choose to globally
100 delete a message from the chat record, which deletes it not only from
101 their own browser but also propagates the removal to all connected
102 clients the next time they poll for new messages.
103
104 ## Implementation Details
@@ -112,22 +112,22 @@
112 javascript uses XMLHttpRequest (XHR) to download chat content, post
113 new content, or delete historical messages. The following web
114 interfaces are used by the XHR:
115
116 * **/chat-poll** →
117 Downloads chat content as JSON.
118 Chat messages are numbered sequentially.
119 The client tells the server the largest chat message it currently
120 holds, and the server sends back subsequent messages. If there
121 are no subsequent messages, the /chat-poll page blocks until new
122 messages are available.
123
124 * **/chat-send** →
125 Sends a new chat message to the server.
126
127 * **/chat-delete** →
128 Deletes a chat message.
129
130 Fossil chat uses the venerable "hanging GET" or
131 "[long polling](wikipedia:/wiki/Push_technology#Long_polling)"
132 technique to recieve asynchronous notification of new messages.
133 This is done because long polling works well with CGI and SCGI,
@@ -168,11 +168,11 @@
168
169 On the server-side, message text is stored exactly as entered by the
170 users. The /chat-poll page queries the CHAT table and constructs a
171 JSON reply described in the [/chat-poll
172 documentation](/help?cmd=/chat-poll). The message text is translated
173 into HTML before being converted to JSON so that the text can be
174 safely added to the display using assignment to `innerHTML`. Though
175 `innerHTML` assignment is generally considered unsafe, it is only so
176 with untrusted content from untrusted sources. The chat content goes
177 through sanitization steps which eliminate any potential security
178 vulnerabilities of assigning that content to `innerHTML`.
179

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button