forked from YannickChevalier/hevea-mathjax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
htmltext.mli
46 lines (37 loc) · 1.55 KB
/
htmltext.mli
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
(***********************************************************************)
(* *)
(* HEVEA *)
(* *)
(* Luc Maranget, projet Moscova, INRIA Rocquencourt *)
(* *)
(* Copyright 2001 Institut National de Recherche en Informatique et *)
(* Automatique. Distributed only by permission. *)
(* *)
(* $Id: htmltext.mli,v 1.6 2005-11-08 14:27:20 maranget Exp $ *)
(***********************************************************************)
exception No
type tsize = Int of int | Big | Small
type nat =
Style of Lexeme.tag
| Size of tsize
| Color of string
| Face of string
| Fstyle of Lexeme.fontstyle * string
| Other
type t_style = { nat : nat; txt : string; ctxt : string; }
type style = t_style list
val cost : style -> int * int
exception NoProp
val get_prop : nat -> (nat -> bool)
val is_font : nat -> bool
val is_span : nat -> bool
val font_props : (nat -> bool) list
val span_props : (nat -> bool) list
val neutral_prop : (nat -> bool) -> bool
val same_style : t_style -> t_style -> bool
type env = t_style list
val empty_env : env
exception Split of t_style * env
val add_style : Lexeme.style -> env -> env
val blanksNeutral : t_style -> bool
val partition_color : env -> env * env