From: Claudio Sacerdoti Coen Date: Thu, 19 Jul 2007 10:19:28 +0000 (+0000) Subject: paste_unicode_as_tex is now false by default; moreover the flag is used X-Git-Tag: 0.4.95@7852~304 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=871d9b1d66f79445e7afa6d42205aaf33576c4f0;p=helm.git paste_unicode_as_tex is now false by default; moreover the flag is used everywhere (but in patterns, I do not know why) --- diff --git a/matita/matita.glade b/matita/matita.glade index e50642a61..72ba3db8c 100644 --- a/matita/matita.glade +++ b/matita/matita.glade @@ -910,7 +910,7 @@ True Paste Unicode as TeX True - True + False diff --git a/matita/matitaGui.ml b/matita/matitaGui.ml index 94cb736b8..8ffa5fc91 100644 --- a/matita/matitaGui.ml +++ b/matita/matitaGui.ml @@ -1026,7 +1026,7 @@ class gui () = ~callback:(fun enabled -> Helm_registry.set_bool "matita.paste_unicode_as_tex" enabled); if not (Helm_registry.has "matita.paste_unicode_as_tex") then - Helm_registry.set_bool "matita.paste_unicode_as_tex" true; + Helm_registry.set_bool "matita.paste_unicode_as_tex" false; main#unicodeAsTexMenuItem#set_active (Helm_registry.get_bool "matita.paste_unicode_as_tex"); (* log *) diff --git a/matita/matitaScript.ml b/matita/matitaScript.ml index d86299a0c..69e92518d 100644 --- a/matita/matitaScript.ml +++ b/matita/matitaScript.ml @@ -564,7 +564,8 @@ let rec eval_macro include_paths (buffer : GText.buffer) guistuff lexicon_status (Cic.CurrentProof ("xxx",menv,proof_term,ty,[],[])) in ApplyTransformation.txt_of_cic_object - ~map_unicode_to_tex:false + ~map_unicode_to_tex:(Helm_registry.get_bool + "matita.paste_unicode_as_tex") ~skip_thm_and_qed:true ~skip_initial_lambdas:how_many_lambdas 80 GrafiteAst.Declarative "" obj @@ -588,7 +589,8 @@ let rec eval_macro include_paths (buffer : GText.buffer) guistuff lexicon_status Pcre.qreplace ~templ:"?" ~pat:"orrible_hack_[0-9]+" (strip_comments (ApplyTransformation.txt_of_cic_object - ~map_unicode_to_tex:false + ~map_unicode_to_tex:(Helm_registry.get_bool + "matita.paste_unicode_as_tex") ~skip_thm_and_qed:true ~skip_initial_lambdas:how_many_lambdas 80 (GrafiteAst.Procedural None) "" obj)) @@ -602,7 +604,9 @@ let rec eval_macro include_paths (buffer : GText.buffer) guistuff lexicon_status | TA.Inline (_,style,suri,prefix) -> let str = ApplyTransformation.txt_of_inline_macro - ~map_unicode_to_tex:false style suri prefix + ~map_unicode_to_tex:(Helm_registry.get_bool + "matita.paste_unicode_as_tex") + style suri prefix in [], str, String.length parsed_text