Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Dangling reference in zshroadmap(1) (was: Re: test for newline in a variable--unexpected results sometimes)
- X-seq: zsh-workers 43476
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Subject: Re: Dangling reference in zshroadmap(1) (was: Re: test for newline in a variable--unexpected results sometimes)
- Date: Mon, 17 Sep 2018 00:04:14 +0000
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=GOzZeL 770h6qKlUUH3zegiznvWfqpupEkG0a+cNZ6as=; b=g9ctQhzUXb4+KpnR2WzizD uWc1JHX7N1SePX1aVM/FiUpBwM7KXINa9Wz8Ezoy4lU1shGRRruauf8aL1WJ5w2J Oh1fTQ5u176GqgokBFjpT3UDLrfhYwGqgPXwminvtzqncKZimy8Funm32vAz7cng ZsgSP3Kh6ACcBQ07k/oWOwQQCvZjzekpb0tWvbqh1tW/44jUszmhnhJ4hPAroUKJ c2ECLYPs6qTXAxkhBN7PHKFqpAMMIZYcpKOI37hPfP/rccFHOrcp41HbdoiUr+Gl 7zhjk6W2G0E3VwvR+wf3ttaHDevu0hD/yBamXijzb6Pcfx6gBwmipIrt4XnEo55g ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=GOzZeL 770h6qKlUUH3zegiznvWfqpupEkG0a+cNZ6as=; b=iknAwmYfY1VNRuZpJEriMq 5jJob1Fh1FVzKZGXK6qu63GSQdGZUu86UTX1WfStbtNBDiZvDE/sBgNAqrKBQvyY dEGoKyIzoQ8sg8E5hEFYC/NzhiNYJWeBYGC1tr/j3A02fci1aucMUoDvLVv40ilL G8wGWwTFlo3T1+W28UciUpOSbqyDwujxx+AmovZy84RnUUDOJ5ew/uay1CKlmoW7 NH5ho+J7x+C58uS/FXbCHeuaLeQpOFsAKSZhO9qM5tqa32f1yL/kg0s36ZUHb7NS ZklHMpe5WoszQIioBThfuThW+lM+QsRNAA3PWNuS44PAF6LIHjyoiT5yT8Z8Xa7A ==
- In-reply-to: <895B1E5B-58E1-448A-9B8A-2E758FAF8796@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180916172716.GA27892@lilyforest.localdomain> <20180916204433.6k36inmuekgqp3a2@tarpaulin.shahaf.local2> <DC89977C-A130-483E-A631-E7A2CD6AE7A0@dana.is> <1537134280.3026165.1510059848.0DC32D7A@webmail.messagingengine.com> <73DDD712-8DE5-4EA7-8488-5ED0A4EFB2A6@dana.is> <1537138615.3041549.1510092752.5632AB35@webmail.messagingengine.com> <895B1E5B-58E1-448A-9B8A-2E758FAF8796@dana.is>
dana wrote on Sun, 16 Sep 2018 18:33 -0500:
> (This belongs in workers now, yeah?)
>
Sure.
> On 16 Sep 2018, at 17:56, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >I don't understand the last sentence?
>
> I haven't bothered to look at the actual source (and don't know it well from
> memory yet), but just from the end result, it seems that it's set up so that if
> a chapter has no sub-sections (like 'Command Execution') or if it has some
> introductory text before the sub-sections (like 'Functions'), the top-level
> heading is preserved. For chapters like 'Jobs & Signals', where the first bit of
> content is a sub-heading, that top-level heading goes away, so as not to have
> two consecutive headings.
>
Ah, I see. So you're saying there's some method to the madness by which
it's decided which chapter() directives do, or do not, appear in the man page.
Furthermore, chapter() headings ("9. Functions") and sect() headings
("9.1 Autoloading Functions") are rendered the same way in the man page.
It would be nice to fix this.
> On 16 Sep 2018, at 17:56, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >What end result would we like to achieve? Once we nail that down we can
> >think how to implement it.
> >
> >At least, we could grep for any instances of ifnzman(see the section
> >`foo'...) where `foo' is a texinode() of a chapter(), and fix them.
>
> For cases like the 'Shell Grammar' reference you found, it seems like there are
> basically two kinds of options: Either change the reference to point to a
> specific section instead of a whole chapter, or change the structure of the
> pages to include the chapter heading. Assuming that's true, only the latter is
> appropriate here, right?
>
Actually, if you look at the source, you'll find that all these
references are done separately for the man page output and for the
texinfo output. This instance is typical; it looks like this:
.
General shell syntax is introduced in ifzman(the section `Shell Grammar' in
zmanref(zshmisc))\
ifnzman(noderef(Shell Grammar)).
.
Therefore, we can easily change the text for the man page output only,
as a low-hanging fruit / hotfix.
> I'm probably speaking out of turn, though, tbh; i know way less about how this
> works than you.
I don't think you are. What I know about yodl and the manual could fit
in a very small number of bytes.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author