CWB
Functions
print_align.h File Reference
#include <stdio.h>
#include "../cl/corpus.h"
#include "context_descriptor.h"

Functions

void printAlignedStrings (Corpus *sourceCorpus, ContextDescriptor *cd, int begin_target, int end_target, int highlighting, FILE *stream)
 For a given query result, prints the corresponding section of the aligned corpus (if any). More...
 

Function Documentation

void printAlignedStrings ( Corpus sourceCorpus,
ContextDescriptor cd,
int  begin_target,
int  end_target,
int  highlighting,
FILE *  stream 
)

For a given query result, prints the corresponding section of the aligned corpus (if any).

This function is the business-end of the "print_align" module.

Parameters
sourceCorpusThe corpus the query was run on.
cdContextDescriptor containing data on how the concordance is to be printed.
begin_targetStarting cpos of the result being printed.
end_targetEnding cpos of the result being printed.
highlightingBoolean: Iff true, highlighting will be used (applies only in ASCII print mode; see "ascii_print_aligned_line").
streamOutput destination stream (will be printed to).

References _context_description_block::alignedCorpora, ascii, ascii_print_aligned_line(), ASCIIPrintDescriptionRecord, ATT_ALIGN, _context_description_block::attributes, TCorpus::charset, cl_alg2cpos(), cl_cpos2alg(), cl_free, cl_new_corpus(), cl_strdup(), cl_string_validate_encoding(), compose_kwic_line(), ConcLineHorizontal, find_attribute, FindInAL(), GlobalPrintMode, html_print_aligned_line(), HTMLPrintDescriptionRecord, init_align_module(), initialize_context_descriptor(), latex_print_aligned_line(), LaTeXPrintDescriptionRecord, _attlist::list, module_init, _attrbuf::name, _attrbuf::next, PrintASCII, PrintBINARY, PrintHTML, PrintLATEX, PrintSGML, PrintUNKNOWN, registry, sgml_print_aligned_line(), SGMLPrintDescriptionRecord, _attrbuf::status, _context_description_block::strucAttributes, update_context_descriptor(), and utf8.

Referenced by html_print_output(), latex_print_output(), print_concordance_line(), and sgml_print_output().