2 ==================================================================================
3 Copyright (c) 2019 Nokia
4 Copyright (c) 2018-2019 AT&T Intellectual Property.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ==================================================================================
22 Abstract: This is a setup for a very basic generation of markdown from the few
23 macros which are designed for the RMR doc. It is very scaled down from
24 the markdown imbed file supplied with {X}fm.
26 Author: E. Scott Danils
28 -------------------------------------------------------------------------------
32 .dh 1 m=.5i e=no s=21 i=0 p=16 f=Helvetica-bold
33 .dh 2 m=.5i s=21 i=0 p=14 f=Helvetica-bold
34 .dh 3 m=.5i s=10 i=0 p=12 f=Helvetica-bold
40 .** super sccript number for start_note macro
43 .** these macros are common for prfm/tfm, markdown will override some
44 .dv indent .ll -.5i .in +.25i
45 .dv uindent .in -.25i .ll +.5i
46 .dv smindent .ll -.2i .in +.1i
47 .dv smuindent .in -.1i .ll +.2i
54 .dv ex_start .sp .5 .ll -.25i .in +.25i .sf Courier .st ^&extextsize .fo off
55 .** ex_end macro calls _must_ be placed in col 0 to cause an exit from no-format mode.
56 .dv ex_end .fo on .sf ^&textfont .st ^&textsize .in -.25i .ll +.25i .sp .1
63 .dv super .sm ^[ .sm ^&{ss_num}]
64 .dv note .dv ss_num ^[ ^&ss_num 1 + ] ^: .sm ^[ .sm ^&{ss_num}]
66 .dv start_note .cn start atend Times-roman 8p .5i
79 .** -----------------------------------------------
80 .** not used, but might be needed if doc expanded
81 .** .dv ta .br ^.ta .br |
82 .** .dv et .br ^.et .br
84 .** .dv tr | .br ^.tr .br |
86 .** .dv empty_cell
87 .** -----------------------------------------------
89 .dv break .sm ^` ^` .br
92 .dv image .ep ^[ .sm $2] ($3)
94 .** no concept of a definition list in markdown; no start/end and just make the text bold to emulate
99 .dv di ^&break **$1:**
106 .dv line .sp 1 ------
108 .** leading indention is significant to markdown, so turn it off
114 .dv bold ** .sm $1 .sm **
115 .dv ital _ .sm $1 .sm _
116 .dv h1 .sp 2 # $1 .br
117 .dv h2 .sp 1 ## $1 .br
118 .dv h3 .sp 1 ### $1 .br
120 .dv ex_start .sp .5 .ll -4 .in .5i .sp 2 .fo off
121 .dv ex_end .fo on .in 0i .ll +4 .sp 2