-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add specification document style guide #2884
Conversation
This follows the style of how "keyword" is used in other places.
Note that it's not obvious that 'each' really is a prefix, but there's a case for 'each' to be discussed in the style guide...
I think the style guide draft now has enough content to begin the review process. I'll leave the PR in Draft state to reflect that it's still in a very early stage of development. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One thing I would like to see is a link to preamble.tex saying where to find various rules like nonnormative, example, definition, etc. Alternatively, we can list all of them in styleguide.md but that would require maintaining them in 2 places. It looks like they are documented relatively well in preamble.tex, so I think it would be enough to mention it and provide a link.
Looks good apart from the minor things I noticed. |
Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
Yes, it would definitely be good if we could avoid any extra maintenance. I started by just mentioning the two files where we keep our macros and environments. With that, are links really necessary for each specific case? If anything, I think we should just give the name of the package where a command is defined, but I see a risk of bloating the style guide with package references, when it's actually rather easy to figure out once one knows where to look for the things we have defined, the other things being found by a search on CTAN or similar. |
Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far.
Then, with @HansOlsson's approval I suggest that the Draft state is removed to indicate that this could very well be pretty much ready for merging. Then, I'll also make an announcement on the mailing list, so that we can get additional comments well in advance of the next phone meeting. Hopefully, we'll then be ready for polling on accepting this at the meeting – @HansOlsson, could you please make sure it's on the agenda? |
Reverting for two reasons: - Functionality isn't working well, with two out of six cases showing broken highlighting. - No way to get matching syntax highlighting in inline code snippets, making inline code and code blocks looks like two different kinds of code. This reverts commit ecf28df.
With nothing said so far in favor of keeping the syntax highlighting for LaTeX code blocks, I reverted this part too. |
Some comments:
The rest are just attempts at improving the current texts:
|
As suggested in review comment by Hans.
Done. |
Done, without going into detail of how it is done inside the semantic macros. |
I think one should be careful about making such suggestions, as the priority should be readability of the document. Sure, long sentences can be its own source of poor readability, but a paragraph with too many and overly aggressively shortened sentences can also become hard to follow. For example, references such as "This…" can become ambiguous when following many short sentences, whereas ", this…" is clearly a reference to something within the same sentence. Anyway, I tried adding something in the form of a rather weak suggestion. |
This form should only be used when the |
The terminology was based on a distinction between giving a full-blown definition, and just introducing a term in the running text. The use of Since introducing terms in running text is far more common than using a |
The reason was that I wanted " Since the need for such distinction is unique to "expression", we have the freedom to drop the hyphen in other cases, which looks better without sacrificing precision, in my opinion. |
I don't think the added perception of precision is worth it. |
An additional point found while reviewing another IR is that we generally don't use contractions in the text. That rule is missing from the style guide. |
Includes addressing review comment by Hans regarding contractions.
Done. Also specified that the document uses American English. |
OK. Maybe a better solution is to suggest avoiding the possibly ambiguous combinations with expression? For example, it could be sufficient to just say:
instead of
Or saying something like
instead of
Other ways of rewriting can probably be found in the other cases as well. |
Yes. And specifically for DynamicSelect: (At first I wanted to add 'call', but I found it redundant.) |
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, looks good now.
Preparing a style guide for the specification document, according to phone meeting decision.
This is a prerequisite for fixing #2713: once we have a style guide to follow, we'll have to set up another PR for actually applying the style guide to fix #2713.
Setting up PR in Draft state, so that others can give early feedback. Please note that I still haven't even started on the part directly related to #2713.