CWB
Functions | Variables
ascii-print.h File Reference
#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...
 

Function Documentation

char* ascii_convert_string ( char *  s)

Convert string function for ASCII mode.

This is used for the "printToken" function in the relevant PDR.

Parameters
sThe string to convert.
Returns
s (ie no change).
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: ").

Parameters
streamDestination for the output.
highlightingBoolean: if true, use colour/bold highlighting for the leading indicator on the line.
attribute_nameThe name of the aligned corpus: printed in the leading indicator
lineCharacter 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 
)
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 
)
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().

Variable Documentation

PrintDescriptionRecord ASCIIPrintDescriptionRecord

Print description record for ASCII print mode.

Referenced by print_concordance_line(), and printAlignedStrings().