From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s4JI0cXg006348 for ; Mon, 19 May 2014 14:00:43 -0400 (EDT) Received: by mail-we0-f179.google.com with SMTP id q59so5791052wes.24 for ; Mon, 19 May 2014 11:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=z89hLaAQ1YDHsYu90jxJ6KKI9ybVjVD7BSW04RAzZSU=; b=nlzN0P0auXJ03fv0nFKpcVWPYF05OM93poUkcLXIzVUSSKcae3isUg9+RJzRYkc+Da gOO44WRmdDX7fKZ4Fvu2zboFCrXrOMfZ6wciXHq5FGmxTLBUMw2VvJD9q52RwW8UfF+b JuZdUhDRb30EcrdSbSozKx/HPWgs+aRV01dbS1zdc7CQpiog99LFR4JQ4paEucPfsCoc SRz4IM22GwqTEhR4tdxBSu4tv/vak8QuVfGK0SLuiJvLx3R9ceyHQxaamQqs3hmAm89m T6MBEdZ0A25FvSeDFNEu8ntH61OoQR3Fnoy3thNTKIahNSmKvdPn3w6Acdkg4J+DYYgA G0eQ== X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 X-Received: by 10.180.13.209 with SMTP id j17mr2953wic.18.1400522432630; Mon, 19 May 2014 11:00:32 -0700 (PDT) Received: by 10.216.37.67 with HTTP; Mon, 19 May 2014 11:00:32 -0700 (PDT) In-Reply-To: <20140519135952.GA8975@iris.usta.de> References: <20140518104711.GE10377@danbala.tuwien.ac.at> <20140519135952.GA8975@iris.usta.de> Date: Mon, 19 May 2014 23:30:32 +0530 Message-ID: Subject: Re: -Ttree: non-ASCII characters From: Abhinav Upadhyay To: Ingo Schwarze Cc: discuss@mdocml.bsd.lv, Thomas Klausner Content-Type: text/plain; charset=UTF-8 Thanks for the clarification Ingo. Thomas, I guess I will have to handle this in makemandb itself. I will send a patch soon. Thanks Abhinav On Mon, May 19, 2014 at 7:29 PM, Ingo Schwarze wrote: > Hi, > > Thomas Klausner wrote on Sun, May 18, 2014 at 12:47:12PM +0200: > >> apropos in NetBSD is using the mandoc library (currently 1.13.0). I >> noted a problem with apropos midi output and asked the author (Abhinav >> Upadhyay) to take a look at it. >> >> He reported the mandoc -Ttree /usr/share/man/man4/midi.4 already gave >> back mangled output: >> >> root (root) 0:0 >> Sh (block) *33:1-35 >> Sh (block-head) 33:1 >> NAME (text) 33:4 >> Sh (block-body) 33:1-35 >> Nm (elem) *34:1 >> midi (text) 34:4 >> Nd (block) *35:1 >> Nd (block-head) 35:1 >> Nd (block-body) 35:1 >> device^^independent MIDI driver layer (text) 35:4 >> >> >> The "^^" are reversed, and they correspond to this (from "mandoc midi.4" output): >> >> NAME >> midi -- device-independent MIDI driver layer >> >> I see that the mandoc man page says under "Mdoc Abstract Syntax Tree" >> TEXT <- [[:ascii:]]* >> >> There seems to be a bug here, or? > > Yes, i should probably fix the manual. > > Some hyphens (ASCII 45) are replaced by ASCII_HYPH (30) > to tell the formatters that hyphenation is allowed at these > places. ASCII 29 and 31 may also occur, see mandoc.h: > > #define ASCII_NBRSP 31 /* non-breaking space */ > #define ASCII_HYPH 30 /* breakable hyphen */ > #define ASCII_BREAK 29 /* breakable zero-width space */ > > I will be slow to respond for a few weeks, i'm going to be offline > until June 10. > > Yours, > Ingo -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv