-
Notifications
You must be signed in to change notification settings - Fork 0
/
aft-lout.dat
executable file
·248 lines (190 loc) · 5.43 KB
/
aft-lout.dat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
# AFT rules for Lout general documents
# COPYRIGHTS
# Almost Free Text (AFT)
# Todd A. Coram ([email protected])
# http://www.maplefish.com/todd/
#
# Basser Lout
# Jeffrey H. Kingston ([email protected])
# http://snark.ptc.spbu.ru/~uwe/lout/
#
# THANKS
# Todd Coram for modifying AFT to support Lout structure and for his
# help and kindness!
#
# DISCLAIMER
# This file's a user contribution. Neither copyrights nor
# warranties. Use at your own risk --it doesn't look dangerous
# though--. If you like the ease of AFT and the power of Lout feel
# free to hack it and please send me your work or ideas. Enjoy!
#
# Abel Morabito ([email protected])
# April, 2001
ID LOUT
# Preamble and postamble
######################################################################
Preamble{
# Basser Lout Version 3.25 output generated by AFT
@SysInclude { doc }
@Document
@InitialFont { Times Base 12p }
@InitialBreak { adjust 1.2fx hyphen }
@InitialSpace { lout }
@InitialLanguage { Spanish }
@PageOrientation { Portrait }
@PageHeaders { Simple }
@FirstPageNumber { 1 }
@ColumnNumber { 1 }
@OptimizePages { No }
@Unpaginated { No }
//
@Text @Begin
}Preamble
Postamble{
@End @Text
}Postamble
# Pre and postfilters
######################################################################
# MANUAL FORM FEED
prefilter \014 @NP
# SPECIAL CHARACTERS
#
# Plain Literal Plain Literal
#
# " "\"" @ "@"
# | "|" # "#"
# \ "\\" } "}"
# & "&" ^ "^"
# ~ "~" / "/"
# { "{" " " (blank space)
#
## Protect backslashes, then escape quotation marks and backslashes.
## They mess each other if you don't do it this way.
preFilter \\ -BSlAsH-
preFilter \" \"\\\"\"
preFilter -BSlAsH- \"\\\\"
## Protect targets, references and links. Escape braces and 'at'.
preFilter \{\-([^\}]+)\@([^\}]+)\-\} %LeFtB%NeG$1-AtChAr-$2%NeG%RiGhTB
preFilter \{\+([^\}]+)\+\} %LeFtB%PlUs$1%PlUs%RiGhTB
preFilter \}\+([^\}]+)\+\{ %RiGhTB%PlUs$1%PlUs%LeFtB
preFilter \{\-([^\}]+)\-\} %LeFtB%NeG$1%NeG%RiGhTB
preFilter \}\-([^\}]+)\-\{ %RiGhTB%NeG$1%NeG%LeFtB
preFilter [\{\}\@] \"$&\"
preFilter %LeFtB {
preFilter %RiGhTB }
preFilter %PlUs +
preFilter %NeG -
preFilter -AtChAr- @
### This is to type loutish typographic quotes directly ``like this''
### instead of ``like this'''' --both work anyway.
preFilter \`\`([^\']+)\'\'\'\' ``$1-4QuOtEs-
preFilter \`\`([^\']+)\'\' ``$1-2QuOtEs-
preFilter -4QuOtEs- ''''
preFilter -2QuOtEs- ''''
## Escape some other special characters.
preFilter [\#\&\^\/] \"$&\"
## Escape tildes not used to make small caps. Double tildes are replaced
## by single ones to get protected spaces.
preFilter \~\~ -DTiLdE-
postFilter \~ \"~\"
postFilter -DTiLdE- ~
### Escape vertical bars not used to make teletype.
postFilter \| \"|\"
# Elements
######################################################################
#REFERENCES TARGETS and URLs --no hyperlinks in lout files.
URL @F {<%target%>}
InternalReference %text% (p. @PageOf {%target%})
Target %text% @PageMark {%target%}
# TITLE and AUTHOR: see 'Preamble'
#OutputTitle
#Title
#Author
# TABLE OF CONTENTS
TOC # TOC must be made from your lout file.
## IMAGES
Image \n@IncludeGraphic %image%
Image-center \n@CD @IncludeGraphic %image%
Image-left \n@LD @IncludeGraphic %image%
Image-right \n@RightDisplay @IncludeGraphic %image%
## NUMBERED STRUCTURES
* \n@Section @Title {%section%} @Tag {%section%} @Begin
** \n@SubSection @Title {%section%} @Tag {%section%} @Begin
*** \n@SubSubSection @Title {%section%} @Tag {%section%} @Begin
****
EndSect1 \n@End @Section
EndSect2 \n@End @SubSection
EndSect3 \n@End @SubSubSection
EndSect4
BeginSectLevel1 \n@BeginSections
EndSectLevel1 \n@EndSections
BeginSectLevel2 \n@BeginSubSections
EndSectLevel2 \n@EndSubSections
BeginSectLevel3 \n@BeginSubSubSections
EndSectLevel3 \n@EndSubSubSections
# SECTIONS REFERENCING TOC are not needed in Lout
#
#^*
#^**
#^***
#^****
# MISC
LineBreak \n@LLP
StartParagraph \n@PP\n
EndParagraph
ParagraphBreak
NoteRef @Sup {%ref%}
Superscript @Sup {%stuff%}
Subscript @Sub {%stuff%}
Center \n@CD {%center%}
HorizontalLine \n@D @FullWidthRule
## TABLES are not supported. Just make them in your Lout file.
StartTable # WARNING: AFT doesn't support Lout tables yet! #\n@CD TABLE\n
#TableCaption
#TableHeader
#TableElement
#TableRowStart
#TableRowEnd
#EndTable
## LISTS
StartBulletList \n@BL
BulletListElement \n@LI {\n
EndBulletListElement \n}
EndBulletList \n@EndList
StartNamedList \n@TL
NamedListElement \n@DTI {%name%} {\n
EndNamedListElement \n}
EndNamedList \n@EndList
StartNumberedList \n@PNL
NumberedListElement \n@LI {\n
EndNumberedListElement \n}
EndNumberedList \n@EndList
## QUOTED TEXT
StartQuote \n@QD {
EndQuote }
## FONT FACES
### Lout's verbatim mode doesn't process lout markup so
PreFilterVerbatim? No
### Full filtering is needed mainly by AFTWEB --not by Lout, so
FullFilterFilteredVerbatim? No
### Verbatim modes now
StartVerbatim \n@ID @F @Verbatim {
EndVerbatim }
StartBlockedVerbatim \n@ID @F @Verbatim @Begin
EndBlockedVerbatim \n@End @Verbatim
### Filtered verbatim is messy in Lout so
StartFilteredVerbatim \n@ID @F @Verbatim @Begin
EndFilteredVerbatim \n@End @Verbatim
### Remaining font faces
StartTeletype @F {
EndTeletype }
StartSmall @S {
EndSmall }
StartEmphasis @I {
EndEmphasis }
StartStrong @B {
EndStrong }
## OTHER
CommentLine # %line%
StrikeLine # %line%
NBSPACE \" \"