hints_for_writers.textile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. h1. Hints for writers
  2. h2. Anchors
  3. * An anchor in a top-level section has a section-specific unique prefix:
  4. | *Prefix* | *Top-level chapter* |
  5. | advsim | Advanced simulation and debugging |
  6. | cdom | C domain |
  7. | edit | Editing statecharts |
  8. | cgen | Code generation |
  9. | glsr | Glossary |
  10. | hdls | Headless code generation
  11. | ovvw | Overview |
  12. | sctu | SCTUnit |
  13. | simu | Simulating statecharts |
  14. * Underscore
  15. * Figures
  16. * All lower-case letters
  17. * Prefix + headline
  18. h2. Conventions
  19. * *Names* are formatted in _italic_. This pertains to all kinds of names, including GUI elements, files, and folders. Examples:
  20. ** Click on the _Format drive_ button. In the confirmation dialog, click on _OK_.
  21. ** Select _Window → Preferences_ from the main menu. The _preferences_ dialog opens.
  22. ** Copy the _superstuff.jar_ file to the _lib_ folder.
  23. ** Word files have a filename extension of _.doc_, _.docx_, or _.docm_.
  24. * Keystrokes are formatted with square brackets and in @monospace@. Examples:
  25. ** To reboot, hit the @[Ctrl]+[Alt]+[Del]@ key combination.
  26. ** Um einen Neustart durchzuführen, drücken Sie die Tastenkombination @[Strg]+[Alt]+[Entf]@.
  27. bq. *Please note:* Exceptions are a confirmation of the rule.
  28. h2. Orthography
  29. * A sentence has to be terminated with a full stop (.).
  30. h2. Typography
  31. * To write a *dash*, please use the endash symbol (–). Don't use the minus symbol (-) as a replacement.
  32. * To mark an *omission* in a text, please use the ellipsis symbol (…). Don't use three dots (...) as a replacement.
  33. h2. English
  34. h3. German English
  35. Please beware not to get trapped by typical "German" pitfalls!
  36. * Compound nouns: Don't hyphenate the compounds, but rather separate them by a space character. Example:
  37. ** *Wrong:* -While a Java-file contains Java-methods, a C-file contains C-functions.-
  38. ** *Correct:* While a Java file contains Java methods, a C file contains C functions.
  39. * Nouns: Start nouns with lower-case letters. Example:
  40. ** *Wrong:* -Let's consider this Artifact Type.-
  41. ** *Correct:* Let's consider this artifact type.
  42. * Names: Spell a name with a capital first letter. Examples:
  43. ** Java
  44. ** Microsoft Word
  45. ** Enterprise Architect
  46. ** YAKINDU Traceability
  47. h3. Typical spelling mistakes
  48. | *Right:* | *Wrong:* |
  49. | double-click | double click |
  50. | read-only | read only |
  51. h2. Earmarking transitional statements
  52. Certain statements in a documentation are transitional by their nature and should be checked from time to time. For example, consider the following sentence:
  53. bq. As of this writing (winter 2016/2017), component C is the only one to support system S.
  54. This sentence makes two transitional statements:
  55. * The time of this writing is winter 2016/2017.
  56. * Only component C supports system S.
  57. In order to easily identify and check such transitional statements, CHECK comments are used. For example, close to the above paragraph the following CHECK comments should be added, making the complete source look like this:
  58. bc..
  59. ###. CHECK: The time of writing is still winter 2016/2017.
  60. ###. CHECK: System S is still only supported by component C.
  61. As of this writing (winter 2016/2017), component C is the only one to support system S.
  62. p. Searching the documentation for all occurences of @###. CHECK:@ is very easy. It is advisable to include the transitional statement on the same line as @###. CHECK:@, because this way you can simply "grep" all textile source files for the string @###. CHECK:@ and immediately see all the transitional claims that are made. In the most simple case all you need to do is browse them, verify that nothing has changed, and you are done. Only if some statement is no longer true you actually have to go to the corresponding documentation file and update it. Don't forget to also update the CHECK comment accordingly!