From 6fecb483e23ea50c0682c4c4ba8b649a1de16ab4 Mon Sep 17 00:00:00 2001 From: Oneric Date: Sun, 28 Feb 2021 17:47:15 +0100 Subject: Eliminate accidental trigraphs Those particular instances were harmless, but in general trigraphs can cause unintended behaviour changes. Not having any trigraphs in the code makes it easier to catch unintended ones via a simple regex. (In GNU-C trigraphs are disabled by default, but enabled in ISO-C) --- libass/ass_render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index eaf135b..9498a18 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -511,7 +511,7 @@ static bool quantize_transform(double m[3][3], ASS_Vector *pos, // = m_zx * (x + sign(m_zx) * dx) + m_zy * (y + sign(m_zy) * dy) + z0. // D(f)--absolute value of error in quantity f - // as function of error in matrix coefficients, i. e. D(m_??). + // as function of error in matrix coefficients, i. e. D(m_ij) for i, j from {x, y, z}. // Error in constant is zero, i. e. D(dx) = D(dy) = D(z0) = 0. // In the following calculation errors are considered small // and second- and higher-order terms are dropped. @@ -536,7 +536,7 @@ static bool quantize_transform(double m[3][3], ASS_Vector *pos, // To estimate acceptable error in matrix coefficient // set error in all other coefficients to zero and solve system - // D(x_out) <= ACCURACY & D(y_out) <= ACCURACY for desired D(m_??). + // D(x_out) <= ACCURACY & D(y_out) <= ACCURACY for desired D(m_ij). // ACCURACY here is some part of total error, i. e. ACCURACY ~ POSITION_PRECISION. // Note that POSITION_PRECISION isn't total error, it's convenient constant. // True error can be up to several POSITION_PRECISION. @@ -1400,7 +1400,7 @@ get_bitmap_glyph(ASS_Renderer *render_priv, GlyphInfo *info, // Notation from quantize_transform(). // Note that goal here is to estimate acceptable error for stroking, i. e. D(x) and D(y). - // Matrix coefficients are constants now, so D(m_??) = 0. + // Matrix coefficients are constants now, so D(m_ij) = 0 for all i, j from {x, y, z}. // D(z) <= |m_zx| * D(x) + |m_zy| * D(y), // D(x_out) = D((m_xx * x + m_xy * y) / z) -- cgit v1.2.3