w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

chars.c File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "main.h"
#include "commands.h"
#include "l2r_fonts.h"
#include "cfg.h"
#include "ignore.h"
#include "encode.h"
#include "parser.h"
#include "chars.h"
#include "funct1.h"
#include "convert.h"
Include dependency graph for chars.c:

Go to the source code of this file.

Functions

void TeXlogo ()
 
void LaTeXlogo ()
 
void CmdUmlauteChar (int code)
 
void CmdLApostrophChar (int code)
 
void CmdRApostrophChar (int code)
 
void CmdMacronChar (int code)
 
void CmdHatChar (int code)
 
void CmdOaccentChar (int code)
 
void CmdTildeChar (int code)
 
void CmdCedillaChar (int code)
 
void CmdVecChar (int code)
 
void CmdBreveChar (int code)
 
void CmdUnderdotChar (int code)
 
void CmdHacekChar (int code)
 

Function Documentation

◆ CmdBreveChar()

void CmdBreveChar ( int  code)

purpose: converts \u{o} and \breve{o} from LaTeX to RTF there is no breve in codepage 1252 there is one \'f9 in the MacRoman, but that is not so portable there is one in MT Extra, but the RTF parser for word mistakes \'28 as a '(' and goes bananas. Therefore need the extra \\ the only solution is to encode with unicode — perhaps later Now we just fake it with a u

Definition at line 486 of file chars.c.

References ConvertString(), CurrentFontSize(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), NULL, num, and RtfFontNumber().

◆ CmdCedillaChar()

void CmdCedillaChar ( int  code)

purpose: converts {c} from LaTeX to RTF

Definition at line 400 of file chars.c.

References ConvertString(), CurrentFontSize(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), and NULL.

◆ CmdHacekChar()

void CmdHacekChar ( int  code)

purpose: converts \v from LaTeX to RTF need something that looks like \O(a,\S(\f1\'da)) in RTF file

Definition at line 541 of file chars.c.

References ConvertString(), CurrentFontSize(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), int(), NULL, num, and RtfFontNumber().

◆ CmdHatChar()

void CmdHatChar ( int  code)

purpose: \^{o} and \hat{o} symbols from LaTeX to RTF

Definition at line 252 of file chars.c.

References ConvertString(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), NULL, num, RtfFontNumber(), and strcmp().

Referenced by TranslateCommand().

◆ CmdLApostrophChar()

void CmdLApostrophChar ( int  code)

purpose: converts special symbols from LaTeX to RTF

Definition at line 104 of file chars.c.

References ConvertString(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), NULL, num, RtfFontNumber(), and strcmp().

Referenced by TranslateCommand().

◆ CmdMacronChar()

void CmdMacronChar ( int  code)

purpose: converts special symbols from LaTeX to RTF

Definition at line 231 of file chars.c.

References ConvertString(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), and NULL.

Referenced by TranslateCommand().

◆ CmdOaccentChar()

void CmdOaccentChar ( int  code)

purpose: converts \r accents from LaTeX to RTF

Definition at line 314 of file chars.c.

References ConvertString(), diagnostics(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), NULL, strcmp(), and WARNING__.

◆ CmdRApostrophChar()

void CmdRApostrophChar ( int  code)

purpose: converts special symbols from LaTeX to RTF

Definition at line 165 of file chars.c.

References ConvertString(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), NULL, and strcmp().

Referenced by TranslateCommand().

◆ CmdTildeChar()

void CmdTildeChar ( int  code)

purpose: converts{n} from LaTeX to RTF

Definition at line 356 of file chars.c.

References ConvertString(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), NULL, num, and RtfFontNumber().

Referenced by TranslateCommand().

◆ CmdUmlauteChar()

void CmdUmlauteChar ( int  code)

purpose : converts characters with diaeresis from LaTeX to RTF

Definition at line 41 of file chars.c.

References ConvertString(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), NULL, num, RtfFontNumber(), and strcmp().

Referenced by TranslateCommand().

◆ CmdUnderdotChar()

void CmdUnderdotChar ( int  code)

purpose: converts chars with dots under from LaTeX to RTF

Definition at line 517 of file chars.c.

References ConvertString(), CurrentFontSize(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), int(), and NULL.

◆ CmdVecChar()

void CmdVecChar ( int  code)

purpose: converts \vec{o} from LaTeX to RTF

Definition at line 434 of file chars.c.

References ConvertString(), CurrentFontSize(), fprintRTF(), free, g_field_separator, g_processing_fields, getBraceParam(), NULL, num, and RtfFontNumber().

◆ LaTeXlogo()

void LaTeXlogo ( )

◆ TeXlogo()

void TeXlogo ( )