Home | History | Annotate | Download | only in src

Lines Matching defs:base

485     Base,
1232 int base = 0;
1246 // Rule 1: find base consonant
1248 // The shaping engine finds the base consonant of the
1251 // found that does not have a below-base or post-base form
1252 // (post-base forms have to follow below-base forms), or
1254 // will be the base.
1257 // 'Reph'), Ra is excluded from candidates for base
1260 // * In Kannada and Telugu, the base consonant cannot be
1271 base = (beginsWithRa ? 2 : 0);
1272 IDEBUG(" length = %d, beginsWithRa = %d, base=%d", len, beginsWithRa, base);
1280 // figure out possible base glyphs
1284 for (i = base; i < len; ++i) {
1290 IDEBUG("excluding vattu glyph at %d from base candidates", i);
1298 for (i = base; i < len; ++i) {
1308 for (i = len-1; i >= base; i--) {
1313 base = i+1;
1322 base = i;
1325 base = i;
1329 base = i;
1335 IDEBUG(" base consonant at %d skipped=%d, lastConsonant=%d", base, skipped, lastConsonant);
1339 // If the base consonant is not the last one, Uniscribe
1340 // moves the halant from the base consonant to the last
1342 if (lastConsonant > base) {
1344 if (uc[base+1] == halant)
1345 halantPos = base + 1;
1346 else if (uc[base+1] == nukta && uc[base+2] == halant)
1347 halantPos = base + 2;
1349 IDEBUG(" moving halant from %d to %d!", base+1, lastConsonant);
1361 // * the post-base 'matra' (if any) or the base consonant
1364 // * the base consonant (other scripts)
1370 IDEBUG(" matra at %d with form %d, base=%d", matra, matra_position, base);
1372 if (beginsWithRa && base != 0) {
1373 int toPos = base+1;
1397 base -= 2;
1423 base++;
1430 // pre-base, above-base (Reph), below-base or post-base. This
1433 for (i = 0; i < base; ++i)
1435 position[base] = Base;
1436 for (i = base+1; i < len; ++i) {
1444 for (i = base+1; i < len; ++i)
1451 // all reordering happens now to the chars after the base
1452 int fixed = base+1;
1469 IDEBUG(" base=%d fixed=%d", base, fixed);
1515 for (i = base+1; i < len; ++i)
1530 IDEBUG(" base=%d, reph=%d", base, reph);
1548 // we need to keep track of where the base glyph is for some
1584 base; ++i)
1592 for (i = base+1; i < len; ++i)
1598 for (i = base-2; i > 1; --i) {
1610 for (i = 0; i < base; ++i)
1624 for (i = base+1; i < len; ++i)
1652 // need to find the base in the shaped string and move the matra there
1654 while (basePos < newLen && (int)otl_glyphs[basePos].cluster <= base)