-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathintrpret.cpp
1489 lines (1351 loc) · 53 KB
/
intrpret.cpp
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
/*
** Astrolog (Version 7.70) File: intrpret.cpp
**
** IMPORTANT NOTICE: Astrolog and all chart display routines and anything
** not enumerated below used in this program are Copyright (C) 1991-2024 by
** Walter D. Pullen ([email protected], http://www.astrolog.org/astrolog.htm).
** Permission is granted to freely use, modify, and distribute these
** routines provided these credits and notices remain unmodified with any
** altered or distributed versions of the program.
**
** The main ephemeris databases and calculation routines are from the
** library SWISS EPHEMERIS and are programmed and copyright 1997-2008 by
** Astrodienst AG. Use of that source code is subject to license for Swiss
** Ephemeris Free Edition at https://www.astro.com/swisseph/swephinfo_e.htm.
** This copyright notice must not be changed or removed by any user of this
** program.
**
** Additional ephemeris databases and formulas are from the calculation
** routines in the program PLACALC and are programmed and Copyright (C)
** 1989,1991,1993 by Astrodienst AG and Alois Treindl ([email protected]). The
** use of that source code is subject to regulations made by Astrodienst
** Zurich, and the code is not in the public domain. This copyright notice
** must not be changed or removed by any user of this program.
**
** The original planetary calculation routines used in this program have
** been copyrighted and the initial core of this program was mostly a
** conversion to C of the routines created by James Neely as listed in
** 'Manual of Computer Programming for Astrologers', by Michael Erlewine,
** available from Matrix Software.
**
** Atlas composed using data from https://www.geonames.org/ licensed under a
** Creative Commons Attribution 4.0 License. Time zone changes composed using
** public domain TZ database: https://data.iana.org/time-zones/tz-link.html
**
** The PostScript code within the core graphics routines are programmed
** and Copyright (C) 1992-1993 by Brian D. Willoughby ([email protected]).
**
** More formally: This program is free software; you can redistribute it
** and/or modify it under the terms of the GNU General Public License as
** published by the Free Software Foundation; either version 2 of the
** License, or (at your option) any later version. This program is
** distributed in the hope that it will be useful and inspiring, but
** WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** General Public License for more details, a copy of which is in the
** LICENSE.HTM file included with Astrolog, and at http://www.gnu.org
**
** Initial programming 8/28-30/1991.
** X Window graphics initially programmed 10/23-29/1991.
** PostScript graphics initially programmed 11/29-30/1992.
** Last code change made 4/22/2024.
*/
#include "astrolog.h"
#ifdef INTERPRET
/*
******************************************************************************
** Interpretation Routines.
******************************************************************************
*/
// This function is used by the interpretation routines to print out lines of
// text with newlines inserted just before the end of screen is reached.
void FieldWord(CONST char *sz)
{
static char line[cchSzMax];
static int cursor = 0;
int ich = 0, i, j;
char ch;
// Display buffer if function called with a null string.
if (sz == NULL)
sz = "\n";
else if (cursor > 0)
line[cursor++] = ' ';
loop {
ch = sz[ich];
if (ch == chNull)
break;
if (ch == '\n') {
line[cursor] = 0;
PrintSz(line); PrintL();
cursor = 0;
ich++;
continue;
}
line[cursor] = ch;
// When buffer overflows 'n' columns, display one line and start over.
if (cursor >= us.nScreenWidth-1) {
for (i = us.nScreenWidth-1; i > 2 && line[i] != ' '; i--)
;
if (i <= 2)
i = us.nScreenWidth-1;
line[i] = 0;
PrintSz(line); PrintL();
line[0] = line[1] = ' ';
for (j = 2; (line[j] = line[j+i-1]) != 0; j++)
;
cursor -= (i-1);
}
ich++, cursor++;
}
}
// Display a general interpretation of what each sign of the zodiac, house,
// and planet or object means. This is called to do the -HI switch table.
void InterpretGeneral(void)
{
char sz[cchSzMax];
int i, j;
FieldWord(
"Signs of the zodiac represent psychological characteristics.\n\n");
for (i = 1; i <= cSign; i++) {
AnsiColor(kSignA(i));
sprintf(sz, "%s is", szSignName[i]); FieldWord(sz);
sprintf(sz, "%s, and", szDesc[i]); FieldWord(sz);
sprintf(sz, "%s.\n", szDesire[i]); FieldWord(sz);
}
AnsiColor(kDefault);
PrintL();
FieldWord("Houses represent different areas within one's life.\n\n");
for (i = 1; i <= cSign; i++) {
AnsiColor(kSignA(i));
sprintf(sz, "The %d%s House is the area of life dealing with",
i, szSuffix[i]); FieldWord(sz);
sprintf(sz, "%s.\n", szLifeArea[i]); FieldWord(sz);
}
AnsiColor(kDefault);
PrintL();
FieldWord("Planets represent various parts of one's mind or self.\n\n");
for (j = 0; j <= is.nObj; j++) {
i = rgobjList[j];
if (ignore[i] || FCusp(i) || !FInterpretObj(i))
continue;
AnsiColor(kObjA[i]);
if (i <= oMoo || (FBetween(i, oNod, oCore) && i != oLil))
FieldWord("The");
sprintf(sz, "%s%s%s represents one's", i == oFor ? "Part of " : "",
szObjDisp[i], i == oPal ? " Athena" : ""); FieldWord(sz);
sprintf(sz, "%s.\n", szMindPart[i]); FieldWord(sz);
}
AnsiColor(kDefault);
}
// Display a general interpretation of what each aspect type means. This
// is called when printing the interpretation table in the -HI switch.
void InterpretAspectGeneral(void)
{
char sz[cchSzMax];
int i;
PrintL();
FieldWord("Aspects are different relationships between planets.\n\n");
for (i = 1; i <= us.nAsp; i++) {
if (!FInterpretAsp(i))
continue;
AnsiColor(kAspA[i]);
sprintf(sz, "When planets are %s, one", szAspectName[i]);
FieldWord(sz); sprintf(sz, szInteract[i], ""); FieldWord(sz);
FieldWord("another.");
if (szTherefore[i][0]) {
sprintf(sz, "%s.", szTherefore[i]); FieldWord(sz);
}
FieldWord(NULL);
}
return;
}
// Print the interpretation of each planet in sign and house, as specified
// with the -I switch. This is basically array accessing combining the
// meanings of each planet, sign, and house, and a couple of other things.
void InterpretLocation(void)
{
char sz[cchSzMax], ch;
int i, j;
PrintL();
for (i = 0; i <= is.nObj; i++) {
if (ignore[i] || !FInterpretObj(i))
continue;
AnsiColor(kObjA[i]);
j = SFromZ(planet[i]); ch = *Dignify(i, j);
sprintf(sz, "%s%s%s%s in %s", ret[i] < 0.0 ? "Retrograde " : "",
i == oFor && szObjDisp[i] == szObjName[i] ? "Part of " : "",
szObjDisp[i],
i == oPal && szObjDisp[i] == szObjName[i] ? " Athena" : "",
szSignName[j]);
FieldWord(sz);
sprintf(sz, "and %d%s House:", inhouse[i], szSuffix[inhouse[i]]);
FieldWord(sz);
sprintf(sz, "%s's", szPerson); FieldWord(sz);
#ifdef EXPRESS
// Prepend interpretation text if AstroExpression set to do so.
if (!us.fExpOff && FSzSet(us.szExpIntV)) {
ExpSetN(iLetterZ, i);
if (!NParseExpression(us.szExpIntV))
goto LAfter;
}
#endif
FieldWord(szMindPart[i]); FieldWord("is");
// First 10 degrees or decan of sign is more emphasized by that sign.
if (((int)planet[i]) % 30 < 10)
FieldWord("very");
sprintf(sz, "%s, and", szDesc[j]); FieldWord(sz);
sprintf(sz, "%s.", szDesire[j]); FieldWord(sz);
FieldWord("Most often this manifests");
if (ret[i] < 0.0 && i != oNod && i != oSou)
FieldWord("in an independent, backward, introverted manner, and");
FieldWord("in the area of life dealing with");
sprintf(sz, "%s.", szLifeArea[inhouse[i]]); FieldWord(sz);
// Extra information if planet is in its ruling, exalting, etc, sign.
if (ch == 'R')
FieldWord("This is a major part of their psyche!");
else if (ch == 'd')
FieldWord("This bit plays only a minor part in their psyche.");
else if (ch == 'X')
FieldWord("It is easy for them to express this part of themselves.");
else if (ch == 'f')
FieldWord(
"It is difficult for them to express this part of themselves.");
else if (ch == 'S')
FieldWord("This is significant on an esoteric soul level!");
else if (ch == 's')
FieldWord("This is less significant on an esoteric soul level.");
else if (ch == 'H')
FieldWord("This is significant on a spiritual planetary level!");
else if (ch == 'h')
FieldWord("This is less significant on a spiritual planetary level.");
else if (ch == 'Y' || ch == 'z') {
sprintf(sz, "This expresses Ray %d energy %sly%c", rgObjRay[i],
ch == 'Y' ? "strong" : "weak", ch == 'Y' ? '!' : '.');
FieldWord(sz);
}
#ifdef EXPRESS
LAfter:
// Append interpretation text if AstroExpression set to do so.
if (!us.fExpOff && FSzSet(us.szExpIntV2)) {
ExpSetN(iLetterZ, i);
ParseExpression(us.szExpIntV2);
}
#endif
FieldWord(NULL);
}
}
// Print an interpretation for a particular aspect in effect in a chart.
void InterpretAspectCore(int x, int asp, int y, int nOrb)
{
char sz[cchSzMax];
if (!FInterpretAsp(asp) || !FInterpretObj(x) || !FInterpretObj(y))
return;
AnsiColor(kAspA[asp]);
sprintf(sz, "%s %s %s: %s's",
szObjDisp[x], SzAspect(asp), szObjDisp[y], szPerson);
#ifdef EXPRESS
// Prepend interpretation text if AstroExpression set to do so.
if (!us.fExpOff && FSzSet(us.szExpIntA)) {
ExpSetN(iLetterX, x);
ExpSetN(iLetterY, asp);
ExpSetN(iLetterZ, y);
if (!NParseExpression(us.szExpIntA))
goto LAfter;
}
#endif
FieldWord(sz); FieldWord(szMindPart[x]);
sprintf(sz, szInteract[asp], szModify[Min(nOrb, 2)][asp-1]);
FieldWord(sz);
sprintf(sz, "their %s.", szMindPart[y]); FieldWord(sz);
if (szTherefore[asp][0]) {
sprintf(sz, "%s.", szTherefore[asp]); FieldWord(sz);
}
#ifdef EXPRESS
LAfter:
// Append interpretation text if AstroExpression set to do so.
if (!us.fExpOff && FSzSet(us.szExpIntA2)) {
ExpSetN(iLetterX, x);
ExpSetN(iLetterY, asp);
ExpSetN(iLetterZ, y);
ParseExpression(us.szExpIntA2);
}
#endif
FieldWord(NULL);
}
// Like InterpretAspectCore() but get data from the aspect grid. This is
// called from the InterpretGrid() and ChartAspect() routines.
void InterpretAspect(int x, int y)
{
int nOrb;
nOrb = NAbs((int)(grid->v[x][y]*3600.0)) / (150*60);
InterpretAspectCore(x, grid->n[x][y], y, nOrb);
}
// Print the interpretation of each aspect in the aspect grid, as specified
// with the -g -I switch. Again, this is done by basically array accessing of
// the meanings of the two planets in aspect and of the aspect itself.
void InterpretGrid(void)
{
int i, j;
for (i = 0; i < is.nObj; i++) if (!ignore[i])
for (j = i+1; j <= is.nObj; j++) if (!ignore[j])
InterpretAspect(i, j);
AnsiColor(kDefault);
}
// Print an interpretation for a particular midpoint in effect in a chart.
// This is called from the ChartMidpoint() routine.
void InterpretMidpoint(int x, int y)
{
char sz[cchSzMax];
int n, i;
real rDir;
if (!FInterpretObj(x) || !FInterpretObj(y))
return;
n = grid->n[y][x];
AnsiColor(kSignA(n));
sprintf(sz, "%s midpoint %s in %s: The merging of %s's",
szObjDisp[x], szObjDisp[y], szSignName[n], szPerson0);
FieldWord(sz); FieldWord(szMindPart[x]);
FieldWord("with their"); FieldWord(szMindPart[y]);
FieldWord("is");
// First 10 degrees or decan of sign is more emphasized by that sign.
if (grid->v[y][x] < 10.0)
FieldWord("very");
sprintf(sz, "%s, and", szDesc[n]); FieldWord(sz);
sprintf(sz, "%s.", szDesire[n]); FieldWord(sz);
FieldWord("Most often this manifests in");
rDir = 0.0;
// Nodes are always retrograde, so that shouldn't contribute to text.
if (!FBetween(x, oNod, oSou))
rDir += ret[x];
if (!FBetween(y, oNod, oSou))
rDir += ret[y];
if (rDir < 0.0)
FieldWord("an independent, backward, introverted manner, and");
FieldWord("the area of life dealing with");
i = NHousePlaceIn2D(ZFromS(n) + grid->v[y][x]);
sprintf(sz, "%s.", szLifeArea[i]); FieldWord(sz);
FieldWord(NULL);
}
// This is a subprocedure of ChartInDaySearch(). Print the interpretation for
// a particular instance of the various exciting events that can happen.
void InterpretInDay(int source, int aspect, int dest)
{
char sz[cchSzMax];
// Interpret object changing direction.
if (aspect == aDir && FInterpretObj(source)) {
AnsiColor(kObjA[source]);
FieldWord("Energy representing"); FieldWord(szMindPart[source]);
FieldWord("will tend to manifest in");
FieldWord(dest ? "an independent, backward, introverted" :
"the standard, direct, open");
FieldWord("manner.\n");
// Interpret object entering new sign.
} else if (aspect == aSig) {
AnsiColor(kObjA[source]);
FieldWord("Energy representing"); FieldWord(szMindPart[source]);
sprintf(sz, "will be %s,", szDesc[dest]);
FieldWord(sz);
sprintf(sz, "and it %s.\n", szDesire[dest]); FieldWord(sz);
// Interpret aspect between transiting planets.
} else if (FInterpretAsp(aspect) &&
FInterpretObj(source) && FInterpretObj(dest)) {
AnsiColor(kAspA[aspect]);
FieldWord("Energy representing"); FieldWord(szMindPart[source]);
sprintf(sz, szInteract[aspect], szModify[1][aspect-1]);
FieldWord(sz);
sprintf(sz, "energies of %s.", szMindPart[dest]); FieldWord(sz);
if (szTherefore[aspect][0]) {
if (aspect > aCon) {
sprintf(sz, "%s.", szTherefore[aspect]); FieldWord(sz);
} else
FieldWord("They will affect each other prominently.");
}
FieldWord(NULL);
}
}
// This is called from ChartTransitSearch() and ChartTransitInfluence(). Print
// the interpretation for a particular transit of a planet making an aspect to
// a natal object of a chart.
void InterpretTransit(int source, int aspect, int dest)
{
char sz[cchSzMax];
// Interpret transiting planet forming aspect.
if (FInterpretObj(source) && FInterpretAsp(aspect) && FInterpretObj(dest)) {
AnsiColor(kAspA[aspect]);
FieldWord("Energy representing"); FieldWord(szMindPart[source]);
sprintf(sz, szInteract[aspect], szModify[1][aspect-1]);
FieldWord(sz);
if (source != dest) {
sprintf(sz, "%s's %s.", szPerson0, szMindPart[dest]);
} else {
sprintf(sz, "the same area inside %s's makeup.", szPerson0);
}
FieldWord(sz);
if (szTherefore[aspect][0]) {
if (aspect > aCon) {
sprintf(sz, "%s.", szTherefore[aspect]); FieldWord(sz);
} else
FieldWord("This part of their psyche will be strongly influenced.");
}
FieldWord(NULL);
// Interpret transiting planet changing 3D house.
} else if (aspect == aHou && FInterpretObj(source)) {
AnsiColor(kSignA(dest));
FieldWord("Energy representing"); FieldWord(szMindPart[source]);
sprintf(sz, "is now affecting %s's area of life dealing with %s.\n",
szPerson0, szLifeArea[dest]);
FieldWord(sz);
}
}
// Print the interpretation of one person's planet in another's sign and
// house, in a synastry chart as specified with the -r switch combined with
// -I. This is very similar to the interpretation of the standard -v chart in
// InterpretLocation(), but treat the chart as a relationship here.
void InterpretSynastry(void)
{
char sz[cchSzMax], c;
int i, j;
PrintL();
for (i = 0; i <= is.nObj; i++) {
if (ignore[i] || !FInterpretObj(i))
continue;
AnsiColor(kObjA[i]);
j = SFromZ(planet[i]); c = *Dignify(i, j);
sprintf(sz, "%s%s%s%s in %s,", ret[i] < 0.0 ? "Retrograde " : "",
i == oFor && szObjDisp[i] == szObjName[i] ? "Part of " : "",
szObjDisp[i],
i == oPal && szObjDisp[i] == szObjName[i] ? " Athena" : "",
szSignName[j]);
FieldWord(sz);
sprintf(sz, "in their %d%s House:", inhouse[i], szSuffix[inhouse[i]]);
FieldWord(sz);
sprintf(sz, "%s's", szPerson2); FieldWord(sz);
FieldWord(szMindPart[i]); FieldWord("is");
// First 10 degrees or decan of sign is more emphasized by that sign.
if (((int)planet[i]) % 30 < 10)
FieldWord("very");
sprintf(sz, "%s, and", szDesc[j]); FieldWord(sz);
sprintf(sz, "%s.", szDesire[j]); FieldWord(sz);
FieldWord("This");
if (ret[i] < 0.0 && !FBetween(i, oNod, oSou))
FieldWord(
"manifests in an independent, backward, introverted manner, and");
sprintf(sz, "affects %s in the area of life dealing with %s.",
szPerson1, szLifeArea[inhouse[i]]); FieldWord(sz);
// Extra information if planet is in its ruling, exalting, etc, sign.
if (c == 'R') {
sprintf(sz, "This is a major part of %s's psyche!", szPerson2);
FieldWord(sz);
} else if (c == 'd') {
sprintf(sz, "(This bit plays only a minor part in %s's psyche.)",
szPerson2);
FieldWord(sz);
} else if (c == 'X') {
sprintf(sz, "%s is affected harmoniously in this way.", szPerson1);
FieldWord(sz);
} else if (c == 'f') {
sprintf(sz, "%s is affected discordantly in this way.", szPerson1);
FieldWord(sz);
}
FieldWord(NULL);
}
}
// Print an interpretation for a particular aspect in effect in a comparison
// relationship chart. This is called from the InterpretGridRelation() and the
// ChartAspectRelation() routines.
void InterpretAspectRelation(int x, int y)
{
char sz[cchSzMax];
int asp;
asp = grid->n[y][x];
if (!FInterpretAsp(asp) || !FInterpretObj(x) || !FInterpretObj(y))
return;
AnsiColor(kAspA[asp]);
sprintf(sz, "%s %s %s: %s's",
szObjDisp[x], SzAspect(asp), szObjDisp[y], szPerson1);
FieldWord(sz); FieldWord(szMindPart[x]);
sprintf(sz, szInteract[asp],
szModify[Min(NAbs((int)(grid->v[y][x]*3600.0))/(150*60), 2)][asp-1]);
FieldWord(sz);
sprintf(sz, "%s's %s.", szPerson2, szMindPart[y]); FieldWord(sz);
if (szTherefore[asp][0]) {
if (asp != aCon) {
sprintf(sz, "%s.", szTherefore[asp]); FieldWord(sz);
} else
FieldWord("These parts affect each other prominently.");
}
FieldWord(NULL);
}
// Print the interpretation of each aspect in the relationship aspect grid, as
// specified with the -r0 -g -I switch combination.
void InterpretGridRelation(void)
{
int i, j;
for (i = 0; i <= is.nObj; i++) if (!ignore[i])
for (j = 0; j <= is.nObj; j++) if (!ignore[j])
InterpretAspectRelation(i, j);
AnsiColor(kDefault);
}
// Print the interpretation of a midpoint in the relationship grid, as
// specified with the -r0 -m -I switch combination.
void InterpretMidpointRelation(int x, int y)
{
char sz[cchSzMax];
int n;
real rDir;
if (!FInterpretObj(x) || !FInterpretObj(y))
return;
n = grid->n[x][y];
AnsiColor(kSignA(n));
sprintf(sz, "%s midpoint %s in %s: The merging of %s's",
szObjDisp[x], szObjDisp[y], szSignName[n], szPerson1);
FieldWord(sz); FieldWord(szMindPart[x]);
sprintf(sz, "with %s's", szPerson2); FieldWord(sz);
FieldWord(szMindPart[y]); FieldWord("is");
// First 10 degrees or decan of sign is more emphasized by that sign.
if (grid->v[x][y] < 10.0)
FieldWord("very");
sprintf(sz, "%s, and", szDesc[n]); FieldWord(sz);
sprintf(sz, "%s.", szDesire[n]); FieldWord(sz);
rDir = 0.0;
// Nodes are always retrograde, so that shouldn't contribute to text.
if (!FBetween(x, oNod, oSou))
rDir += cp1.dir[x];
if (!FBetween(y, oNod, oSou))
rDir += cp2.dir[y];
if (rDir < 0.0)
FieldWord("Most often this manifests in "
"an independent, backward, introverted manner.");
FieldWord(NULL);
}
CONST char *szAngle[cElem] = {"project", "feel within",
"attract and receive", "be seen as"};
// Print an interpretation for a latitude crossing in effect in an astro-graph
// chart. This is called from the ChartAstroGraph() routine.
void InterpretAstroGraph(int obj1, int cusp1, int obj2, int cusp2)
{
char sz[cchSzMax];
int c1 = (cusp1 - oAsc) / 3, c2 = (cusp2 - oAsc) / 3;
if (!FInterpretObj(obj1) || !FInterpretObj(obj2))
return;
FieldWord("Near this location");
if (us.nRel >= rcNone) {
FieldWord(szPerson0);
FieldWord("can more easily");
sprintf(sz, "%s their %s, and also %s their %s.",
szAngle[c1], szMindPart[obj1], szAngle[c2], szMindPart[obj2]);
} else {
FieldWord(szPerson1);
FieldWord("can more easily");
sprintf(sz,
"%s their %s, at the same time %s can more easily %s their %s.",
szAngle[c1], szMindPart[obj1], szPerson2, szAngle[c2], szMindPart[obj2]);
}
FieldWord(sz);
FieldWord(NULL);
}
/*
******************************************************************************
** Esoteric Interpretation Routines.
******************************************************************************
*/
#define cRayArea 5
CONST char *rgEsoRayArea[cRayArea] =
{"Physical", "Astral", "Mental", "Personality", "Soul"};
CONST char *rgEsoMantra1[cSign+1] = {"",
"Let form again be sought.",
"Let struggle be undismayed.",
"Let instability do its work.",
"Let isolation be the rule and yet the crowd exists.",
"Let other forms exist, I rule.",
"Let matter reign.",
"Let choice be made.",
"Let Maya flourish and let deception rule.",
"Let food be sought.",
"Let ambition rule and let the door stand wide.",
"Let desire in form be ruler.",
"Go forth into matter."};
CONST char *rgEsoMantra2[cSign+1] = {"",
"I come forth and from the plane of mind I rule.",
"I see and when the eye is opened, all is light.",
"I see my other self, and in the waning of that self, I grow and glow.",
"I build a lighted house and therein dwell.",
"I am That, and That am I.",
"I am the mother and the child, I God, I matter am. "
"Christ in you, the hope of glory.",
"I choose the way which lies between the two great lines of force.",
"Warrior I am, and from the battle I emerge triumphant.",
"I see the goal, I reach that goal, and then I see another.",
"Lost am I in light supernal, yet on that light I turn my back.",
"Water of life am I, poured forth for thirsty men.",
"I leave the Father's house, and turning back, I save."};
CONST char *rgEsoLight[cSign+1] = {"",
"The Light of Life Itself.",
"The penetrating Light of the Path.",
"The Light of Interplay.",
"The Light within the form.",
"The Light of the Soul.",
"The blended dual Light.",
"The Light that moves to rest.",
"The Light of Day.",
"A beam of directed, focused Light.",
"The Light of Initiation.",
"The Light that shines on Earth, across the sea.",
"The Light of the World."};
CONST char *rgEsoLabor[cSign+1] = {"",
"Capture of the Man-eating Mares",
"Capture of the Cretan Bull",
"Gathering the Golden Apples of the Hesperides",
"Capture of the Doe or Hind",
"Slaying of the Nemean Lion",
"Seizing the Girdle of Hippolyte",
"Capture of the Erymanthian Boar",
"Destroying the Lernaean Hydra",
"Killing the Stymphalian Birds",
"Slaying of Cerberus, Guardian of Hades",
"Cleansing the Augean Stables",
"Capture of the Red Cattle of Geryon"};
CONST char *rgEsoLesson[cSign+1] = {"",
"Mastering the right use of the mind and life force with unselfish intent, "
"and using the will to gain control and eliminate wrong thought, speech,"
"and actions",
"Learning to intelligently express will impulsed by love, refining the "
"will to good, and achieving harmony by fostering right human "
"relationships",
"Understanding the dual aspect of the mind as it mediates between the "
"higher and lower expressions, producing changes needed for the evolving "
"consciousness",
"To develop intuition and a sensitive response to the environing conditions "
"and circumstances, and psychic development of both the lower and higher "
"senses",
"To unite the mind and heart in the will-to-illumine, and developing the "
"ability to consciously express spiritual will, purpose and intent",
"Learning to nurture intelligence, wisdom, and pure reason, and to nurture "
"the soul, using matter (the physical body) as the guardian of the hidden "
"Christ deep within",
"To develop the right use of the mind to discriminate between the pairs of "
"opposites and find balance on the narrow razor-edged path between the "
"two",
"Learning to attack inner demons and cleanse the personality, and "
"transmuting desire into aspiration and establishing right relations with "
"the soul",
"Refocusing and reorienting the personality to a higher goal through right "
"thought, right speech and right actions, achieving one-pointed direction "
"of the soul",
"Expanding spiritual will, and identifying with the will of God and the "
"Divine Plan and using it in humility and impersonal service to all of "
"humanity",
"Awakening to group interest and individual responsibilities to group life, "
"and beginning to live a life of unselfish service to humanity",
"Learning to overcome the human and express the divine through meditation, "
"mediation, and the universal love of right relationships"};
CONST char *rgEsoHou1[cSign+1] = {"",
"Self, personality, physical body",
"Substance, resources, values",
"Integration, self-expression",
"Home, domestic relationships",
"Creativity, pleasure, children",
"Service, health",
"Relationships",
"Endings, regeneration",
"Spiritual integration, exploration",
"Career, goals",
"Friendships, teamwork",
"Dreams, fears, fantasies"};
CONST char *rgEsoHou2[cSign+1] = {"",
"fostering soul expression and control of the personality",
"fostering spiritual values and higher uses of resources",
"fostering soul expression on the higher mental planes",
"revealing past karmic ties to help determine the soul's purpose",
"fostering soul's creativity and development of spiritual will",
"fostering integration of personality and soul, and developing spiritual "
"service",
"establishing viable spiritual relationships with the soul and soul group",
"fostering transmutation of physical desires into spiritual purpose",
"fostering spiritual enlightenment, and the Ancient Wisdom",
"fostering development of spiritual responsibility, and preparation for "
"spiritual initiation",
"of group service opportunities for the good of all Humanity",
"for developing the ability to transmute fears and dispel illusion"};
CONST char *rgEsoObj[oNorm1] = {
"Spiritual duty and potential, service to humanity",
"Personality path, creative gifts, key to integrating personality and soul",
"Repositiy for the past, karmic ties to form, prison of the soul",
"Illumination of lower mind, tapping intuition, mediator between "
"personality and soul",
"Emerging love principle through the mind, right human relations, "
"resolution of polarities",
"Motivation, spiritual warrior, establishing relations between opposites",
"Beneficient method of growth, seeking greater truths",
"Opportunity through crisis, destruction of crystallized forms through "
"wise choices",
"Mediator of the soul, collective interrelatedness, intuition to "
"inspiration, leading the soul to the final path",
"Compassion and unity, unconditional love, mysticism, self-sacrifice",
"Transformation, deep inner truths, personality surrendering to the soul",
"Emotional or physical vulnerability, compassionate healer, spiritual "
"lessons, the bridge between personality and soul",
"Seasonal cycles, environmental issues, right distribution of wheat, food, "
"grains",
"Wisdom of right human relations, fighting for righteous causes",
"Protector and counselor of state, divine marriage between personality and "
"soul",
"Right ordering of domesticity and the family, right human relations "
"within the family",
"Using new experiences to achieve spiritual goals",
"Using past experience to achieve spiritual goals",
"",
"Cooperation of the soul and personality to overcome illusion",
"Completion of karmic events, more than likely from past lives",
"",
"Purpose of soul ray, point where your soul left off last life, new "
"qualities to develop",
"", "", "", "", "", "", "", "", "", "", "",
"Spiritual will, forging change and fusing new forms",
"", "", "", "", "", "", "", "",
"Health service for humanitarian reasons",
"",
"Inner conviction, striving to reach spiritual goal",
"Birth of the Christ child within",
"Path to spiritual renewal, Christ consciousness",
"", "",
"Respecting all life through right actions",
""};
// Print an Esoteric Astrology interpretation of each planet in sign (and
// house), along with Ray chart clues based on astrological influences, as
// specified with the -7 -I switches.
int InterpretEsoteric(flag fGetRays)
{
char sz[cchSzMax*2], szName[cchSzDef], *pch;
int i, j, sig, hou, ray, rays = 0;
int rgcRay[cRay+1], rgcObjRay[oVul+1][cRay+1], rgnSort[cRay+1],
rgcTot[cRayArea], *rgRules, *pcRay = rgcRay, bod, nObj, nDec, nLin, k, l;
flag fIgnore7Sav[rrMax];
for (i = 0; i < rrMax; i++) {
fIgnore7Sav[i] = ignore7[i];
ignore7[i] = fFalse;
}
// Determine Ray chart
if (!fGetRays)
PrintSz("Ray chart clues based on astrological influences only:\n");
EnsureRay();
for (bod = cRayArea-1; bod >= 0; bod--) {
ClearB((pbyte)rgcRay, sizeof(rgcRay));
ClearB((pbyte)rgcObjRay, sizeof(rgcObjRay));
for (i = 0; i <= oVul; i++) if (!ignore[i]) {
switch (bod) {
case 0: nObj = (i == oMoo ? 2 : (i == oMar || i == oEar ? 1 : 0)); break;
case 1: nObj = (i == oNep ? 2 : (i == oJup ? 1 : 0)); break;
case 2: nObj = (i == oVen ? 2 : (i == oMer ? 1 : 0)); break;
case 3: nObj = (i == oSun ? 2 : (i == oMar || i == oSat ? 1 : 0)); break;
case 4: nObj = (i == oAsc ? 2 : (i == oVul || i == oUra ? 1 : 0)); break;
}
if (nObj <= 0)
continue;
for (l = (us.fListDecan ? 3 : 0); l >= 0; l--) {
// l: 0=sign, 1=sign's decanate, 2=decanate's sign, 3=dec's decanate
nDec = (l <= 0 ? 9 : (l >= 3 ? 1 : 3));
for (k = 0; k < 6; k++) {
// k: 0=sign, 1=exo ruler of sign, 2=eso ruler of sign
// k: 3=(veiled) sign, 4=exo ruler of v.sign, 5=eso ruler of v.sign
nLin = 1;
if (k <= 0 || k == 3)
nLin *= 2;
if ((bod == 4 && k >= 3) || (bod < 4 && k < 3))
nLin *= 2;
if (k <= 0 || k == 3)
j = i;
else {
// Look at Ray of dispositor planet
rgRules = (k < 3 ? (k == 1 ? rules : rgSignEso1) :
(k == 4 ? rules2 : rgSignEso2));
sig = SFromZ(!FOdd(l) ? planet[i] : Decan(planet[i]));
j = rgRules[sig];
if (j < 0)
continue;
ray = rgObjRay[j];
if (ray > 0)
rgcObjRay[i][ray] += nObj * nLin * nDec;
}
// Look at Rays of dispositor planet's sign
if (ignore[j])
continue;
sig = SFromZ(l < 3 ? planet[j] : Decan(planet[j]));
for (ray = 1; ray <= cRay; ray++) {
j = rgSignRay2[sig][ray];
if (j > 0)
rgcObjRay[i][ray] += nObj * nLin * nDec;
}
}
}
for (ray = 1; ray <= cRay; ray++)
rgcRay[ray] += rgcObjRay[i][ray];
}
// Some Rays more probable for certain vehicles, so get additional factor.
switch (bod) {
case 0: pcRay[1] *= 2; pcRay[3] *= 5; pcRay[7] *= 6; break;
case 1: pcRay[1] *= 4; pcRay[2] *= 5; pcRay[6] *= 6; pcRay[3] /= 2; break;
case 2: pcRay[1] *= 3; pcRay[3] *= 3; pcRay[4] *= 3; pcRay[5] *= 6; break;
}
// Sort Rays by most points to least points
for (ray = 1; ray <= cRay; ray++)
rgnSort[ray] = ray;
for (ray = 2; ray <= cRay; ray++) {
j = ray-1;
while (j >= 1 &&
rgcRay[rgnSort[j]] < rgcRay[rgnSort[j+1]]) {
SwapN(rgnSort[j], rgnSort[j+1]);
j--;
}
}
rgcTot[bod] = rgnSort[1];
if (fGetRays) {
rays = rays*10 + rgnSort[1];
if (bod <= 0)
return rays;
continue;
}
// Print all seven Rays and their points for this vehicle.
AnsiColor(kRayA[rgnSort[1]]);
sprintf(sz, "%-4.4s Ray:", rgEsoRayArea[bod]); PrintSz(sz);
k = 0;
for (ray = 1; ray <= cRay; ray++)
k += rgcRay[ray];
if (k == 0)
k = 1;
for (ray = 1; ray <= cRay; ray++) {
sprintf(sz, " R%d (%2d%%)%s", rgnSort[ray], rgcRay[rgnSort[ray]] *
100 / k, ray < cRay ? "," : ""); PrintSz(sz);
}
PrintL();
}
PrintL();
#ifdef EXPRESS
// Send top Ray chart Rays to AstroExpression if one set.
if (!us.fExpOff && FSzSet(us.szExpEso)) {
for (bod = 0; bod < cRayArea; bod++)
ExpSetN(iLetterZ - cRayArea + 1 + bod, rgcTot[bod]);
ParseExpression(us.szExpEso);
}
#endif
// Interpret each planet in sign and house placement
for (i = 0; i <= is.nObj; i++) {
if (ignore[i])
continue;
AnsiColor(kObjA[i]);
sprintf(szName, "%s%s%s", i == oFor && szObjDisp[i] == szObjName[i] ?
"Part of " : "", szObjDisp[i],
i == oPal && szObjDisp[i] == szObjName[i] ? " Athena" : "");
sig = SFromZ(planet[i]);
hou = inhouse[i];
sprintf(sz, "%s in %s%s", szName, szSignName[sig],
us.fInfluenceSign ? "" : ":\n");
FieldWord(sz);
if (us.fInfluenceSign) {
sprintf(sz, "and %d%s house:\n", hou, szSuffix[hou]);
FieldWord(sz);
}
// Planet
if (i <= oNorm && *rgEsoObj[i]) {
sprintf(sz, "%s esoteric meaning: %s.\n", szName, rgEsoObj[i]);
FieldWord(sz);
}
ray = rgObjRay[i];
if (ray > 0) {
sprintf(sz, "%s is Ray %d (%s), the \"Will to %s\".\n",
szName, ray, szRayName[ray], szRayWill[ray]);
AnsiColor(kRayA[ray]); FieldWord(sz);
}
// Sign
AnsiColor(kSignA(sig));
sprintf(sz, "%s esoteric lesson: %s.\n", szSignName[sig],
rgEsoLesson[sig]);
FieldWord(sz);
sprintf(sz, "%s mundane mantram: \"%s\"\n",
szSignName[sig], rgEsoMantra1[sig]);
FieldWord(sz);
sprintf(sz, "%s esoteric mantram: \"%s\"\n",
szSignName[sig], rgEsoMantra2[sig]);
FieldWord(sz);
sprintf(sz, "%s Light is: \"%s\"\n", szSignName[sig], rgEsoLight[sig]);
FieldWord(sz);
sprintf(sz, "%s Labor of Hercules: %s.\n",
szSignName[sig], rgEsoLabor[sig]);
FieldWord(sz);
j = rules[sig];
if (j >= 0) {
sprintf(sz, "%s is exoterically ruled by %s%s%s", szSignName[sig],
j <= oMoo ? "the " : "", szObjDisp[j], rules2[sig] >= 0 ? "" : ".");
FieldWord(sz);
if (rules2[sig] >= 0) {
sprintf(sz, "and %s.", szObjDisp[rules2[sig]]);
FieldWord(sz);
}
}
j = rgSignEso1[sig];
if (j >= 0) {
sprintf(sz, "%s is esoterically ruled by %s%s%s",
szSignName[sig], j <= oMoo ? "the " : "", szObjDisp[j],
rgSignEso2[sig] >= 0 ? "" : ".");
FieldWord(sz);
if (rgSignEso2[sig] >= 0) {
sprintf(sz, "veiling %s.", szObjDisp[rgSignEso2[sig]]);
FieldWord(sz);
}
}
j = rgSignHie1[sig];
if (j >= 0 && !fIgnore7Sav[rrHie]) {
sprintf(sz, "%s is Hierarchically ruled by %s%s%s",
szSignName[sig], j <= oMoo ? "the " : "", szObjDisp[j],
rgSignHie2[sig] >= 0 ? "" : ".");
FieldWord(sz);
if (rgSignHie2[sig] >= 0) {
sprintf(sz, "veiling %s.", szObjDisp[rgSignHie2[sig]]);
FieldWord(sz);
}
}
if (rules[sig] > 0 || rgSignEso1[sig] > 0 || rgSignHie1[sig] > 0)
FieldWord(NULL);
for (j = 1; j <= cRay; j++) if (rgSignRay2[sig][j] > 0) {