mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix comment according to Enricos explanation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15743 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a3b98687fa
commit
f498157e18
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user