-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.cpp
executable file
·696 lines (628 loc) · 26.3 KB
/
data.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
/*
** Astrolog (Version 6.40) File: data.cpp
**
** IMPORTANT NOTICE: Astrolog and all chart display routines and anything
** not enumerated below used in this program are Copyright (C) 1991-2018 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. The use of that source code is subject to the license for
** Swiss Ephemeris Free Edition, available at http://www.astro.com/swisseph.
** 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.
**
** 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 7/22/2018.
*/
#include "astrolog.h"
/*
******************************************************************************
** Global Variables.
******************************************************************************
*/
#ifdef __TURBOC__
extern unsigned _stklen = 0x4000;
#endif
US us = {
/* Chart types */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* Chart suboptions */
0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0,
/* Table chart types */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* Main flags */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
#ifdef EPHEM
1,
#else
0,
#endif
0, 0, 0,
/* Main subflags */
#ifdef SWITCHES
0,
#else
1,
#endif
0, 0, 0, 0,
#ifdef PLACALC
#ifndef SWISS
1,
#else
0,
#endif
#else
0,
#endif
#ifdef EPHEM
0,
#else
1,
#endif
0, 0, 0, 0, 0, 0, 0,
/* Rare flags */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* Value settings */
0,
0,
0,
1,
0,
rcNone,
DEFAULT_SYSTEM,
DEFAULT_ASPECTS,
oEar,
0,
1.0,
0,
-1,
0,
0,
DIVISIONS,
SCREENWIDTH,
0.0,
DEFAULT_ZONE,
DEFAULT_LONG,
DEFAULT_LAT,
0.0,
"",
"",
/* Value subsettings */
0, 5, cPart, 0.0, 365.24219, 1, 1, 24, 0, 0L, oEar, oEar, 0, BIODAYS, 1};
IS is = {
fFalse, fFalse, fFalse, fFalse, fFalse, fFalse, fFalse, fFalse, fFalse,
NULL, {0,0,0,0,0,0,0,0,0}, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0.0, 0.0, 0.0,
NULL, 0.0, 0.0, 0.0, 0.0, rAxis};
CI ciCore = {11, 19, 1971, HM(11, 1), 0.0, 8.0, DEFAULT_LOC, "", ""};
CI ciMain = {-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, "", ""};
CI ciTwin = {9, 11, 1991, HMS(0, 0, 38), 0.0, 0.0, DEFAULT_LOC, "", ""};
CI ciThre = {-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, "", ""};
CI ciFour = {-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, "", ""};
CI ciTran = {1, 1, 2018, 0.0, 0.0, 0.0, 0.0, 0.0, "", ""};
CI ciSave = {7, 22, 2018, HMS(14, 0, 21), 1.0, 8.0, DEFAULT_LOC, "", ""};
CP cp0, cp1, cp2, cp3, cp4;
CONST CI *rgpci[5] = {&ciCore, &ciMain, &ciTwin, &ciThre, &ciFour};
CONST CP *rgpcp[5] = {&cp0, &cp1, &cp2, &cp3, &cp4};
/*
******************************************************************************
** Global Arrays.
******************************************************************************
*/
PT3R space[oNorm+1];
real force[objMax];
GridInfo *grid = NULL;
int starname[cStar+1], kObjA[objMax];
char *szMacro[48], *szWheel[4+1] = {"", "", "", "", ""};
/* Restriction status of each object, as specified with -R switch. */
byte ignore[objMax] = {1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Planets */
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, /* Minors */
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* Cusps */
1, 1, 1, 1, 1, 1, 1, 1, 1, /* Uranians */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* Stars */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
/* Restriction of objects when transiting, as specified with -RT switch. */
byte ignore2[objMax] = {1,
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, /* Planets */
0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, /* Minors */
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* Cusps */
1, 1, 1, 1, 1, 1, 1, 1, 1, /* Uranians */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* Stars */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
/* Restriction status of each aspect, as specified with -RA switch. */
byte ignorea[cAspect+1] = {0,
0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
byte ignorez[arMax] = {0, 0, 0, 0}; /* Restrictions for -Zd chart events. */
byte ignore7[rrMax] = {0, 1, 1, 0, 1}; /* Restrictions for rulership types. */
/* Gauquelin sector plus zones, as specified with -Yl switch. */
byte pluszone[cSector+1] = {0,
1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1,
1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1};
/*
******************************************************************************
** Global Tables.
******************************************************************************
*/
CONST char *szAppName = szAppNameCore;
CONST char *szSignName[cSign+1] = {"",
"Aries", "Taurus", "Gemini", "Cancer", "Leo", "Virgo",
"Libra", "Scorpio", "Sagittarius", "Capricorn", "Aquarius", "Pisces"};
CONST char *szSignAbbrev[cSign+1] = {"",
"Ar", "Ta", "Ge", "Cn", "Le", "Vi", "Li", "Sc", "Sg", "Cp", "Aq", "Pi"};
CONST char *szSignEnglish[cSign+1] = {"",
"Ram", "Bull", "Twins", "Crab", "Lion", "Virgin",
"Scales", "Scorpion", "Archer", "Sea Goat", "Water Bearer", "Fishes"};
CONST char *szHouseTradition[cSign+1] = {"",
"Personality", "Money", "Communication", "Home",
"Children", "Servants", "Marriage", "Death",
"Long Journeys Over Water", "Career", "Friends", "Troubles"};
CONST char *szObjName[objMax] = {
"Earth", "Sun", "Moon", "Mercury", "Venus", "Mars", /* Planets */
"Jupiter", "Saturn", "Uranus", "Neptune", "Pluto",
"Chiron", "Ceres", "Pallas", "Juno", "Vesta", /* Asteroids */
"North Node", "South Node", /* Nodes */
"Lilith", "Fortune", "Vertex", "East Point", /* Others */
"Ascendant", "2nd Cusp", "3rd Cusp", "Nadir", /* Cusps */
"5th Cusp", "6th Cusp", "Descendant", "8th Cusp",
"9th Cusp", "Midheaven", "11th Cusp", "12th Cusp",
"Vulcan", "Cupido", "Hades", "Zeus", "Kronos", /* Uranians */
"Apollon", "Admetos", "Vulkanus", "Poseidon",
"Achernar", "Polaris", "Zeta Retic.", "Pleiades", /* Stars */
"Aldebaran", "Capella", "Rigel", "Bellatrix", "Alnath",
"Orion", "Betelgeuse", "Menkalinan", "Murzim", "Canopus",
"Alhena", "Sirius", "Adara", "Wezen", "Castor",
"Procyon", "Pollux", "Suhail", "Avior", "Miaplacidus",
"Alphard", "Regulus", "Dubhe", "Acrux", "Gacrux",
"Becrux", "Alioth", "Spica", "Alkaid", "Agena",
"Arcturus", "Rigel Kent.", "Antares", "Shaula", "Sargas",
"Kaus Austr.", "Vega", "Altair", "Peacock", "Deneb",
"Alnair", "Fomalhaut", "Andromeda"};
CONST StrLook rgObjName[] = {{"Node", oNod}, {"Nod:", oNod},
{"Star", starLo}, {"Alnilam", oOri}, {"M31", oAnd}, {"", -1}};
CONST char *szObjDisp[objMax];
CONST char *szSystem[cSystem] = {
"Placidus", "Koch", "Equal (Asc)", "Campanus", "Meridian",
"Regiomontanus", "Porphyry", "Morinus", "Topocentric", "Alcabitius",
"Krusinski", "Equal (MC)", "Pullen (S.Ratio)", "Pullen (S.Delta)", "Whole",
"Vedic", "Sripati", "Horizon", "APC", "Carter P.Equ.", "Null"};
CONST StrLook rgSystem[] = {{"E-Asc", hsEqual}, {"E-MC", hsEqualMC},
{"P-SR", hsSinewaveRatio}, {"P-SD", hsSinewaveDelta},
{"Ratio", hsSinewaveRatio}, {"Delta", hsSinewaveDelta},
{"S-Ratio", hsSinewaveRatio}, {"S-Delta", hsSinewaveDelta},
{"", -1}};
CONST char *szAspectName[cAspect2+1] = {"",
"Conjunct", "Opposite", "Square", "Trine", "Sextile",
"Inconjunct", "Semisextile", "Semisquare", "Sesquiquadrate",
"Quintile", "Biquintile",
"Semiquintile", "Septile", "Novile",
"Binovile", "Biseptile", "Triseptile", "Quatronovile",
"Parallel", "Contraparallel"};
CONST StrLook rgAspectName[] = {{"Quincunx", aInc}, {"", -1}};
CONST char *szAspectDisp[cAspect2+1];
CONST char *szAspectAbbrev[cAspect2+1] = {"",
"Con", "Opp", "Squ", "Tri", "Sex",
"Inc", "SSx", "SSq", "Ses", "Qui", "BQn",
"SQn", "Sep", "Nov", "BNv", "BSp", "TSp", "QNv",
"Par", "CPr"};
CONST char *szAspectAbbrevDisp[cAspect2+1];
CONST char *szAspectGlyph[cAspect2+1] = {"",
"Circle with extending line", "Two circles joined by line",
"Quadrilateral", "Triangle", "Six pointed asterisk",
"'K' rotated right", "'K' rotated left", "Acute angle",
"Square with extending lines", "Letter 'Q'", "'+' over '-'",
"'-' over '+'", "Number '7'", "Number '9'", "'9' under Roman 'II'",
"'7' under Roman 'II'", "'7' under Roman 'III'", "'9' under Roman 'IV'",
"Parallel lines", "Crossed parallel lines"};
CONST char *szAspectGlyphDisp[cAspect2+1];
CONST char *szAspectConfig[cAspConfig] = {
"Stellium-3", "Grand Trine", "T-Square", "Yod", "Grand Cross", "Cradle",
"Stellium-4"};
CONST int rgAspConfig[cAspConfig] = {
aCon, aTri, aOpp, aInc, aSqu, aSex, aSSq};
CONST char *szElem[cElem] = {"Fire", "Earth", "Air", "Water"};
CONST char *szMode[3] = {"Cardinal", "Fixed", "Mutable"};
CONST char *szMonth[cSign+1] = {"",
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"};
CONST char *szDay[cWeek] = {"Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"};
CONST char *szZon[cZone] = {
"HST", "HT", "H", "CAT", "AHS", "HDT", "AHD", "YST", "YT", "Y", "YDT",
"PST", "PT", "P", "PDT", "PWT", "MST", "MT", "M", "MDT", "MWT",
"CST", "CT", "C", "CDT", "CWT", "EST", "ET", "E", "EDT", "EWT",
"AST", "AT", "A", "ADT", "AWT", "BST", "BT", "B", "BDT", "WAT",
"GMT", "GT", "G", "UTC", "UT", "U", "WET", "CET", "EET", "UZ3", "UZ4",
"IST", "IT", "I", "UZ5", "NST", "SST", "CCT", "JST", "JT", "J",
"SAS", "GST", "UZ1", "NZT", "ZT", "Z", "IDL", "LMT", "LT", "L"};
CONST real rZon[cZone] = {
10.30, 10.30, 10.30, 10.0, 10.0, 9.30, 9.0, 9.0, 9.0, 9.0, 8.0,
8.0, 8.0, 8.0, 7.0, 7.0, 7.0, 7.0, 7.0, 6.0, 6.0,
6.0, 6.0, 6.0, 5.0, 5.0, 5.0, 5.0, 5.0, 4.0, 4.0,
4.0, 4.0, 4.0, 3.0, 3.0, 3.0, 3.0, 3.0, 2.0, 1.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, -2.0, -4.0, -5.0,
-5.30, -5.30, -5.30, -6.0, -6.30, -7.0, -8.0, -9.0, -9.0, -9.0,
-9.30, -10.0, -11.0, -11.30, -11.30, -11.30, -12.0, zonLMT, zonLMT, zonLMT};
CONST char *szDir[4] = {"North", "East", "South", "West"};
CONST char *szSuffix[cSign+1] = {"",
"st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "th", "th"};
CONST char *szEphem[cmMax] = {
"Swiss Ephemeris 2.07.01", "Moshier Formulas", "Placalc Ephemeris",
"Matrix Formulas", "None"};
real rAspAngle[cAspect+1] = {0,
0.0, 180.0, 90.0, 120.0, 60.0, 150.0, 30.0, 45.0, 135.0, 72.0, 144.0,
36.0, rDegMax/7.0, 40.0, 80.0, 720.0/7.0, 1080.0/7.0, 160.0};
real rAspOrb[cAspect+1] = {0,
7.0, 7.0, 7.0, 7.0, 6.0, 3.0, 3.0, 3.0, 3.0, 2.0, 2.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0};
real rObjOrb[oNorm+2] = {360.0,
360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0,
360.0, 360.0, 360.0, 360.0, 360.0, 2.0, 2.0, 360.0, 360.0, 2.0,
360.0, 360.0, 360.0, 360.0, 360.0, 360.0,
360.0, 360.0, 360.0, 360.0, 360.0, 360.0,
360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0,
2.0};
real rObjAdd[oNorm+2] = {0.0,
1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0};
int ruler1[oNorm+1] = {sSag,
sLeo, sCan, sGem, sLib, sAri, sSag, sCap, sAqu, sPis, sSco,
sPis, sTau, sVir, sLib, sSco, sAqu, sLeo, sSco, sPis, sLib, sAri,
sAri, sTau, sGem, sCan, sLeo, sVir, sLib, sSco, sSag, sCap, sAqu, sPis,
sVir, sLib, sSco, sLeo, sCap, sSag, sVir, sAri, sSag};
int ruler2[oNorm+1] = {0,
0, 0, sVir, sTau, sSco, sPis, sAqu, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0};
int exalt[oNorm+1] = {sGem,
sAri, sTau, sVir, sPis, sCap, sCan, sLib, sSco, sCan, sAqu,
sCan, sCan, sCap, sLeo, sAqu, sGem, sSag, sPis, sSag, sPis, sCap,
sLeo, sVir, sLib, sSco, sSag, sCap, sAqu, sPis, sAri, sTau, sGem, sCan,
sCap, sGem, sVir, sAri, sSag, sAqu, sSco, sLeo, sPis};
/* This array is the reverse of the ruler arrays: */
/* Here, given a sign, return what planet rules it. */
int rules[cSign+1] = {0,
oMar, oVen, oMer, oMoo, oSun, oMer, oVen, oPlu, oJup, oSat, oUra, oNep};
/* Esoteric astrology */
int rgObjRay[oNorm+1] = {3,
2, 4, 4, 5, 6, 2, 3, 7, 6, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 4, 2, 3, 1, 2, 3, 4, 5, 7, 5, 6,
1, 0, 0, 0, 0, 0, 0, 0, 0};
int rgSignRay[cSign+1] = {0,
17, 4, 2, 37, 15, 26, 3, 4, 456, 137, 5, 26};
int rgSignRay2[cSign+1][cRay+1];
int rgObjEso1[oNorm+1] = {sSag,
sLeo, sVir, sAri, sGem, sSco, sAqu, sCap, sLib, sCan, sPis,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
sAri, sTau, sGem, sCan, sLeo, sVir, sLib, sSco, sSag, sCap, sAqu, sPis,
sTau, 0, 0, 0, 0, 0, 0, 0, 0};
int rgObjEso2[oNorm+1] = {0,
0, 0, 0, 0, 0, 0, 0, 0, sLeo, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
sVir, 0, 0, 0, 0, 0, 0, 0, 0};
int rgObjHie1[oNorm+1] = {sGem,
sLeo, sAqu, sSco, sCap, sSag, sVir, sLib, sAri, sCan, sPis,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
sAri, sTau, sGem, sCan, sLeo, sVir, sLib, sSco, sSag, sCap, sAqu, sPis,
sTau, 0, 0, 0, 0, 0, 0, 0, 0};
int rgObjHie2[oNorm+1] = {0,
0, 0, 0, 0, 0, 0, 0, sLeo, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
sAqu, 0, 0, 0, 0, 0, 0, 0, 0};
int rgSignEso1[cSign+1] = {0,
oMer, oVul, oVen, oNep, oSun, oMoo, oUra, oMar, oEar, oSat, oJup, oPlu};
int rgSignEso2[cSign+1] = {0,
0, 0, 0, 0, oNep, 0, 0, 0, 0, 0, 0, 0};
int rgSignHie1[cSign+1] = {0,
oUra, oVul, oEar, oNep, oSun, oJup, oSat, oMer, oMar, oVen, oMoo, oPlu};
int rgSignHie2[cSign+1] = {0,
0, 0, 0, 0, oUra, 0, 0, 0, 0, 0, oVul, 0};
int kRayA[cRay+2] = {kBlack,
kRed, kBlue, kGreen, kYellow, kOrange, kMagenta, kPurple, kWhite};
CONST char *szRayName[cRay+1] = {"",
"Will & Power", "Love & Wisdom", "Active Creative Intelligence",
"Harmony Through Conflict", "Concrete Science", "Idealism & Devotion",
"Order & Ceremonial Magic"};
CONST char *szRayWill[cRay+1] = {"",
"Initiate", "Unify", "Evolve", "Harmonize", "Act", "Cause", "Express"};
/* Colors */
CONST char *szColor[cColor+2] = {"Black",
"Maroon", "DkGreen", "Orange", "DkBlue", "Purple", "DkCyan", "LtGray",
"Gray", "Red", "Green", "Yellow", "Blue", "Magenta", "Cyan", "White",
"Element", "Ray"};
CONST char *szColorHTML[cColor] = {"Black",
"#7f0000", "#007f00", "#7f7f00", "#00007f", "Purple", "#007f7f", "#bfbfbf",
"#7f7f7f", "Red", "00ff00", "Yellow", "Blue", "Magenta", "Cyan", "White"};
int kMainA[9] = {kBlack, kWhite, kLtGray, kDkGray,
kMaroon, kDkGreen, kDkCyan, kDkBlue, kMagenta};
int kRainbowA[8] = {kWhite,
kRed, kOrange, kYellow, kGreen, kCyan, kBlue, kPurple};
int kElemA[cElem] = {kRed, kYellow, kGreen, kBlue};
int kAspA[cAspect+1] = {kWhite,
kYellow, kBlue, kRed, kGreen, kCyan,
kMagenta, kMagenta, kOrange, kOrange, kDkCyan, kDkCyan,
kDkCyan, kMaroon, kPurple, kPurple, kMaroon, kMaroon, kPurple};
int kObjU[oNorm+1] = {kYellow,
kElement, kElement, kElement, kElement, kElement,
kElement, kElement, kElement, kElement, kElement,
kMagenta, kMagenta, kMagenta, kMagenta, kMagenta,
kDkCyan, kDkCyan, kDkCyan, kDkCyan, kDkCyan, kDkCyan,
kElement, kElement, kElement, kElement, kElement, kElement,
kElement, kElement, kElement, kElement, kElement, kElement,
kPurple,
kPurple, kPurple, kPurple, kPurple, kPurple, kPurple, kPurple, kPurple};
/* Influence information used by ChartInfluence() follows. The influence of */
/* a planet in its ruling or exalting sign or house is tacked onto the last */
/* two positions of the object and house influence array, respectively. */
/* The inherent strength of each planet */
real rObjInf[oNorm1+6] = {30,
30, 25, 10, 10, 10, 10, 10, 10, 10, 10,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
20, 10, 10, 10, 10, 10, 10, 10, 10, 15, 10, 10,
3, 3, 3, 3, 3, 3, 3, 3,
2,
20, 10, 10, 10, 10};
/* The inherent strength of each house */
real rHouseInf[cSign+6] = {0,
20, 0, 0, 10, 0, 0, 5, 0, 0, 15, 0, 0,
15, 5, 5, 5, 5};
/* The inherent strength of each aspect */
real rAspInf[cAspect+1] = {0.0,
1.0, 0.8, 0.8, 0.6, 0.6, 0.4, 0.4, 0.2, 0.2,
0.2, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1};
/* The inherent strength of each planet when transiting */
real rTransitInf[oNorm1+1] = {10,
10, 4, 8, 9, 20, 30, 35, 40, 45, 50,
30, 15, 15, 15, 15, 30,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
50, 50, 50, 50, 50, 50, 50, 50,
80};
/* Informational astronomical data for planets */
CONST real rObjDist[oNorm+1] = {rEarthDist, 0.0, 0.3844,
57.91, 108.2, 227.94, 778.33, 1426.98, 2870.99, 4497.07, 5913.52,
13.670*rEarthDist, 2.767*rEarthDist, 2.770*rEarthDist, 2.669*rEarthDist,
2.361*rEarthDist, 0.3844, 0.3844, 0.3844,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.13744*rEarthDist, 40.99837*rEarthDist, 50.66744*rEarthDist,
59.21436*rEarthDist, 64.81690*rEarthDist, 70.29949*rEarthDist,
73.62765*rEarthDist, 77.25568*rEarthDist, 83.66907*rEarthDist};
CONST real rObjYear[oNorm+1] = {1.0, 0.0, 27.32166/rDayInYear,
87.969/rDayInYear, 224.701/rDayInYear, 686.98/rDayInYear, 11.8623,
29.458, 84.01, 164.79, 248.54,
51.0, 4.60, 4.61, 4.36, 3.63,
6792.45/rDayInYear, 6792.45/rDayInYear, 699.65/rDayInYear,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
18.58/rDayInYear, 94923.63/rDayInYear, 129906.79/rDayInYear,
163537.13/rDayInYear, 186804.87/rDayInYear, 210470.60/rDayInYear,
225232.03/rDayInYear, 241643.79/rDayInYear, 271464.37/rDayInYear};
CONST real rObjDiam[oVes+1] = {12756.0, 1392000.0, 3476.0,
4878.0, 12102.0, 6786.0, 142984.0, 120536.0, 51118.0, 49528.0, 2372.0,
320.0, 955.0, 538.0, 226.0, 503.0};
CONST real rObjDay[oPlu+1] = {24.0, 30.0*24.0, 27.322*24.0,
58.65*24.0, 243.01*24.0, 24.6229, 9.841, 10.233, 17.9, 19.2, 6.3872*24.0};
CONST real rObjMass[oPlu+1] = {1.0, 322946.0, 0.0123,
0.0553, 0.8149, 0.1074, 317.938, 95.181, 14.531, 17.135, 0.0022};
CONST real rObjAxis[oPlu+1] = {23.5, 0.0, 6.7,
2.0, 2.7, 25.19, 3.12, 26.73, 82.14, 29.6, 57.54};
CONST byte cSatellite[oPlu+1] = {1, 9, 0,
0, 0, 2, 16, 18, 15, 8, 1};
#ifdef ARABIC
CONST AI ai[cPart] = {
{" 02 01F ", "Fortune"},
{" 01 02F ", "Spirit"},
{" 06 S F ", "Victory"},
{" F 05F ", "Valor & Bravery"},
{" 05 03Fh", "Mind & Administrators"},
{" h02r02Fh", "Property & Goods"},
{" 06 07 h", "Siblings"},
{" j03 01Fh", "Death of Siblings"},
{" 06 07Fh", "Death of Parents"},
{" 07h02Fh", "Grandparents"},
{" 06 03Fh", "Real Estate"},
{" 07 06Fh", "Children & Life"},
{" R02 02 h", "Expected Birth"},
{" 05 03 h", "Disease & Defects (1)"},
{" 05 07 h", "Disease & Defects (2)"},
{" R07 07 h", "Captivity"},
{" 02 03 h", "Servants"},
{" h07 04 h", "Partners"},
{" h08 02 h", "Death"},
{" 05 07Fh", "Sickness & Murder"},
{" 03 07Fh", "Danger, Violence & Debt"},
{" h09r09 h", "Journeys"},
{" 105 07Fh", "Travel by Water"},
{" 03 02Fh", "Faith, Trust & Belief"},
{" 02 07Fh", "Deep Reflection"},
{" 01 07Fh", "Understanding & Wisdom"},
{" 06 01Fh", "Fame & Recognition"},
{" 02 05Fh", "Rulers & Disassociation"},
{" 07 01Fh", "Father, Fate & Karma"}, /* Combust */
{" F 07Fh", "Sudden Advancement"},
{" 01 07 h", "Celebrity of Rank"},
{" 07 05Fh", "Surgery & Accident"},
{" 04 03Fh", "Merchants & Their Work"},
{" F S Fh", "Merchandise (Exchange)"}, /* Moon */
{" 02 04Fh", "Mother"},
{" S F Fh", "Glory & Constancy"},
{" 01 F Fh", "Honorable Acquaintances"},
{" 06 F Fh", "Success"},
{" 04 F Fh", "Worldliness"},
{" 03 02 h", "Acquaintances"},
{" 03 S h", "Violence"},
{" 01 03Fh", "Liberty of Person"},
{" 04 06Fh", "Praise & Acceptance"},
{" h12r12 h", "Enmity"},
{" F S h", "Bad Luck"},
{" 05 F F ", "Debilitated Bodies"},
{" 02D F ", "Boldness & Violence"},
{" S 03F ", "Trickery & Deceit"},
{" h03 05 ", "Necessities"},
{" 03 F ", "Realization of Needs"},
{" 01 05F ", "Retribution"},
{" 06 02 ", "Children (Male)"},
{" 04 02 ", "Children (Female)"},
{" 05 04 ", "Play & Variety"}, /* Change */
{" 07 03 h", "Stability"},
{" h05 06Fh", "Speculation"},
{" 03 04Fh", "Art"},
{" h05r05 h", "Sexual Attraction"},
{" 10 04 h", "Sex Drive & Stimulation"},
{" 05 01 h", "Passion"},
{" 05 04 h", "Emotion & Affection"},
{" r08 07 h", "Most Perilous Year"},
{" h08 07 h", "Peril"},
{" 09 08 h", "Occultism"},
{" 03 01 h", "Commerce"},
{"h09h03 04 h", "Marriage Contracts"},
{" h09r09 h", "Travel by Land"},
{" 08H08 h", "Travel by Air"},
{" 30 01 02Fh", "Destiny"},
{" 30 02 01Fh", "Vocation & Status"},
{" 019 01 h", "Honor, Nobility (Day)"},
{" 033 02 h", "Honor, Nobility (Night)"},
{" 10 01 h", "Organization"},
{" 04h07 h", "Divorce"},
{" 08 01 h", "Ostracism & Loss"},
{" 02 08Fh", "Friends"},
{" 07 01 h", "Tragedy & Brethren"},
{" 02 10Fh", "Race (Consciousness)"},
{" 02D02Fh", "Bondage & Slavery"},
{" F 09 h", "Imprisonment & Sorrow"},
{" 04 08 h", "Perversion"},
{" h12 09 h", "Self-Undoing"},
{" 09 01 h", "Treachery & Entrapment"},
{"h12r12 09 h", "Bereavement"},
{" 06h12 h", "Suicide (Yang)"},
{" h08 09 h", "Suicide (Yin)"},
{" 06 09 h", "Depression"},
{" 05 09 08 h", "Assassination (Yang)"},
{" r12 09 h", "Assassination (Yin)"},
{" 09 06 ", "Cancer (Disease)"},
{" 08 07 ", "Catastrophe"},
{" 07 08 ", "Foolhardiness"},
{" 03 05 ", "Release & Luck"},
{" 06 03 ", "Benevolence & Assurance"},
{" 03 06 ", "Hope & Sensitivity"},
{" 03 07 ", "Aptness & Aloofness"},
{" 08 09 ", "Charm & Personality"},
{" 02 03F ", "Faith & Good Manners"},
{" 01 03 ", "Temperament"},
{" 04 03 ", "Security & Treasure"},
{" 08 03 ", "Originality"},
{" 03 08 ", "Eccentricity, Astrology"},
{" 09 03 ", "Divination"},
{" 03 09 ", "Intrusion"},
{" 05 06 ", "Negotiation"},
{" 06 05 ", "Discord & Controversy"},
{" 05 08 ", "Coincidence"},
{" 08 05 ", "Unpreparedness"},
{" 05 09 ", "Popularity"},
{" 09 05 ", "Misunderstanding"},
{" 04 06 ", "Sentiment & Marriage"},
{" 06 04 ", "Loneliness"},
{" 04 07 ", "Success in Investment"},
{" 07 04 ", "Frugality & Labor"},
{" 08 04 ", "Wastefulness"},
{" 04 09 ", "Vanity"},
{" 09 04 ", "Corruptness"},
{" 01 05 ", "Initiative"},
{" 05 02F ", "Memory"},
{" 04 01 ", "Love, Beauty & Peace"},
{" 01 04 ", "Disinterest & Boredom"},
{" 01 06 ", "Accomplishment"},
{" 07 02F ", "Influence"},
{" 06 01 ", "Increase & Impression"},
{" 09 07 ", "Caution"},
{" 07 09 ", "Timidity"},
{" 08 06 ", "Entertainment"},
{" 06 08 ", "Bequest"},
{" 01 09 ", "Genius"},
{" 02 09F ", "Revelation"},
{" 09 02F ", "Delusion"},
{" 08 02F ", "Misinterpretation"},
{" 01 08 ", "Intellectuality"},
{" 06 07 E", "Earth"},
{" 04 02 E", "Water"},
{" r04 03 E", "Air & Wind"},
{" 05 01 E", "Fire"},
{" 07 05FE", "Clouds"},
{" 04 02FE", "Rains"},
{" 07 03FE", "Cold"},
{" 06 01FC", "Wheat"},
{" 06 02FC", "Barley & Meats"},
{" 04 06FC", "Rice & Millet"},
{" 07 06FC", "Corn"},
{" 07 05FC", "Lentils, Iron, Pungents"},
{" 05 07FC", "Beans & Onions"},
{" 01 03FC", "Chick Peas"},
{" 04 07FC", "Sesame & Grapes"},
{" 03 04FC", "Sugar & Legumes"},
{" 01 02FC", "Honey"},
{" 02 05FC", "Oils"},
{" 04 05FC", "Nuts & Flax"},
{" 02 03FC", "Olives"},
{" 05 07FC", "Apricots & Peaches"},
{" 03 06FC", "Melons"},
{" 05 02FC", "Salt"},
{" 03 01FC", "Sweets"},
{" 07 03FC", "Astrigents & Purgatives"},
{" 04 03FC", "Silk & Cotton"},
{" 05 07FC", "Purgatives (Bitter)"},
{" 06 07FC", "Purgatives (Acid)"},
{" 30D H", "Secrets"},
{" 02 03FH", "Information True/False"},
{" F D FH", "Injury to Business"},
{" 03 07 06 H", "Freedmen & Servants"},
{" 02 07 06 H", "Employers"},
{" h07 04 H", "Marriage"},
{" 06 01 H", "Time for Action/Success"},
{" 07 01 H", "Time Occupied in Action"},
{" 07 06 01 H", "Dismissal & Resignation"},
{" 05 02 H", "Life/Death of Absentee"},
{" 05 01 H", "Lost Animal (Light)"},
{" 05 07 H", "Lost Animal (Dark)"},
{" 03 05 H", "Lawsuit"},
{"h08 05 02 H", "Decapitation"},
{" 30 07 02 H", "Torture"},
{" 02h04D H", "Lost Objects"}
};
#endif /* ARABIC */
/* data.cpp */