Re: [Groff] Question about .substring

2014-11-19 Thread Tadziu Hoffmann
> Hello: this is a bug? [snip] Where do you see a bug? man 7 groff: .substring xx n1 n2 Replace the string named xx with the substring defined by the indices n1 and n2. groff: .ds x abc .substring x 0 1 .tm \*x --> ab .ds x abc .substring x 0 0 .tm \*x --> a

Re: [Groff] Question about .substring

2014-11-19 Thread Ingo Schwarze
Hi, Tadziu Hoffmann wrote on Wed, Nov 19, 2014 at 05:20:54PM +0100: > Steffen Nurpmeso wrote: >> Hello: this is a bug? > [snip] > Where do you see a bug? > > man 7 groff: > > .substring xx n1 n2 > Replace the string named xx with the substring defined by > the indices n1 and n2. The

[Groff] Question about .substring

2014-11-19 Thread Steffen Nurpmeso
Hello: this is a bug? $ print ".ds x abc\n.substring x 0 1\n.if '\*x'a' .tm x true for 0 1\n" | troff -a $ print ".ds x abc\n.substring x 0 0\n.if '\*x'a' .tm x true for 0 0\n" | troff -a x true for 0 0 --steffen

Re: [Groff] Question about .substring

2014-11-19 Thread Ingo Schwarze
Hi Steffen, Steffen Nurpmeso wrote on Wed, Nov 19, 2014 at 06:09:08PM +0100: > Ingo Schwarze wrote: >> Tadziu Hoffmann wrote on Wed, Nov 19, 2014 at 05:20:54PM +0100: >>> Steffen Nurpmeso wrote: >>> [snip] >>> >>> Where do you see a bug? >>> >>> man 7 groff: >>> >>> .substring xx n1 n2 >>>

Re: [Groff] Question about .substring

2014-11-19 Thread Ralph Corderoy
Hi Steffen, > > > Replace the string named xx with the substring defined by > > > the indices n1 and n2. > > > > Maybe: > > > > Replace the string named xx with its substring beginning with > > the zero-based index n1 and ending with index n2, inclusively. > > Inclusive index n2 of

Re: [Groff] Question about .substring

2014-11-19 Thread Ralph Corderoy
Hi Ingo, > you force every other implementation to follow, so everybody loses. No, it might apply a little pressure to do so, but I'd assume groff and most other implementations wouldn't follow. :-) > While i like some aspects of Perl, lets not adopt the "there's more > than one way to do it" a

Re: [Groff] Question about .substring

2014-11-19 Thread Steffen Nurpmeso
Tadziu Hoffmann wrote: |> Hello: this is a bug? |[snip] | |Where do you see a bug? | |man 7 groff: | | .substring xx n1 n2 |Replace the string named xx with the substring defined by |the indices n1 and n2. | |groff: | |.ds x abc |.substring x 0 1 |.tm \*x |-->

Re: [Groff] Question about .substring

2014-11-19 Thread Ulrich Lauther
On Wed, Nov 19, 2014 at 05:24:22PM +, Ralph Corderoy wrote: > Hi Steffen, > > > > > Replace the string named xx with the substring defined by > > > > the indices n1 and n2. > The full documentation of .substring wasn't originally given. > > -- Request: .substring str n1 [n2] >

Re: [Groff] Question about .substring

2014-11-19 Thread Steffen Nurpmeso
Hallo all :), Ingo Schwarze wrote: |Tadziu Hoffmann wrote on Wed, Nov 19, 2014 at 05:20:54PM +0100: |> Steffen Nurpmeso wrote: |> [snip] | |> Where do you see a bug? |> |> man 7 groff: |> |> .substring xx n1 n2 |> Replace the string named xx with the substring defined by |>

Re: [Groff] Introduction to groff in french

2014-11-19 Thread Bertrand Garrigues
Hello Werner, Peter, On Fri, Nov 07 2014 at 12:58:47 AM, Bertrand Garrigues wrote: [...] > On Fri, Oct 24 2014 at 01:13:27 AM, GregExp wrote: >> If you want, write it yourself (I suppose, you are french-speaking). >> Just click on "modifier" on the right, and you can write it down. > > Yes I a

Re: [Groff] Introduction to groff in french

2014-11-19 Thread Werner LEMBERG
> So I've written a very simple example with Mom in French with a > step-by-step explanation on Ubuntu's French documentation page. > Could I commit it into contrib/mom/examples so that I could refer to > this file in the Ubuntu article? Certainly. Having more examples from different users is ce

Re: [Groff] Introduction to groff in french

2014-11-19 Thread Peter Schaffter
Bertrand -- On Wed, Nov 19, 2014, Bertrand Garrigues wrote: > So I've written a very simple example with Mom in French with a > step-by-step explanation on Ubuntu's French documentation page. > Could I commit it into contrib/mom/examples so that I could refer > to this file in the Ubuntu article?