From: Georg Baum Date: Sun, 5 Nov 2006 08:53:52 +0000 (+0000) Subject: Fix comment according to Enricos explanation X-Git-Tag: 1.6.10~12037 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f498157e1897232befc20951df50f10eab194497;p=features.git Fix comment according to Enricos explanation git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15743 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathParser.C b/src/mathed/MathParser.C index cb208ffca3..623b9234e8 100644 --- a/src/mathed/MathParser.C +++ b/src/mathed/MathParser.C @@ -216,13 +216,16 @@ enum CatCode { CatCode theCatcode[128]; -inline CatCode catcode(lyx::char_type c) +inline CatCode catcode(char_type c) { - /* The fact that we use unicode internally does not change Knuth's TeX - engine. It is still 7bit only, not even latin1 or something like that. - Therefore, the catcode table needs only to have 128 entries. - Everything not in that range is catOther. - */ + /* The only characters that are not catOther lie in the pure ASCII + * range. Therefore theCatcode has only 128 entries. + * TeX itself deals with 8bit characters, so if needed this table + * could be enlarged to 256 entries. + * Any larger value does not make sense, since the fact that we use + * unicode internally does not change Knuth's TeX engine. + * Apart from that a table for the full 21bit UCS4 range would waste + * too much memory. */ if (c >= 128) return catOther;