X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=doc%2Fsrc%2Ftxt.im;fp=doc%2Fsrc%2Ftxt.im;h=bf57bf4e4845f67d2b40d2ac439bb30e7790f088;hb=ffba61cdbe908417f2b7a9b6787977531107c55e;hp=0000000000000000000000000000000000000000;hpb=e30fc3a978dd2d34b35342273e6601ae6148b4bf;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/src/txt.im b/doc/src/txt.im new file mode 100644 index 0000000..bf57bf4 --- /dev/null +++ b/doc/src/txt.im @@ -0,0 +1,89 @@ +.if false +================================================================================== + Copyright (c) 2019 Nokia + Copyright (c) 2018-2019 AT&T Intellectual Property. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +================================================================================== +.fi + +.if false + Mnemonic: txt.im + Abstract: To generate raw ASCII we just need to 'disable' the macros which + are defined to support things like troff, markdown and rts. + For each of those macros, we just map to real {X}fm commandd + which do the right thing when generating real .txt output. + + Author: E. Scott Daniels + Date: 29 July 2019 + +.fi + + +.cd 1 6.5i i=0 +.in .25i + +.** paragraph headers +.dv h1 .h1 $1 +.dv h2 .h2 $1 +.dv h3 .h3 $1 +.dv h4 .h4 $1 + +.dh 1 s=2,1 i=.25i +.dh 2 s=1,1 i=.25i +.dh 3 s=1,0 i=.25i +.hn off + +.dv fig .fi t=figure +.dv set_font_cw + +.dv nf .sp 1 ^:^: .br .ll -2 .in +2 +.dv fo .in -2 .ll +2 .sp 1 + +.dv indent .ll -.25i .in +.25i +.dv uindent .in -.25i .ll +.25i + +.dv lic1 * +.dv lic2 + +.dv lic3 - + +.dv line_len .ll $1 +.dv space .sp 1 +.dv half_space .sp 1 +.dv beg_list .sp 1 .dv lic $1 ^: +.dv end_list .sp 1 + +.dv beg_dlist .sp 1 .bd $1 +.dv end_dlist .ed + +.** for now we allow only a single layer of defitems +.dv di .di $1 ^: +.dv diitem .di $1 ^: +.dv item .li + +.dv ex_start .sp 1 .ll -2 .in +2 .nf +.dv ex_end .fo on .in -2 .ll +2 .sp 1 + +.** fonts and font macros +.dv ital $1 +.dv bold $1 +.dv cw $1 +.dv set_font_prop + +.dv table .sp 1 ^[table not supported in plain txt output] .if false +.dv tab_cell +.dv tab_row +.dv end_table .fi + +.ju on +