0) { $r = mysql_query("SELECT u_name FROM pvc_users WHERE u_id=$contributor"); if ($row = mysql_fetch_assoc($r)) { $contributor_name = $row['u_name']; } else $contributor = 0; } } ?> Persian Sentences '; if ($forceSnd) print "Disable audio, faster page load"; else print "Enable audio, slower page load"; print ''; } ?>

Persian Sentences

Top 10 Contributors

"; print ""; $r = mysql_query(" SELECT u_id, u_name, COUNT( snt_uid ) cnt FROM `pvc_sentence` INNER JOIN pvc_users u ON snt_uid = u_id GROUP BY snt_uid ORDER BY cnt DESC LIMIT 0, 10"); while ($row = mysql_fetch_assoc($r)) { print ""; } print "
NameSentences
$row[u_name]$row[cnt]
"; } else { print "

"; $r = mysql_query("SELECT * FROM pvc_topics WHERE t_id=$theme"); if ($topic_row = mysql_fetch_assoc($r)) { print "You are viewing sentences related to the theme of \"$topic_row[t_name]\"";//Theme: } else { if (is_array($tag_row)) { print "You are viewing sentences "; $sentset[] = array(1 => 'Sentences with ro', 44 => 'Sentences with o', 123 => 'Sentences with rā'); $sentset[] = array(59 => 'positive', 104 => 'negative'); $sentset[] = array(164 => 'negative', 321 => 'positive', 318 => 'with an "in-ke" clause', 336 => 'taa che beresad be'); $sentset[] = array(666 => '"the" suffix -e', 956 => '"the" suffix -e as -a before suffix', 959 => '"the" suffix -e as -he on words ending with -e', 963 => '"the" suffix -e as -ha after -e and before suffix'); $sentset[] = array(1005 => 'simple verbs', 789 => 'compound verbs'); $sentset[] = array(1084 => 'other /be-/ combinations', 1089 => 'be-zir combined with zwnj', 1099 => 'be-zir as 2 separate words', 1082 => 'be-zir as one word'); $sentset[] = array(1106 => 'demonstrative adjective /in-/', 1100 => 'demonstrative adjective /ān-/'); $sentset[] = array(1019 => 'spoken style', 1128 => 'written style'); $sentset[] = array(1054 => 'ezāfe deletion with /-hā/', 969 => 'ezāfe deletion with -e "the"', 1007 => 'ezāfe deletion with "the" and personal suffix', 1182 => 'ezāfe deletion with personal suffix'); $sentset[] = array(1137 => '-et, spoken', 1140 => '-at, written');//, 1007 => '-a-t, (def. article) spoken' $sentset[] = array(1243 => '"Allāh" replaced by /Alef + 3 dots/', 1247 => '"Allāh" replaced by /Alah/', 1251 => '"Allāh" replaced by /Alā/'); $sentset[] = array(182 => 'ādam', 1262 => 'ādam-hā'); $sentset[] = array(1287 => 'yek-i, 1 person', 1308 => 'yek-i, 1 thing'); $sentset[] = array(51 => 'present progressive', 694 => 'past progressive'); $sentset[] = array(167 => '/ān/ to /un/', 502 => '/ām/ to /um/'); $sentset[] = array(1363 => 'ba`zi + inanimate plural', 1511 => 'ba`zi + animate plural'); $sentset[] = array(1472 => '/bā-/', 181 => '/bi-/', 1466 => '/kam-/', 1546 => '/nā-/', 1410 => '/por-/'); $sentset[] = array(1601 => 'Hesitation: remembering names, filler phrases', 1505 => 'Hesitation: remembering names, chiz'); $sentset[] = array(3 => 'concession', 1683 => 'place', 1690 => 'reason', 1666 => 'time'); $sentset[] = array(571 => 'tebq-e', 1717 => 'motābeq-e/bā'); $sentset[] = array(275 => '/ā-ye/', 651 => '/u-ye/'); $sentset[] = array(471 => 'word-final CC + suffix', 1765 => 'word-final tashdid, foreign loans'); $sentset[] = array(1780 => 'it-', 1782 => 'wh-', 1784 => 'Reversed wh-cleft/Pseudo-cleft', 1785 => 'all-', 1786 => 'inferential-', 1773 => 'there-', 1776 => 'if-because-', 1790 => 'th-'); $sentset[] = array(1982 => 'contemporary style', 2014 => 'classical style'); $related[969] = array(666 => '"the" suffix -e', 956 => '"the" suffix -e as -a before suffix', 959 => '"the" suffix -e as -he on words ending with -e', 963 => '"the" suffix -e as -ha after -e and before suffix'); $related[1007] = array(2 => 'final -e changes to -a before suffix'); $related[1031] = array(969 => 'ezāfe deletion with -e "the"', 2 => 'final -e changes to -a before suffix', 1007 => 'with other personal suffixes'); $related[1137] = array(1007 => '-a-t, (def. article) spoken'); $related[1140] = array(1007 => '-a-t, (def. article) spoken'); $related[1287] = array(182 => 'ādam'); $related[508] = array(1262 => 'ādam-hā'); $related[1262] = array(508 => 'ba`zi-hā'); $related[1410] = array(1566 => '/por-…-tar/', 1569 => '/por-…-tar-in/'); $related[1566] = array(1410 => '/por-/', 1569 => '/por-…-tar-in/'); $related[1569] = array(1410 => '/por-/', 1566 => '/por-…-tar/'); $related[1466] = array(1574 => '/kam-…-tar/', 1596 => '/kam-…-tar-in/'); $related[1574] = array(1466 => '/kam-/', 1596 => '/kam-…-tar-in/'); $related[1596] = array(1466 => '/kam-/', 1574 => '/kam-…-tar/'); $related[1472] = array(1572 => '/bā-…-tar/', 1576 => '/bā-…-tar-in/'); $related[1572] = array(1472 => '/bā-/', 1576 => '/bā-…-tar-in/'); $related[1576] = array(1472 => '/bā-/', 1572 => '/bā-…-tar/'); $related[181] = array(1529 => '/bi-…-tar/', 1573 => '/bi-…-tar-in/'); $related[1529] = array(181 => '/bi-/', 1573 => '/bi-…-tar-in/'); $related[1573] = array(181 => '/bi-/', 1529 => '/bi-…-tar/'); $related[1546] = array(1639 => '/nā-…-tar/', 1634 => '/nā-…-tar-in/'); $related[1639] = array(1546 => '/nā-/', 1634 => '/nā-…-tar-in/'); $related[1634] = array(1546 => '/nā-/', 1639 => '/nā-…-tar/'); $related[1792] = array(1750 => '/ke/ topic contrast'); $among_sentsets = false; foreach ($sentset as $set) { if (isset($set[$tag])) { $among_sentsets = true; if (!empty($tag_row['t_descr'])) { print $tag_row['t_descr']; } else { print "related to the feature \"$tag_row[t_name]\"";//Theme: } print ".

"; foreach ($set as $key => &$value) { $value = $value; if ($key==$tag) $value = "$value"; else $value = "$value"; } print '

'.implode(' - ', $set).'

'; } } if (!$among_sentsets) { if (!empty($tag_row['t_descr'])) { print $tag_row['t_descr'] . "."; } else { print "related to the feature \"$tag_row[t_name]\".";//Theme: } } if (isset($related[$tag])) { print "

see related:

"; foreach ($related[$tag] as $key => &$value) { $value = "$value"; } print implode(' - ', $related[$tag]); } } else { print "Limit to a theme"; } } if ($theme || $tag) { print "

"; } else { print " v

\n"; if ($contributor>0) print "

Sentences contributed by $contributor_name (see top 10 contributors)

"; } print "

"; print is_array($tag_row) ? "Other grammar topics" : "Limit to sentences tagged for grammar topics"; print " v

\n"; $where = ''; if ($contributor>0) { $where .= " AND snt_uid=$contributor"; } $sql = " SELECT s.*, u.* FROM pvc_sentence s ".($theme?"INNER JOIN pvc_sentence_topic st ON (snt_id=sentence_id AND topic_id=$theme)": ($tag?"INNER JOIN pvc_sentence_tag st ON (snt_id=sentence_id AND tag_id=$tag)":""))." INNER JOIN pvc_users u ON snt_uid=u_id WHERE snt_new=0 $where ORDER BY snt_level, snt_id DESC"; $rsnt = mysql_query($sql); $total = mysql_num_rows($rsnt); $rsnt = mysql_query("$sql LIMIT ".($p*$max).", $max"); $snt_count = mysql_num_rows($rsnt); $pages = ''; if ($total>$max) { $pages .= "

Pages: "; for ($i=0; $i$plink"; } $pages .= " $plink"; } $pages .= "

"; } print $pages; if ($snt_count>0) { $main_verb_id = 0; $isPersScript = true; include_once('pvcsent.php'); print $pages; if ($theme) { $r = mysql_query("SELECT * FROM pvc_verb_topics WHERE topic_id=$theme"); if (mysql_num_rows($r)>0) { print "

See the list of verbs thematically sorted under \"$topic_row[t_name]\"

"; } } } } ?>


Persian Verb Conjugator