version 1.47, 2015/02/25 15:04:13 |
version 1.50, 2015/02/26 10:41:30 |
Line 296 static const struct texitok __texitoks[TEXICMD__MAX] = |
|
Line 296 static const struct texitok __texitoks[TEXICMD__MAX] = |
|
{ dosubsubsection, "subsubsection", 13 }, /* TEXICMD_SUBSUBSECTION */ |
{ dosubsubsection, "subsubsection", 13 }, /* TEXICMD_SUBSUBSECTION */ |
{ doignline, "subtitle", 8 }, /* TEXICMD_SUBTITLE */ |
{ doignline, "subtitle", 8 }, /* TEXICMD_SUBTITLE */ |
{ doignline, "summarycontents", 15 }, /* TEXICMD_SUMMARYCONTENTS */ |
{ doignline, "summarycontents", 15 }, /* TEXICMD_SUMMARYCONTENTS */ |
{ doignline, "synindex", 8 }, /* TEXICMD_SYNINDEX */ |
{ dodefindex, "synindex", 8 }, /* TEXICMD_SYNINDEX */ |
{ doignline, "syncodeindex", 12 }, /* TEXICMD_SYNCODEINDEX */ |
{ dodefindex, "syncodeindex", 12 }, /* TEXICMD_SYNCODEINDEX */ |
{ doinline, "t", 1 }, /* TEXICMD_T */ |
{ doinline, "t", 1 }, /* TEXICMD_T */ |
{ dotab, "tab", 3 }, /* TEXICMD_TAB */ |
{ dotab, "tab", 3 }, /* TEXICMD_TAB */ |
{ dosymbol, "\t", 1 }, /* TEXICMD_TABSYM */ |
{ dosymbol, "\t", 1 }, /* TEXICMD_TABSYM */ |
Line 432 dodefn(struct texi *p, enum texicmd cmd, size_t *pos) |
|
Line 432 dodefn(struct texi *p, enum texicmd cmd, size_t *pos) |
|
break; |
break; |
} |
} |
|
|
texiputchars(p, ":\n"); |
texiputchar(p, ':'); |
|
texiputchar(p, '\n'); |
|
|
switch (cmd) { |
switch (cmd) { |
case (TEXICMD_DEFMAC): |
case (TEXICMD_DEFMAC): |
Line 989 doaccent(struct texi *p, enum texicmd cmd, size_t *pos |
|
Line 990 doaccent(struct texi *p, enum texicmd cmd, size_t *pos |
|
if ('{' == BUF(p)[*pos]) { |
if ('{' == BUF(p)[*pos]) { |
brace = 1; |
brace = 1; |
advance(p, pos); |
advance(p, pos); |
} else if (isalpha(texitoks[cmd].tok[0])) |
} else if (isalpha((unsigned char)texitoks[cmd].tok[0])) |
while (*pos < BUFSZ(p) && isws(BUF(p)[*pos])) |
while (*pos < BUFSZ(p) && isws(BUF(p)[*pos])) |
advance(p, pos); |
advance(p, pos); |
|
|
Line 1311 dosymbol(struct texi *p, enum texicmd cmd, size_t *pos |
|
Line 1312 dosymbol(struct texi *p, enum texicmd cmd, size_t *pos |
|
} |
} |
|
|
/* Alphabetic commands have braces we ignore. */ |
/* Alphabetic commands have braces we ignore. */ |
if (isalpha(texitoks[cmd].tok[0])) |
if (isalpha((unsigned char)texitoks[cmd].tok[0])) |
doignbracket(p, cmd, pos); |
doignbracket(p, cmd, pos); |
} |
} |
|
|
Line 1607 dotop(struct texi *p, enum texicmd cmd, size_t *pos) |
|
Line 1608 dotop(struct texi *p, enum texicmd cmd, size_t *pos) |
|
teximacroclose(p); |
teximacroclose(p); |
teximacroopen(p, "Dt"); |
teximacroopen(p, "Dt"); |
for (cp = p->title; '\0' != *cp; cp++) |
for (cp = p->title; '\0' != *cp; cp++) |
texiputchar(p, toupper(*cp)); |
texiputchar(p, toupper((unsigned int)*cp)); |
texiputchars(p, " 7"); |
texiputchars(p, " 7"); |
teximacroclose(p); |
teximacroclose(p); |
teximacro(p, "Os"); |
teximacro(p, "Os"); |