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-users 23641
- 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: Sun, 16 Sep 2018 22:56:55 +0000
- Cc: zsh-users@xxxxxxx, lilydjwg <lilydjwg@xxxxxxxxx>
- 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=h+lPi8 pA2z2/DnnzKihHYIfMSMFeDP0De7bc7F4LG+s=; b=UfsIugojBnDz4U4Qabjk5Z Cuhht6OVh7WYgQxugQA8sM4xOzIm8skF+1D0+MzwogElFbvWVZvI85S6qE2o38a2 lYeqOYMMpti7mUeejEy8BKgn7S75V8Nb496Siq3zrDcIBKLjsdfSHupVK2rri66I AqdHjo/U8SKazbmGxlaokfDvEqpi6iOv6aij+wjbeSFwOih66XV3Cl9Esf0uKU38 HGwSe5Kl/dLePer3al915W7GvhPa5EL6PonfjVcgitAOrkwOWFf4nKmAjGwDUklX 6OQkZ+6nuBTX3L0EEoh2rhygaV4KgXSmEiKEiK9QZegZxdqwTNEJdXVXc1R+0FRA ==
- 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=h+lPi8 pA2z2/DnnzKihHYIfMSMFeDP0De7bc7F4LG+s=; b=IlJ8yzh1O2omUkwz5gdzQ9 sNNtJeRb01M443y1quGv7Tqq5scn3nXH1oOhWUX9BTc+WgVOozKuNm/gkMZmE3Mw wcyRaXh3aRmwbPB4RJsPoe+i3bzFiTd9zEuXk44w9QcFDXnGWcBwHV6PKCYcHeNF wS6/1sv+mGrUeVlLUf7S5tcOcun8nT0LF+RWY2LL1eIhf5h+cy7D4gTd8jY0vxrJ wFnJ1thaghlBPHg8SLXY9wsMQ95hmxitvdrB7aliZgxDky2CynsS+3Znl/5Uk9k1 er8S4K3vG8cY2h9PPUNO3Ja5H59StJdSRJEPm7G+NLalAf/5zkC4pMIqzMhzkt3A ==
- In-reply-to: <73DDD712-8DE5-4EA7-8488-5ED0A4EFB2A6@dana.is>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-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>
dana wrote on Sun, 16 Sep 2018 17:16 -0500:
> I guess it's designed with the sections that get separate pages (like
> 'Parameters') in mind? The top-level heading seems to be omitted if the first
> immediate descendant is a sub-section.
I don't understand the last sentence?
> The same is true of other sections like 'Invocation', 'Files', and 'Jobs & Signals'.
>
> Confusingly, the first two sections mentioned above each contain a sub-section
> with the same name, so the exact part of the documentation being referred to is
> unclear/inconsistent.
On the other hand, redirect.yo explicitly adds a sect() in man page format
only. The net effect is that the heading "Redirection" is shown as a
chapter heading in html/pdf but as a section heading in man.
> (In the man pages, the top-level headings are missing,
That's because zman.yo defines chapter() to expand to nothing.
> so that leaves only the sub-headings. But in the HTML version, the
> links take you to the top of the entire section.)
>
Yes, the texinode() directives are placed on the chapter(), not on the
sect() with the same name.
The mapping between chapter() nodes and man pages is not one to one;
there are more chapters than man pages.
> Not sure how to address that
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.
Or we could hack at the yodl to reduce the differences between the
various output formats.
There are probably other options
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author