-
Notifications
You must be signed in to change notification settings - Fork 6
/
panini.php
11884 lines (11792 loc) · 519 KB
/
panini.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/* This code is developed by Dr. Dhaval Patel ([email protected]) of www.sanskritworld.in and Ms. Sivakumari Katuri.
* Layout assistance by Mr Marcis Gasuns.
* Available under GNU licence.
* Version 1.1.2 date 7 November 2015
* The latest source code is available at https://github.com/drdhaval2785/SanskritVerb .
* Acknowledgements: The base book for coding has been Astadhyayi sahajabodha of Dr. Pushpa Dikshit, published by Pratibha Prakashan, Delhi.
* I extend my heartfelt thanks to Ananda Loponen for the code to convert devanagari and various sanskrit transliterations. That can be accessed at http://www.ingmardeboer.nl/php/diCrunch.php?act=help.
* I also extend my gratitude to gloomy.penguin of stackoverflow.com, who helped me create dvitva and lopa functions, without which I would be handicapped.
* For setup, copy and paste tiGanta.php, tiGanta.html, and scripts folder to your localhost and server and run tiGanta.html.
* tiGanta.html is the frontend for the code.
* scripts/ajax.php and scripts/script.js are codes which asks for user feedback for particular words.
* scripts/function.php stores the frequently used functions in this code (The description on how to use the code is there in function.php).
* tiGanta.php is the code which actually gives the output of the word derivation.
* scripts/slp-dev.php is for converting SLP1 data to Devanagari.
* scripts/dev-slp.php is for converting Devanagari data to SLP1.
* scripts/mystyle.css is stylesheet where you can change your preferences.
* The code uses jquery.
* The description part uses Howard Kyoto protocol.
* The coding uses SLP1 transliteration.
*/
$start_time = microtime(true);
/* Including arrays and functions */
include "scripts/function.php"; // includes the file function.php which is collection of functions used in this code.
include "scripts/slp-dev.php"; // includes code for conversion from SLP to devanagari,
include "scripts/dev-slp.php"; // includes code for devanagari to SLP.
/* hides error reports. */
// If the warning is shown with line number of function.php and you are not able to trace the line which called it, turn the all error reporting on. It will help you locate the wrong entries in a reasonably narrow space, because there are so many notices around.
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
error_reporting(0);
/* set execution time to an hour */
ini_set('max_execution_time', 36000);
/* set memory limit to 100000 MB */
ini_set("memory_limit","100000M");
/* Defining header for all HTMLs */
$header = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!--... Defining UTF-8 as our default character set, so that devanagari is displayed properly. -->
<meta charset="UTF-8">
<!--... Defining CSS -->
<link rel="stylesheet" type="text/css" href="scripts/mystyle.css">
<!--... including Ajax jquery. -->
</head>
<body>
';
$debug = 0; // 0 - no debugging. 1 - debugging on. It shows execution of some important time consuming scripts.
/* Reading from the HTML input. */
//$first = $_GET["first"]; // word entered by the user.
$first = toslp($_GET["first"]); // to change the word input in devanagari / IAST to slp.
$us = $_GET["upasarga"]; // upasarga. Added on 14 Dec 2014.
$tran = $_GET['tran']; // "Devanagari" - devanagari, "IAST" - IAST, "SLP1" - SLP1 transliteration.
$lakAra = $_GET['lakAra']; // There are 12 possible lakAras (mentioned in tiGanta.html)
$gender = $_GET['gender']; // "m" - male. "f" - female. "n" - neuter.
$vAcya = $_GET['vAcya']; // kartR, karma, bhAva
if (!$vAcya) { $vAcya="kartR"; } // If it is not set, consider it as kartR (because it is the most common one)
$sanAdi = $_GET['sanAdi']; // Default is ''. There are 12 sanAdi groups (mentioned in tiGanta.html)
$number = $_GET['number']; // Verb number e.g. BU sattAyAm BvAdi has 01.0001 as number. Fetched via ajax.php
$verbset = verbset_from_number($number); // bhvAdi, adAdi etc. Fetched via ajax.php
$frontend = $_GET['frontend']; // Whether to display sUtras in frontend or not. Fetched via tiGanta.html
//$frontend = '0';
$type = $_GET['type'];
$letter = $_GET['letter'];
$pr = $_GET['pratya'];
$inprat = $_GET['pratyahara'];
//$type = 'subanta';
global $storedata;
if (!$verbset && $type==="tiGanta") { $verbset = scrape1($number,8,9,1)[0]; } // for overcoming issue in https://github.com/drdhaval2785/SanskritVerb/issues/97
/* Now trying to make program equally compatible with commandline.
The proposed structure is php tiGanta.php verb verbset lakAra tran upasarga vAcya
defaults:
verb - no default (mandatory to feed)
verbset - 'none'
lakAra - 'law'
tran - 'SLP1'
upasarga - ''
vAcya - 'kartR'
*/
/* input from asyaprayatna.html */
if ($type==="asyaprayatna")
{
asyaprayatna($letter);
exit();
}
elseif ($type==="savarna")
{
$sav = sl($letter,prat($inprat));
echo "savarNa of '".$letter."' in pratyAhAra '".$inprat."' is: ".$sav;
exit();
}
/* input from pratyahara.html */
elseif ($type==="pratyahara")
{
$pratyahara = prat($pr);
print_r($pratyahara);
exit();
}
/* input from stri.html */
elseif ($type==="stri")
{
$gender = "f";
$type = "subanta";
}
// Input from commandline has to be in `php tiGanta.php 01.0001 law` format. Other details are fetched from verb number.
elseif ($type==="tiGanta" && (isset($argv[0]) || $test===1) )
{
$number = $argv[1];
$first = dhatu_from_number($number);
$verbset = verbset_from_number($number);
$lakAra = $argv[2];
$tran = $argv[3];
$us = $argv[4];
$vAcya = $argv[5];
$sanAdi = $argv[6];
if (!isset($argv[1])) { echo "Verb number is not entered"; exit; }
if (!isset($argv[2])) { $lakAra = 'law'; }
if (!isset($argv[3])) { $tran = 'SLP1'; }
if (!isset($argv[4])) { $us = ''; }
if (!isset($argv[5])) { $vAcya = 'kartR'; }
if (!isset($argv[6])) { $sanAdi = ''; }
$frontend="0";
}
/* Creating a log */
if ($type==='tiGanta') {
mkdir ('verboutput');
$logfile = fopen('verboutput//log.txt','a+');
fputs($logfile,date('D, d M Y H:i:s')."\n");
fputs($logfile,"verb = $first, gaNa = $verbset, lakAra = $lakAra, transliteration = $tran, vAcya = $vAcya, upasarga = $us\n");
}
elseif ($type==='subanta') {
mkdir ('nounoutput');
$logfile = fopen('nounoutput//log.txt','a+');
fputs($logfile,date('D, d M Y H:i:s')."\n");
fputs($logfile,"verb = $first, transliteration = $tran\n");
}
if ($debug===1) {dibug("100");}
if (!isset($argv[0]) and $type==='tiGanta')
{
$outfile = fopen("verboutput//".$first."_".$verbset."_".$lakAra.".html", "wb");
fputs($outfile,$header);
}
echo $header; // creating header. This will ensure that the HTML is shown with UTF-8 encoding with necessary stylesheet.
$verbset=trim($verbset);
$fo = $first; // remembering the original prakRti. Sometimes we need to know what was the original prakRti.
/* Defining the variables used in the code and their default values .
* If there is no change in the execution of subanta.php, the default values are operated.
*/
$pada = "pratyaya"; // "pada" - pada saJjJA. "pratyaya" - not pada.
$nadi = 0; // 0 - no nadI saJjJA. 1 - nadI saJjJA
$GI = 0; // 0 - no Gyantatva. 1 - Gyantantva.
$Ap = 0; // 0 - no Abantatva. 1 - Abantatva.
$taddhita = 0; // 0 - not taddhita. 1 - taddhita.
$dhatu = 0; // 0 - no dhAtu. 1 - dhAtu.
$eranekaca = 0; // 0 - no application of eranekAco. 1 - application of eranekAco.
$tri = "m"; // for tricaturoH striyAM tisRcatasR (7.2.99). "m" - word tri is pulliGga. "f" - word tri is strIliGga.
$nityastri = 0; // for nitya strIliGga. 0 - not nityastrIliGga. 1 - nityastrIliGga.
$ekajuttarapada = 0; // 0 - no application of ekAjuttarapade NaH. 1 - application of ekAjuttarapade NaH.
$bhashitapumska = 0; // 0 - not bhASitapuMska. 1 - bhASitapuMska.
$anvadesha = 0; // 0 - no anvAdeza. 1 - anvAdeza.
$samasa = 0; // 0 - no samAsa. 1 - samAsa
$pradhana = 0; // 0 - no pradhAnatva in samAsa. 1 - pradhAnatva in samAsa
$Jit = 0; // 0 - no 'J' as it marker. 1 - 'J' as it marker. e.g. ho hanterJNinneSu 7.3.54
$Nit = 0; // 0 - no 'N' as it marker. 1 - 'N' as it marker.
$kvin = 0; // 0 - no kvin pratyaya. 1 - kvin pratyaya.
$kvip = 0; // 0 - no kvip pratyaya. 1 - kvip pratyaya.
$asmadpada = 2; // 0 - niSedha. 1 - nitya. 2 - vibhASA. used to decide whether the conversion of asmad / yuSmad -> me / te, nau / vAm etc will happen or not.
$bhavat = 0; // 0 - bhAterDavatu. 1 - bhU+zatR.
$abhyasta = 0; // 0 - not abhyasta. 1 - abhyasta.
$shatR = 0; // 0 - not zatR pratyaya. 1 - zatR pratyaya.
$Nyanta = 0; // 0 - not Nyanta, 1 - Nyanta.
$san = 0; // 0 - non san, 1 - san. 'san' is used to create nAmadhAtus.
$yaG = 0; // 0 - no yaG pratyaya. 1 - yaG pratyaya has applied.
$vasu = 0; // 0 - no vasvanta, 1 - vasvanta.
$shap = 0; // 0 - no zap pratyaya. 1 - zap pratyaya.
$shyan = 0; // 0 - no zyan pratyaya. 1 - zyan pratyaya.
$tRcvat=0; // 0 - not tRjvat. 1 - tRjvat. e.g. tRjvat kroSTuH.
$nance = 0;
$aniditAm = 0;
$anobahuvrihe=0;
$manah=0;
$anapatya=0;
$sarvadhatuka=0;
$ardhadhatuka=0;
$veda=0; // to test for Chandas forms. Turn it to 0 for laukika, 1 for Chandas.
$kGiti=0;
$atolopa=0;
$halGyAbbhyo=0;
$atmanepada=0;
$ubhayapada=0;
$parasmaipada=0;
$rudhAdibhyaH=0;
$kaspratyaya=0;
$ad=0;
$nomidelision=0;
$vras1=0;
$kit=0;
$kRt=0;
$sic=0;
$caG=0;
$vras=0;
$dvitva=0;
$id_pratyaya="sew"; // right now taking it as default. Will feed later on.
$R = array(); // creating an array where we can store whether the word has 'R' as it marker.
$num = array(); // creating an array where we can store whether the word has 'num' Agama.
$it = array(); // Creating an array where we can store it markers.
$itprakriti = array(); // creating an array where we can store it markers of prakRti.
$itpratyaya = array(); // creating an array where we can store it markers of pratyayas.
$samp = array(); // creating an array where we can store whethere samprasAraNa has happened or not.
$Agama = array(); // storing Agamas.
// rest of the variables will be defined at their particular occurence in the code.
/* Displaying information about the verb to the user */
if ($type==='tiGanta')
{
if ($number!=="")
{
verb_meaning_gana_number4($number); // See function.php for details of function.
}
elseif ($verbset!=="none")
{
verb_meaning_gana_number2($first); // See function.php for details of function.
}
elseif (in_array($first,$allverbs))
{
verb_meaning_gana_number1($first); // See function.php for details of function.
}
else
{
verb_meaning_gana_number3($first); // See function.php for details of function.
}
}
if ($type==='tiGanta')
{
/* upasarga display */
if ($type==="tiGanta" && $us!=="")
{
upasarga_display($us); // See function.php for details of function.
}
if ($debug===1) {dibug("200");}
/* Deciding the pratyaya by doing padanirdhARaNa of parasmai, Atmane, ubhaya */
/* bhAvakarmaNoH (1.3.13) */
if ( in_array($vAcya,array("karma","bhAva")) && $pada==="pratyaya" && $lakAra!=="")
{
$verbpada=verb_pada('1.3.13'); // See function.php for details of function.
}
/* Special patch for paNa dhAtu (see kAzikA on 3.1.28) */
elseif ( $_GET['cond49']==="1")
{
$verbpada="p";
}
/* luTi ca klRpaH (1.3.93) */
elseif ( $fo==="kfpU!" && ($san===1 || in_array($lakAra,array("lfN","lfw","luw"))))
{
$verbpada=verb_pada('1.3.93');
}
/* na gatihiMsArthebhyH (1.3.15) */
elseif ( $_GET['cond11_1']==='1') // cond stands for condition. They are taken from user input. For all variables having cond as prefix, details can be seen at ajax requirement.docx.
{
$verbpada=verb_pada('1.3.15');
}
/* itaretarAnyo'nyopapadAcca (1.3.16) */
// parasparopapadAcceti vaktavyam is implicitly included in it. If need be, a user feedback has to be increased.
elseif ($_GET['cond11_1']==='2')
{
$verbpada=verb_pada('1.3.16');
}
/* kartari karmavyatihAre (1.3.14) */
elseif ( $_GET['cond11_1']==='3')
{
$verbpada=verb_pada('1.3.14');
}
/* AGo do'nAsyaviharaNe (1.3.20) */
elseif ( $_GET['cond14']==="2" )
{
$verbpada=verb_pada('1.3.20');
}
/* parAGgakarmakAnna niSedhaH (vA 903) */
// Pending to refactor because I am not able to locate vArtika number in MB.
elseif ( $_GET['cond14_1']==="2" )
{
$verbpada=verb_pada('vA 903'); // Not able to locate the vArtika. So added it in the $verb_sutra_pada array.
}
/* prakAzanastheyAkhyayozca (1.3.23) */
elseif ( $_GET['cond15']==="1" )
{
$verbpada=verb_pada('1.3.23');
}
/* udo'nUrdhvakarmaNi (1.3.24) */
elseif ( $_GET['cond16']==="2" )
{
$verbpada=verb_pada('1.3.24');
}
/* upAnmantrakaraNe (1.3.25) */
elseif ( $_GET['cond17']==="1" )
{
$verbpada=verb_pada('1.3.25');
}
/* akarmakAcca (1.3.26) */
elseif ( $_GET['cond17']==="2" )
{
$verbpada=verb_pada('1.3.26');
}
/* spardhAyAmAGaH (1.3.31) */
elseif ( $_GET['cond18']==="1" )
{
$verbpada=verb_pada('1.3.31');
}
/* anuparAbhyAM kruJaH (1.3.79) */
elseif ( ends(array($first),array("qukfY"),2) && in_array($us,array("anu","parA")) )
{
$verbpada=verb_pada('1.3.79');
}
/* gandhanAvakSepaNasevanasAhasikyapratiyatnaprakathanopayogeSu kRJaH (1.3.32) */
elseif ( $_GET['cond19']==="1" )
{
$verbpada=verb_pada('1.3.32');
}
/* adheH prahasane (1.3.33) */
elseif ( $_GET['cond20']==="1" )
{
$verbpada=verb_pada('1.3.33');
}
/* veH zabdakarmaNaH (1.3.34) */
elseif ( $_GET['cond21']==="1" )
{
$verbpada=verb_pada('1.3.34');
}
/* akarmakAcca (1.3.35) */
elseif ( $_GET['cond21']==="2" )
{
$verbpada=verb_pada('1.3.35');
}
/* kartRsthe cAzarIre karmaNi (1.3.37) */
elseif ( $_GET['cond23']==="1" )
{
$verbpada=verb_pada('1.3.37');
}
/* sammAnanotsaJjanAcAryakaraNajJAnabhRtivigaNanavyayeSu niyaH (1.3.36) */
elseif ( $_GET['cond22']==="1" )
{
$verbpada=verb_pada('1.3.36');
}
/* vRttisargatAyaneSu kramaH (1.3.38) and anupasargAdvA (1.3.43) */
elseif ( $_GET['cond24']==="1" && $first==="kramu!")
{
$verbpada=verb_pada('1.3.38');
$verbpada=verb_pada('1.3.43');
}
/* upaparAbhyAm (1.3.39) */
elseif ( $_GET['cond24']==="1" )
{
$verbpada=verb_pada('1.3.39');
}
/* AGa udgamane (1.3.40) */
elseif ( $_GET['cond25']==="1")
{
$verbpada=verb_pada('1.3.40');
}
/* veH pAdaviharaNe (1.3.41) */
elseif ( $_GET['cond26']==="1")
{
$verbpada=verb_pada('1.3.41');
}
/* propAbhyAM samarthAbhyAm (1.3.42) */
elseif ( $_GET['cond31']==="1")
{
$verbpada=verb_pada('1.3.42');
}
/* apahnave jJaH (1.3.44) */
elseif ( $_GET['cond27']==="1")
{
$verbpada=verb_pada('1.3.44');
}
/* akarmakAcca (1.3.45) */
elseif ( $_GET['cond27']==="2")
{
$verbpada=verb_pada('1.3.45');
}
/* sampratibhyAmanAdhyAne (1.3.46) */
elseif ( $_GET['cond28']==="1")
{
$verbpada=verb_pada('1.3.46');
}
/* bhAsanopasaMbhASAjJAnayatnavimatyupanimantraNeSu vadaH (1.3.47) */
elseif ( $_GET['cond29']==="1")
{
$verbpada=verb_pada('1.3.47');
}
/* vyaktavAcAM samuccAraNe (1.3.48) */
elseif ( $_GET['cond29']==="2")
{
$verbpada=verb_pada('1.3.48');
}
/* vibhASA vipralApe (1.3.50) */
elseif ( $_GET['cond29']==="3" )
{
$verbpada=verb_pada('1.3.50');
}
/* anorakarmakAt (1.3.49) */
elseif ( $_GET['cond30']==="1")
{
$verbpada=verb_pada('1.3.49');
}
/* samaH pratijJAne (1.3.52) */
elseif ( $_GET['cond32']==="1")
{
$verbpada=verb_pada('1.3.52');
}
/* udazcaraH sakarmakAt (1.3.53) */
elseif ( $_GET['cond33']==="1")
{
$verbpada=verb_pada('1.3.53');
}
/* samastRtIyAyuktAt (1.3.54) */
elseif ( $_GET['cond34']==="1")
{
$verbpada=verb_pada('1.3.54');
}
/* dANazca sA ceccaturthyarthe (1.3.55) */
elseif ( $_GET['cond35']==="1")
{
$verbpada=verb_pada('1.3.55');
}
/* upAdyamaH svakaraNe (1.3.56) */
elseif ( $_GET['cond36']==="1")
{
$verbpada=verb_pada('1.3.56');
}
/* nAnorjJaH (1.3.58) */
elseif ( $first==="jYA" && $us==="anu" && $sanAdi==="san")
{
$verbpada=verb_pada('1.3.58');
}
/* pratyAGbhyAM zruvaH (1.3.59) */
elseif ( in_array($us,array("prati","A")) && $first==="Sru" && $sanAdi==="san")
{
$verbpada=verb_pada('1.3.59');
}
/* jJAzrusmRdRzAM sanaH (1.3.57) */
elseif ( $_GET['cond37']==="1")
{
$verbpada=verb_pada('1.3.57');
}
/* zadeH zitaH (1.3.60) */
// I have taken these five lakAras because they have vikaraNa pratyaya 'zap' which qualifies for this sUtra.
elseif ( in_array($first,array("Sadx!")) && in_array($lakAra,array("law","low","laN","viDiliN","sArvaDAtukalew")))
{
$verbpada=verb_pada('1.3.60');
}
/* mriyaterluGliGozca (1.3.61) */
elseif ( in_array($first,array("mfN")) && in_array($lakAra,array("law","low","laN","viDiliN","sArvaDAtukalew","ASIrliN","luN")))
{
$verbpada=verb_pada('1.3.61');
}
/* pUrvavatsanaH (1.3.62) */
// Pending. san is not taught yet. So difficult to code right now. san will be treated later on.
/* Ampratyayavat kRJo'nuprayogasya (1.3.63) */
// Pending. Right now focus is on bare verbs. Am etc will be dealt with later.
/* NeraNau yatkarma Nau cetsa kartA'nAdhyAne (1.3.67) */
// This will need not less than a PhD. Nagesha bhatta seems to have written a book on this subject (NeraNivAdArthaH). So leaving it right now.
/* samaH kSNuvaH (1.3.65) */
elseif ( in_array($first,array("kzRu")) && $us==="sam")
{
$verbpada=verb_pada('1.3.65');
}
/* bhujo'navane (1.3.66) */
elseif ( $_GET['cond38']==="1")
{
$verbpada=verb_pada('1.3.66');
}
/* bhIsmyorhetubhaye (1.3.68) */
elseif ( $_GET['cond39']==="1")
{
$verbpada=verb_pada('1.3.68');
}
/* gRdhivaJcyoH pralambhane (1.3.69) */
elseif ( $_GET['cond40']==="1")
{
$verbpada=verb_pada('1.3.69');
}
/* liyaH sammAnanazAlInIkaraNayozca (1.3.70) */
elseif ( $_GET['cond41']==="1")
{
$verbpada=verb_pada('1.3.70');
}
/* mithyopapadAt kRJo'bhyAse (1.3.71) */
elseif ( $_GET['cond42']==="1")
{
$verbpada=verb_pada('1.3.71');
}
/* nervizaH (1.3.47), parivyavebhyaH kriyaH (1.3.18), viparAbhyAM jeH (1.3.19), krIDo'nusaMparibhyazca (1.3.21), samavaparivibhyaH sthaH (1.3.22), udvibhyAM tapaH (1.3.27), AGo yamahanaH (1.3.28), samo gamyRcCipracCisvarAyartishruvidibhyaH (1.3.29), nisamupavibhyo hvaH (1.3.30), avAdgraH (1.3.51), jJAzRsmRdRzAM sanaH (1.3.57) */
elseif ( in_array($us.$first,$toatmane) )
{
verb_pada1(); // Displaying the sUtra applicable.
$verbpada="A";
}
/* vyAGparibhyo ramaH (1.3.83) */
elseif ( ends(array($first),array("ramu!"),2) && in_array($us,array("vi","A","pari",)) && $vAcya==="kartR")
{
$verbpada=verb_pada('1.3.83');
}
/* upAcca (1.3.84) */
elseif ( $_GET['cond44']==="2")
{
$verbpada=verb_pada('1.3.84');
}
/* vibhASA'karmakAt (1.3.74) */
elseif ( $_GET['cond44']==='1')
{
$verbpada=verb_pada('1.3.74');
}
/* Nicazca (1.3.74) */
elseif ( $sanAdi==="Ric")
{
$verbpada=verb_pada('1.3.74');
}
/* AkusmAdAtmanepadinaH (dhAtupATha) */
elseif ( $verbset==='curAdi' && in_array($first,$AkusmIya) )
{
$verbpada=verb_pada('AkusmAd');
}
/* AkusmAdAtmanepadinaH (dhAtupATha) */
elseif ( $verbset==="none" && in_array($first,$AkusmIya))
{
$verbpada=verb_pada('AkusmAd');
}
/* AgarvAdAtmanepadinaH (dhAtupATha) */
elseif ( $verbset==='curAdi' && in_array($first,$AgarvIya) )
{
$verbpada=verb_pada('AgarvAd');
}
/* AgarvAdAtmanepadinaH (dhAtupATha) */
elseif ( $verbset==="none" && in_array($first,$AgarvIya))
{
$verbpada=verb_pada('AgarvAd');
}
/* Nicazca (1.3.74) */
elseif ( $verbset==='curAdi' )
{
$verbpada=verb_pada('1.3.74');
}
/* Nicazca (1.3.74) */
elseif ($verbset==="none" && in_array($first,$curAdi) )
{
$verbpada=verb_pada('1.3.74');
}
/* dyudbhyo luGi (1.3.91) */
elseif ( $vAcya==="kartR" && $lakAra==="luN" && in_array($first,array("dyuta!","SvitA!","YimidA!","midA!","YizvidA!","zvidA!","svidA!","YikzvidA!","kzvidA!","ruca!","Guwa!","ruwa!","luwa!","luWa!","SuBa!","kzuBa!","RaBa!","naBa!","tuBa!","sransu!","sraMsu!","Dvansu!","DvaMsu!","Bransu!","BraMsu!","BranSu!","BraMSu!","sranBu!","sraMBu!","sramBu!","vftu!","vrDu!","SfDu!","syandU!","kfpU!","kxpU!")) )
{
$verbpada=verb_pada('1.3.91');
}
/* vRdbhyaH syasanoH (1.3.92) */
// san is pending. lRluToH syAtAsI - got the lakAras from here.
elseif ( in_array($first,array("vftu!","vrDu!","SfDu!","syandU!","kfpU!","kxpU!")) && $vAcya==="kartR" && in_array($lakAra,array("lfN","lfw")))
{
$verbpada=verb_pada('1.3.92');
}
/* luTi ca klRpaH (1.3.93) */
elseif ( in_array($first,array("kxpU!")) && $vAcya==="kartR" && in_array($lakAra,array("luw")))
{
$verbpada=verb_pada('1.3.93');
}
/* AziSi nAtha iti vAcyam (vA) */
elseif ( in_array($first,array("nATf!")) )
{
$verbpada=verb_pada('1.3.21-7');
}
/* anudAttaGita Atmanepadam (1.3.12) */
elseif ( (in_array($first,$anudAttetverbs) || in_array($first,$Gitverbs) || in_array($first,array("fta!")) ) && $pada==="pratyaya" && $lakAra!=="" && $_GET['cond49']!=="1" && scrape1($number,8,5,1)===array("A")) // the exclusion is useful for the sanAdi pratyayas e.g. paRAya has parasmai, paRa! has Atmanepadatva. See http://sanskritdocuments.org/learning_tools/ashtadhyayi/vyakhya/3/3.1.28.htm for clarification. Second addition is for RterIyaG, Atmanepada because of IyaG pratyaya.
{
$verbpada=verb_pada('1.3.12');
}
/* vibhASopapadena pratIyamAne (1.3.77) */
// This sUtra is intervowen in 1.3.72 to 1.3.76 as optional form.
/* apAdvadaH (1.3.73) */
elseif ( $first==="vada!" && $us==="apa" && $pada==="pratyaya" && $lakAra!=="")
{
$verbpada=verb_pada('1.3.73');
}
/* samudAGbhyo yamo'granthe (1.3.75) */
elseif ( $_GET['cond43']==="2" && $pada==="pratyaya" && $lakAra!=="")
{
$verbpada=verb_pada('1.3.75');
}
/* anupasargAjjJaH (1.3.76) */
elseif ( ends(array($first),array("jYA"),2) && $pada==="pratyaya" && $lakAra!=="")
{
$verbpada=verb_pada('1.3.76');
}
/* abhipratyatibhyaH kSipaH (1.3.80) */
elseif ( ends(array($first),array("kzipa!"),2) && in_array($us,array("aBi","prati","ati")) && $vAcya==="kartR")
{
$verbpada=verb_pada('1.3.80');
}
/* prAdvahaH (1.3.81) */
elseif ( ends(array($first),array("vaha!"),2) && $us==="pra" && $vAcya==="kartR")
{
$verbpada=verb_pada('1.3.81');
}
/* parermRSaH (1.3.82) */
elseif ( ends(array($first),array("mfza!"),2) && $us==="pari" && $vAcya==="kartR")
{
$verbpada=verb_pada('1.3.82');
}
/* budhayudhanazajaneGprudrusrubhyo NeH (1.3.86) */
// NeH coding pending.
elseif ( in_array($first,array("buDa!","yuDa!","naSa!","iN","pru","dru","sru")) && $vAcya==="kartR")
{
$verbpada=verb_pada('1.3.86');
}
/* na pAdamyAGyamAGyasaparimuharucinRtivadavasaH (1.3.89) */
elseif ( in_array($us.$first,array("pA","Ayama!","damu!","Ayasu!","parimuha!","ruca!","nftI!","vada!","vasa!")) && $vAcya==="kartR" && in_array($sanAdi,array("Ric","RiN")))
{
$verbpada=verb_pada('1.3.89');
}
/* vA kyaSaH (1.3.90) */
// right now very coarse way of finding out kyaS. Will have to revisit.
elseif (ends(array($first),array("Aya"),1) && $pada==="pratyaya" && $lakAra!=="")
{
$verbpada=verb_pada('1.3.90');
}
/* nigaraNacalanArthebhyazca (1.3.87) */
// NeH coding pending.
elseif ( in_array($first,array("nigF","aSa!","Buja!","cala!","cupa!","kapi!",)) && $vAcya==="kartR")
{
$verbpada=verb_pada('1.3.87');
}
/* aNAvakarmakAccittavatkartRkAt (1.3.88) */
// Pending. Ni etc are very confusing at this stage. Will think later.
// budha... is an exception to cittavat part (kAzikA)
/* In case the user has selected some gaNa, the pada has to correspond to that gaNa */
elseif($verbset!=="none")
{
$temppada = verb_padafinder($first);
if ($temppada===array("u"))
{
$verbpada=verb_pada('1.3.72');
}
elseif ($temppada===array("A"))
{
$verbpada=verb_pada('AtmanepadI');
}
elseif ($temppada===array("pa"))
{
$verbpada=verb_pada('parasmEpadI');
}
}
/* zeSAt kartari parasmaipadam (1.3.79) */
elseif ( $pada==="pratyaya" && $lakAra!=="")
{
$verbpada=verb_pada('1.3.71');
}
}
if ($debug===1) {dibug("600");}
if ($type==='subanta') { $suffix = $sup1; }
elseif ($type==='stri') { $suffix = array("su!"); }
elseif ($type==="sandhi")
{
$suffix = array($_GET['sec']);
$pada = $_GET['pada'];
}
/* Deciding suffixes based on parasmai, Atmane or ubhayapada of verbs. */
elseif ($type==='tiGanta')
{
$suffix=verb_suffixes($verbpada);
/* idAgama decision */
$temp = scrape1($first,0,2,1);
$verb_without_anubandha=$temp[0];
if (in_array($lakAra,array("lfw","lfN","luw","ASIrliN","luN","liw","ArDaDAtukalew"))) // checking whether ArdhadhAtuka lakAra or not.
{
if (anekAca($verb_without_anubandha) || $san===1 || $yaG===1 || $sanAdi==="Ric" )
{
$id_dhAtu="sew";
gui2('seTverb');
}
/* svaratisUtisUyatidhUJUdito vA (7.2.44) */
elseif (in_array($fo,array("svf","zUN","DUY")) || in_array($fo,$Uditverbs))
{
$id_dhAtu="vew";
gui2('7.2.44');
}
/* RddhanoH sye (7.2.70) */
elseif ( (ends(array($verb_without_anubandha),array("f",),1) || $fo==="hana!" && in_array($lakAra,array("lfw","lfN")) ))
{
$id_dhAtu="sew";
gui2('7.2.70');
}
/* se'sici kRtacRtacCRdatRdanRtaH (7.2.57) */
elseif (in_array($fo,array("kftI!","cfta!","Cfda!","tfda!","nfta!",)) && in_array($lakAra,array("lfw","lfN")))
{
$id_dhAtu="vew";
gui2('7.2.57');
}
/* gameriT parasmaipadeSu (7.2.58) */
elseif ( in_array($fo,array("gamx!",)) && in_array($lakAra,array("lfw","lfN")) && $verbpada==="p")
{
$id_dhAtu="sew";
gui2('7.2.58');
}
/* na vRdbhyazcaturbhyaH (7.2.59) */
elseif ( in_array($fo,array("vftu!","vfDu!","SfDu!","syandU!",)) && in_array($lakAra,array("lfw","lfN")) )
{
$verbpada="u";
$id_dhAtu="aniw";
$suffix = $tiG;
gui2('7.2.59');
}
/* tAsi ca klRpaH (7.2.60) */
// sakArAdi. tAsi done elsewhere.
elseif ( in_array($fo,array("kxpa!",)) && in_array($lakAra,array("lfw","lfN")) && $verbpada==="p")
{
$id_dhAtu="aniw";
gui2('7.2.60');
}
/* radhAdibhyazca (7.2.45) */
elseif (in_array($fo,array("raDa!","RaSa!","tfpa!","dfpa!","druha!","muha!","zRuha!","zRiha!")) )
{
$id_dhAtu="vew";
gui2('7.2.45');
}
/* niraH kuSaH (7.2.46) */
elseif (in_array($fo,array("kuza!")) && $us==="nis" )
{
$id_dhAtu="vew";
gui2('7.2.46');
}
elseif (verb_itfinder($first)===array("sew"))
{
$id_dhAtu="sew";
gui2('seTverb');
}
elseif (verb_itfinder($first)===array("aniw"))
{
$id_dhAtu="aniw";
gui2('aniTverb');
}
}
else
{
$id_dhAtu="";
}
}
if ($debug===1) {dibug("700");}
/* a for loop for entering all sup pratyayas one by one. Sambuddhi is at the last after sup. */
for ($w=0;$w<count($suffix);$w++) // running the loop till $sup1 is exhausted.
{
$second=$suffix[$w]; // defining the second word as su!, O, jas etc.
$id_original=$id_dhAtu;
$id_original_pratyaya=$id_pratyaya;
if(in_array($second,$tiG)||in_array($second,$sup))
{
$vibhakti=1;
$upasarga_joined=0;
}
/* Remembering the SLP1 input words and pratyaya. */
$fo = $first; // remembering the original prakRti. Sometimes we need to know what was the original prakRti.
$so = $second; ; // remembering the original pratyayas. Sometimes we need to know what was the original pratyaya.
/* displaying the data back to the user */
suffix_display();
/* for sambodhana, sambuddhi decision */
if ($w>20)
{
if ($w===21)
{
$sambuddhi=1; // 0 - no sambuddhi. 1 - sambuddhi.
}
else
{
$sambuddhi=0;
}
}
else
{
$sambuddhi=0;
}
/* for sambodhana, sambuddhi display */
if ($sambuddhi===1)
{
gui($text,'sambuddhi','red',0);
}
/* preprocessing for the sup pratyayas. */
// Joining the two input words
if ($second === "") // if there is no pratyaya. This doesn't happen in subanta / tiGanta generation. But kept it for other uses.
{
$input = ltrim(chop($first));
}
elseif ($first === "") // if there is no prakRti. This doesn't happen in subanta / tiGanta generation. But kept it for other uses, like sandhi etc.
{
$input = ltrim(chop($second));
}
else // this option is used for subanta / tiGanta generation. $input is 'prakRti'+'pratyaya'.
{
$input = ltrim(chop($first."+".$sanAdi."+".$second));
$input = str_replace("++","+",$input); // If $sanAdi is "", there would be two +s consecutively. To overcome this hurdle, this patch is created.
}
/* main coding part starts from here. Based on Siddhantakaumudi text. */
/* Defining an array $text. */
//Here we will store the output after the process of sUtras. The first member is $input.
// The reason behind creating an array and not keeping it a string is - sometimes the sUtras give 2 / more optional outputs. In that case, it is impossible to manage the string.
// Right now what will happen is that 1 member -> 2 members by some sUtra. For next sUtra, we will take these two members one by one and store their results in $text itself.
$text = array();
$text[] = $input; // Defining first member of the array as $input (combined words first and second)
/* special error message for vaca! dhAtu pra.pu.ba.va. */
if ($so==="Ji" && $verbset==="adAdi" && in_array($fo,array("vaca!")) )
{
storedata('~1','red',0);
}
/* na vRdbhyazcaturbhyaH (7.2.59) */
if ( in_array($fo,array("vftu!","vfDu!","SfDu!","syandU!",)) && in_array($lakAra,array("lfw","lfN")) && in_array($so,$taG))
{
$verbpada="A";
$id_dhAtu="sew";
storedata('7.2.59','sa',0);
}
/* tiGzitsArvadhAtukam (3.4.113) */
// for tiG.
if (in_array($lakAra,array("law","low","laN","viDiliN","sArvaDAtukalew")) && sub(array("+"),$tiG,blank(0),0) )
{
$sarvadhatuka=1;
storedata('3.4.113','pa',0);
}
/* ArdhadhAtukaM zeSaH (3.4.114) */
if ( in_array($lakAra,array("lfw","lfN","luw","ASIrliN","luN","ArDaDAtukalew")) && sub(array("+"),$tiG,blank(0),0) )
{
$ardhadhatuka=1;
storedata('3.4.114','pa',0);
}
/* liT ca (3.4.115) */
if ( in_array($lakAra,array("liw")) && sub(array("+"),$tiG,blank(0),0) )
{
$ardhadhatuka=1;
storedata('3.4.115','pa',0);
}
if ($debug===1) {dibug("800");}
/* dhAtvAdeza before ArdhadhAtuka pratyayas as per sahajabodha 2 p. 62 */
if (in_array($lakAra,$ArdhadhAtuka_lakAra))
{
/* asterbhUH (2.4.52) */
if (in_array($fo,array("asa!")) && $verbset==="adAdi" )
{
$text=pr2(array("asa!"),array("+"),$tiG,array("BU"),array("+"),$tiG,$text);
storedata('2.4.52','sa',0);
}
/* bruvo vaciH (2.4.53) */
if (in_array($fo,array("brUY")))
{
$text=pr2(array("brUY"),array("+"),$tiG,array("vaca!"),array("+"),$tiG,$text);
storedata('2.4.53','sa',0);
}
/* gAG liTi (2.4.49) */
if (in_array($fo,array("iN")) && $lakAra==="liw")
{
$text=three(array("iN"),array("+"),$tiG,array("gAN"),array("+"),$tiG,0);
storedata('2.4.49','sa',0);
}
/* liDyaGozca (6.1.29) */
if (in_array($fo,array("o!pyAyI!")) && ($lakAra==="liw"||$sanAdi==="yaG"))
{
$text=three(array("o!pyAyI!"),array("+"),$tiG,array("pI"),array("+"),$tiG,0);
storedata('6.1.29','sa',0);
}
/* cAyaH kI (6.1.35) */
if (in_array($fo,array("cAyf!")) && ($lakAra==="liw"||$sanAdi==="yaG") && $veda===1)
{
$text=three(array("cAyf!"),array("+"),$tiG,array("kI"),array("+"),$tiG,0);
storedata('6.1.35','sa',0);
}
/* vibhASA zveH (6.1.30) */
if (in_array($fo,array("wuo!Svi")) && ($lakAra==="liw"||$sanAdi==="yaG"))
{
$text=three(array("wuo!Svi"),array("+"),$tiG,array("Su"),array("+"),$tiG,1);
storedata('6.1.30','sa',0);
}
/* abhyastasya ca (6.1.33) */
// Coded only for liT. Other cases if possible are pending.
if (in_array($fo,array("hveY")) && $lakAra==="liw")
{
$text=three(array("hveY"),array("+"),$tiG,array("hu"),array("+"),$tiG,0);
storedata('6.1.33','sa',0);
}
/* liTyanyatarasyAm (2.4.40) */
if (in_array($fo,array("ada!")) && $lakAra==="liw")
{
$text=three(array("ada!"),array("+"),$tiG,array("Gasx!"),array("+"),$tiG,1);
storedata('2.4.40','sa',0);
}
/* luGsanorghaslR (2.4.37) */
if (in_array($fo,array("ada!")) && ($lakAra==="luN"||$san===1) )
{
$text=pr2(array("ada!"),array("+"),$tiG,array("Gasx!"),array("+"),$tiG,$text);
storedata('2.4.37','sa',0);
$fo = "Gasx!";
$it = array_merge($it,array("x"));
}
/* vA liTi (2.4.55) */
if (in_array($fo,array("cakzi!N")) && $lakAra==="liw")
{
$text=three(array("cakzi!N"),array("+"),$tiG,array("KyA"),array("+"),$tiG,1);
storedata('2.4.55','sa',0);
}
/* cakSiGaH khyAG (2.4.54) */
elseif (in_array($fo,array("cakzi!N")))
{
$text=pr2(array("cakzi!N"),array("+"),$tiG,array("KyA"),array("+"),$tiG,$text);
storedata('2.4.54','sa',0);
}
/* valAdAvArdhadhAtuke vikalpa iSyate (vA) */
// See page 83 of SK part 2
if ($fo==="aja!" && $ardhadhatuka===1 && sub(array("vi+vI","vI"),array("+"),prat('vl'),0))
{
$text = three(array("vi+vI","vI"),array("+"),prat('vl'),array("aj","aj"),array("+"),prat('vl'),1);
// pending to refactor.
storedata('7.2.35-1','sa',0);
}
/* ajervyaghaJapoH (2.4.56) */
if (in_array($fo,array("aja!")) && !sub(array("aja!"),array("+"),array("GaY","ap"),0))
{
$text=pr2(array("aja!"),array("+"),$tiG,array("vI"),array("+"),$tiG,$text);
storedata('2.4.56','sa',0);
$id_dhAtu="aniw";
}
/* iNo gA luGi (2.4.45) */
if ( in_array($fo,array("iR")) && in_array($lakAra,array("luN")) && !in_array($sanAdi,array("Ric","RiN")))
{
$text = two(array("iR"),array("+"),array("gA"),array("+"),0);
storedata('2.4.45','sa',0);
}
/* luGi ca (2.4.43) */
if ( in_array($fo,array("hana!")) && in_array($lakAra,array("luN")) && in_array($so,$tis) && !in_array($sanAdi,array("Ric","RiN")) )
{
$text = two(array("hana!"),array("+"),array("vaDa"),array("+"),0);
storedata('2.4.43','sa',0);
$id_dhAtu='sew'; // because vaDa is anekAc.
}
/* AtmanepadeSvanyatarasyAm (2.4.44) */
if ( in_array($fo,array("hana!")) && in_array($lakAra,array("luN")) && in_array($so,$taG) )
{
$text = two(array("hana!"),array("+"),array("vaDa!"),array("+"),1);
storedata('2.4.44','sa',0);
}
/* vibhASA luGlRGoH (2.4.50) */
if ( in_array($fo,array("iN")) && in_array($lakAra,array("luN","lfN")) && $Nit===0 && $Jit===0 && !in_array($sanAdi,array("Ric","RiN")))
{
$text = two(array("iN"),array("+"),array("gAN"),array("+"),1);
storedata('2.4.50','sa',0);
}
}
if ($debug===1) {dibug("900");}
/* atideza sUtras for GidvadbhAva before ArdhadhAtuka. sahajabodha 2 p. 40 */
if (in_array($lakAra,$ArdhadhAtuka_lakAra))
{
/* gAGkuTAdibhyo'JNinGit (1.2.1) */
if ( in_array($fo,array("iN")) && sub(array("gAN"),array("+"),blank(0),0) && in_array($lakAra,$ArdhadhAtuka_lakAra) && $Nit===0 && $Jit===0)
{
$itpratyaya=array_merge($itpratyaya,array("N"));
$it=array_merge($it,array("N"));
storedata('1.2.1','pa',0);
}
/* gAGkuTAdibhyo'JNinGit (1.2.1) */
if ( ((in_array($fo,$tudAdi_kuTAdi) && ($verbset==="tudAdi" || $verbset==="none" )) || in_array($fo,array("gAN")) ) && in_array($lakAra,$ArdhadhAtuka_lakAra) && $Nit===0 && $Jit===0)
{
$itpratyaya=array_merge($itpratyaya,array("N"));
$it=array_merge($it,array("N"));
storedata('1.2.1','pa',0);
}
/* vyaceH kuTAditvamanasIti vaktavyam (vA) */
if ( in_array($fo,array("vyaca!")) && !sub(array("vyaca!"),array("+"),array("as"),0) && in_array($lakAra,$ArdhadhAtuka_lakAra) && $Nit===0 && $Jit===0)
{
$itpratyaya=array_merge($itpratyaya,array("N"));
$it=array_merge($it,array("N"));
storedata('6.1.17-4','pa',0);
}
/* vija iT (1.2.2) */
if ( in_array($fo,array("o!vijI!")) && $ardhadhatuka===1 && in_array($lakAra,$ArdhadhAtuka_lakAra) && $id_dhAtu==="sew" && $id_pratyaya==="sew" && $verbset==="tudAdi")
{
$itpratyaya=array_merge($itpratyaya,array("N"));
$it=array_merge($it,array("N"));
storedata('1.2.2','pa',0);
$vijait=1;
} else {$vijait=0; }
}
/* defining the sUtras mandating sanAdis */
/* guptijkidbhyaH san (3.1.5) */
if ( $_GET['cond47']==="1" )