Editing Documentation/Maemo Documentation Guidelines/General writing conventions

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 45: Line 45:
Level 3 subsubsections (a.b.c.d) are the lowest level included in the table of contents.
Level 3 subsubsections (a.b.c.d) are the lowest level included in the table of contents.
-
If the purpose is NOT to have a section number and NOT to include section to the table of contents, add an asterisk (<code>*</code>) to the end of the header tag. For example, <code>\subsection*{Example title}</code> creates a level 2 heading without numbering and without adding it into the table of contents.
+
If the purpose is NOT to have a section number and NOT to include section to the table of contents, add an asterisk (<span><font face="monospace"><nowiki>*</nowiki></font></span>) to the end of the header tag. For example, <code>\subsection*{Example title}</code> creates a level 2 heading without numbering and without adding it into the table of contents.
It is also possible to create level 4 paragraphs (a.b.c.d.e) but no lower than that. A level 4 paragraph has the following special features by default:
It is also possible to create level 4 paragraphs (a.b.c.d.e) but no lower than that. A level 4 paragraph has the following special features by default:
Line 74: Line 74:
Do not create complex structures, such as table cells including other elements than text. Avoid using multi-column cells for other purposes than creating subheadings for the table. If complex tables are needed create them outside LaTeX as images.
Do not create complex structures, such as table cells including other elements than text. Avoid using multi-column cells for other purposes than creating subheadings for the table. If complex tables are needed create them outside LaTeX as images.
-
Basic instructions for table creation in LaTeX can be found from [[wikibooks:LaTeX/Tables|WikiBooks LaTex/Tables]].
+
Basic instructions for table creation in LaTeX can be found from [http://en.wikibooks.org/wiki/LaTeX/Tables WikiBooks LaTex/Tables].
Each table must have a title that can be referenced.
Each table must have a title that can be referenced.
Line 84: Line 84:
Provide figures in a high resolution format. If needed, high resolution figures are scaled down for HTML and PDF usage.
Provide figures in a high resolution format. If needed, high resolution figures are scaled down for HTML and PDF usage.
-
{{ambox|text=Screenshots can be low resolution if high resolution figures cannot be created.}}
+
{|
 +
|-
 +
| [[Image:dialog-information.png]]
 +
| '''Note:'''  Screenshots can be low resolution if high resolution figures cannot be created.
 +
|}
For books and printing houses, resolution must be high enough. The recommendation is 300 dpi.
For books and printing houses, resolution must be high enough. The recommendation is 300 dpi.
Line 90: Line 94:
Use either PNG or JPEG format. PNG is recommended.
Use either PNG or JPEG format. PNG is recommended.
-
EPS format is not allowed in figures, because it cannot be used in PDF and HTML documents. For more information, see [[wikibooks:LaTeX/Importing_Graphics|WikiBooks LaTex/Importing Graphics]].
+
EPS format is not allowed in figures, because it cannot be used in PDF and HTML documents. For more information, see [http://en.wikibooks.org/wiki/LaTeX/Importing_Graphics WikiBooks LaTex/Importing Graphics].
-
Basic instructions for figure creation in LaTeX can be found from [[wikibooks:LaTeX/Floats,_Figures_and_Captions|WikiBooks LaTex/Floats, figures and Captions]].
+
Basic instructions for figure creation in LaTeX can be found from [http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions WikiBooks LaTex/Floats, figures and Captions].
Each figure, including screen shots, must have a title that can be referenced.
Each figure, including screen shots, must have a title that can be referenced.
Line 98: Line 102:
== Highlighting important text ==
== Highlighting important text ==
-
Use ''Italics'' to highlight important words in base text, apart from command line examples and function or file names. Do not use '''Bold''', or <code>TextRaw</code> for highlighting.
+
Use ''Italics'' to highlight important words in base text, apart from command line examples and function or file names. Do not use '''Bold''', or <span><font face="monospace">TextRaw</font></span> for highlighting.
Do not use ''Italics'' for the following items:
Do not use ''Italics'' for the following items:
Line 105: Line 109:
* product or component names (capitalize first letters instead of using formatting)
* product or component names (capitalize first letters instead of using formatting)
* paragraph titles (use '''Bold''' instead)
* paragraph titles (use '''Bold''' instead)
-
* example code and file names (use <code>TextRaw</code> instead)
+
* example code and file names (use <span><font face="monospace">TextRaw</font></span> instead)
Use Italics (at least) for the following items:
Use Italics (at least) for the following items:
Line 115: Line 119:
== Highlighting example code ==
== Highlighting example code ==
-
Use <code>TextRaw</code> or <code>Verbatim</code> to highlight command line examples and function or file names in base text. Do NOT use ''Italics'' for these. The difference between these two is that <code>TextRaw</code> allows normal LaTeX commands inside text will be ignored and handled as plain text.
+
Use <span><font face="monospace">TextRaw</font></span> or <code>Verbatim</code> to highlight command line examples and function or file names in base text. Do NOT use ''Italics'' for these. The difference between these two is that <span><font face="monospace">TextRaw</font></span> allows normal LaTeX commands inside text will be ignored and handled as plain text.
-
Use <code>TextRaw</code> or <code>Verbatim</code> to highlight the following items:
+
Use <span><font face="monospace">TextRaw</font></span> or <code>Verbatim</code> to highlight the following items:
* paths and file names
* paths and file names
Line 126: Line 130:
* domain names and IP addresses
* domain names and IP addresses
-
Use <code>TextRaw</code> for source code examples. Names need to be written exactly as in source code, for example, <code>ThumbButton</code>, <code>SmallFont</code>, <code>PANGO_SCALE_SMALL</code>, and <code>ButtonTextColor</code>.
+
Use <span><font face="monospace">TextRaw</font></span> for source code examples. Names need to be written exactly as in source code, for example, <span><font face="monospace">ThumbButton</font></span>, <span><font face="monospace">SmallFont</font></span>, <span><font face="monospace">PANGO_SCALE_SMALL</font></span>, and <span><font face="monospace">ButtonTextColor</font></span>.
-
Use <code>TextRaw</code> for command line examples and file names, for example, <code>sources.list</code>, <code>/opt/bin/share</code>, and <code>apt-get install maemo-python-env</code>.
+
Use <span><font face="monospace">TextRaw</font></span> for command line examples and file names, for example, <span><font face="monospace">sources.list</font></span>, <span><font face="monospace">/opt/bin/share</font></span>, and <span><font face="monospace">apt-get install maemo-python-env</font></span>.
Use references to the source code names in the following way:
Use references to the source code names in the following way:
-
* For user to be able to cancel operation without saving modified data you need to add <code>ThumbButton</code> for your dialog.
+
* For user to be able to cancel operation without saving modified data you need to add <span><font face="monospace">ThumbButton</font></span> for your dialog.
For more information, see chapters [[#Highlighting important text]], [[#Code listings]], and [[#Command line and screen output examples]].
For more information, see chapters [[#Highlighting important text]], [[#Code listings]], and [[#Command line and screen output examples]].
Line 138: Line 142:
== Highlighting UI element names ==
== Highlighting UI element names ==
-
Use '''Bold''' font to highlight user interface component caption names in text. For example, if you need to refer to a UI button with the caption '''Cancel''' use the caption '''Cancel''' as the element name and use '''Bold''' to highlight the name. Do NOT use ''Italics'', <code>TextRaw</code> or <code>Verbatim</code> for highlighting UI element names.
+
Use '''Bold''' font to highlight user interface component caption names in text. For example, if you need to refer to a UI button with the caption '''Cancel''' use the caption '''Cancel''' as the element name and use '''Bold''' to highlight the name. Do NOT use ''Italics'', <span><font face="monospace">TextRaw</font></span> or <code>Verbatim</code> for highlighting UI element names.
-
Use <code>TextRaw</code> or <code>Verbatim</code> only for referring to source code name of the UI element.
+
Use <span><font face="monospace">TextRaw</font></span> or <code>Verbatim</code> only for referring to source code name of the UI element.
Use references to the UI element names in the following way:
Use references to the UI element names in the following way:
Line 150: Line 154:
== Creating notes ==
== Creating notes ==
-
Notes are used in documentation to make the reader pay attention to important issues that have to be taken into consideration. Do not add a note as a part of the body text. Instead, create each note on a separate row using <code>NoteBox</code>:
+
Notes are used in documentation to make the reader pay attention to important issues that have to be taken into consideration. Do not add a note as a part of the body text. Instead, create each note on a separate row using NoteBox:
-
{{ambox|text=This is an example of a note.}}
+
{|
 +
|-
 +
| [[Image:dialog-information.png]]
 +
| '''Note:'''  This is an example of a note.
 +
|}
-
Before using a <code>NoteBox</code> consider whether using ''Italics'' is enough to highlight the issue in the base text. Use <code>NoteBox</code> only for very important issues and avoid ending a section with it.
+
Before using a NoteBox consider whether using ''Italics'' is enough to highlight the issue in the base text. Use NoteBox only for very important issues and avoid ending a section with it.
== Creating cross-references and links ==
== Creating cross-references and links ==
Line 275: Line 283:
== Shortkeys ==
== Shortkeys ==
-
Use <span><font face="monospace">CTRL+C</font></span> to refer to pressing the control and c keys together. Use the same <code>TextRaw</code> text formatting for all Shortkeys in base text as for command line examples inside text.
+
Use <span><font face="monospace">CTRL+C</font></span> to refer to pressing the control and c keys together. Use the same <span><font face="monospace">TextRaw</font></span> text formatting for all Shortkeys in base text as for command line examples inside text.
== Abbreviations ==
== Abbreviations ==
Line 309: Line 317:
* If the example code used is longer than 50 lines it is recommended (but not required) to include also copyright and licensing information in the beginning of the example code.
* If the example code used is longer than 50 lines it is recommended (but not required) to include also copyright and licensing information in the beginning of the example code.
-
{{ambox|text=Each code example in a Garage project copyrighted by Nokia must use MIT-style licence to allow the free use of the example code.}}
+
{|
 +
|-
 +
| [[Image:dialog-information.png]]
 +
| '''Note:'''  Each code example in a Garage project copyrighted by Nokia must use MIT-style licence to allow the free use of the example code.
 +
|}
Source code example types supported for listings are C/C++, CSS, HTML, Java, JavaScript, Latex, Pascal, Perl, PHP, Postscript, Python, Ruby, SQL, Tcl, Properties files, Makefile, XML, Log files, Ini files, Shell scripts and more.
Source code example types supported for listings are C/C++, CSS, HTML, Java, JavaScript, Latex, Pascal, Perl, PHP, Postscript, Python, Ruby, SQL, Tcl, Properties files, Makefile, XML, Log files, Ini files, Shell scripts and more.
Line 358: Line 370:
Separate command line and screen output examples that are not part of base text and are not source code examples must fulfill the following requirements:
Separate command line and screen output examples that are not part of base text and are not source code examples must fulfill the following requirements:
-
* Example needs to be inside a <code>GrayBox</code> that separates it from the base text.
+
* Example needs to be inside a GrayBox that separates it from the base text.
* Example box does NOT have a title and CANNOT be referenced.
* Example box does NOT have a title and CANNOT be referenced.
* Example does NOT get automatic source highlighting.
* Example does NOT get automatic source highlighting.
* Example box should be connectied to the surrounding base text.
* Example box should be connectied to the surrounding base text.
-
The following is an example of how a command line example within a <code>GrayBox</code> can be connected to the surrounding text (notice that an empty line must be given before <code>GrayBox</code>).
+
The following is an example of how a command line example within a GrayBox can be connected to the surrounding text (notice that an empty line must be given before GrayBox).
Following commands show how to...
Following commands show how to...
Line 372: Line 384:
Commands given above can be used also in...
Commands given above can be used also in...
-
Avoid ending a section with a <code>GrayBox</code>.
+
Avoid ending a section with a GrayBox.
== Product names ==
== Product names ==
Line 381: Line 393:
* Chinook
* Chinook
* Debian
* Debian
-
* [[Open development/Maemo roadmap/Diablo|Diablo]]
+
* Diablo
-
* [[Open development/Maemo roadmap/Fremantle|Fremantle]]
+
* Fremantle
* Gregale
* Gregale
-
* [[Open development/Maemo roadmap/Harmattan|Harmattan]]
+
* Harmattan
* Maemo
* Maemo
* maemo.org
* maemo.org
Line 400: Line 412:
* MaemoPad
* MaemoPad
* Mistral
* Mistral
-
* [[Nokia N800|N800]]
+
* N800
-
* [[Nokia N810|N810]]
+
* N810
-
* [[Nokia N810WME|N810 WiMAX Edition]]
+
* N810 WiMAX Edition
-
* [[Nokia N900|N900]]
+
* N900
-
* [[Nokia 770]]
+
* Nokia 770
* Scirocco
* Scirocco
* Scratchbox
* Scratchbox

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: