Optional/mandatory whitespace in ยง5.5 Advanced line types
- ๐ง Messages: 6
- ๐ฃ๏ธ Authors: 5
- ๐
First Message: 2020-09-13 02:46
- ๐
Last Message: 2020-09-13 09:10
1. Nathan Galt (mailinglists (a) ngalt.com)
- ๐
Sent: 2020-09-13 02:46
- ๐ง Message 1 of 6
Prior reading:
=> https://gemini.circumlunar.space/docs/specification.html The Spec, ?5.5
Advanced line types
I noticed that the spec has three different advanced line types and three
different whitespace handling verbiages for each.
Heading lines: Start with 1?3 ?#?, then optional whitespace.
List items: Start with ?* ? (note the space!)
Quote lines: Start with ?>?
Shouldn?t these three have the same whitespace rules, with the same phrasing?
Here?s my argument for ?mandatory whitespace for all? ([\t ]+):
- It lets authors write ?#3. I like eggs.? without accidentally getting
that line parsed as if it were a heading (we don?t have backslash escapes
like Markdown does)
- It?s better for some emoticons that, um, might be out there that start with > or *
- ?#Steak? looks like a hashtag, and I could see some fraction of authors
writing ?#blah? _meaning_ for it to be a tag
- We shouldn?t be worried about backcompat at v0.14.2. I don?t have much
gemini text, but I?m the sort who would reformat his own non-conformant
documents to match something like this.
- - - -
I could see myself wanting an H4-equivalent or higher, but I?m not certain
this is _quite_ the right time to mention it. Also the current spec
already seems to say that clients should parse ?#### Eggs? as not-a-heading.
Link to individual message.
2. Alexis (flexibeast (a) gmail.com)
- ๐
Sent: 2020-09-13 03:02
- ๐ง Message 2 of 6
Nathan Galt <mailinglists at ngalt.com> writes:
> Shouldn?t these three have the same whitespace rules, with the
> same phrasing?
>
> Here?s my argument for ?mandatory whitespace for all? ([\t ]+):
Fwiw, i support this. Lately i've been spending a lot of time and
energy on format conversions, and the more consistent the syntax,
the easier it is to parse, and the less i have to rely on kludgy
heuristics.
Alexis.
Link to individual message.
3. easeout (a) tilde.team (easeout (a) tilde.team)
- ๐
Sent: 2020-09-13 03:20
- ๐ง Message 3 of 6
On Sat, Sep 12, 2020 at 07:46:12PM -0700, Nathan Galt wrote:
> I noticed that the spec has three different advanced line types and
three different whitespace handling verbiages for each.
>
> Heading lines: Start with 1?3 ?#?, then optional whitespace.
> List items: Start with ?* ? (note the space!)
> Quote lines: Start with ?>?
>
> Shouldn?t these three have the same whitespace rules, with the same phrasing?
I'm inclined to agree.
> Here?s my argument for ?mandatory whitespace for all? ([\t ]+):
>
> - It lets authors write ?#3. I like eggs.? without accidentally getting
that line parsed as if it were a heading (we don?t have backslash escapes
like Markdown does)
> - It?s better for some emoticons that, um, might be out there that start with > or *
> - ?#Steak? looks like a hashtag, and I could see some fraction of
authors writing ?#blah? _meaning_ for it to be a tag
> - We shouldn?t be worried about backcompat at v0.14.2. I don?t have much
gemini text, but I?m the sort who would reformat his own non-conformant
documents to match something like this.
Let's also consider the other way these three cases could have the same
whitespace rules, which is to make that whitespace always optional
rather than always required.
Pros of all-optional whitespace:
- Parsing is one step simpler than requiring at least one whitespace
character.
- Parsing is compatible with existing Gemtext. (I also think this is not
that big of a deal, but let's list it.)
Cons:
- At the beginning of an intended plain text line, some common forms of
expression like "*Foo*", "#Foo", and ">_<" would be interpreted as
list items, headings, or quotations.
?and that's all I've got. Having thought through it, I think mandatory
whitespace sounds like a better choice.
Link to individual message.
4. Sandra Snan (sandra.snan (a) idiomdrottning.org)
- ๐
Sent: 2020-09-13 05:37
- ๐ง Message 4 of 6
I agree with mandatory whitespace except for when quoting empty lines.
Nathan Galt <mailinglists at ngalt.com> writes:
> Prior reading:
>
> => https://gemini.circumlunar.space/docs/specification.html The Spec,
?5.5 Advanced line types
>
> I noticed that the spec has three different advanced line types and
three different whitespace handling verbiages for each.
>
> Heading lines: Start with 1?3 ?#?, then optional whitespace.
> List items: Start with ?* ? (note the space!)
> Quote lines: Start with ?>?
>
> Shouldn?t these three have the same whitespace rules, with the same phrasing?
>
> Here?s my argument for ?mandatory whitespace for all? ([\t ]+):
>
> - It lets authors write ?#3. I like eggs.? without accidentally getting
that line parsed as if it were a heading (we don?t have backslash escapes
like Markdown does)
> - It?s better for some emoticons that, um, might be out there that start with > or *
> - ?#Steak? looks like a hashtag, and I could see some fraction of
authors writing ?#blah? _meaning_ for it to be a tag
> - We shouldn?t be worried about backcompat at v0.14.2. I don?t have much
gemini text, but I?m the sort who would reformat his own non-conformant
documents to match something like this.
>
> - - - -
>
> I could see myself wanting an H4-equivalent or higher, but I?m not
certain this is _quite_ the right time to mention it. Also the current
spec already seems to say that clients should parse ?#### Eggs? as not-a-heading.
Link to individual message.
5. Nathan Galt (mailinglists (a) ngalt.com)
- Subject Changed! New Subject: Re: Optional/mandatory whitespace in ยง5.5 Advanced line types
- ๐
Sent: 2020-09-13 06:52
- ๐ง Message 5 of 6
Ooh, good catch.
Agreed.
> On Sep 12, 2020, at 10:37 PM, Sandra Snan <sandra.snan at idiomdrottning.org> wrote:
>
> I agree with mandatory whitespace except for when quoting empty lines.
>
> Nathan Galt <mailinglists at ngalt.com> writes:
>
>> Prior reading:
>>
>> => https://gemini.circumlunar.space/docs/specification.html The Spec,
?5.5 Advanced line types
>>
>> I noticed that the spec has three different advanced line types and
three different whitespace handling verbiages for each.
>>
>> Heading lines: Start with 1?3 ?#?, then optional whitespace.
>> List items: Start with ?* ? (note the space!)
>> Quote lines: Start with ?>?
>>
>> Shouldn?t these three have the same whitespace rules, with the same phrasing?
>>
>> Here?s my argument for ?mandatory whitespace for all? ([\t ]+):
>>
>> - It lets authors write ?#3. I like eggs.? without accidentally getting
that line parsed as if it were a heading (we don?t have backslash escapes
like Markdown does)
>> - It?s better for some emoticons that, um, might be out there that start with > or *
>> - ?#Steak? looks like a hashtag, and I could see some fraction of
authors writing ?#blah? _meaning_ for it to be a tag
>> - We shouldn?t be worried about backcompat at v0.14.2. I don?t have
much gemini text, but I?m the sort who would reformat his own
non-conformant documents to match something like this.
>>
>> - - - -
>>
>> I could see myself wanting an H4-equivalent or higher, but I?m not
certain this is _quite_ the right time to mention it. Also the current
spec already seems to say that clients should parse ?#### Eggs? as not-a-heading.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200912/3e3c
735c/attachment.htm>
Link to individual message.
6. cage (cage-dev (a) twistfold.it)
- Subject Changed! New Subject: Optional/mandatory whitespace in ยง5.5 Advanced line types
- ๐
Sent: 2020-09-13 09:10
- ๐ง Message 6 of 6
On Sat, Sep 12, 2020 at 07:46:12PM -0700, Nathan Galt wrote:
Hi!
> Prior reading:
>
> => https://gemini.circumlunar.space/docs/specification.html The Spec,
?5.5 Advanced line types
>
> I noticed that the spec has three different advanced line types and
three different whitespace handling verbiages for each.
>
> Heading lines: Start with 1?3 ?#?, then optional whitespace.
> List items: Start with ?* ? (note the space!)
> Quote lines: Start with ?>?
> Shouldn?t these three have the same whitespace rules, with the same phrasing?
Correct me if i am wrong but we already discussed that in the mailing list?
gemini://gemi.dev/gemini-mailing-list/messages/002312.gmi
Bye!
C.
Link to individual message.
---
Previous Thread: MacOS Gemini Client
Next Thread: [ANN] gemini.sublime-syntax v0.2.0, now with .mollyhead support