Language Guidelines: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Added link to the MS guidelines if found.)
(Condensed the sections and gave links to the MS guide)
 
Line 1: Line 1:
[[Category:Writing Guidelines]]
[[Category:Writing Guidelines]]
TODO: Check whether all these rules are listed in the [https://learn.microsoft.com/en-us/style-guide/welcome/ Microsoft Style Guide] and then remove this page.  
This page is part of the [[QtWritingGuidelines | Qt Writing Guidelines]].  


QUESTION: Should we add these as links into the appropriate sections in the MS Style Guide on the [[Developing Qt Documentation]] page?


This page is part of the [[QtWritingGuidelines | Qt Writing Guidelines]].
We use the [https://learn.microsoft.com/en-us/style-guide/welcome/ Microsoft Writing Style Guide] in the Qt documentation. Essentially, use clear and direct language in '''American English'''. We write to a diverse audience and we need to communicate Qt topics in an approachable and understandable manner.


==Idioms and usage==


===Point of view (POV)===
Here are some clarifications for Qt documentation:


Use second person point of view with the personal pronoun '''you''' in technical communication. This is also known as direct address, and helps you write in active voice.
# Use '''active voice''', not passive. Passive does not make a sentence formal, but unnecessarily weakens the sentence. See [https://learn.microsoft.com/en-us/style-guide/grammar/verbs Verbs]
# Use the pronoun '''you''' in to address the reader when appropriate. See [https://learn.microsoft.com/en-us/style-guide/grammar/nouns-pronouns Nouns and Pronouns].
# Use '''because''' instead of "since" or "as". See [https://learn.microsoft.com/en-us/style-guide/word-choice/use-simple-words-concise-sentences Use simple words, concise sentences].
# Use a serial comma, also known as the '''Oxford comma'''. See [https://learn.microsoft.com/en-us/style-guide/punctuation/commas Commas]
# Use US spelling and avoid latin abbreviations. See [https://learn.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words Use US spelling and avoid non-English words]. Here is a summary :


JEROME: Found in MSTP: https://learn.microsoft.com/en-us/style-guide/grammar/nouns-pronouns
{| class="wikitable"
 
|+
===Since/as/because and ambiguity===
!Use
 
!Instead of
According to MSTP both "since" and "as" need to be avoided because they can lead to ambiguous interpretations (causal meaning or temporal meaning). MSTP recommends using "because".
!
 
!
The Canadian Writer's Handbook also recommends not using "since" and "as".
|-
 
|for example
The Chicago Manual of Style doesn't mention this issue.
|e.g.
 
|
JEROME: Found in MSTP: https://learn.microsoft.com/en-us/style-guide/word-choice/use-simple-words-concise-sentences
|
 
|-
==Spelling==
|that is
 
|i.e.
Qt documentation follows American English spelling.
|
 
|
===Latin expressions commonly used in English===
|-
 
|namely
i.e. (that is)
|viz.
e.g. (for example)
|
cf. (compare)
|
etc. (and so forth)
|-
vs.(versus)
|therefore
et al. (and others)
|ergo
 
|
It is advisable to use the English equivalent for better readability.
|}
 
JEROME: Found in MSTP: https://learn.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words
 
==Punctuation==
 
===Oxford comma===
 
In punctuation, a serial comma (also called Oxford comma) needs to be placed immediately before the conjunction (often "and" or "or") in a series of three or more terms.
 
Example:
 
I would like crackers, cheese, and garlic.
 
JEROME: Found in MSTP: https://learn.microsoft.com/en-us/style-guide/punctuation/commas
 
===The comma as a separator between compound sentences.===
 
Use commas to separate independent clauses when they are joined by any of these seven coordinating conjunctions: and, but, for, or, nor, so, yet.
 
However, the comma can be dropped in the following cases:
 
*When both independent clauses are quite short, especially if the two clauses are very closely related, and even more so if the subject of both clauses is the same.
 
*If only the first clause is quite short, especially if the two clauses are very closely related, and even more so if the subject of both clauses is the same.
JEROME: Found in MSTP: https://learn.microsoft.com/en-us/style-guide/punctuation/commas
 
===Periods and spaces===
 
The period ending a sentence should be followed by 1 space.
 
An exception to this rule is the legal text in the beginning of Qt code, which can have 2 spaces after a period.
 
JEROME: Found in MSTP: https://learn.microsoft.com/en-us/style-guide/punctuation/periods
 
==Grammar issues==
 
===Genitive===
 
Can we use the possessive's if the owner is not a person ?
 
Example:
 
*the item's width
*the width of the item
 
Both are correct. There is presently no rule stating that the owner cannot be an inanimate object.
 
JEROME: Not Found in MSTP.
 
===An URL or a URL ?===
 
A URL.
 
If the "u" is long, the article is "a". For example, a uniform, a university, a Ugandan man.
 
If it is short, the article is "an". For example, an understatement, an undermining comment, an underdog team.
 
JEROME: This is a phonetic rule. Maybe explain the phonetic rule.
 
==Sources==
 
Microsoft Manual of Style, Fourth Edition. Microsoft Press
https://www.microsoftpressstore.com/store/microsoft-manual-of-style-9780735648715
 
The Chicago Manual of Style, 14th edition. The University of Chicago Press.
"English Language & Usage": http://english.stackexchange.com/about.

Latest revision as of 12:04, 10 October 2024

This page is part of the Qt Writing Guidelines.


We use the Microsoft Writing Style Guide in the Qt documentation. Essentially, use clear and direct language in American English. We write to a diverse audience and we need to communicate Qt topics in an approachable and understandable manner.


Here are some clarifications for Qt documentation:

  1. Use active voice, not passive. Passive does not make a sentence formal, but unnecessarily weakens the sentence. See Verbs
  2. Use the pronoun you in to address the reader when appropriate. See Nouns and Pronouns.
  3. Use because instead of "since" or "as". See Use simple words, concise sentences.
  4. Use a serial comma, also known as the Oxford comma. See Commas
  5. Use US spelling and avoid latin abbreviations. See Use US spelling and avoid non-English words. Here is a summary :
Use Instead of
for example e.g.
that is i.e.
namely viz.
therefore ergo