CWB
Functions | Variables
html-print.c File Reference
#include "html-print.h"
#include <stdio.h>
#include <string.h>
#include "../cl/macros.h"
#include "../cl/corpus.h"
#include "../cl/attributes.h"
#include "../cl/cdaccess.h"
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include "cqp.h"
#include "options.h"
#include "corpmanag.h"
#include "concordance.h"
#include "attlist.h"
#include "print_align.h"
#include <sys/time.h>
#include <time.h>
#include <pwd.h>

Functions

char * html_print_field (FieldType field, int start)
 
void html_puts (FILE *fd, char *s, int flags)
 
char * html_convert_string (char *s)
 
void html_print_aligned_line (FILE *stream, char *attribute_name, char *line)
 Prints a line of text (which will have been previously extracted from a corpus linked to the present corpus by an a-attribute) within HTML markup. More...
 
void html_print_context (ContextDescriptor *cd, FILE *stream)
 
void html_print_corpus_header (CorpusList *cl, FILE *stream)
 
void html_print_output (CorpusList *cl, FILE *stream, int interactive, ContextDescriptor *cd, int first, int last)
 
void html_print_group (Group *group, int expand, FILE *fd)
 

Variables

PrintDescriptionRecord HTMLPrintDescriptionRecord
 
PrintDescriptionRecord HTMLTabularPrintDescriptionRecord
 
PrintDescriptionRecord HTMLTabularNowrapPrintDescriptionRecord
 

Function Documentation

char* html_convert_string ( char *  s)

References CL_MAX_LINE_LENGTH.

void html_print_aligned_line ( FILE *  stream,
char *  attribute_name,
char *  line 
)

Prints a line of text (which will have been previously extracted from a corpus linked to the present corpus by an a-attribute) within HTML markup.

Parameters
streamDestination for the output.
attribute_nameThe name of the aligned corpus: printed in the leading indicator within the HTML.
lineCharacter data of the line of aligned-corpus data to print. This is treated as opaque.

References GlobalPrintOptions, html_puts(), _print_option_rec_::print_tabular, _print_option_rec_::print_wrap, SUBST_ALL, and SUBST_NONE.

Referenced by printAlignedStrings().

void html_print_context ( ContextDescriptor cd,
FILE *  stream 
)
void html_print_corpus_header ( CorpusList cl,
FILE *  stream 
)
char * html_print_field ( FieldType  field,
int  start 
)
void html_print_group ( Group group,
int  expand,
FILE *  fd 
)
void html_print_output ( CorpusList cl,
FILE *  stream,
int  interactive,
ContextDescriptor cd,
int  first,
int  last 
)
void html_puts ( FILE *  fd,
char *  s,
int  flags 
)

Variable Documentation

PrintDescriptionRecord HTMLPrintDescriptionRecord
PrintDescriptionRecord HTMLTabularNowrapPrintDescriptionRecord

Referenced by html_print_output().

PrintDescriptionRecord HTMLTabularPrintDescriptionRecord

Referenced by html_print_output().