Commit 3d183d68 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Make sure PSL formulae are translated with the FM translation online.

* wrap/python/ajax/ Diagnose attempt to use LaCIM or Tau
on PSL formulae.
* wrap/python/ajax/css/ltl2tgba.css (.ltl2tgba .error): New entry.
parent 3dfde9e8
......@@ -80,6 +80,10 @@ div.ltl2tgba {
font-size: 1.1em;
.ltl2tgba .error {
color: red;
.ltl2tgba .parse-error {
font-family: monospace;
white-space: pre;
......@@ -369,6 +369,12 @@ if output_type == 'f':
# Formula translation.
translator = form.getfirst('t', 'fm')
if f.is_psl_formula() and not f.is_ltl_formula() and translator != 'fm':
print ('''<div class="error">The PSL formula
<span class="formula spot-format">%s</span>
cannot be translated using this algorithm. Please use Couveur/FM.''' % f);
dict = spot.bdd_dict()
if translator == 'fm':
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment