• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kiten/lib

Functions | Variables
EdictFormatting Namespace Reference

Functions

QStringList createExpressionsList ()
 
QSet< QString > createFieldOfApplication ()
 
QSet< QString > createMiscMarkings ()
 
QStringList createNounsList ()
 
QMultiHash< QString, QString > createPartOfSpeechCategories ()
 
QSet< QString > createPartsOfSpeech ()
 
QStringList createPrefixesList ()
 
QStringList createSuffixesList ()
 
QStringList createVerbsList ()
 

Variables

QString adjective = QString( i18nc( "This must be a single word", "Adjective" ) )
 
QStringList Adjectives = PartOfSpeechCategories.values( adjective )
 
QString adverb = QString( i18nc( "This must be a single word", "Adverb" ) )
 
QStringList Adverbs = PartOfSpeechCategories.values( adverb )
 
QString expression = QString( i18n( "Expression" ) )
 
QStringList Expressions = createExpressionsList()
 
QSet< QString > FieldOfApplication = createFieldOfApplication()
 
QString fukisokuVerb = QString( i18nc( "This is a technical japanese linguist's term... and probably should not be translated, this must be a single word", "Fukisoku" ) )
 
QStringList FukisokuVerbs = PartOfSpeechCategories.values( fukisokuVerb )
 
QString godanVerb = QString( i18nc( "This is a technical japanese linguist's term... and probably should not be translated, this must be a single word", "Godan" ) )
 
QStringList GodanVerbs = PartOfSpeechCategories.values( godanVerb )
 
QString ichidanVerb = QString( i18nc( "This is a technical japanese linguist's term... and probably should not be translated (except possibly in far-eastern languages), this must be a single word", "Ichidan" ) )
 
QStringList IchidanVerbs = PartOfSpeechCategories.values( ichidanVerb )
 
QString idiomaticExpression = QString( i18n( "Idiomatic expression" ) )
 
QSet< QString > MiscMarkings = createMiscMarkings()
 
QString noun = QString( i18nc( "This must be a single word", "Noun" ) )
 
QString nounPrefix = QString( i18n( "Noun (used as a prefix)" ) )
 
QStringList Nouns = createNounsList()
 
QString nounSuffix = QString( i18n( "Noun (used as a suffix)" ) )
 
QString particle = QString( i18nc( "This must be a single word", "Particle" ) )
 
QString Particle = PartOfSpeechCategories.value( particle )
 
QMultiHash< QString, QString > PartOfSpeechCategories = createPartOfSpeechCategories()
 
QSet< QString > PartsOfSpeech = createPartsOfSpeech()
 
QString prefix = QString( i18n( "Prefix" ) )
 
QStringList Prefix = createPrefixesList()
 
QString suffix = QString( i18n( "Suffix" ) )
 
QStringList Suffix = createSuffixesList()
 
QString verb = QString( i18nc( "This must be a single word", "Verb" ) )
 
QStringList Verbs = createVerbsList()
 

Detailed Description

The basic idea of this is to provide a mapping from possible entry types to possible things the user could enter.

Then our code for the matching entry can simply use this mapping to determine if a given entry could be understood to match the user's input.

There are two basic approaches we could take: Convert the user's entry into a list of types, see if the Entry type matches any of the conversions from this list (the list comparisons will be MANY enums). Convert our Entry types to a list of acceptable string aliases. Then compare the user's input to this list (the list will be a relatively small list of strings).

My gut instinct is that the first case (comparison of a largish list of ints) will be faster, and so that's the one that's implemented here.

The following are the minimum list of case-insensitive aliases that the user could enter: noun verb: ichidan godan adjective adverb particle

Note that our File Parser will also expand to general cases, if not included already: For Example: v5aru -> v5aru,v5 (so that a search for "godan" will find it)

Function Documentation

QStringList EdictFormatting::createExpressionsList ( )

Definition at line 510 of file entryedict.cpp.

QSet< QString > EdictFormatting::createFieldOfApplication ( )

Definition at line 635 of file entryedict.cpp.

QSet< QString > EdictFormatting::createMiscMarkings ( )

Definition at line 646 of file entryedict.cpp.

QStringList EdictFormatting::createNounsList ( )

Definition at line 491 of file entryedict.cpp.

QMultiHash< QString, QString > EdictFormatting::createPartOfSpeechCategories ( )

Definition at line 534 of file entryedict.cpp.

QSet< QString > EdictFormatting::createPartsOfSpeech ( )

Definition at line 618 of file entryedict.cpp.

QStringList EdictFormatting::createPrefixesList ( )

Definition at line 518 of file entryedict.cpp.

QStringList EdictFormatting::createSuffixesList ( )

Definition at line 526 of file entryedict.cpp.

QStringList EdictFormatting::createVerbsList ( )

Definition at line 500 of file entryedict.cpp.

Variable Documentation

QString EdictFormatting::adjective = QString( i18nc( "This must be a single word", "Adjective" ) )

Definition at line 456 of file entryedict.cpp.

QStringList EdictFormatting::Adjectives = PartOfSpeechCategories.values( adjective )

Definition at line 478 of file entryedict.cpp.

QString EdictFormatting::adverb = QString( i18nc( "This must be a single word", "Adverb" ) )

Definition at line 457 of file entryedict.cpp.

QStringList EdictFormatting::Adverbs = PartOfSpeechCategories.values( adverb )

Definition at line 479 of file entryedict.cpp.

QString EdictFormatting::expression = QString( i18n( "Expression" ) )

Definition at line 462 of file entryedict.cpp.

QStringList EdictFormatting::Expressions = createExpressionsList()

Definition at line 484 of file entryedict.cpp.

QSet< QString > EdictFormatting::FieldOfApplication = createFieldOfApplication()

Definition at line 474 of file entryedict.cpp.

QString EdictFormatting::fukisokuVerb = QString( i18nc( "This is a technical japanese linguist's term... and probably should not be translated, this must be a single word", "Fukisoku" ) )

Definition at line 461 of file entryedict.cpp.

QStringList EdictFormatting::FukisokuVerbs = PartOfSpeechCategories.values( fukisokuVerb )

Definition at line 482 of file entryedict.cpp.

QString EdictFormatting::godanVerb = QString( i18nc( "This is a technical japanese linguist's term... and probably should not be translated, this must be a single word", "Godan" ) )

Definition at line 460 of file entryedict.cpp.

QStringList EdictFormatting::GodanVerbs = PartOfSpeechCategories.values( godanVerb )

Definition at line 481 of file entryedict.cpp.

QString EdictFormatting::ichidanVerb = QString( i18nc( "This is a technical japanese linguist's term... and probably should not be translated (except possibly in far-eastern languages), this must be a single word", "Ichidan" ) )

Definition at line 459 of file entryedict.cpp.

QStringList EdictFormatting::IchidanVerbs = PartOfSpeechCategories.values( ichidanVerb )

Definition at line 480 of file entryedict.cpp.

QString EdictFormatting::idiomaticExpression = QString( i18n( "Idiomatic expression" ) )

Definition at line 463 of file entryedict.cpp.

QSet< QString > EdictFormatting::MiscMarkings = createMiscMarkings()

Definition at line 473 of file entryedict.cpp.

QString EdictFormatting::noun = QString( i18nc( "This must be a single word", "Noun" ) )

Definition at line 454 of file entryedict.cpp.

QString EdictFormatting::nounPrefix = QString( i18n( "Noun (used as a prefix)" ) )

Definition at line 466 of file entryedict.cpp.

QStringList EdictFormatting::Nouns = createNounsList()

Definition at line 477 of file entryedict.cpp.

QString EdictFormatting::nounSuffix = QString( i18n( "Noun (used as a suffix)" ) )

Definition at line 467 of file entryedict.cpp.

QString EdictFormatting::particle = QString( i18nc( "This must be a single word", "Particle" ) )

Definition at line 458 of file entryedict.cpp.

QString EdictFormatting::Particle = PartOfSpeechCategories.value( particle )

Definition at line 487 of file entryedict.cpp.

QMultiHash< QString, QString > EdictFormatting::PartOfSpeechCategories = createPartOfSpeechCategories()

Definition at line 471 of file entryedict.cpp.

QSet< QString > EdictFormatting::PartsOfSpeech = createPartsOfSpeech()

Definition at line 472 of file entryedict.cpp.

QString EdictFormatting::prefix = QString( i18n( "Prefix" ) )

Definition at line 464 of file entryedict.cpp.

QStringList EdictFormatting::Prefix = createPrefixesList()

Definition at line 485 of file entryedict.cpp.

QString EdictFormatting::suffix = QString( i18n( "Suffix" ) )

Definition at line 465 of file entryedict.cpp.

QStringList EdictFormatting::Suffix = createSuffixesList()

Definition at line 486 of file entryedict.cpp.

QString EdictFormatting::verb = QString( i18nc( "This must be a single word", "Verb" ) )

Definition at line 455 of file entryedict.cpp.

QStringList EdictFormatting::Verbs = createVerbsList()

Definition at line 483 of file entryedict.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kiten/lib

Skip menu "kiten/lib"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal