Re: [Groff] condition: OR of two string comparisons

2014-11-23 Thread Ted Harding
On 15-Nov-2014 06:26:27 Werner LEMBERG wrote: > >>> Here is another idea. Use the existing (;) notation eg as follows >>> >>> (Ex; expr ) > > This is a nice idea and indeed a possible solution to the problem. > However, I think it's probably too restricted to cover all aspects > people were d

Re: [Groff] condition: OR of two string comparisons

2014-11-23 Thread Peter Schaffter
On Sun, Nov 23, 2014, Ralph Corderoy wrote: > I'm fed up pointing out in different emails this is about having > some of those new mom-using users step across into troff: So I'm going to step into the breach. > > The input language is the main criticism of roff today... The *roff language has ha

Re: [Groff] condition: OR of two string comparisons

2014-11-23 Thread hohe72
Hi, since I sparked an issue, I might explain my: I coded a macro, that does a defined vertical space (.sp //n[distance]u). The value can be set if the switch '--define' is used. The macro should make a temporary vertical move, when a number was provided. Therefore I met a condition that if no p

Re: [Groff] condition: OR of two string comparisons

2014-11-23 Thread Carsten Kunze
Hi Ralph, > What about string expressions that give strings as results? And having > `.ds' take a new-format expression? This is a totally different thing. We had been talking about conditionals and numerical expressions. > I'm fed up pointing out in different emails this is about having some

Re: [Groff] condition: OR of two string comparisons

2014-11-23 Thread Ralph Corderoy
Hi Carsten, > > I'm interested in better expressions, string and numeric. It's poor > > string expressions that got us into this via 'c'a'b'c'd'e'. > > (BTW: I don't know the semantic of 'c'a'b'c'd'e' ... :-) (It's a proposed syntax for "is 'c' either 'a', 'b', 'c', 'd', or 'e'".) > The result

Re: [Groff] condition: OR of two string comparisons

2014-11-23 Thread Ralph Corderoy
Hi Steffen, > I'm wondering a bit since your current interim and part-time > favorite Python supports ask-me-the-name-for-it sequences: > > elif o in ('-h', '--help'): Python's just a language I'm using for some of the examples. :-) (42, 'foo', 3.14) is a tuple in Python. A read-only o

Re: [Groff] condition: OR of two string comparisons

2014-11-23 Thread hohe72
Carsten Kunze wrote (Fri, 21 Nov 2014 18:12:10 +0100 (CET)): > The new users might not start with creating macro packages like MM. > They would use an existing macro package to create a document. The > best way to attract them is to create a comfortable macro package. Samples! Running samples,