From 5c2a309a34544b8ce4a9f64845f876bc1bc560f3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 2 Oct 2018 12:18:33 +0000 Subject: Render the eqn(7) "sqrt" function as U+221A in UTF-8 output. This also agrees with what groff does. Suggested by an attendee of EuroBSDCon 2018 in Bucuresti. Written on the plane Bucuresti-Frankfurt returning from EuroBSDCon. --- eqn_term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eqn_term.c') diff --git a/eqn_term.c b/eqn_term.c index 669c3c56..b1a438d9 100644 --- a/eqn_term.c +++ b/eqn_term.c @@ -1,4 +1,4 @@ -/* $Id: eqn_term.c,v 1.17 2017/08/23 21:56:20 schwarze Exp $ */ +/* $Id: eqn_term.c,v 1.18 2018/10/02 12:18:33 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2017 Ingo Schwarze @@ -106,7 +106,7 @@ eqn_box(struct termp *p, const struct eqn_box *bp) /* Special box types. */ if (bp->pos == EQNPOS_SQRT) { - term_word(p, "sqrt"); + term_word(p, "\\(sr"); if (bp->first != NULL) { p->flags |= TERMP_NOSPACE; eqn_box(p, bp->first); -- cgit v1.2.3-56-ge451