From a5bcd8567fc42442510b3838b4be925fa1a45288 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 10 Jun 2022 07:03:02 -0600 Subject: [PATCH] [indic] Update comment re category listing --- src/hb-ot-shaper-indic.hh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-shaper-indic.hh b/src/hb-ot-shaper-indic.hh index 54c70188e..cffb1b7c6 100644 --- a/src/hb-ot-shaper-indic.hh +++ b/src/hb-ot-shaper-indic.hh @@ -40,8 +40,14 @@ /* Cateories used in the OpenType spec: * https://docs.microsoft.com/en-us/typography/script-development/devanagari */ -/* Note: This enum is duplicated in the -machine.rl source file. - * Not sure how to avoid duplication. */ +/* Note: This enum is duplicated the machine machine.rl files. + * We can avoid that by defining this enum in terms of those in the + * indic-table.cc file, but I like this enum duplicated here, because + * this gives us a unified view of all the numbers. + * + * The equality of these and the duplicated numbers is checked by way + * of static_assert's in the respective .cc shaper files. Keep those + * in sync as well. */ enum ot_category_t { OT_X = 0, OT_C = 1,