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

* wrap/python/ajax/spot.in: Diagnose attempt to use LaCIM or Tau
on PSL formulae.
* wrap/python/ajax/css/ltl2tgba.css (.ltl2tgba .error): New entry.
This commit is contained in:
Alexandre Duret-Lutz 2011-12-05 18:48:42 +01:00
parent 3dfde9e85f
commit 3d183d68c8
2 changed files with 10 additions and 0 deletions

View file

@ -80,6 +80,10 @@ div.ltl2tgba {
font-size: 1.1em;
}
.ltl2tgba .error {
color: red;
}
.ltl2tgba .parse-error {
font-family: monospace;
white-space: pre;

View file

@ -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);
finish()
dict = spot.bdd_dict()
if translator == 'fm':