5 type rgb = (float * float * float)
6 and rgba = (float * float * float * float)
7 and fitmodel = | FitWidth | FitProportional | FitPage
8 and irect = (int * int * int * int)
9 and colorspace = | Rgb | Gray
11 | KMinsrt of key | KMinsrl of key list | KMmulti of (key list * key list)
13 and keyhash = (key, keymap) Hashtbl.t
14 and keystate = | KSnone | KSinto of (key list * key list)
15 and css = string and dcf = string and hcs = string
17 | Csingle of singlecolumn
18 | Cmulti of multicolumns
19 | Csplit of splitcolumns
25 and multicolumns = (multicol * pagegeom)
26 and singlecolumn = pagegeom
27 and splitcolumns = (columncount * pagegeom)
28 and pagegeom = (pdimno * x * y * (pageno * w * h * leftx)) array
29 and multicol = (columncount * covercount * covercount)
31 and pdimno = int and pageno = int
32 and x = int and y = int and leftx = int and w = int and h = int
34 and memsize = int and texcount = int
37 let scrollbvv = 1 and scrollbhv = 2
43 printf "mutable $1:$2;"
45 assi
="$assi dst.$1 <- src.$1;"
47 i
() { g
"$1" int
"$2"; }
48 b
() { g
"$1" bool
"$2"; }
49 f
() { g
"$1" float
"$2"; }
50 s
() { g
"$1" string
"$2"; }
52 printf "mutable $1:$2;\n"
54 assi
="$assi dst.keyhashes <- copykeyhashes src;"
57 printf "mutable $1 : float option;\n"
59 assi
="$assi dst.pax <- if src.pax = None then None else Some 0.0;"
64 i scrollb
"scrollbhv lor scrollbvv"
82 g fitmodel fitmodel FitProportional
84 g trimfuzz irect
"(0,0,0,0)"
85 g memlimit memsize
"128 lsl 20"
86 g texcount texcount
256
87 g sliceheight sliceheight
24
89 g bgcolor rgb
"(0.5, 0.5, 0.5)"
90 g papercolor rgba
"(1.0, 1.0, 1.0, 0.0)"
91 g sbarcolor rgba
"(0.64, 0.64, 0.64, 0.7)"
92 g sbarhndlcolor rgba
"(0.0, 0.0, 0.0, 0.7)"
93 g texturecolor rgba
"(0.0, 0.0, 0.0, 0.0)"
96 g mustoresize memsize
"256 lsl 20"
98 s urilauncher
"{|$uopen|}"
99 s pathlauncher
"{|$print|}"
100 g colorspace colorspace Rgb
103 g columns columns
"Csingle [||]"
104 g beyecolumns
"columncount option" None
106 s pastecmd
"{|$paste|}"
107 s paxcmd
'{|echo PAX "%s">&2|}'
111 K keyhashes
'(string * keyhash) list' \
112 '(let mk n = (n, Hashtbl.create 1) in
113 [ mk "global"; mk "info" ; mk "help"; mk "outline"; mk "listview"
114 ; mk "birdseye"; mk "textentry"; mk "links"; mk "view" ])'
115 i hfsize
'Wsi.fontsizescale 12'
118 s stcmd
"{|echo SyncTex|}"
120 g paxmark mark MarkWord
125 b coarseprespos false
131 s hcs
"{|aoeuidhtns|}"
138 let copykeyhashes c = List.map (fun (k, v) -> k, Hashtbl.copy v) c.keyhashes
139 let defconf = {$init}
140 let setconf dst src = $assi;