File indexing completed on 2022-10-04 13:56:37

0001 /*
0002  * Vocabulary Document for KDE Edu KVTML version 2
0003  * SPDX-FileCopyrightText: 2007 Jeremy Whiting <jpwhiting@kde.org>
0004  * SPDX-FileCopyrightText: 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
0005  * SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 #ifndef KVTML2DEFS_H
0008 #define KVTML2DEFS_H
0009 
0010 #define KVTML_TAG               "kvtml"
0011 #define KVTML_VERSION           "version"
0012 #define KVTML_ID                "id"
0013 
0014 #define KVTML_INFORMATION       "information"
0015 
0016 #define KVTML_GENERATOR         "generator"
0017 #define KVTML_TITLE             "title"
0018 #define KVTML_AUTHOR            "author"
0019 #define KVTML_AUTHORCONTACT     "contact"
0020 #define KVTML_LICENSE           "license"
0021 #define KVTML_COMMENT           "comment"
0022 #define KVTML_CATEGORY          "category"
0023 
0024 #define KVTML_IDENTIFIERS       "identifiers"
0025 #define KVTML_IDENTIFIER        "identifier"
0026 #define KVTML_IDENTIFIERTYPE    "identifiertype"
0027 #define KVTML_LOCALE            "locale"
0028 #define KVTML_NAME              "name"
0029 #define KVTML_SIZEHINT          "sizehint"
0030 
0031 // articles
0032 #define KVTML_ARTICLE           "article"
0033 
0034 // conjugation, declension and personal pronouns
0035 #define KVTML_CONJUGATION       "conjugation"
0036 #define KVTML_CONJUGATIONTYPE   "conjugationtype"
0037 #define KVTML_PERSONALPRONOUNS  "personalpronouns"
0038 #define KVTML_DECLENSION       "declension"
0039 
0040 static const QString KVTML_DECLENSION_CASE[] = {
0041     "nominative",
0042     "genitive",
0043     "dative",
0044     "accusative",
0045     "ablative",
0046     "locative",
0047     "vocative"
0048 };
0049 
0050 static const QString KVTML_GRAMMATICAL_NUMBER[] = {
0051     "singular",
0052     "dual", // dual is the case where there's a special form for exactly two
0053     "plural"
0054 };
0055 
0056 static const QString KVTML_GRAMMATICAL_GENDER[] = {
0057     "male",
0058     "female",
0059     "neutral"
0060 };
0061 
0062 static const QString KVTML_GRAMMATICAL_PERSON[] = {
0063     "firstperson",
0064     "secondperson",
0065     "thirdpersonmale",
0066     "thirdpersonfemale",
0067     "thirdpersonneutralcommon"
0068 };
0069 
0070 static const QString KVTML_GRAMMATICAL_DEFINITENESS[] = {
0071     "definite",
0072     "indefinite"
0073 };
0074 
0075 
0076 // for the personal pronuns:
0077 // if this tag exists, in a conjugation male/female are different
0078 #define KVTML_THIRD_PERSON_MALE_FEMALE_DIFFERENT "malefemaledifferent"
0079 // if this tag exists conjugations even have a neutral form for the third person
0080 #define KVTML_THIRD_PERSON_NEUTRAL_EXISTS "neutralexists"
0081 #define KVTML_DUAL_EXISTS        "dualexists"
0082 
0083 // word types, lessons and leitner boxes are vocabulary containers.
0084 // each is allowed to have as many child containers as desired.
0085 // for KDE 4.0 Parley will only allow a depth of wordtype children of two,
0086 // leitner is not implemented at all.
0087 // it is assumed that one container only has children of the same type.
0088 // containers may have an image associated to represent them visually.
0089 #define KVTML_WORDTYPES         "wordtypes"
0090 #define KVTML_LESSONS           "lessons"
0091 #define KVTML_LEITNERBOXES      "leitnerboxes"
0092 #define KVTML_CONTAINER         "container"
0093 #define KVTML_INPRACTICE        "inpractice"
0094 
0095 // these are necessary to enable practices based on word types. users can give types arbitrary names, but these few are hardcoded. special container types
0096 #define KVTML_SPECIALWORDTYPE       "specialwordtype"
0097 #define KVTML_SPECIALWORDTYPE_NOUN        "noun"
0098 #define KVTML_SPECIALWORDTYPE_NOUN_MALE   "noun/male"
0099 #define KVTML_SPECIALWORDTYPE_NOUN_FEMALE "noun/female"
0100 #define KVTML_SPECIALWORDTYPE_NOUN_NEUTRAL "noun/neutral"
0101 #define KVTML_SPECIALWORDTYPE_VERB        "verb"
0102 #define KVTML_SPECIALWORDTYPE_ADJECTIVE   "adjective"
0103 #define KVTML_SPECIALWORDTYPE_ADVERB      "adverb"
0104 #define KVTML_SPECIALWORDTYPE_CONJUNCTION "conjunction"
0105 
0106 
0107 #define KVTML_TENSES            "tenses"
0108 #define KVTML_TENSE             "tense"
0109 
0110 #define KVTML_USAGES            "usages"
0111 #define KVTML_USAGE             "usage"
0112 
0113 #define KVTML_CURRENT           "current"
0114 
0115 #define KVTML_ENTRIES           "entries"
0116 #define KVTML_ENTRY             "entry"
0117 #define KVTML_DEACTIVATED       "deactivated"
0118 
0119 #define KVTML_TRANSLATION       "translation"
0120 #define KVTML_TEXT              "text"
0121 #define KVTML_PRONUNCIATION     "pronunciation"
0122 
0123 #define KVTML_PAIR              "pair"
0124 #define KVTML_FALSEFRIEND       "falsefriend"
0125 #define KVTML_ANTONYM           "antonym"
0126 #define KVTML_SYNONYM           "synonym"
0127 
0128 #define KVTML_EXAMPLE           "example"
0129 #define KVTML_PARAPHRASE        "paraphrase"
0130 
0131 #define KVTML_COMPARISON        "comparison"
0132 #define KVTML_ABSOLUTE          "absolute"
0133 #define KVTML_COMPARATIVE       "comparative"
0134 #define KVTML_SUPERLATIVE       "superlative"
0135 
0136 #define KVTML_MULTIPLECHOICE    "multiplechoice"
0137 #define KVTML_CHOICE            "choice"
0138 
0139 #define KVTML_IMAGE             "image"
0140 #define KVTML_SOUND             "sound"
0141 
0142 #define KVTML_GRADE             "grade"
0143 #define KVTML_FROMID            "fromid"
0144 #define KVTML_PREGRADE          "pregrade"
0145 #define KVTML_CURRENTGRADE      "currentgrade"
0146 #define KVTML_COUNT             "count"
0147 #define KVTML_ERRORCOUNT        "errorcount"
0148 #define KVTML_DATE              "date"
0149 #define KVTML_INTERVAL          "interval"
0150 
0151 #define KVTML_TRUE              "true"
0152 #define KVTML_FALSE             "false"
0153 
0154 #endif
0155