-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
numbered blocks #36
Comments
@thoughtstream I had decided to put numXXX as extra custom blocks so as not to change the spec document again. But the idea of other blocks is mentioned. I agree with the idea of visible and invisible blocks, and that 'num' versions of visible blocks should exist. I think however that 'cell' should be considered 'invisible' because it is illegal outside of a table, and within a table, if anything it should be rows or columns that are numbered. Another complexity I was worried about with regard to table/formula is whether or how numbering should be independent or in the same sequence as head. |
I had to break off before finishing. First about existing num behavour, as I have interpreted it.
if b has Continuing about other numXXX blocks We could consider that eg Formula & Table are considered by default to be the same as
I think most authors would however prefer
For So my thought is that all block-types, except However, to provide for some authorial control, it does seem to me that we should have some more metadata options that affect numbering, in addition to I have separated out the Numeration class, so that it the Str routine can be sub-classed to provide different numeration strategies other than the default one in the specification. |
@thoughtstream Further on division of blocks: in addition to visible/invisible, there is a
The last two semantic block are special-cased because that is the way Raku documentation is treated, and it does make some sense to treat them specially. But it is not documented in the spec. I am also not sure about how to classify |
Just a note that, although I definitely consider this issue important, |
@thoughtstream Congratulations. Wendy and I are only seeing our 20th next year. But then again we've been together for 37+ years :-) |
@thoughtstream congratulations. Corinne and I will be celebrating on July 1. |
[Thank-you both for your congratulations. We had a very pleasant anniversary.]
So maybe we don’t specify any in-table numbering for the moment.
Tables and formulae should definitely each have their own sequences, independent of headings.
I agree with your interpretation, including the block-scoping of numbered items.
Agreed. I think that would be what most authors expect...and what they’d want.
Agreed. Starting from 1 at the beginning of the document. And not block-scoped.
Agreed. In summary: every
I think we only need one metaoption, which would set the numbering of the block type to which it
...which would render to: There are two possibilities: If you understand binary, there are two further possibilities:
Agreed, but I’m not sure how this relates to numbered blocks?
I don’t have a problem with allowing However, this does bring up another issue. If people do want to refer to
...then later they’re going to want to be able to say: It seems to me that the obvious way to achieve this is to provide
|
@thoughtstream pandoras box! |
You mean: full of evil, with only a tiny gleam of hope buried under all the badness? ;-) It’s no problem to suspend this discussion for now. We can leave the issue open, |
Continuing a conversation at end of #35.
@thoughtstream said:
Hmmmmm. Do we need to open a separate issue about this?
Looking at the available standard block types, it seems that
they fall into two categories: those that produce a visible renderings
and those that are effectively invisible in the rendered output:
=code
=comment
=input
=nested
=output
=rakudoc
=head
=section
=defn
=pod
=item
=data
=para
=table
=cell
=formula
It seems reasonable that every block that produces a visible rendering
should have a corresponding
num...
version.On the other hand, I don't think that we can specify that absolutely any block
(visible or not) can be given a
num...
prefix. If I squint, I can see that=numsection
or=numrakudoc
(and even maybe=numnested
)might make some kind of sense...but
=numcomment
is just silly,and
=numdata
positively misleading`.The text was updated successfully, but these errors were encountered: