19 #ifndef __LANGUAGEANALYSIS__
20 #define __LANGUAGEANALYSIS__
30 #ifndef __AEREGISTRY__
34 #ifndef __DICTIONARY__
38 #ifndef __TEXTCOMMON__
59 #if PRAGMA_STRUCT_ALIGN
60 #pragma options align = power
61 #elif PRAGMA_STRUCT_PACKPUSH
63 #elif PRAGMA_STRUCT_PACK
67 typedef struct OpaqueLAEnvironmentRef *LAEnvironmentRef;
68 typedef struct OpaqueLAContextRef *LAContextRef;
69 typedef AEKeyword LAPropertyKey;
76 ByteCount sourceTextLength;
77 LogicalAddress sourceTextPtr;
78 ByteCount morphemeTextLength;
79 LogicalAddress morphemeTextPtr;
85 ItemCount morphemesCount;
86 ByteCount processedTextLength;
87 ByteCount morphemesTextLength;
94 kLAMorphemesArrayVersion = 0
106 keyAELAMorphemeBundle = FOUR_CHAR_CODE(
'lmfb'),
107 keyAELAMorphemePath = FOUR_CHAR_CODE(
'lmfp'),
108 keyAELAMorpheme = FOUR_CHAR_CODE(
'lmfn'),
109 keyAELAHomograph = FOUR_CHAR_CODE(
'lmfh')
114 typeLAMorphemeBundle = typeAERecord,
115 typeLAMorphemePath = typeAERecord,
116 typeLAMorpheme = typeAEList,
117 typeLAHomograph = typeAEList
125 keyAEMorphemePartOfSpeechCode = FOUR_CHAR_CODE(
'lamc'),
126 keyAEMorphemeTextRange = FOUR_CHAR_CODE(
'lamt')
131 typeAEMorphemePartOfSpeechCode = FOUR_CHAR_CODE(
'lamc'),
132 typeAEMorphemeTextRange = FOUR_CHAR_CODE(
'lamt')
135 typedef UInt32 MorphemePartOfSpeech;
147 kLAEndOfSourceTextMask = 0x00000001
157 kLAIncompleteEdge = 2
195 ByteCount textLength, ConstLogicalAddress sourceText,
196 ByteCount bufferSize, OptionBits convertFlags,
197 UInt32 structureVersion, ByteCount *acceptedLength,
238 LAEnvironmentRef environmentList[]);
261 LAEnvironmentRef *environment);
273 ConstStr63Param newEnvironmentName,
274 Boolean persistent, LAEnvironmentRef *newEnvironment);
322 ItemCount *actualCount, FSSpec dictionaryList[],
364 UniCharCount textLength,
Boolean incrementalText,
405 #if TARGET_RT_MAC_CFM
407 inline pascal
Boolean LALanguageAnalysisAvailable()
412 #define LALanguageAnalysisAvailable() ((LALibraryVersion != (void*)kUnresolvedCFragSymbolAddress)
414 #elif TARGET_RT_MAC_MACHO
417 inline pascal
Boolean LALanguageAnalysisAvailable() {
return true; }
419 #define LALanguageAnalysisAvailable() (true)
431 #define kLAJapaneseKanaKanjiEnvironment "\pKanaKanjiConversion"
432 #define kLAJapaneseMorphemeAnalysisEnvironment "\pJapaneseMorphemeAnalysis"
433 #define kLAJapaneseTTSEnvironment "\pJapaneseTextToSpeech"
439 kAppleJapaneseDictionarySignature = FOUR_CHAR_CODE(
'jlan')
447 kMaxInputLengthOfAppleJapaneseEngine = 200
455 typedef UInt16 HomographWeight;
456 typedef UInt8 HomographAccent;
462 keyAEHomographDicInfo = FOUR_CHAR_CODE(
'lahd'),
463 keyAEHomographWeight = FOUR_CHAR_CODE(
'lahw'),
464 keyAEHomographAccent = FOUR_CHAR_CODE(
'laha')
469 typeAEHomographDicInfo = FOUR_CHAR_CODE(
'lahd'),
470 typeAEHomographWeight = typeShortInteger,
471 typeAEHomographAccent = FOUR_CHAR_CODE(
'laha')
479 DCMDictionaryID dictionaryID;
480 DCMUniqueID uniqueID;
493 kLASpeechRoughClassMask = 0x0000F000,
494 kLASpeechMediumClassMask = 0x0000FF00,
495 kLASpeechStrictClassMask = 0x0000FFF0,
496 kLASpeechKatsuyouMask = 0x0000000F
504 kLASpeechMeishi = 0x00000000,
505 kLASpeechFutsuuMeishi = 0x00000000,
506 kLASpeechJinmei = 0x00000100,
507 kLASpeechJinmeiSei = 0x00000110,
508 kLASpeechJinmeiMei = 0x00000120,
509 kLASpeechChimei = 0x00000200,
510 kLASpeechSetsubiChimei = 0x00000210,
511 kLASpeechSoshikimei = 0x00000300,
512 kLASpeechKoyuuMeishi = 0x00000400,
513 kLASpeechSahenMeishi = 0x00000500,
514 kLASpeechKeidouMeishi = 0x00000600,
515 kLASpeechRentaishi = 0x00001000,
516 kLASpeechFukushi = 0x00002000,
517 kLASpeechSetsuzokushi = 0x00003000,
518 kLASpeechKandoushi = 0x00004000,
519 kLASpeechDoushi = 0x00005000,
520 kLASpeechGodanDoushi = 0x00005000,
521 kLASpeechKagyouGodan = 0x00005000,
522 kLASpeechSagyouGodan = 0x00005010,
523 kLASpeechTagyouGodan = 0x00005020,
524 kLASpeechNagyouGodan = 0x00005030,
525 kLASpeechMagyouGodan = 0x00005040,
526 kLASpeechRagyouGodan = 0x00005050,
527 kLASpeechWagyouGodan = 0x00005060,
528 kLASpeechGagyouGodan = 0x00005070,
529 kLASpeechBagyouGodan = 0x00005080,
530 kLASpeechIchidanDoushi = 0x00005100,
531 kLASpeechKahenDoushi = 0x00005200,
532 kLASpeechSahenDoushi = 0x00005300,
533 kLASpeechZahenDoushi = 0x00005400,
534 kLASpeechKeiyoushi = 0x00006000,
535 kLASpeechKeiyoudoushi = 0x00007000,
536 kLASpeechSettougo = 0x00008000,
537 kLASpeechSuujiSettougo = 0x00008100,
538 kLASpeechSetsubigo = 0x00009000,
539 kLASpeechJinmeiSetsubigo = 0x00009100,
540 kLASpeechChimeiSetsubigo = 0x00009200,
541 kLASpeechSoshikimeiSetsubigo = 0x00009300,
542 kLASpeechSuujiSetsubigo = 0x00009400,
543 kLASpeechMuhinshi = 0x0000A000,
544 kLASpeechTankanji = 0x0000A000,
545 kLASpeechKigou = 0x0000A100,
546 kLASpeechKuten = 0x0000A110,
547 kLASpeechTouten = 0x0000A120,
548 kLASpeechSuushi = 0x0000A200,
549 kLASpeechDokuritsugo = 0x0000A300,
550 kLASpeechSeiku = 0x0000A400,
551 kLASpeechJodoushi = 0x0000B000,
552 kLASpeechJoshi = 0x0000C000
560 kLASpeechKatsuyouGokan = 0x00000001,
561 kLASpeechKatsuyouMizen = 0x00000002,
562 kLASpeechKatsuyouRenyou = 0x00000003,
563 kLASpeechKatsuyouSyuushi = 0x00000004,
564 kLASpeechKatsuyouRentai = 0x00000005,
565 kLASpeechKatsuyouKatei = 0x00000006,
566 kLASpeechKatsuyouMeirei = 0x00000007
569 #if PRAGMA_STRUCT_ALIGN
570 #pragma options align = reset
571 #elif PRAGMA_STRUCT_PACKPUSH
573 #elif PRAGMA_STRUCT_PACK
577 #ifdef PRAGMA_IMPORT_OFF
ResType DescType
Definition: AEDataModel.h:165
AppleEvents Registry Interface.
Dictionary Manager Interfaces.
File Manager (MFS, HFS, and HFS+) Interfaces.
OSStatus LAGetMorphemes(LAContextRef context, LAMorphemePath *result)
OSStatus LATextToMorphemes(LAContextRef context, TextEncoding preferedEncoding, ByteCount textLength, ConstLogicalAddress sourceText, ByteCount bufferSize, OptionBits convertFlags, UInt32 structureVersion, ByteCount *acceptedLength, LAMorphemesArrayPtr resultBuffer)
OSStatus LAAddNewWord(LAEnvironmentRef environ, const FSSpec *dictionary, const AEDesc *dataList)
OSStatus LAOpenAnalysisContext(LAEnvironmentRef environ, LAContextRef *context)
OSStatus LAResetAnalysis(LAContextRef context)
OSStatus LAShiftMorphemes(LAContextRef context, ItemCount morphemeCount, LAMorphemePath *path, UniCharCount *shiftedLength)
OSStatus LAGetEnvironmentList(UInt32 maxCount, UInt32 *actualCount, LAEnvironmentRef environmentList[])
OSStatus LAGetEnvironmentRef(ConstStr63Param targetEnvironmentName, LAEnvironmentRef *environment)
OSStatus LAListAvailableDictionaries(LAEnvironmentRef environ, ItemCount maxCount, ItemCount *actualCount, FSSpec dictionaryList[], Boolean opened[])
OSStatus LADeleteCustomEnvironment(LAEnvironmentRef environment)
OSStatus LAContinuousMorphemeAnalysis(LAContextRef context, ConstUniCharArrayPtr text, UniCharCount textLength, Boolean incrementalText, LAMorphemePath *leadingPath, LAMorphemePath *trailingPath, Boolean *modified)
OSStatus LAGetEnvironmentName(LAEnvironmentRef environment, Str63 environmentName)
OSStatus LAMorphemeAnalysis(LAContextRef context, ConstUniCharArrayPtr text, UniCharCount textLength, LAMorphemePath *leadingPath, LAMorphemePath *trailingPath, ItemCount pathCount, LAMorphemeBundle *result)
OSStatus LACreateCustomEnvironment(LAEnvironmentRef baseEnvironment, ConstStr63Param newEnvironmentName, Boolean persistent, LAEnvironmentRef *newEnvironment)
OSStatus LAOpenDictionary(LAEnvironmentRef environ, const FSSpec *dictionary)
OSStatus LACloseAnalysisContext(LAContextRef context)
AERecord LAMorphemeBundle
Definition: LanguageAnalysis.h:100
UInt32 LALibraryVersion(void)
MorphemePartOfSpeech JapanesePartOfSpeech
Definition: LanguageAnalysis.h:454
OSStatus LACloseDictionary(LAEnvironmentRef environ, const FSSpec *dictionary)
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
TextEncoding-related types and constants, and prototypes for related functions.
Definition: AEDataModel.h:175
Definition: LanguageAnalysis.h:478
Definition: LanguageAnalysis.h:75
Definition: LanguageAnalysis.h:84