CWB
|
ContextDescriptor object: a bundle of CQP options describing how a list of corpus positions is to be displayed in a concordance: with left context, with right context, with what attributes, etc. More...
#include <context_descriptor.h>
Data Fields | |
int | left_width |
Amount of context to show before the match, in units specified by left_type. More... | |
int | left_type |
Unit in which context is measured; Set to one of the constants: CHAR_CONTEXT, WORD_CONTEXT, STRUC_CONTEXT, ALIGN_CONTEXT. More... | |
char * | left_structure_name |
Attribute * | left_structure |
int | right_width |
Amount of context to show after the match, in units specified by right_type. More... | |
int | right_type |
Unit in which context is measured; Set to one of the constants: CHAR_CONTEXT, WORD_CONTEXT, STRUC_CONTEXT, ALIGN_CONTEXT. More... | |
char * | right_structure_name |
Attribute * | right_structure |
int | print_cpos |
Boolean flag: if true, print corpus position numbers. More... | |
AttributeList * | attributes |
positional attributes to print More... | |
AttributeList * | strucAttributes |
structural attributes to print More... | |
AttributeList * | printStructureTags |
structure tag (values) to print More... | |
AttributeList * | alignedCorpora |
aligned corpora from which to print parallel data More... | |
ContextDescriptor object: a bundle of CQP options describing how a list of corpus positions is to be displayed in a concordance: with left context, with right context, with what attributes, etc.
It is passed around between different print functions so that they know what to do!
Note that the options contained here are settable by the user. This is in contrast to the "options" held in the PrintDecriptionRecord, which are built-in for each print style; the user can choose among modes but cannot modify the settings individually.
TODO This object is confusingly named, as it DOES NOT merely specify the "Context" size; it also specifies which attributes get printed, and so on.
(It would be better called a "concordance line co-text configuration object".)
TODO why is it necessary for concordance-printing options to be spread across two separate objects?
AttributeList* alignedCorpora |
aligned corpora from which to print parallel data
Referenced by do_attribute_show(), html_print_output(), initialize_context_descriptor(), latex_print_output(), print_concordance_line(), printAlignedStrings(), PrintContextDescriptor(), sgml_print_output(), update_context_descriptor(), and verify_context_descriptor().
AttributeList* attributes |
positional attributes to print
Referenced by compose_kwic_line(), do_attribute_show(), get_position_values(), initialize_context_descriptor(), printAlignedStrings(), PrintContextDescriptor(), set_current_corpus(), sgml_print_output(), update_context_descriptor(), and verify_context_descriptor().
Attribute* left_structure |
char* left_structure_name |
int left_type |
Unit in which context is measured; Set to one of the constants: CHAR_CONTEXT, WORD_CONTEXT, STRUC_CONTEXT, ALIGN_CONTEXT.
Referenced by ascii_print_corpus_header(), compose_kwic_line(), context_descriptor_reset_left_context(), html_print_context(), init_align_module(), initialize_context_descriptor(), latex_print_context(), PrintContextDescriptor(), set_context_option_value(), set_default_option_values(), sgml_print_context(), and verify_context_descriptor().
int left_width |
Amount of context to show before the match, in units specified by left_type.
Referenced by ascii_print_corpus_header(), compose_kwic_line(), context_descriptor_reset_left_context(), html_print_context(), initialize_context_descriptor(), latex_print_context(), parse_options(), PrintContextDescriptor(), set_context_option_value(), set_default_option_values(), sgml_print_context(), and verify_context_descriptor().
int print_cpos |
Boolean flag: if true, print corpus position numbers.
Referenced by compose_kwic_line(), do_attribute_show(), initialize_context_descriptor(), latex_print_output(), PrintContextDescriptor(), and set_default_option_values().
AttributeList* printStructureTags |
structure tag (values) to print
Referenced by ascii_print_output(), execute_side_effects(), get_print_attribute_values(), html_print_output(), initialize_context_descriptor(), latex_print_output(), sgml_print_output(), update_context_descriptor(), and verify_context_descriptor().
Attribute* right_structure |
char* right_structure_name |
int right_type |
Unit in which context is measured; Set to one of the constants: CHAR_CONTEXT, WORD_CONTEXT, STRUC_CONTEXT, ALIGN_CONTEXT.
Referenced by ascii_print_corpus_header(), compose_kwic_line(), context_descriptor_reset_right_context(), html_print_context(), init_align_module(), initialize_context_descriptor(), latex_print_context(), PrintContextDescriptor(), set_context_option_value(), set_default_option_values(), sgml_print_context(), and verify_context_descriptor().
int right_width |
Amount of context to show after the match, in units specified by right_type.
Referenced by ascii_print_corpus_header(), compose_kwic_line(), context_descriptor_reset_right_context(), html_print_context(), initialize_context_descriptor(), latex_print_context(), parse_options(), PrintContextDescriptor(), set_context_option_value(), set_default_option_values(), sgml_print_context(), and verify_context_descriptor().
AttributeList* strucAttributes |
structural attributes to print
Referenced by do_attribute_show(), get_position_values(), initialize_context_descriptor(), printAlignedStrings(), PrintContextDescriptor(), set_current_corpus(), update_context_descriptor(), and verify_context_descriptor().