You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/khelpcenter
Michele Calgaro a4241b7911
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
преди 2 месеца
..
htmlsearch Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
pics Fix invalid headers in PNG files and optimize for size преди 8 години
plugins Add TDE release notes to khelpcenter home page. This resolves issue #332 преди 10 месеца
searchhandlers Desktop file translations: преди 4 години
CMakeL10n.txt Desktop file translations: преди 4 години
CMakeLists.txt Desktop file translations: преди 4 години
COPYING Revert automated changes преди 13 години
DESIGN Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version преди 6 месеца
Help.desktop Desktop file translations: преди 4 години
Makefile.am LIB_QT -> LIB_TQT conversion to align to updated admin module преди 6 години
README.htdig Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. преди 15 години
README.metadata Fixed wrong DocPath strings. This relates to bug 2319. преди 9 години
application.cpp Removed code formatting modelines. преди 4 години
application.h Removed code formatting modelines. преди 4 години
configure.in.in Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. преди 15 години
docentry.cpp Removed code formatting modelines. преди 4 години
docentry.h Removed code formatting modelines. преди 4 години
docentrytraverser.cpp Removed code formatting modelines. преди 4 години
docentrytraverser.h Removed code formatting modelines. преди 4 години
docmetainfo.cpp Removed code formatting modelines. преди 4 години
docmetainfo.h Removed code formatting modelines. преди 4 години
fontdialog.cpp Removed code formatting modelines. преди 4 години
fontdialog.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
formatter.cpp Removed code formatting modelines. преди 4 години
formatter.h Removed code formatting modelines. преди 4 години
glossary.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
glossary.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
glossary.html.in Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. преди 15 години
glossary.xslt Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. преди 15 години
history.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
history.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
htmlsearch.cpp Removed code formatting modelines. преди 4 години
htmlsearch.h Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version преди 6 месеца
htmlsearchconfig.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
htmlsearchconfig.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
index.html.in Update files and references in support of bug report 1446. преди 11 години
infotree.cpp Removed code formatting modelines. преди 4 години
infotree.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
intro.html.in Update help handbooks. преди 12 години
kcmhelpcenter.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
kcmhelpcenter.desktop Desktop file translations: преди 4 години
kcmhelpcenter.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
khc_indexbuilder.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
khc_indexbuilder.h Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version преди 6 месеца
khelpcenter.desktop Desktop file translations: преди 4 години
khelpcenter.kcfg Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 преди 11 години
khelpcenterui.rc Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. преди 15 години
mainwindow.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
mainwindow.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
navigator.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
navigator.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
navigatorappitem.cpp Removed code formatting modelines. преди 4 години
navigatorappitem.h Removed code formatting modelines. преди 4 години
navigatoritem.cpp Removed code formatting modelines. преди 4 години
navigatoritem.h Removed code formatting modelines. преди 4 години
plugintraverser.cpp Removed code formatting modelines. преди 4 години
plugintraverser.h Removed code formatting modelines. преди 4 години
prefs.kcfgc Rename a number of libraries and executables to avoid conflicts with KDE4 преди 11 години
scopeitem.h Removed code formatting modelines. преди 4 години
scrollkeepertreebuilder.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
scrollkeepertreebuilder.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
searchengine.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
searchengine.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
searchhandler.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
searchhandler.h Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version преди 6 месеца
searchwidget.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
searchwidget.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
table-of-contents.xslt Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. преди 15 години
testmetainfo.cpp Removed code formatting modelines. преди 4 години
toc.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
toc.h Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version преди 6 месеца
treebuilder.cpp Removed code formatting modelines. преди 4 години
treebuilder.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца
version.h Removed code formatting modelines. преди 4 години
view.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines преди 2 месеца
view.h Replace Q_OBJECT with TQ_OBJECT преди 8 месеца

README.metadata

KHelpCenter documentation meta data structure
=============================================

KHelpCenter uses meta data files which describe the documentation available in
the system. Each document is represented by a meta data file and shown as an
entry in the KHelpCenter navigation tree view. The meta data contains
information about title and short description of the document, the location of
the document and some more information like how to search the document and
translations of title and description. Document hierarchy is represented as
hierarchy of the meta data files. Directories are also described by a meta data
file which contains the same information as a document meta data file.

Format of the meta data files
-----------------------------

The meta files adhere to the Desktop Entry Standard
(http://www.freedesktop.org/Standards/desktop-entry-spec). Documentation
specific extensions are covered by an own namespace using the prefix "X-DOC-".
The following table describes all keys which are currently used by
KHelpCenter:

Key                         Value     Description

Name                        string    Title of document
Name[xx]                    string    Translated title for language xx
Comment                     string    Short description of document
Comment[xx]                 string    Translated short description for
                                      Language xx
Icon                        string    Name of icon for document
X-DocPath                   URI       Location of document. In addition to the
                                      standard URI schemes like http: and file:
                                      all schemes which are supported through
                                      tdeioslaves can be used. In particular the
                                      following non-standard URI schemes are
                                      supported:
                                      help:  KDE manual identified by app name
                                      ghelp: GNOME manual identified by app name
                                      man:   man page
                                      info:  info page
                                      cgi:   output of CGI script
X-DocPath[xx]               URI       Language specific location for
                                      language xx
Lang                        langcode  Language of document
X-DOC-Identifier            string    Unique identifier for document, if this
                                      entry is not present the base name of the
                                      file is used as identifier
X-DOC-Indexer               command   Command used for creating a search index
                                      for the document.
                                      The following symbols are replaced by the
                                      corresponding values:
                                      %f - Filename
X-DOC-IndexTestFile         filename  Name of file whose existence indicates
                                      the existence of a usable search index
X-DOC-Search                command   Command used for searching, the output
                                      of the command should be HTML which is
                                      shown in KHelpCenter.
                                      The following symbols in the command are
                                      replaced by the corresponding values:
                                      %k - Words to be searched for
                                      %n - Maximum number of results
                                      %m - Method for combining search words,
                                           can be 'and' or 'or'
                                      %l - Language of documents to be searched
                                      %s - Scope of search. This is a list of
                                           identifiers as given by the
                                           X-DOC-Identifier entry or the bas
                                           name of the desktop file if not
                                           present.
X-DOC-SearchMethod          string    If this entry is 'htdig' htdig is used to
                                      index and search the document. The
                                      Indexer, IndexTestFile and Search entries
                                      aren't required in this case.
X-DOC-SearchEnabledDefault  bool      If set to 'true' the document is searched
                                      by default, if set to 'false' it is not.
                                      This setting is overridden by user
                                      selected search scopes.
X-DOC-Weight                int       A number indicating the position of the
                                      document within the list of siblings. A
                                      greater weight indicates that the document
                                      is 'heavier', thus shown below 'lighter'
                                      documents. The default weight is 0.
X-TDE-KHelpcenter           string    If this entry is set to one of the
                                      following values a set of documents
                                      generated by other means than desktop file
                                      meta info is inserted at the place
                                      specified by the desktop file:
                                      'apps'         manuals of applications
                                                     from the start menu
                                      'scrollkeeper' scrollkeeper docs
                                      'applets'      panel applet docs
                                      'kcontrol'     kcontrol module docs
                                      'konqueror'    konqueror plugin docs
                                      'tdeioslave'     tdeioslave docs
                                      'info'         info pages
X-DOC-DocumentType          string    Type of document. The type is used to look
                                      up corresponding search handlers.
                                      
Meta File Location
------------------

A list of directories given by the config entry "MetaInfoDirs" in the "General"
group of the help center configuration file "khelpcenterrc" (at
$TDEDIRS/share/config) is scanned for desktop files. They are merged to a common
hierarchy. If the "MetaInfoDirs" entry is empty the directory at
$TDEDIRS/share/apps/khelpcenter/plugins is used.

Document Hierarchy
------------------

The hierarchy of the documents shown in the help center is reflected by the
hierarchy of the desktop files in the filesystem. Directories can have an
associated desktop file with the name ".directory". It can contain all the
keys described above.

Language handling
-----------------

In addition to translation of meta information like title and short description
of documents which is contained in the meta file, translations of whole
documents are handled. Each translation of a document has an own desktop file.
The language of the document is indicated by adding the language code as
additional suffix to the the filename of the desktop file. The language suffix
is added before the ".desktop" suffix (Example: 'apache.de.desktop' would be the
file name for the german translation of the apache documentation).

KHelpCenter shows only the documents whose language is contained in the list of
used languages configured for the desktop in the control center. A document
corresponding to a desktop file without language suffix is always shown.