Property | Type | Description | |
---|---|---|---|
m_analysisMorphs | int[] | ||
m_analysisMsas | int[] | ||
m_analysisSenses | int[] | ||
m_caches | CachePair | ||
m_choices | SIL.FieldWorks.IText.InterlinLineChoices | ||
m_cmorphs | int | ||
m_fWantOnlyWfiAnalysis | bool | ||
m_helpTopicProvider | IHelpTopicProvider | ||
m_hvoSbWord | int | ||
m_sandbox | |||
m_sda | ISilDataAccess | ||
m_sdaMain | ISilDataAccess | ||
m_wa | IWfiAnalysis |
Method | Description | |
---|---|---|
CheckItOut ( ) : void | ||
FindMatchingAnalysis ( bool fExactMatch ) : IWfiAnalysis |
Find the analysis that matches the info in the secondary cache.
|
|
FindMatchingGloss ( ) : IWfiGloss |
Find one of the WfiGlosses of m_hvoWfiAnalysis where the form matches for each analysis writing system. Review: We probably want to find a WfiGloss that matches any (non-zero length) alternative since we don't want to force the user to type in every alternative each time they enter a gloss. Otherwise, if we match one with all non-zero length, return that one. (LT-1428)
|
|
GetRealAnalysisMethod ( ) : System |
Only used to make the UpdateRealAnalysisMethod construcotr happy. Do not use directly.
|
|
GetRealAnalysisMethod ( IHelpTopicProvider helpTopicProvider, |
||
Run ( ) : IAnalysis |
Run the algorithm, returning the 'analysis' hvo (WfiWordform, WfiAnalysis, or WfiGloss).
|
Method | Description | |
---|---|---|
BuildMorphLists ( ) : void | ||
EnsureCorrectMorphForms ( ) : void |
m_hvoAnalysis is the selected analysis. However, we did not consider writing systems of the morpheme line except the default vernacular one in deciding to use it. If additional WS information has been supplied, save it.
|
|
UpdateMlaIfDifferent ( int hvoSrc, int flidSrc, int wsId, int hvoDst, int flidDest ) : void |
Ensure that the specified writing system of property flidDest in object hvoDst in m_sdaMain is the same as property flidSrc in object hvoSrc in m_sda. If not, update.
|
Method | Description | |
---|---|---|
AdditionalAlternatives ( IWfiGloss wg, List |
Count how many non-blank alternatives tss has that are not listed in wsIds.
|
|
CheckAnalysis ( int hvoPossibleAnalysis, bool fExactMatch ) : bool |
Evaluate the given possible analysis to see whether it matches the current Sandbox data. Review: This is not testing word gloss at all. Is this right?
|
|
CopyGlossesToSense ( ILexSense sense ) : void | ||
CopyGlossesToWfiGloss ( IWfiGloss gloss ) : void | ||
FindLexEntryMorphItem ( List |
Find the morph item referring to the LexEntry (only), not a sense or msa.
|
|
FinishItOff ( ) : IAnalysis | ||
GetBestGloss ( IWfiAnalysis wfiAnalysis, List |
Get the most appropriate WfiGloss from among those belonging to the given WfiAnalysis. The goal is to match as closely as possible the strings found in sda.get_MultiStringAlt(hvoWord, ktagSbWordGloss, ws) for each ws in wsIds. Ideally we find an alternative where all writing systems match exactly. Failing that, one where as many as possible match, and the others are blank.
|
|
GetRealHvoFromSbWmbInflType ( int imorph ) : int | ||
IsMlSame ( int hvoSrc, int flidSrc, int wsId, int hvoDst, int flidDest ) : bool | ||
IsMlSame ( int hvoSrc, int flidSrc, int wsId, int hvoDst, int flidDest, ITsString &tss, ITsString &tssOld ) : bool | ||
IsTrivialAnalysis ( IWfiAnalysis possibleAnalysis ) : bool |
A trivial analysis, the sort created when just doing word glossing, doesn't really specify anything, though it may have one morph bundle that just matches the whole wordform. It may possibly specify a part of speech, in which case it must match the one the user entered to be reusable.
|
|
MatchesCurrentGlosses ( IWfiGloss gloss ) : bool | ||
OnlyUsedThisOnce ( ILexSense sense ) : bool | ||
OnlyUsedThisOnce ( IWfiAnalysis oldAnalysis ) : bool | ||
SbWordGlossMatchesSenseGloss ( IhMorphEntry morphItem ) : bool | ||
SbWordMainPosMatchesSenseMsaMainPos ( IhMorphEntry morphItem ) : bool |
see if the MainPossibilities match for the given morphItem and the Word Part of Speech in the sandbox
|
|
SbWordPosMatchesSenseMsaPos ( IhMorphEntry morphItem ) : bool | ||
UpdateSense ( ILexSense sense, IPartOfSpeech pos ) : void |
public FindMatchingAnalysis ( bool fExactMatch ) : IWfiAnalysis | ||
fExactMatch | bool | |
return | IWfiAnalysis |
public GetRealAnalysisMethod ( IHelpTopicProvider helpTopicProvider, |
||
helpTopicProvider | IHelpTopicProvider | |
owner | ||
caches | CachePair | |
hvoSbWord | int | |
oldAnalysis | AnalysisTree | |
wa | IWfiAnalysis | |
gloss | IWfiGloss | |
choices | SIL.FieldWorks.IText.InterlinLineChoices | |
tssForm | ITsString | |
fWantOnlyWfiAnalysis | bool | |
return | System |
protected UpdateMlaIfDifferent ( int hvoSrc, int flidSrc, int wsId, int hvoDst, int flidDest ) : void | ||
hvoSrc | int | |
flidSrc | int | |
wsId | int | |
hvoDst | int | |
flidDest | int | |
return | void |
protected InterlinLineChoices,SIL.FieldWorks.IText m_choices | ||
return | SIL.FieldWorks.IText.InterlinLineChoices |
protected IHelpTopicProvider m_helpTopicProvider | ||
return | IHelpTopicProvider |
protected SandboxBase,SIL.FieldWorks.IText m_sandbox | ||
return |