diff --git a/sch2fig/sch.c b/sch2fig/sch.c index 6b301cd..17c489f 100644 --- a/sch2fig/sch.c +++ b/sch2fig/sch.c @@ -78,6 +78,13 @@ static void draw_text(int x, int y, const char *s, int dir, int dim, case 1: /* up */ text_rot(&txt, 90); break; + case 2: /* left */ + txt.hor = text_max; + break; + case 3: /* down */ + text_rot(&txt, 90); + txt.hor = text_max; + break; default: assert(2 + 2 == 5); } @@ -293,6 +300,18 @@ bool sch_parse(struct sch_ctx *ctx, const char *line) ctx->text = fig_label; return 1; } + if (sscanf(line, "Entry Wire Line%n", &n) == 0 && n) { + ctx->state = sch_text; + unsupported("Entry Wire Line"); + ctx->text = NULL; + return 1; + } + if (sscanf(line, "Entry Bus Bus%n", &n) == 0 && n) { + ctx->state = sch_text; + unsupported("Entry Bus Bus"); + ctx->text = NULL; + return 1; + } /* Connection */