Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/TeXFonts.8xv
Binary file not shown.
Binary file modified assets/TeXScrpt.8xv
Binary file not shown.
4 changes: 4 additions & 0 deletions include/texfont.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,9 @@
#define TEXFONT_BOTTOM_CHAR '\303'
#define TEXFONT_SUPSET "\304"
#define TEXFONT_SUPSET_CHAR '\304'
#define TEXFONT_ARROW_UP "\305"
#define TEXFONT_ARROW_UP_CHAR '\305'
#define TEXFONT_ARROW_DOWN "\306"
#define TEXFONT_ARROW_DOWN_CHAR '\306'

#endif /* TEXFONT_H */
2 changes: 2 additions & 0 deletions src/tex/tex_symbols.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ static const MapEnt g_map[] = {
{ "dim", SYMC_FUNC_DIM, SYM_FUNC },
{ "div", GL(TEXFONT_DIVIDE_CHAR), SYM_GLYPH },
{ "dot", SYMC_ACC_DOT, SYM_ACCENT },
{ "downarrow", GL(TEXFONT_ARROW_DOWN_CHAR), SYM_GLYPH },
{ "ell", GL(TEXFONT_ELL_CHAR), SYM_GLYPH },
{ "emptyset", GL(TEXFONT_EMPTY_SET_CHAR), SYM_GLYPH },
{ "end", SYMC_END, SYM_STRUCT },
Expand Down Expand Up @@ -171,6 +172,7 @@ static const MapEnt g_map[] = {
{ "top", GL(TEXFONT_TOP_CHAR), SYM_GLYPH },
{ "underbrace", SYMC_UNDERBRACE, SYM_STRUCT },
{ "underline", SYMC_ACC_UNDERLINE, SYM_ACCENT },
{ "uparrow", GL(TEXFONT_ARROW_UP_CHAR), SYM_GLYPH },
{ "upsilon", GL(TEXFONT_upsilon_CHAR), SYM_GLYPH },
{ "vec", SYMC_ACC_VEC, SYM_ACCENT },
{ "vee", GL(TEXFONT_LOGICAL_OR_CHAR), SYM_GLYPH },
Expand Down
2 changes: 2 additions & 0 deletions tests/test_symbols.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ int main(void)
check_sym("langle", SYM_GLYPH, TEXFONT_LANGLE_CHAR);
check_sym("rangle", SYM_GLYPH, TEXFONT_RANGLE_CHAR);
check_sym("supset", SYM_GLYPH, TEXFONT_SUPSET_CHAR);
check_sym("uparrow", SYM_GLYPH, TEXFONT_ARROW_UP_CHAR);
check_sym("downarrow", SYM_GLYPH, TEXFONT_ARROW_DOWN_CHAR);

// Structural
SymbolDesc d;
Expand Down
4 changes: 3 additions & 1 deletion tools/process_fonts.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
0x2295, # ⊕ Circled plus (oplus)
]

# The Master Symbol List (0x80 - 0xC4).
# The Master Symbol List (0x80 - 0xC6).
SYMBOLS = [
# Greek Lower
0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7, 0x03B8,
Expand All @@ -110,6 +110,8 @@
# Boolean logic
0x2227, 0x2228, 0x00AC, 0x21D2, 0x21D4, 0x22A4, 0x22A5,
0x2283, # Superset / material-implication horseshoe (\supset)
0x2191, # Up arrow / Sheffer stroke for NAND (\uparrow)
0x2193, # Down arrow / Peirce arrow for NOR (\downarrow)
]


Expand Down
Loading