diff options
author | kaa <kaa@disroot.org> | 2025-07-27 18:07:37 -0700 |
---|---|---|
committer | kaa <kaa@disroot.org> | 2025-07-27 18:07:37 -0700 |
commit | fc61af9d48683aaabcbdba43f6bf95b4f315f460 (patch) | |
tree | 963bd80ba2dd2d2b585331a8bfd940e96419d464 /lib/translate/translate.go | |
parent | 05017bc17ca23fcd0977265fc17da9dfa60ee3d1 (diff) |
Neatroff header
Diffstat (limited to 'lib/translate/translate.go')
-rw-r--r-- | lib/translate/translate.go | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/lib/translate/translate.go b/lib/translate/translate.go index 7ce49ab..5414425 100644 --- a/lib/translate/translate.go +++ b/lib/translate/translate.go @@ -90,6 +90,90 @@ var Definitions = map[string]map[string]any { "LaTeX memoir": { }, "Neatroff": { + "Header": `.ad pb +.pmll 20 999999 +.ss 12 0 +.ssh 15 +.kn 1 +.hlm 2 +.ds margin 1.25i +.po \*[margin] +.de header +' sp \*[margin] +.. +.de footer +' bp +.. +.wh 0 header +.wh -\*[margin] footer +.ds measure 6i +.ll \*[measure] +.ds body_size 11 +.ds body_spacing 14 +.ps \*[body_size] +.vs \*[body_spacing] +.\" Extra parsing needed: a -> {post.url, post.mark}. +.de reset +. ps \*[body_size] +. vs \*[body_spacing] +.. +.de p +. ti +1m +.. +.de /p +.. +.de i +.. +.de /i +.. +.de div +. sp +.. +.de /div +. sp +.. +.\" As the file is traversed, record .sy to a temporary file. +.\" Format using sed, source using .so. Idea taken from utmac. +.\" Then, at the document's end, write the TOC from the recording. +.de a +.. +.de /a +.. +.de strong +. ft B +.. +.de /strong +. ft +.. +.de span +.. +.de /span +.. +.de h1 +. ft \*[FONT_DISPLAY] +. ps 60 +. vs 80 +.. +.de /h1 +. reset +.. +.de h2 +. ft \*[FONT_SUBHEAD] +. ps 40 +. vs 60 +.. +.de /h2 +. reset +.. +.de h3 +. h2 +. ps 30 +. vs 20 +.. +.de /h3 +. /h2 +..`, + "Footer": ``, }, "Utmac": { }, |