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)  

kanji.c File Reference
#include "defs.h"
#include "global.h"
#include "jsub.h"
Include dependency graph for kanji.c:

Go to the source code of this file.

Macros

#define hex(c)   (c>='a' ? c-'a'+10 : c-'0')
 
#define kushift(c)   (c+0x20)
 
#define tenshift(c)   (c+0x20)
 

Functions

 getjsubfont (char *n, char **subend)
 
 getdcode (char *n, char **subend)
 
void jsub_to_jis (short f, short c, unsigned short *ku, unsigned short *ten)
 
void jis_to_jsub (short ku, short ten, unsigned short *f, unsigned short *c)
 
void code_to_jis (unsigned short s, unsigned short c, unsigned short *ku, unsigned short *ten)
 
void jis_to_dcode (unsigned short ku, unsigned short ten, unsigned short *f, unsigned short *c)
 
 match_subf (char *sname, char *fname, int ini, char **sb, char **se)
 
void subst_subf (char *fname, char *sname, char *sb, char *se)
 
 jis_to_idx94 (unsigned int jis)
 

Variables

char * jsf_names []
 
int foundjsubf
 

Macro Definition Documentation

◆ hex

#define hex (   c)    (c>='a' ? c-'a'+10 : c-'0')

Definition at line 63 of file kanji.c.

◆ kushift

#define kushift (   c)    (c+0x20)

Definition at line 76 of file kanji.c.

◆ tenshift

#define tenshift (   c)    (c+0x20)

Definition at line 77 of file kanji.c.

Function Documentation

◆ code_to_jis()

void code_to_jis ( unsigned short  s,
unsigned short  c,
unsigned short *  ku,
unsigned short *  ten 
)

Definition at line 158 of file kanji.c.

References c, ku, s, and ten.

Referenced by cmpdcd_fontdict(), cmpdcd_markchar(), and cmpdcd_setchar().

◆ getdcode()

getdcode ( char *  n,
char **  subend 
)

Definition at line 65 of file kanji.c.

References CSUB_SEP, hex, and n.

Referenced by comptype_access().

◆ getjsubfont()

getjsubfont ( char *  n,
char **  subend 
)

Definition at line 49 of file kanji.c.

References f, jsf_names, n, NJSUBS, strlen(), and strncmp().

Referenced by comptype_access(), dev_jstfm_parent(), findbksub(), and match_subf().

◆ jis_to_dcode()

void jis_to_dcode ( unsigned short  ku,
unsigned short  ten,
unsigned short *  f,
unsigned short *  c 
)

Definition at line 188 of file kanji.c.

References c, f, ku, gen-indic-table::short, and ten.

Referenced by dcmpdcd_fontdict(), dcmpdcd_markchar(), and dcmpdcd_setchar().

◆ jis_to_idx94()

jis_to_idx94 ( unsigned int  jis)

Definition at line 252 of file kanji.c.

References c1, c2, and kanji.

Referenced by jis_to_sjis(), jmm_markchar(), jsub_to_idx94(), jvf_markchar(), jvf_setchar(), read_vf_di(), wl_fontdict(), and wl_setchar().

◆ jis_to_jsub()

void jis_to_jsub ( short  ku,
short  ten,
unsigned short *  f,
unsigned short *  c 
)

Definition at line 114 of file kanji.c.

References c, f, ku, n, ten, and Warning().

Referenced by dcmpntt_fontdict(), dcmpntt_markchar(), and dcmpntt_setchar().

◆ jsub_to_jis()

void jsub_to_jis ( short  f,
short  c,
unsigned short *  ku,
unsigned short *  ten 
)

Definition at line 80 of file kanji.c.

References c, f, ku, kushift, n, ten, and tenshift.

Referenced by cmpntt_fontdict(), cmpntt_markchar(), cmpntt_setchar(), jsub_to_idx94(), and read_jstfm_finfo().

◆ match_subf()

match_subf ( char *  sname,
char *  fname,
int  ini,
char **  sb,
char **  se 
)

Definition at line 202 of file kanji.c.

References CSUB_SEP, FALSE, fname, foundjsubf, getjsubfont(), ini, NULL, and TRUE.

Referenced by dev_jstfm_parent(), findbksub(), init_fontinfo(), and replfont().

◆ subst_subf()

void subst_subf ( char *  fname,
char *  sname,
char *  sb,
char *  se 
)

Definition at line 232 of file kanji.c.

References fname, and s.

Referenced by replfont().

Variable Documentation

◆ foundjsubf

int foundjsubf

Definition at line 196 of file kanji.c.

Referenced by match_subf().

◆ jsf_names

char* jsf_names[]

Definition at line 11 of file kanji.c.

Referenced by getjsubfont().