|
Home > Archive > Unix Programming > April 2006 > How to format a text file just like the RFC-text files?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to format a text file just like the RFC-text files?
|
|
| lofe@tom.com 2006-04-27, 7:55 am |
|
I want to make some document go like these, what tools can help?
Any help would be nice, thanks!
BLIOGRAPHY ........................................... 34
APPENDIX
A. EXAMPLES ............................................... 36
B. SIMPLE FIELD PARSING ................................... 40
C. DIFFERENCES FROM RFC #733 .............................. 41
D. ALPHABETICAL LISTING OF SYNTAX RULES ................... 44
August 13, 1982 - i - RFC #822
^L
Standard for ARPA Internet Text Messages
PREFACE
By 1977, the Arpanet employed several informal standards for
the text messages (mail) sent among its host computers. It was
felt necessary to codify these practices and provide for those
features that seemed imminent. The result of that effort was
Request for Comments (RFC) #733, "Standard for the Format of ARPA
Network Text Message", by Crocker, Vittal, Pogran, and Henderson.
The specification attempted to avoid major changes in existing
software, while permitting several new features.
The framework severely constrains document tone and appear-
ance and is primarily useful for most intra-organization communi-
cations and well-structured inter-organization communication.
It also can be used for some types of inter-process communica-
tion, such as simple file transfer and remote job entry. A more
robust framework might allow for multi-font, multi-color, multi-
dimension encoding of information. A less robust one, as is
present in most single-machine message systems, would more
severely constrain the ability to add fields and the decision to
...
tion, such as simple file transfer and remote job entry. A more
robust framework might allow for multi-font, multi-color, multi-
dimension encoding of information. A less robust one, as is
present in most single-machine message systems, would more
severely constrain the ability to add fields and the decision to
include specific fields. In contrast with paper-based communica-
tion, it is interesting to note that the RECEIVER of a message
can exercise an extraordinary amount of control over the
message's appearance. The amount of actual control available to
message receivers is contingent upon the capabilities of their
individual message systems.
August 13, 1982 - 2 - RFC #822
^L
--
| |
| Pascal Bourguignon 2006-04-27, 7:55 am |
| lofe@tom.com writes:
> I want to make some document go like these, what tools can help?
You can do it in any text editor.
Of course, it will be easier in emacs.
But nowadays, you may want to generate from one source HTML and PDF in
addition to this RFC-style text. I guess you could use sgml tools,
like docbook.
--
__Pascal Bourguignon__ http://www.informatimago.com/
In a World without Walls and Fences,
who needs Windows and Gates?
| |
| Thomas Pornin 2006-04-27, 7:56 am |
| According to <lofe@tom.com>:
> I want to make some document go like these, what tools can help?
For the exact RFC format, you can use xml2rfc (http://xml.resource.org/).
The XML format is very simple (it is described in RFC 2629) and the
tool produces either text or HTML.
--Thomas Pornin
|
|
|
|
|