Mac OS 9
LanguageAnalysis.h File Reference

Language Analysis Manager Interfaces. More...

#include <MacTypes.h>
#include <Files.h>
#include <AERegistry.h>
#include <Dictionary.h>
#include <TextCommon.h>
#include <MacErrors.h>

Go to the source code of this file.

Data Structures

struct  LAMorphemeRec
 
struct  LAMorphemesArray
 
struct  MorphemeTextRange
 
struct  HomographDicInfoRec
 

Macros

#define kLAJapaneseKanaKanjiEnvironment   "\pKanaKanjiConversion"
 
#define kLAJapaneseMorphemeAnalysisEnvironment   "\pJapaneseMorphemeAnalysis"
 
#define kLAJapaneseTTSEnvironment   "\pJapaneseTextToSpeech"
 

Typedefs

typedef struct OpaqueLAEnvironmentRef * LAEnvironmentRef
 
typedef struct OpaqueLAContextRef * LAContextRef
 
typedef AEKeyword LAPropertyKey
 
typedef DescType LAPropertyType
 
typedef struct LAMorphemeRec LAMorphemeRec
 
typedef struct LAMorphemesArray LAMorphemesArray
 
typedef LAMorphemesArrayLAMorphemesArrayPtr
 
typedef AERecord LAMorphemeBundle
 
typedef AERecord LAMorphemePath
 
typedef AERecord LAMorpheme
 
typedef AERecord LAHomograph
 
typedef UInt32 MorphemePartOfSpeech
 
typedef struct MorphemeTextRange MorphemeTextRange
 
typedef MorphemePartOfSpeech JapanesePartOfSpeech
 
typedef UInt16 HomographWeight
 
typedef UInt8 HomographAccent
 
typedef struct HomographDicInfoRec HomographDicInfoRec
 

Enumerations

enum  { kLAMorphemesArrayVersion = 0 }
 
enum  { keyAELAMorphemeBundle = FOUR_CHAR_CODE('lmfb') , keyAELAMorphemePath = FOUR_CHAR_CODE('lmfp') , keyAELAMorpheme = FOUR_CHAR_CODE('lmfn') , keyAELAHomograph = FOUR_CHAR_CODE('lmfh') }
 
enum  { typeLAMorphemeBundle = typeAERecord , typeLAMorphemePath = typeAERecord , typeLAMorpheme = typeAEList , typeLAHomograph = typeAEList }
 
enum  { keyAEMorphemePartOfSpeechCode = FOUR_CHAR_CODE('lamc') , keyAEMorphemeTextRange = FOUR_CHAR_CODE('lamt') }
 
enum  { typeAEMorphemePartOfSpeechCode = FOUR_CHAR_CODE('lamc') , typeAEMorphemeTextRange = FOUR_CHAR_CODE('lamt') }
 
enum  { kLAEndOfSourceTextMask = 0x00000001 }
 
enum  { kLADefaultEdge = 0 , kLAFreeEdge = 1 , kLAIncompleteEdge = 2 }
 
enum  { kLAAllMorphemes = 0 }
 
enum  { kAppleJapaneseDictionarySignature = FOUR_CHAR_CODE('jlan') }
 
enum  { kMaxInputLengthOfAppleJapaneseEngine = 200 }
 
enum  { keyAEHomographDicInfo = FOUR_CHAR_CODE('lahd') , keyAEHomographWeight = FOUR_CHAR_CODE('lahw') , keyAEHomographAccent = FOUR_CHAR_CODE('laha') }
 
enum  { typeAEHomographDicInfo = FOUR_CHAR_CODE('lahd') , typeAEHomographWeight = typeShortInteger , typeAEHomographAccent = FOUR_CHAR_CODE('laha') }
 
enum  { kLASpeechRoughClassMask = 0x0000F000 , kLASpeechMediumClassMask = 0x0000FF00 , kLASpeechStrictClassMask = 0x0000FFF0 , kLASpeechKatsuyouMask = 0x0000000F }
 
enum  {
  kLASpeechMeishi = 0x00000000 , kLASpeechFutsuuMeishi = 0x00000000 , kLASpeechJinmei = 0x00000100 , kLASpeechJinmeiSei = 0x00000110 ,
  kLASpeechJinmeiMei = 0x00000120 , kLASpeechChimei = 0x00000200 , kLASpeechSetsubiChimei = 0x00000210 , kLASpeechSoshikimei = 0x00000300 ,
  kLASpeechKoyuuMeishi = 0x00000400 , kLASpeechSahenMeishi = 0x00000500 , kLASpeechKeidouMeishi = 0x00000600 , kLASpeechRentaishi = 0x00001000 ,
  kLASpeechFukushi = 0x00002000 , kLASpeechSetsuzokushi = 0x00003000 , kLASpeechKandoushi = 0x00004000 , kLASpeechDoushi = 0x00005000 ,
  kLASpeechGodanDoushi = 0x00005000 , kLASpeechKagyouGodan = 0x00005000 , kLASpeechSagyouGodan = 0x00005010 , kLASpeechTagyouGodan = 0x00005020 ,
  kLASpeechNagyouGodan = 0x00005030 , kLASpeechMagyouGodan = 0x00005040 , kLASpeechRagyouGodan = 0x00005050 , kLASpeechWagyouGodan = 0x00005060 ,
  kLASpeechGagyouGodan = 0x00005070 , kLASpeechBagyouGodan = 0x00005080 , kLASpeechIchidanDoushi = 0x00005100 , kLASpeechKahenDoushi = 0x00005200 ,
  kLASpeechSahenDoushi = 0x00005300 , kLASpeechZahenDoushi = 0x00005400 , kLASpeechKeiyoushi = 0x00006000 , kLASpeechKeiyoudoushi = 0x00007000 ,
  kLASpeechSettougo = 0x00008000 , kLASpeechSuujiSettougo = 0x00008100 , kLASpeechSetsubigo = 0x00009000 , kLASpeechJinmeiSetsubigo = 0x00009100 ,
  kLASpeechChimeiSetsubigo = 0x00009200 , kLASpeechSoshikimeiSetsubigo = 0x00009300 , kLASpeechSuujiSetsubigo = 0x00009400 , kLASpeechMuhinshi = 0x0000A000 ,
  kLASpeechTankanji = 0x0000A000 , kLASpeechKigou = 0x0000A100 , kLASpeechKuten = 0x0000A110 , kLASpeechTouten = 0x0000A120 ,
  kLASpeechSuushi = 0x0000A200 , kLASpeechDokuritsugo = 0x0000A300 , kLASpeechSeiku = 0x0000A400 , kLASpeechJodoushi = 0x0000B000 ,
  kLASpeechJoshi = 0x0000C000
}
 
enum  {
  kLASpeechKatsuyouGokan = 0x00000001 , kLASpeechKatsuyouMizen = 0x00000002 , kLASpeechKatsuyouRenyou = 0x00000003 , kLASpeechKatsuyouSyuushi = 0x00000004 ,
  kLASpeechKatsuyouRentai = 0x00000005 , kLASpeechKatsuyouKatei = 0x00000006 , kLASpeechKatsuyouMeirei = 0x00000007
}
 

Functions

UInt32 LALibraryVersion (void)
 
OSStatus LATextToMorphemes (LAContextRef context, TextEncoding preferedEncoding, ByteCount textLength, ConstLogicalAddress sourceText, ByteCount bufferSize, OptionBits convertFlags, UInt32 structureVersion, ByteCount *acceptedLength, LAMorphemesArrayPtr resultBuffer)
 
OSStatus LAOpenAnalysisContext (LAEnvironmentRef environ, LAContextRef *context)
 
OSStatus LACloseAnalysisContext (LAContextRef context)
 
OSStatus LAGetEnvironmentList (UInt32 maxCount, UInt32 *actualCount, LAEnvironmentRef environmentList[])
 
OSStatus LAGetEnvironmentName (LAEnvironmentRef environment, Str63 environmentName)
 
OSStatus LAGetEnvironmentRef (ConstStr63Param targetEnvironmentName, LAEnvironmentRef *environment)
 
OSStatus LACreateCustomEnvironment (LAEnvironmentRef baseEnvironment, ConstStr63Param newEnvironmentName, Boolean persistent, LAEnvironmentRef *newEnvironment)
 
OSStatus LADeleteCustomEnvironment (LAEnvironmentRef environment)
 
OSStatus LAOpenDictionary (LAEnvironmentRef environ, const FSSpec *dictionary)
 
OSStatus LACloseDictionary (LAEnvironmentRef environ, const FSSpec *dictionary)
 
OSStatus LAListAvailableDictionaries (LAEnvironmentRef environ, ItemCount maxCount, ItemCount *actualCount, FSSpec dictionaryList[], Boolean opened[])
 
OSStatus LAAddNewWord (LAEnvironmentRef environ, const FSSpec *dictionary, const AEDesc *dataList)
 
OSStatus LAMorphemeAnalysis (LAContextRef context, ConstUniCharArrayPtr text, UniCharCount textLength, LAMorphemePath *leadingPath, LAMorphemePath *trailingPath, ItemCount pathCount, LAMorphemeBundle *result)
 
OSStatus LAContinuousMorphemeAnalysis (LAContextRef context, ConstUniCharArrayPtr text, UniCharCount textLength, Boolean incrementalText, LAMorphemePath *leadingPath, LAMorphemePath *trailingPath, Boolean *modified)
 
OSStatus LAGetMorphemes (LAContextRef context, LAMorphemePath *result)
 
OSStatus LAShiftMorphemes (LAContextRef context, ItemCount morphemeCount, LAMorphemePath *path, UniCharCount *shiftedLength)
 
OSStatus LAResetAnalysis (LAContextRef context)
 

Detailed Description

Language Analysis Manager Interfaces.

Introduced In: Mac OS 8
Avaliable From: Universal Interfaces 3.4.1
Copyright: © 1996-2001 by Apple Computer, Inc., all rights reserved

For bug reports, consult the following page on the World Wide Web:

http://developer.apple.com/bugreporter/

Macro Definition Documentation

◆ kLAJapaneseKanaKanjiEnvironment

#define kLAJapaneseKanaKanjiEnvironment   "\pKanaKanjiConversion"

Check Language Analysis Manager availability


Definitions for Japanese Analysis Module

Names for default environments for Japanese analysis

Typedef Documentation

◆ JapanesePartOfSpeech

typedef MorphemePartOfSpeech JapanesePartOfSpeech

Definitions of information in the path/bundle

◆ LAMorphemeBundle

Definitions for result path/bundle structure

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Definitions for morpheme/homograph information

◆ anonymous enum

anonymous enum

Mask for High level API convert flags

◆ anonymous enum

anonymous enum

Constants for leading/trailing path of analysis function

◆ anonymous enum

anonymous enum

Constants for confirm and shift function

◆ anonymous enum

anonymous enum

File cretor for dictionary of Apple Japanese access method

◆ anonymous enum

anonymous enum

Engine limitations

◆ anonymous enum

anonymous enum

AE keywords and type definitions for morpheme/homograph information

◆ anonymous enum

anonymous enum

Definitions for Japanese part of speeches

Masks for part of speeches

◆ anonymous enum

anonymous enum

Part of speeches

◆ anonymous enum

anonymous enum

Conjugations

Function Documentation

◆ LAAddNewWord()

OSStatus LAAddNewWord ( LAEnvironmentRef  environ,
const FSSpec *  dictionary,
const AEDesc dataList 
)

LAAddNewWord()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LACloseAnalysisContext()

OSStatus LACloseAnalysisContext ( LAContextRef  context)

LACloseAnalysisContext()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LACloseDictionary()

OSStatus LACloseDictionary ( LAEnvironmentRef  environ,
const FSSpec *  dictionary 
)

LACloseDictionary()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAContinuousMorphemeAnalysis()

OSStatus LAContinuousMorphemeAnalysis ( LAContextRef  context,
ConstUniCharArrayPtr  text,
UniCharCount  textLength,
Boolean  incrementalText,
LAMorphemePath leadingPath,
LAMorphemePath trailingPath,
Boolean modified 
)

LAContinuousMorphemeAnalysis()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LACreateCustomEnvironment()

OSStatus LACreateCustomEnvironment ( LAEnvironmentRef  baseEnvironment,
ConstStr63Param  newEnvironmentName,
Boolean  persistent,
LAEnvironmentRef *  newEnvironment 
)

LACreateCustomEnvironment()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LADeleteCustomEnvironment()

OSStatus LADeleteCustomEnvironment ( LAEnvironmentRef  environment)

LADeleteCustomEnvironment()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAGetEnvironmentList()

OSStatus LAGetEnvironmentList ( UInt32  maxCount,
UInt32 *  actualCount,
LAEnvironmentRef  environmentList[] 
)

Handling Environment LAGetEnvironmentList()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAGetEnvironmentName()

OSStatus LAGetEnvironmentName ( LAEnvironmentRef  environment,
Str63  environmentName 
)

LAGetEnvironmentName()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAGetEnvironmentRef()

OSStatus LAGetEnvironmentRef ( ConstStr63Param  targetEnvironmentName,
LAEnvironmentRef *  environment 
)

LAGetEnvironmentRef()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAGetMorphemes()

OSStatus LAGetMorphemes ( LAContextRef  context,
LAMorphemePath result 
)

LAGetMorphemes()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LALibraryVersion()

UInt32 LALibraryVersion ( void  )

Library version LALibraryVersion()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAListAvailableDictionaries()

OSStatus LAListAvailableDictionaries ( LAEnvironmentRef  environ,
ItemCount  maxCount,
ItemCount *  actualCount,
FSSpec  dictionaryList[],
Boolean  opened[] 
)

LAListAvailableDictionaries()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAMorphemeAnalysis()

OSStatus LAMorphemeAnalysis ( LAContextRef  context,
ConstUniCharArrayPtr  text,
UniCharCount  textLength,
LAMorphemePath leadingPath,
LAMorphemePath trailingPath,
ItemCount  pathCount,
LAMorphemeBundle result 
)

Analyzing text LAMorphemeAnalysis()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAOpenAnalysisContext()

OSStatus LAOpenAnalysisContext ( LAEnvironmentRef  environ,
LAContextRef *  context 
)

Handling Context LAOpenAnalysisContext()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAOpenDictionary()

OSStatus LAOpenDictionary ( LAEnvironmentRef  environ,
const FSSpec *  dictionary 
)

Handling dictionries LAOpenDictionary()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAResetAnalysis()

OSStatus LAResetAnalysis ( LAContextRef  context)

LAResetAnalysis()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LAShiftMorphemes()

OSStatus LAShiftMorphemes ( LAContextRef  context,
ItemCount  morphemeCount,
LAMorphemePath path,
UniCharCount *  shiftedLength 
)

LAShiftMorphemes()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LATextToMorphemes()

OSStatus LATextToMorphemes ( LAContextRef  context,
TextEncoding  preferedEncoding,
ByteCount  textLength,
ConstLogicalAddress  sourceText,
ByteCount  bufferSize,
OptionBits  convertFlags,
UInt32  structureVersion,
ByteCount *  acceptedLength,
LAMorphemesArrayPtr  resultBuffer 
)

High level API LATextToMorphemes()

Non-Carbon CFM: in LanguageAnalysisLib 1.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later