X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fon-line%2Fjavascript%2Fcontrol.js;h=79ed47fd7ef1c626592192a7c9852bc3c2175e1c;hb=78cf601fd8b8dbb386b0db315dcbfdbe8256c15f;hp=f473559240df7b452a366e4747bdb1237355a70f;hpb=733c104743bff96776f8ab6cec06533f6b55a23c;p=helm.git diff --git a/helm/on-line/javascript/control.js b/helm/on-line/javascript/control.js index f47355924..79ed47fd7 100644 --- a/helm/on-line/javascript/control.js +++ b/helm/on-line/javascript/control.js @@ -146,6 +146,11 @@ function getCICHTMLKeys() return escape("d_c,C1,HC2,L"); } +function getCICProofTreeXHTMLMathMLKeys() +{ + return escape("HAT,G,HAO,L"); +} + function makeURL(type,uri,cicflags,typesflags) { var mode = top.mode; @@ -178,7 +183,27 @@ function makeURL(type,uri,cicflags,typesflags) url = getterURL + "getxml?uri=" + rdfprefix + uri + ext + "&format=" + mode_list[5] + "&patch_dtd=" + mode_list[6]; } else { - if (format == "html" && type == "cic") { + var uri_len = uri.length; + if (format == "html" && type == "cic" && uri.substring(uri.length - 10, uri.length) == "proof_tree") { + keys = getCICProofTreeXHTMLMathMLKeys() + + "¶m.processorURL=" + escape(processorURL) + + "¶m.getterURL=" + escape(getterURL) + + "¶m.proofcheckerURL=" + escape(proofcheckerURL) + + "¶m.draw_graphURL=" + escape(draw_graphURL) + + "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) + + "¶m.UNICODEvsSYMBOL=" + escape(UNICODEvsSYMBOL) + + "&prop.doctype-public="+escape("-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN")+ + "&prop.doctype-system="+escape("http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd")+ + "&prop.encoding=iso-8859-1" + + "&prop.media-type=text/xml" + + "&prop.method=xml" + + "¶m.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+ + "¶m.encoding=iso-8859-1" + + "¶m.media-type=text/html" + + "¶m.keys=" + getCICHTMLKeys() + + "¶m.interfaceURL=" + escape(interfaceURL) + + "¶m.framewidth=150"; + } else if (format == "html" && type == "cic") { keys = getCICHTMLKeys() + "¶m.processorURL=" + escape(processorURL) + "¶m.getterURL=" + escape(getterURL) + @@ -215,6 +240,8 @@ function makeURL(type,uri,cicflags,typesflags) "¶m.thinterfaceURL=" + escape(thinterfaceURL); } else if (format == "mml_cont" && type == "cic") { keys = escape("d_c,C1")+ + "¶m.processorURL=" + escape(processorURL) + + "¶m.getterURL=" + escape(getterURL) + "&prop.doctype-public="+ //"&prop.encoding=" + "&prop.media-type=text/xml" + @@ -223,6 +250,8 @@ function makeURL(type,uri,cicflags,typesflags) "¶m.media-type=text/xml"; } else if (format == "mml_cont" && type == "theory") { keys = escape("T1,L,E")+ + "¶m.processorURL=" + escape(processorURL) + + "¶m.getterURL=" + escape(getterURL) + "¶m.keys=" + escape("d_c,C1") + "¶m.thkeys=T1,L,E" + "¶m.embedkeys=" + escape("d_c,TC1") +