CWB
|
#include <stdio.h>
#include "../cl/bitfields.h"
#include "corpmanag.h"
#include "context_descriptor.h"
#include "print-modes.h"
#include "groups.h"
Functions | |
char * | ascii_convert_string (char *s) |
Convert string function for ASCII mode. More... | |
void | ascii_print_aligned_line (FILE *stream, int highlighting, char *attribute_name, char *line) |
Prints a line of text (which will have been previously exrtracted from a corfpus linked to the present corpus by an a-attribute) with a brief character-mode start-of-line flag ("-->$att_name: "). More... | |
void | ascii_print_corpus_header (CorpusList *cl, FILE *outfd) |
void | ascii_print_output (CorpusList *cl, FILE *outfd, int interactive, ContextDescriptor *cd, int first, int last) |
void | ascii_print_group (Group *group, int expand, FILE *fd) |
char * | get_colour_escape (char colour, int foreground) |
Dummy function. More... | |
char * | get_typeface_escape (char typeface) |
Dummy function. More... | |
Variables | |
PrintDescriptionRecord | ASCIIPrintDescriptionRecord |
Print description record for ASCII print mode. More... | |
char* ascii_convert_string | ( | char * | s | ) |
Convert string function for ASCII mode.
This is used for the "printToken" function in the relevant PDR.
s | The string to convert. |
void ascii_print_aligned_line | ( | FILE * | stream, |
int | highlighting, | ||
char * | attribute_name, | ||
char * | line | ||
) |
Prints a line of text (which will have been previously exrtracted from a corfpus linked to the present corpus by an a-attribute) with a brief character-mode start-of-line flag ("-->$att_name: ").
stream | Destination for the output. |
highlighting | Boolean: if true, use colour/bold highlighting for the leading indicator on the line. |
attribute_name | The name of the aligned corpus: printed in the leading indicator |
line | Character data of the line of aligned-corpus data to print. This is treated as opaque. |
References get_colour_escape(), and get_typeface_escape().
Referenced by printAlignedStrings().
void ascii_print_corpus_header | ( | CorpusList * | cl, |
FILE * | outfd | ||
) |
References CD, CHAR_CONTEXT, cl::corpus, _context_description_block::left_structure_name, _context_description_block::left_type, _context_description_block::left_width, cl::mother_name, TCorpus::name, cl::name, passwd, cl::query_corpus, cl::query_text, TCorpus::registry_name, _context_description_block::right_structure_name, _context_description_block::right_type, _context_description_block::right_width, cl::size, and WORD_CONTEXT.
Referenced by print_corpus_info_header().
void ascii_print_group | ( | Group * | group, |
int | expand, | ||
FILE * | fd | ||
) |
void ascii_print_output | ( | CorpusList * | cl, |
FILE * | outfd, | ||
int | interactive, | ||
ContextDescriptor * | cd, | ||
int | first, | ||
int | last | ||
) |
References cl_broken_pipe, GlobalPrintOptions, highlighting, last, _print_option_rec_::number_lines, print_concordance_line(), _context_description_block::printStructureTags, cl::size, and cl::sortidx.
Referenced by print_output().
char* get_colour_escape | ( | char | colour, |
int | foreground | ||
) |
Dummy function.
Referenced by ascii_print_aligned_line(), ascii_print_field(), and main().
char* get_typeface_escape | ( | char | typeface | ) |
Dummy function.
Referenced by ascii_print_aligned_line(), and main().
PrintDescriptionRecord ASCIIPrintDescriptionRecord |
Print description record for ASCII print mode.
Referenced by print_concordance_line(), and printAlignedStrings().