--- a/src/Pure/Thy/html.ML Sun Mar 06 13:19:19 2016 +0100
+++ b/src/Pure/Thy/html.ML Sun Mar 06 16:19:02 2016 +0100
@@ -39,10 +39,10 @@
val mapping =
map (apsnd (fn c => "&#" ^ Markup.print_int c ^ ";")) codes @
[("'", "'"),
- ("\\<^bsub>", hidden "⇘" ^ "<sub>"),
- ("\\<^esub>", hidden "⇙" ^ "</sub>"),
- ("\\<^bsup>", hidden "⇗" ^ "<sup>"),
- ("\\<^esup>", hidden "⇖" ^ "</sup>")];
+ ("\<^bsub>", hidden "⇘" ^ "<sub>"),
+ ("\<^esub>", hidden "⇙" ^ "</sub>"),
+ ("\<^bsup>", hidden "⇗" ^ "<sup>"),
+ ("\<^esup>", hidden "⇖" ^ "</sup>")];
in Symbols (fold Symtab.update mapping Symtab.empty) end;
val no_symbols = make_symbols [];
@@ -70,9 +70,9 @@
let
val (s2, ss) = (case rest of [] => ("", []) | s2 :: ss => (s2, ss));
val (s, r) =
- if s1 = "\\<^sub>" then (output_sub symbols "⇩" s2, ss)
- else if s1 = "\\<^sup>" then (output_sup symbols "⇧" s2, ss)
- else if s1 = "\\<^bold>" then (output_bold symbols "❙" s2, ss)
+ if s1 = "\<^sub>" then (output_sub symbols "⇩" s2, ss)
+ else if s1 = "\<^sup>" then (output_sup symbols "⇧" s2, ss)
+ else if s1 = "\<^bold>" then (output_bold symbols "❙" s2, ss)
else (output_sym symbols s1, rest);
in output_syms symbols r (s :: result) end;
@@ -120,19 +120,19 @@
(* document *)
fun begin_document symbols title =
- "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n\
- \<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \
- \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\
- \<html xmlns=\"http://www.w3.org/1999/xhtml\">\n\
- \<head>\n\
- \<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n\
- \<title>" ^ output symbols (title ^ " (" ^ Distribution.version ^ ")") ^ "</title>\n\
- \<link media=\"all\" rel=\"stylesheet\" type=\"text/css\" href=\"isabelle.css\"/>\n\
- \</head>\n\
- \\n\
- \<body>\n\
- \<div class=\"head\">\
- \<h1>" ^ output symbols title ^ "</h1>\n";
+ "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n" ^
+ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" " ^
+ "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" ^
+ "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" ^
+ "<head>\n" ^
+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n" ^
+ "<title>" ^ output symbols (title ^ " (" ^ Distribution.version ^ ")") ^ "</title>\n" ^
+ "<link media=\"all\" rel=\"stylesheet\" type=\"text/css\" href=\"isabelle.css\"/>\n" ^
+ "</head>\n" ^
+ "\n" ^
+ "<body>\n" ^
+ "<div class=\"head\">" ^
+ "<h1>" ^ output symbols title ^ "</h1>\n";
val end_document = "\n</div>\n</body>\n</html>\n";