Changeset 744


Ignore:
Timestamp:
11/17/12 02:37:11 (2 years ago)
Author:
ofer
Message:

Fix more letter entity encodings in our parser, to cover most of latin-1 for languages such as Polish

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/core/parser.php

    r743 r744  
    293293        logger("checking ($entity) - " . htmlentities($entity), 4); 
    294294        $entnum = (int) substr($entity, 2); 
    295         if (($entnum >= 192 && $entnum <= 214) || ($entnum >= 216 && $entnum <= 246) || ($entnum >= 248 && $entnum <= 255) 
    296                 || $entnum == 338 || $entnum == 339 || $entnum == 352 || $entnum == 353 || $entnum == 376) { 
     295        // skip multiply and divide (215, 247)  
     296        if (($entnum >= 192 && $entnum <= 214) || ($entnum >= 216 && $entnum <= 246) || ($entnum >= 248 && $entnum <= 696)) { 
    297297            return true; 
    298298        } 
Note: See TracChangeset for help on using the changeset viewer.