[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [StrongED] syntax of a Modewhen file
In message <fd6f1cd956.jim@xxxxxxxxxxxxxxxx>
Jim Nagel <stred@xxxxxxxxxxxxxxxx> wrote:
> Fred Graute wrote on 14 Mar:
>
> > Jim wrote:
> >> Meanwhile, my immediate Modewhen confusion was solved with ";" instead
> >> of erroneous "," as detailed upthread.
>
> > Hopefully this doesn't come across as contrary but the problem must
> > have been something else because ModeWhen rules accept both "," and
> > ";" as separators.
>
> Here is the Obey.Modewhen file. The first three lines and the
> second-last line are mine; otherwise it's same as Wagner default.
>
> Match
> _Convtext <<< "SCRIPT:"
> End
>
> Rules Include
> ! f7b, **
> ! fd6, **
> ! fd7, **
> ! fea, **
> ! feb, **
> ! ffe, **
> fff, **; _Convtext
> End
Ah, I see, you put the separator immediately after the path ("**;"). I
don't do this as under RISC OS both "," and ";" are valid characters in
a path so I put a space between the path and the separator ("** ;") to
avoid any ambiguity.
> As I say, that semicolon in second-last line does seem to matter.
Although most of the code accepts "," and ";" the code to match a path
only tests for ";" so a "," immediately after the path does indeed not
work.
Cheers,
Fred.
--
StrongED Developer
http://www.stronged.iconbar.com/
--
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives and instructions at
http://diy.Torrens.org/RO/StrongED/index.html