]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathParser.C
Fix comment according to Enricos explanation
[lyx.git] / src / mathed / MathParser.C
index cb208ffca3c78798280fe2cb0b0a89a2f54185af..623b9234e87fede82fce8c24a6437066e50c966a 100644 (file)
@@ -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;