Re: does anoybody use ul?

2015-10-23 Thread Nicholas Marriott
Well, it does work: printf 'A\bA_\bB'|ul I still think it is not useful, I say kill it. On Fri, Oct 23, 2015 at 03:47:56AM -0400, Ted Unangst wrote: > ul appears somewhat useless for its intended purpose. > > echo _xxx_ | ul does not result in underlined text in an xterm, so I doubt > many

Re: does anoybody use ul?

2015-10-23 Thread Ted Unangst
Nicholas Marriott wrote: > Well, it does work: > > printf 'A\bA_\bB'|ul > > I still think it is not useful, I say kill it. Oh! Is that how you use it? The man page doesn't explain, apparently expecting that everybody just knows there's only one true way to mark up text.

Re: does anoybody use ul?

2015-10-23 Thread Alessandro DE LAURENZIS
Hi Ted, On Fri 23/10/2015 03:47, Ted Unangst wrote: > ul appears somewhat useless for its intended purpose. > > echo _xxx_ | ul does not result in underlined text in an xterm, so I doubt > many people are using this. [...] I don't use it anymore, but some time ago I needed to quickly highlight

Re: does anoybody use ul?

2015-10-23 Thread Stuart Henderson
On 2015/10/23 11:52, Ingo Schwarze wrote: > I didn't use it so far, but now that you made me look at it, i'm > likely to start using it almost daily. I often felt unhappy that > my gmdiff tool (for comparing groff and mandoc output) does not > show bold and underline fonts and i always had to

Re: does anoybody use ul?

2015-10-23 Thread Ted Unangst
Stefan Sperling wrote: > On Fri, Oct 23, 2015 at 05:50:53AM -0400, Ted Unangst wrote: > > well, it doesn't work with utf-8 because it tries to underline only half the > > character. i'm aiming for the "quick fix"... > > Why not at least try a kind of better fix to see how it would work? Is this

Re: does anoybody use ul?

2015-10-23 Thread Christian Weisgerber
Ted Unangst: > > mandoc /usr/share/man/man1/ksh.1 | sed -n 1185,1190p | ul > > so that works with the diff below. i'm not sure how far down this road we need > to travel, but i figure it's worth a little exploration. That works so far. Next problem: tabs. (I think it's reasonable to ignore

Re: does anoybody use ul?

2015-10-23 Thread Ted Unangst
Christian Weisgerber wrote: > On 2015-10-23, "Ted Unangst" wrote: > > > ul appears somewhat useless for its intended purpose. > > mandoc /usr/share/man/man1/ls.1 | ul > > Works fine. Of course that functionality has been incorporated > into more/less decades ago. > > >

Re: does anoybody use ul?

2015-10-23 Thread Ingo Schwarze
Hi Ted, Ted Unangst wrote on Fri, Oct 23, 2015 at 03:47:56AM -0400: > ul appears somewhat useless for its intended purpose. > > echo _xxx_ | ul does not result in underlined text in an xterm, > so I doubt many people are using this. > > Unlike, say, mandoc, it can't output Greek letters. > I

Re: does anoybody use ul?

2015-10-23 Thread Christian Weisgerber
Ted Unangst: > --- ul.c 10 Oct 2015 16:15:03 - 1.19 > +++ ul.c 23 Oct 2015 10:29:43 - > @@ -241,6 +241,8 @@ mfilter(FILE *f) > obuf[col].c_mode |= BOLD|mode; > else > obuf[col].c_mode = mode; > + if ((c &

Re: does anoybody use ul?

2015-10-23 Thread Ted Unangst
Christian Weisgerber wrote: > Ted Unangst: > > > --- ul.c10 Oct 2015 16:15:03 - 1.19 > > +++ ul.c23 Oct 2015 10:29:43 - > > @@ -241,6 +241,8 @@ mfilter(FILE *f) > > obuf[col].c_mode |= BOLD|mode; > > else > >

Re: does anoybody use ul?

2015-10-23 Thread Theo de Raadt
> > From: "Ted Unangst" > > Date: Fri, 23 Oct 2015 03:47:56 -0400 > > > > ul appears somewhat useless for its intended purpose. > > > > echo _xxx_ | ul does not result in underlined text in an xterm, so I doubt > > many people are using this. > > > > Unlike, say, mandoc,

Re: does anoybody use ul?

2015-10-23 Thread Stefan Sperling
On Fri, Oct 23, 2015 at 06:32:32AM -0400, Ted Unangst wrote: > Stefan Sperling wrote: > > On Fri, Oct 23, 2015 at 05:50:53AM -0400, Ted Unangst wrote: > > > well, it doesn't work with utf-8 because it tries to underline only half > > > the > > > character. i'm aiming for the "quick fix"... > > >

Re: does anoybody use ul?

2015-10-23 Thread Mark Kettenis
> From: "Ted Unangst" > Date: Fri, 23 Oct 2015 03:47:56 -0400 > > ul appears somewhat useless for its intended purpose. > > echo _xxx_ | ul does not result in underlined text in an xterm, so I doubt > many people are using this. > > Unlike, say, mandoc, it can't output

Re: does anoybody use ul?

2015-10-23 Thread Christian Weisgerber
Ted Unangst: > well, it doesn't work with utf-8 because it tries to underline only half the > character. i'm aiming for the "quick fix"... FreeBSD has imported a fix for this, r132858. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: does anoybody use ul?

2015-10-23 Thread Stefan Sperling
On Fri, Oct 23, 2015 at 05:50:53AM -0400, Ted Unangst wrote: > well, it doesn't work with utf-8 because it tries to underline only half the > character. i'm aiming for the "quick fix"... Why not at least try a kind of better fix to see how it would work?

Re: does anoybody use ul?

2015-10-23 Thread Christian Weisgerber
On 2015-10-23, "Ted Unangst" wrote: > ul appears somewhat useless for its intended purpose. mandoc /usr/share/man/man1/ls.1 | ul Works fine. Of course that functionality has been incorporated into more/less decades ago. > Will anyone miss it? Probably not, but what's

Re: does anoybody use ul?

2015-10-23 Thread Nicholas Marriott
On Fri, Oct 23, 2015 at 05:11:42AM -0400, Ted Unangst wrote: > Nicholas Marriott wrote: > > Well, it does work: > > > > printf 'A\bA_\bB'|ul > > > > I still think it is not useful, I say kill it. > > Oh! Is that how you use it? The man page doesn't explain, apparently expecting > that everybody

Re: does anoybody use ul?

2015-10-23 Thread Ingo Schwarze
Hi Stuart, Stuart Henderson wrote on Fri, Oct 23, 2015 at 11:28:35AM +0100: > On 2015/10/23 11:52, Ingo Schwarze wrote: >> I didn't use it so far, but now that you made me look at it, i'm >> likely to start using it almost daily. I often felt unhappy that >> my gmdiff tool (for comparing groff

Re: does anoybody use ul?

2015-10-23 Thread Vadim Zhukov
2015-10-23 15:38 GMT+02:00 Ted Unangst : > Christian Weisgerber wrote: >> Ted Unangst: >> >> > --- ul.c10 Oct 2015 16:15:03 - 1.19 >> > +++ ul.c23 Oct 2015 10:29:43 - >> > @@ -241,6 +241,8 @@ mfilter(FILE *f) >> > obuf[col].c_mode |=

Re: does anoybody use ul?

2015-10-23 Thread Christian Weisgerber
Ingo Schwarze: > - The FreeBSD change with wchar_t (+70 -44 lines) seems >like overkill to me. Wait until you've added double-width characters and correct tab handling, which the FreeBSD code supports. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: does anoybody use ul?

2015-10-23 Thread Ingo Schwarze
Hi Christian, Christian Weisgerber wrote on Fri, Oct 23, 2015 at 11:26:00PM +0200: > Ingo Schwarze: >> - The FreeBSD change with wchar_t (+70 -44 lines) seems >>like overkill to me. > Wait until you've added double-width characters I tested double-width characters (both bold and

Re: does anoybody use ul?

2015-10-23 Thread Vadim Zhukov
2015-10-23 23:00 GMT+02:00 Ingo Schwarze : > Hi Ted, > > Ted Unangst wrote on Fri, Oct 23, 2015 at 09:38:22AM -0400: > >> so that works with the diff below. > > I agree with the direction for this kind of tool, at least for now. > However, your diff has a few issues, so i

Re: does anoybody use ul?

2015-10-23 Thread Ingo Schwarze
Hi Ted, Ted Unangst wrote on Fri, Oct 23, 2015 at 09:38:22AM -0400: > so that works with the diff below. I agree with the direction for this kind of tool, at least for now. However, your diff has a few issues, so i improved it, see below. Any OKs or vetos? Ted, in case you want to commit, the

does anoybody use ul?

2015-10-23 Thread Ted Unangst
ul appears somewhat useless for its intended purpose. echo _xxx_ | ul does not result in underlined text in an xterm, so I doubt many people are using this. Unlike, say, mandoc, it can't output Greek letters. I also imagine most people have moved on to some form of markdown for their other text