CWB
Functions | Variables
sgml-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

void sgml_print_aligned_line (FILE *stream, 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) following an SGML open-tag. More...
 
void sgml_print_corpus_header (CorpusList *cl, FILE *outfd)
 
void sgml_print_output (CorpusList *cl, FILE *outfd, int interactive, ContextDescriptor *cd, int first, int last)
 
void sgml_print_group (Group *group, int expand, FILE *fd)
 

Variables

PrintDescriptionRecord SGMLPrintDescriptionRecord
 

Function Documentation

void sgml_print_aligned_line ( FILE *  stream,
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) following an SGML open-tag.

The structure is <align name="$att_name">$line_data And the whole thing is terminated by EOL (note, no close tag as we;'d have in XML!)

Parameters
streamDestination for the output.
attribute_nameThe name of the aligned corpus: printed in the "align" tag as an SGML attribute.
lineCharacter data of the line of aligned-corpus data to print. This is treated as opaque.

References sgml_puts(), and SUBST_NONE.

Referenced by printAlignedStrings().

void sgml_print_corpus_header ( CorpusList cl,
FILE *  outfd 
)
void sgml_print_group ( Group group,
int  expand,
FILE *  fd 
)
void sgml_print_output ( CorpusList cl,
FILE *  outfd,
int  interactive,
ContextDescriptor cd,
int  first,
int  last 
)

Variable Documentation

PrintDescriptionRecord SGMLPrintDescriptionRecord