Difference between revisions of "Documentation Primer/Manual/DocBook Reference/Prologue"

Jump to: navigation, search
(Marked this version for translation)
 
(Corrected links)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
<languages />
 
<translate>
 
<translate>
  
Line 49: Line 50:
  
 
<!--T:12-->
 
<!--T:12-->
The entity %addindex; is a toggle.  If set to "INCLUDE" a document index will be automatically generated.  It is normally set instead to "IGNORE", and should not be changed unless you really do want to generate an index.  You can find out more about indexes in [[Documentation Primer/Manual/DocBook Reference/Reference|References, indexes, and glossaries]].
+
The entity %addindex; is a toggle.  If set to "INCLUDE" a document index will be automatically generated.  It is normally set instead to "IGNORE", and should not be changed unless you really do want to generate an index.  You can find out more about indexes in [[Special:myLanguage/Documentation Primer/Manual/DocBook Reference/Reference|References, indexes, and glossaries]].
  
 
<!--T:13-->
 
<!--T:13-->
Line 114: Line 115:
 
<!--T:19-->
 
<!--T:19-->
 
{{Prevnext2
 
{{Prevnext2
| prevpage=Documentation Primer/Manual/DocBook Reference/This Document
+
| prevpage=Special:myLanguage/Documentation Primer/Manual/DocBook Reference/This Document
 
| prevtext=Purpose of this document
 
| prevtext=Purpose of this document
| nextpage=Documentation Primer/Manual/DocBook Reference/Book and Bookinfo
+
| nextpage=Special:myLanguage/Documentation Primer/Manual/DocBook Reference/Book and Bookinfo
 
| nexttext=The book and the bookinfo section
 
| nexttext=The book and the bookinfo section
| index=Documentation Primer/Manual
+
| index=Special:myLanguage/Documentation Primer/Manual
 
| indextext=Back to Menu
 
| indextext=Back to Menu
 
}}
 
}}
  
 
</translate>
 
</translate>

Latest revision as of 11:18, 9 September 2012

Other languages:English 100%

[edit] The Prologue

<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
  <!-- Define an entity for your application if it is not part of KDE
       CVS -->
  <!ENTITY <replaceable>kmyapplication</replaceable> "<application>KMyApp</application>">
  <!ENTITY kappname "<replaceable>&kmyapplication;</replaceable>"><!-- replace kmyapplication here
                                            do *not* replace kappname-->
  <!ENTITY package "<replaceable>kde-module</replaceable>"><!-- kdebase, kdeadmin, etc.  Leave
                                     this unchanged if your
                                     application is not maintained in KDE CVS -->
  <!ENTITY % addindex "IGNORE">
  <!ENTITY % English "INCLUDE"> <!-- ONLY If you are writing non-English
                                     original documentation, change
                                     the language here -->
]>

In general, this needs minimal changing from the template. The items you must change are the entities "kappname", "package", and "English".

The entity "kappname" looks like it's redundant (as the comment in the template notes), but it is important. This allows us to use one global text in all documents, and still refer to the specific application by its correct name. So it should be changed to refer to this new entity, but this time you should only change the part in quotes ("&kmyapplication;") as follow:

Example: Setting up the global "kappname" entity
From:

<!ENTITY kappname "&kmyapplication;" -- this only *seems* redundant -->

To:

<!ENTITY kappname "&kate;" -- this only *seems* redundant -->

In short: change any occurrence of "kmyapplication" to the real name of your application. Do not use "kappname" or "kapp" directly in a document yourself.

The entity "package" is used similarly. It allows us to insert a single piece of "boilerplate" text into every document, and have the correct package name inserted when the document is compiled. Use the cvs module name, in lower case, &eg; "kdeedu" or "kdebase".

The entity %addindex; is a toggle. If set to "INCLUDE" a document index will be automatically generated. It is normally set instead to "IGNORE", and should not be changed unless you really do want to generate an index. You can find out more about indexes in References, indexes, and glossaries.

Example: A KDE User Manual Prolog
Here is an example of a completely set up prolog, as it normally looks. This is the prolog from the AMOR documentation
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
  <!ENTITY kappname "&amor;">
  <!ENTITY package "kdetoys">
  <!ENTITY % addindex "IGNORE">
  <!ENTITY % English "INCLUDE">
]>
Note
The entity "English" should be changed to reflect your language, if you are either writing original documentation in another language, or you are translating a document. For KDE the original documentation should always be in English, so you should not need to change this when writing. For informational purposes, the currently supported languages are:
  • Afrikaans
  • British-English
  • Bulgarian
  • Catalan
  • Czech
  • Danish
  • German
  • Greek
  • English
  • Spanish
  • Estonian
  • Finnish
  • Faroese
  • French
  • Hebrew
  • Hungarian
  • Indonesian
  • Italian
  • Japanese
  • Dutch
  • Norwegian (Note, this is only for compatibility, either Norwegian-Bokmal or Norwegian-Nynorsk should be used in preference.)
  • Norwegian-Bokmal
  • Norwegian-Nynorsk
  • Polish
  • Portuguese
  • Brasilian-Portuguese
  • Romanian
  • Russian
  • Slovak
  • Slovenian
  • Serbian
  • Swedish
  • Turkish
  • Ukrainian
  • Walloon
  • Xhosa
  • Continental-Chinese
  • Traditional-Chinese

This page was last modified on 9 September 2012, at 11:18. This page has been accessed 1,165 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal