| |
CRDictionary
category: Genie-Engine
superclass: Model
subclasses:
This class represents a genie character dictionary.
The important instance variables and its functions are:
name <Symbol>
The name is used to identify the dictionary. The name can be empty. In this case,
the dictionary doesn't appear in the dictionary instance browser (the browser showing
all the dictionaries). This can be useful to define simple dictionaries, that are assigned to
special Morph instances. If a dictionary has a name, the name must be unique.
Dictionary names are used to specify parent dictionaries.
exportedName <Symbol>
The exported-name of a dictionary is used to assign dictionaries to Morph subclasses and
special Morph instances. This means that all the dictionary names specified by morphs are
exported names!
Usage example: Lets assume that there are two users, Peter and Paul with dictionaries
called 'Peter Text', 'Peter Text with Capital letters" and 'Paul Text'. Let's further assume that
all the text-based Morphs refer to a dictionary with the exported name 'Text'. The active
dictionary for all these Morphs can now be easily changed just by exporting the right
dictionary as 'Text'.
parents <Collection>
All the direct parents of the dictiionaries.
There is no parent limit and parent hierarchies can contain cycles!
parameters <CRParameters>
There are a lot of different parameters that can be assigned to character dictionaries
(relevance of the feature size, alert if match is too bad, ...). The parameters of
each dictionary are stored here.
NOTE: Inherited dictionaries can have different parameters! This can e.g. be very useful
if someone wants to have size independent strokes in a dictionary that is basically size
sensitive.




|
|