Mercurial > emacs
annotate etc/enriched.doc @ 11193:b0a12ea680c1
(message_nolog): New function.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 03 Apr 1995 22:10:36 +0000 |
parents | 2ec1bc611182 |
children | 01d6f40201e1 |
rev | line source |
---|---|
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
1 Content-type: text/enriched |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
2 Text-width: 86 |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
3 |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
4 |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
5 <<center><<bold><<x-bg-color><<param>gray<</param><<x-color><<param>blue<</param>Enriched: |
9678 | 6 |
7 A WYSIWYG enriched-text editing environment for GNU Emacs | |
8 | |
9 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
10 <</x-color><</x-bg-color><</bold><</center><<bold>INTRODUCTION |
9678 | 11 |
12 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
13 <</bold><<indent>This package, along with the <<bold>facemenu<</bold> package, is the beginning of a WYSIWYG |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
14 ("what you see is what you get") Emacs mode for editing <<italic>enriched text: <</italic>text with |
9678 | 15 different faces, colors, etc. Facemenu allows you to add faces (such as |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
16 <<bold>boldface<</bold>, <<italic>italics<</italic>, and <<underline>underlining<</underline>) your documents, while <<bold>enriched<</bold> allows you to |
9678 | 17 save the documents with those "text properties" included. The format in which |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
18 they are saved is called <<italic>text/enriched<</italic>, and is defined as part of the MIME |
9678 | 19 standard, so that your documents are transportable (even through email) to many |
20 other systems. | |
21 | |
22 | |
23 Not all systems will be able to recreate all of the features of your document, | |
24 but they will get as close as possible. For systems that do not understand it at | |
25 all, the text of the document should still be legible; the reader can simply | |
26 ignore the annotations specifying face changes and the like. | |
27 | |
28 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
29 <</indent><<bold>INSTALLATION and STARTUP <</bold> |
9678 | 30 |
31 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
32 <<indent>The <<fixed>enriched.el<</fixed> file should be installed somewhere that emacs will find it (ie, |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
33 one of the directories on emacs's <<fixed>load-path <</fixed>variable), and byte-compiled for |
9678 | 34 speed. |
35 | |
36 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
37 The documentation below assumes that you have my <<fixed>facemenu.el<</fixed> (which is included |
9678 | 38 in recent versions of emacs). You may also find it useful to have Jim Thompson's |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
39 <<fixed>ps-print.el<</fixed>, which will allow you to print out buffers including their faces |
9678 | 40 (unfortunately it is not currently able to deal with merged faces; hopefully it |
41 will be revised soon.) These two files should also be installed into your lisp | |
42 directory and byte-compiled. | |
43 | |
44 | |
45 Put the following code into your .emacs file to automatically load enriched when | |
46 needed: | |
47 | |
48 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
49 <<indent><<fixed>(autoload 'enriched-mode "enriched" nil t)<</fixed><</indent> |
9678 | 50 |
51 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
52 <<bold>Enriched <</bold>puts an identifying header into files it writes, which allows it to |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
53 recognize any emacs-generated <<italic>text/enriched<</italic> file and put itself into the proper |
9678 | 54 mode. If you get a file from some other source, however, such as through the |
55 mail, you may have to enter enriched-mode manually: | |
56 | |
57 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
58 <<indent><<fixed>M-x enriched-mode<</fixed><</indent> |
9678 | 59 |
60 | |
61 You may be asked a couple of questions at this point: | |
62 | |
63 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
64 <<italic>Does the buffer need to be translated now?<</italic> If the buffer contains <<italic>text/enriched |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
65 <</italic>data which needs to be translated into a readable document with fonts and such, |
9678 | 66 then answer "yes". If you are putting a new document into text/enriched format |
67 for the first time, then say "no". | |
68 | |
69 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
70 <<italic>Reformat for current display width?<</italic> If emacs knows that the document was created |
9678 | 71 with the same display width that is currently in effect, it will trust the line |
72 breaks that are in the file, which saves some time. If it was saved at a | |
73 different width, or emacs doesn't know what width it was saved at, then it may | |
74 ask whether it should reformat. Actually it does not ask by default; it just | |
75 goes ahead and fills. But if you want it to ask, you can set the variable | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
76 <<fixed>enriched-fill-after-visiting<</fixed> to <<fixed>'ask<</fixed>. |
9678 | 77 |
78 | |
79 In the future, other modes such as mail and news may recognize messages that are | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
80 enriched text, and automatically call on <<bold>enriched<</bold> to display them for you. |
9678 | 81 |
82 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
83 <</indent><<bold>WHAT IS ENCODED<</bold> |
9678 | 84 |
85 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
86 <<indent>Aside from the text itself, various properties are saved. More will eventually |
9678 | 87 be added, so that you will be able to save and read just about anything that can |
88 be displayed in an emacs frame. Following is the list of properties that are | |
89 currently understood; each is covered in more detail below. | |
90 | |
91 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
92 <<bold>Faces:<</bold> default, <<bold>bold<</bold>, <<italic>italic<</italic>, <<underline>underline<</underline>, <<fixed>fixed<</fixed>, etc. |
9678 | 93 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
94 <<bold>Colors:<</bold> <<x-color><<param>red<</param><<x-bg-color><<param>DarkSlateGray<</param>any<</x-bg-color><</x-color><<x-bg-color><<param>DarkSlateGray<</param><<x-color><<param>orange<</param>thing<</x-color> <<x-color><<param>yellow<</param>your<</x-color><<x-color><<param>green<</param> screen<</x-color><<x-color><<param>blue<</param> <</x-color><<x-color><<param>light blue<</param>can<</x-color><<x-color><<param>violet<</param> display... <</x-color><</x-bg-color> |
9678 | 95 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
96 <<bold>Newlines:<</bold> <<indent>Which ones are real ("hard") newlines, and which can be changed to fit |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
97 lines into the ma<</indent>rgins. |
9678 | 98 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
99 <<bold>Margins:<</bold> can be indented on the left or right. |
9678 | 100 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
101 <<bold>Justification <</bold><<indent>(whether lines should be flush with the left margin, the right |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
102 margin, fully justified, centered, or left alo<</indent>ne). |
9678 | 103 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
104 <<bold>Excerpts: "<</bold><<excerpt>For quoted material." <</excerpt> |
9678 | 105 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
106 <<bold>Read-only<</bold> regions. |
9678 | 107 |
108 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
109 <</indent><<bold>FACES |
9678 | 110 |
111 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
112 <</bold><<indent>The easiest way to add a face to a region is to use the <<bold>facemenu <</bold>package. This |
9678 | 113 defines a menu obtained by clicking the right mouse button while holding the |
114 control key. For example, to make a word boldface, you could select the word by | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
115 double-clicking on it, then hold C-mouse-3 and select <<italic>Bold<</italic> from the <<italic>Face |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
116 <</italic><</indent>sub-menu<<indent>. Selecting a face from the menu when the region is not active will apply |
9678 | 117 that face to whatever you type next. |
118 | |
119 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
120 <</indent><<bold>NEWLINES and PARAGRAPHS |
9678 | 121 |
122 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
123 <</bold><<indent><<italic>Text/enriched<</italic> format distinguishes between <<underline>hard<</underline> newlines and <<underline>soft <</underline>newlines. Hard |
9678 | 124 newlines are used to separate paragraphs, or items in a list, or anywhere that |
125 must be a line break no matter what the margins are. Soft newlines are the ones | |
126 inserted in order to fit text between the margins. Auto-fill-mode and | |
127 enriched-mode's fill functions insert soft newlines as necessary, but hard | |
128 newlines are only inserted by direct request, such as using the return key or the | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
129 <<fixed>C-o (open-line)<</fixed> function. |
9678 | 130 |
131 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
132 <</indent><<bold>INDENTATION |
9678 | 133 |
134 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
135 <</bold><<indent>Indentation of regions of the document can be flexibly controlled. The face menu |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
136 contains an <<italic>Indent<</italic> item, which indents the region by the width of 4 characters |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
137 and an <<italic>UnIndent <</italic>item which removes 4 character-widths of indentation. All of the |
9678 | 138 text paragraphs in this file are singly indented relative to the headings, for |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
139 example. In addition, you can indent and unindent the <<italic>right <</italic>margin though use of |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
140 the <<italic>IndentRight<</italic> and <<italic>UnindentRight <</italic>menu items. The indentation commands can be |
9678 | 141 used repeatedly to get further levels of indentation. There are also shortcut |
142 commands to set the left and right margins directly. | |
143 | |
144 The basic editing commands in enriched-mode have been modified as necessary to | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
145 maintain proper indentation, but if it gets messed up, you can use <<fixed>C-q<</fixed> to |
9678 | 146 reformat the current paragraph. This may be necessary, for example, after |
147 yanking or pasting text into the buffer. Eventually all commands should respect | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
148 indentation. <<flushleft><<indentright><<indentright><<indentright><<indentright> |
9678 | 149 |
150 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
151 <</indentright>Not <<indent>only whole paragraphs can be indented, but in fact any region. |
9678 | 152 This makes it possible to have hanging-indents on paragraphs like |
153 this one: it was accomplished by selecting the region starting | |
154 after the first word of the paragraph and going to the end of the | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
155 paragraph, and indenting that. <</indent><</indentright><</indentright><</indentright><<indent>Also notice that this paragraph had been |
9678 | 156 indented on the right until the beginning of this sentence, when it resumed |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
157 normal w<</indent>i<</flushleft><</indent><<flushleft>dth. |
9678 | 158 |
159 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
160 <<bold>JUSTIFICATION<<indent> |
9678 | 161 |
162 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
163 <</indent><</bold><</flushleft><<indent><<nofill>Several styles of justification are possible, the simplest being <<italic>unfilled. |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
164 <</italic>This means that your lines will be left as you write them. |
9678 | 165 This paragraph, for instance, is unfilled. |
166 It was written with one sentence on a line. | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
167 <<bold>Enriched <</bold>will not change that, no matter what size display it is shown on. |
9678 | 168 There is no hard/soft newline distinction in unfilled text. |
169 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
170 The most common (for English) style is <<italic>FlushLeft. <</italic>This means |
9678 | 171 lines are aligned at the left margin but left uneven at the |
172 right. | |
173 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
174 <</nofill><<italic><<flushright>FlushRight<</flushright><</italic><<flushright>, as you may have guessed, makes each line flush with the right margin, |
9678 | 175 but not necessarily the left. |
176 | |
177 This is usually, but by no means necessarily, used for headings. | |
178 | |
179 This paragraph is FlushRight. | |
180 | |
181 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
182 <</flushright><<italic><<flushboth>FlushBoth <</flushboth><</italic><<flushboth>regions, which are sometimes called "fully justified" (or, confusingly, |
9678 | 183 "right justified") are aligned evenly on both edges, so that the text on the page |
184 has a smooth appearance as in a book or newspaper article. Unfortunately this | |
185 does not look as nice with a fixed-width font as it does in a | |
186 proportionally-spaced printed document; the extra spaces that are needed on the | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
187 screen can make it hard to read. <<indentright><<indentright><<indentright><<indentright> |
9678 | 188 |
189 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
190 <<indent><<indent><<indent><<indent>The narrower the column, the uglier <<italic>FlushBoth |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
191 <</italic>text will be. If you think <<italic>flushboth <</italic>paragraphs |
9678 | 192 look pretty, though, you can set |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
193 <<fixed>enriched-default-justification <</fixed>to <<fixed>'both <</fixed>to |
9678 | 194 justify everything that is not otherwise |
195 specified. | |
196 | |
197 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
198 <</indent><</indent><</indent><</indent><</indentright><</indentright><</indentright><</indentright><</flushboth><<bold><<center>Center |
9678 | 199 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
200 <</center><</bold><<center>You can probably guess what <<italic>center <</italic>justification is for. |
9678 | 201 |
202 The normal center-paragraph key, M-S, can be used to turn on center justification | |
203 in enriched-mode. M-j also brings up a justification menu. | |
204 | |
205 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
206 <</center><<flushboth>Note that justification can only be changed for complete paragraphs (ie, a |
9678 | 207 justified region must start and end at hard newlines). The menu items in the |
208 "Justification" menu will all operate on the current paragraph, or, if the region | |
209 is active, on all paragraphs which are inside or overlapping the region. | |
210 | |
211 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
212 <</flushboth><</indent><<bold>EXCERPTS<</bold> |
9678 | 213 |
214 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
215 <<excerpt><<indent>This is an example of an excerpt. You can use them for quoted parts of other |
9678 | 216 people's email messages and the like. Currently it just displays as italics |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
217 (unless some <<bold>other<</bold> style is in effect), but this can be changed (see |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
218 <<underline>Customization<</underline> below). <</indent><</excerpt> |
9678 | 219 |
220 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
221 <<bold>DEBUGGING<</bold> |
9678 | 222 |
223 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
224 <<indent>The function <<fixed>enriched-show-codes<</fixed> can be helpful in figuring out what is going if |
9678 | 225 things don't seem to be working. The function can highlight (with a blue or gray |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
226 background) various items of interest. <</indent>Type <<fixed>C<<indent>-c C-s<</indent><</fixed><<indent>, then what should be |
9678 | 227 highlighted: |
228 | |
229 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
230 <<indent><<bold>indent:<<indent> <</indent><</bold><<indent>Highlight the indentation at the beginning of each line. <</indent> |
9678 | 231 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
232 <<bold>margin: <</bold>Highlight regions that are indented. |
9678 | 233 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
234 <<bold>newline: <</bold>Highlight hard newlines. |
9678 | 235 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
236 <<bold>none: <</bold>Turn off all highlighting. <<bold><<excerpt> |
9678 | 237 |
238 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
239 <</excerpt><</bold><</indent><</indent><<bold>CUSTOMIZATION |
9678 | 240 |
241 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
242 <</bold><<indent>-<<indent> Set the default faces to things you like. The faces named <<fixed>fixed <</fixed>and <<excerpt>excerpt, |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
243 <</excerpt>especially, can be set to your liking. <</indent> |
9678 | 244 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
245 - <<indent>User-preference variables: <<fixed>enriched-default-right-margin, |
9678 | 246 enriched-default-justification, enriched-verbose, |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
247 enriched-auto-save-interval<</fixed><<bold>, <</bold>and <<fixed>enriched-fill-after-visiting <</fixed>(mentioned |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
248 above)<<bold>. <</bold>See their documentation for det<</indent>ails. |
9678 | 249 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
250 - <<indent>You can add annotations for your own text properties by making additions to |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
251 <<fixed>enriched-annotation-alist<</fixed>. Note that the standard requires you to name your |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
252 annotation starting<<italic> "x-" <</italic>(as in <<italic>"x-read-only"<</italic>). Please send me any such |
9678 | 253 additions that you think might be of general interest so that I can include |
254 them in the distribution. | |
255 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
256 <</indent>- <<indent>My eventual hope is that people will use the basic code in this file to |
9678 | 257 implement more of the various file formats that are in common use, so that |
258 emacs will understand them all and be able to edit them with a common | |
259 interface. If you are interested in taking on the project of implementing a | |
260 format, let me know. The code attempts to be as general as possible; a lot | |
261 of different formats can be defined just by setting up the lists of | |
262 properties to save and how to represent them in the file. | |
263 | |
264 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
265 <</indent><</indent><<bold>TO-DO LIST |
9678 | 266 |
267 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
268 <</bold><<indent><<italic>[Feel free to work on these and send me the results!] <</italic> |
9678 | 269 |
270 - Be more tolerant of malformed files. | |
271 | |
272 - Make the indentation work more seamlessly and robustly: | |
273 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
274 <<indent>+ Create<<indent> an aggressive auto-fill function that will keep the paragraph |
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
275 properly filled all the time, without slowing down editing too much. <</indent> |
9678 | 276 |
277 + Refill after yank. | |
278 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
279 + <<indent>Make deleting a newline also delete the indentation following it. <</indent> |
9678 | 280 |
281 + Never let point enter indentation?? | |
282 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
283 +<<indent> Optional never-let-things-get-unfilled (ok for fast terminals). <</indent> |
9678 | 284 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
285 <</indent>- Do the right thing for insert-file. |
9678 | 286 |
287 - Notice and re-fill when window changes widths (optionally). - Nicer formatting | |
288 for excerpts. | |
289 | |
290 - Interface w/ GNUS, VM, RMAIL. | |
291 | |
292 - For documentation, make INFO aware of text/enriched format. | |
293 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
294 -<<indent> Have another set of alists for reading and writing RTF, etc (this will take |
9678 | 295 work not only on the alists, of course, but also on the code for interpreting |
296 them). | |
297 | |
298 | |
299 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
300 <</indent><</indent><<bold>Final Notes: |
9678 | 301 |
302 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
303 <</bold><<indent>The MIME standard is defined in internet RFC 1521; text/enriched is defined in |
9678 | 304 RFC 1563. Details on obtaining these documents via FTP or email may be obtained |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
305 by sending an email message to <<fixed>rfc-info@isi.edu<</fixed> with the message body: |
9678 | 306 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
307 <<indent> <<fixed>help: ways_to_get_rfcs <</fixed> <</indent> |
9678 | 308 |
309 | |
310 This code and documentation is under development. The most current version | |
311 should always be available from: | |
312 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
313 <<indent><<fixed>/anonymous@cs.rochester.edu:pub/boris/enriched.shar<</fixed> |
9678 | 314 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
315 <</indent>It is helpful to make sure you have the newest version before reporting a bug. |
9678 | 316 |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
317 <</indent>Please send any and all comments to: |
9678 | 318 |
319 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
320 <<bold><<x-color><<param>blue<</param>Boris Goldowsky <</x-color><</bold><<fixed><<<<boris@cs.rochester.edu><</fixed><<x-color><<param>blue<</param> |
9678 | 321 |
322 October 1994 | |
323 | |
324 | |
325 | |
326 | |
327 | |
328 | |
329 | |
330 | |
331 | |
332 | |
333 | |
11102
2484f8186e34
New magic number for text/enriched files.
Boris Goldowsky <boris@gnu.org>
parents:
9678
diff
changeset
|
334 <</x-color> |