Spaces:
Sleeping
Sleeping
| """ | |
| al-Athar al-Baqiya โ Session 46 Batch 01 | |
| BnF Arabe 1489, ms_id=6 | |
| ABJAD-ROOTED science terms ONLY. | |
| Source: table headings and labels from genuine abjad computation pages. | |
| All terms read directly from MS images โ zero weights. | |
| """ | |
| import sys, os | |
| sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | |
| import uslap_handler as h | |
| # โโ Register MS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| MS_REF = "BnF Arabe 1489 โ al-Athar al-Baqiya 'an al-Qurun al-Khaliya" | |
| MS_NOTE = ( | |
| "al-Biruni al-Khwarizmi. 175 folios, 100% Arabic, zero Persian wrapper. " | |
| "BASMALLAH + Q20:114 verified. Genuine science pages use ABJAD notation. " | |
| "~15 pages king-list interpolation + ~5 pages festival interpolation identified and excluded. " | |
| "See Documentation/ATHAR_BAQIYA_INTERPOLATION_ANALYSIS.md" | |
| ) | |
| # โโ Entries: abjad table headings/labels only โโโโโโโโโโโโโโโโโโโโโโโโ | |
| entries = [ | |
| # (en_term, aa_word, root_id, root_letters, phonetic_chain, ms_pages, qur_refs, notes) | |
| # โโ TABLE HEADINGS (ุฌุฏูู X) โโ | |
| ( | |
| "AL-JADWAL (table โ the computational grid instrument)", | |
| "ุงูุฌูุฏูููู / al-jadwal / PRESS+KNOCK+CONNECTION", | |
| "R666", "ุฌ-ุฏ-ู", "jโุฌ(S02) โ dโุฏ(S19) โ lโู(S16)", | |
| "p.131,132,135,198,210", | |
| "Q16:124,Q18:54,Q29:46", | |
| f"ุฌุฏูู = table as scientific instrument. Heading on 5 abjad tables in MS. " | |
| f"Root ุฌ-ุฏ-ู (29 Qur tokens). Letter lattice: PRESS+KNOCK+CONNECTION = structured access to data. {MS_REF}" | |
| ), | |
| ( | |
| "AL-ISTIQAMA (rectification โ astronomical correction to true position)", | |
| "ุงูุงุณูุชูููุงู ูุฉ / al-istiqama / STRIKE+ROUNDING+ENCLOSURE", | |
| "R355", "ู-ู-ู ", "qโู(S01) โ wโู(S10) โ mโู (S17)", | |
| "p.126,131", | |
| "Q41:6,Q41:30,Q46:13,Q72:16", | |
| f"ุฌุฏูู ุงูุงุณุชูุงู ุฉ = Table of Rectification (p.131, full-page abjad grid). " | |
| f"Root ู-ู-ู (660 Qur tokens). istiqama = standing straight = correcting observed to true. {MS_REF}" | |
| ), | |
| ( | |
| "AL-KAYFIYYAT (qualities โ astronomical modality classifications)", | |
| "ุงููููููููููุงุช / al-kayfiyyat / TAP+CONTRACTION+SEPARATION", | |
| "R162", "ู-ู-ู", "kโู(S20) โ yโู(S06) โ fโู(S07)", | |
| "p.132", | |
| "Q2:28,Q2:259,Q3:6,Q88:17", | |
| f"ุฌุฏูู ุงูููููุงุช = Table of Qualities (p.132, full-page abjad grid). " | |
| f"Root ู-ู-ู (83 Qur tokens). kayf = how = qualitative state of celestial configuration. {MS_REF}" | |
| ), | |
| ( | |
| "AL-TAWALI (ascendants โ rising points of celestial bodies)", | |
| "ุงูุทููููุงููุน / al-tawali' / SEAL+CONNECTION+DEPTH", | |
| "R759", "ุท-ู-ุน", "tโุท(S04) โ lโู(S16) โ 'โุน(S14)", | |
| "p.119,120", | |
| "Q6:78,Q113:1,Q97:5", | |
| f"ุงูุทูุงูุน ุงูุณุจุนุฉ = The Seven Ascendants (p.120, abjad grid). " | |
| f"Root ุท-ู-ุน (19 Qur tokens). tala'a = to rise = celestial body crossing horizon. {MS_REF}" | |
| ), | |
| # โโ CALENDAR COMPUTATION LABELS โโ | |
| ( | |
| "AL-SHUHUR (months โ lunar time divisions in computation)", | |
| "ุงูุดูููููุฑ / al-shuhur / SPREADING+BREATH+MOVEMENT", | |
| "R815", "ุด-ู-ุฑ", "shโุด(S05) โ hโู(S08) โ rโุฑ(S15)", | |
| "p.135,210", | |
| "Q2:185,Q2:194,Q9:36", | |
| f"ุฌุฏูู ุฏูุณ ุงูุดููุฑ ูู ุงูุณูุฉ (p.135) + ุฌุฏูู ุงูุดููุฑ (p.210) โ both abjad. " | |
| f"Root ุด-ู-ุฑ (21 Qur tokens). Q9:36: twelve months in Allah's decree. {MS_REF}" | |
| ), | |
| ( | |
| "AL-TAMMA (complete โ full year/month type in calendar computation)", | |
| "ุงูุชููุงู ููุฉ / al-tamma / SNAP+ENCLOSURE+ENCLOSURE", | |
| "R775", "ุช-ู -ู ", "tโุช(S23) โ mโู (S17) โ mโู (S17)", | |
| "p.135", | |
| "Q2:233,Q7:142,Q28:27", | |
| f"ุชุงู ุฉ = complete year type, column label in ุฌุฏูู ุฏูุณ ุงูุดููุฑ (p.135, abjad). " | |
| f"Root ุช-ู -ู (22 Qur tokens). tamm = to complete = full-length cycle. {MS_REF}" | |
| ), | |
| ( | |
| "AL-NAQISA (deficient โ short year/month type in calendar computation)", | |
| "ุงููููุงููุตูุฉ / al-naqisa / CONTINUATION+STRIKE+HEAVY_STREAM", | |
| "R922", "ู-ู-ุต", "nโู(S18) โ qโู(S01) โ sโุต(S13)", | |
| "p.135", | |
| "Q2:155,Q13:41,Q21:44", | |
| f"ูุงูุตุฉ = deficient year type, column label in ุฌุฏูู ุฏูุณ ุงูุดููุฑ (p.135, abjad). " | |
| f"Root ู-ู-ุต (10 Qur tokens). naqs = to diminish = shortened cycle. {MS_REF}" | |
| ), | |
| ( | |
| "AL-SALKH (end-of-month โ the month boundary in calendar tables)", | |
| "ุงูุณููููุฎ / al-salkh / FLOW+CONNECTION+PASSAGE", | |
| "R447", "ุณ-ู-ุฎ", "sโุณ(S21) โ lโู(S16) โ khโุฎ(S11)", | |
| "p.200", | |
| "Q36:37", | |
| f"ุณูุฎ = end of month, column header in conversion table (p.200, abjad). " | |
| f"Root ุณ-ู-ุฎ (3 Qur tokens). Q36:37: naslakhu minhu al-nahar. {MS_REF}" | |
| ), | |
| ( | |
| "AL-USBU (week โ seven-day cycle as computation unit)", | |
| "ุงูุฃูุณูุจููุน / al-usbu' / FLOW+CLOSURE+DEPTH", | |
| "R677", "ุณ-ุจ-ุน", "sโุณ(S21) โ bโุจ(S09) โ 'โุน(S14)", | |
| "p.210", | |
| "Q2:196,Q7:54,Q12:43,Q65:12", | |
| f"ุฃุณุจูุน = week, label in ุฌุฏูู ุงูุดููุฑ (p.210, abjad). " | |
| f"Root ุณ-ุจ-ุน (28 Qur tokens). sab' = seven = fundamental cycle unit. {MS_REF}" | |
| ), | |
| # โโ COMPUTATION FRAMEWORK TERMS โโ | |
| ( | |
| "AL-HISAB (computation โ the act of quantitative reckoning)", | |
| "ุงูุญูุณูุงุจ / al-hisab / CONSTRICTION+FLOW+CLOSURE", | |
| "R582", "ุญ-ุณ-ุจ", "hโุญ(S03) โ sโุณ(S21) โ bโุจ(S09)", | |
| "p.102,104,200,210", | |
| "Q2:202,Q3:19,Q6:62,Q13:21,Q13:41,Q14:41,Q38:26,Q40:17", | |
| f"ุญุณุงุจ = computation, methodology term across abjad table zones. " | |
| f"Root ุญ-ุณ-ุจ (109 Qur tokens). Q13:41: swift in reckoning. {MS_REF}" | |
| ), | |
| ( | |
| "AL-MIQDAR (magnitude โ the measured quantity in astronomical tables)", | |
| "ุงูู ูููุฏูุงุฑ / al-miqdar / STRIKE+KNOCK+MOVEMENT", | |
| "R194", "ู-ุฏ-ุฑ", "qโู(S01) โ dโุฏ(S19) โ rโุฑ(S15)", | |
| "p.198", | |
| "Q13:8,Q15:21,Q25:2,Q34:11,Q54:49", | |
| f"ุฌุฏูู ุฃุญูุงู ุงูู ูุฏุงุฑ = Table of States of Magnitude (p.198, abjad). " | |
| f"Root ู-ุฏ-ุฑ (132 Qur tokens). qadr = measure/decree = quantified magnitude. {MS_REF}" | |
| ), | |
| ( | |
| "AL-AHWAL (states โ computational conditions in astronomical tables)", | |
| "ุงูุฃูุญูููุงู / al-ahwal / CONSTRICTION+ROUNDING+CONNECTION", | |
| "R693", "ุญ-ู-ู", "hโุญ(S03) โ wโู(S10) โ lโู(S16)", | |
| "p.198", | |
| "Q14:27,Q82:19", | |
| f"ุฌุฏูู ุฃุญูุงู ุงูู ูุฏุงุฑ = Table of States of Magnitude (p.198, abjad). " | |
| f"Root ุญ-ู-ู (25 Qur tokens). hawl = turn/state = condition of computed variable. {MS_REF}" | |
| ), | |
| ( | |
| "AL-ADWAR (cycles โ astronomical recurrence periods)", | |
| "ุงูุฃูุฏูููุงุฑ / al-adwar / KNOCK+ROUNDING+MOVEMENT", | |
| "R594", "ุฏ-ู-ุฑ", "dโุฏ(S19) โ wโู(S10) โ rโุฑ(S15)", | |
| "p.109", | |
| "Q21:33,Q36:40", | |
| f"ุงูููู ุนูู ุงูุฃุฏูุงุฑ = Discourse on Cycles (p.109, section heading). " | |
| f"Root ุฏ-ู-ุฑ (55 Qur tokens). dawr = cycle/revolution = repeating celestial period. {MS_REF}" | |
| ), | |
| # โโ GEOMETRIC DIAGRAM TERMS โโ | |
| ( | |
| "AL-SHAKL (figure โ geometric construction for astronomical proof)", | |
| "ุงูุดููููู / al-shakl / SPREADING+TAP+CONNECTION", | |
| "R243", "ุด-ู-ู", "shโุด(S05) โ kโู(S20) โ lโู(S16)", | |
| "p.128,206,208", | |
| "Q6:99", | |
| f"ุดูู ุงูุฏุงุฆุฑุฉ = Figure of the Circle (p.206, 208 โ geometric astronomical diagrams). " | |
| f"Root ุด-ู-ู (2 Qur tokens). shakl = form/figure = geometric proof construction. {MS_REF}" | |
| ), | |
| # โโ ADDITIONAL ABJAD TABLE LABELS โโ | |
| ( | |
| "AL-ADAD (number โ the counted quantity in abjad tables)", | |
| "ุงูุนูุฏูุฏ / al-'adad / DEPTH+KNOCK+KNOCK", | |
| "R107", "ุน-ุฏ-ุฏ", "'โุน(S14) โ dโุฏ(S19) โ dโุฏ(S19)", | |
| "p.119", | |
| "Q9:36,Q10:5,Q18:11,Q72:28", | |
| f"ุนุฏุฏ = number, in table heading ุงุณู ุงุก ุงูุณููุงุช ูุนุฏุฏ ุงูุงููุฑ (p.119, abjad). " | |
| f"Root ุน-ุฏ-ุฏ (57 Qur tokens). Q9:36: the number of months with Allah is twelve. {MS_REF}" | |
| ), | |
| ( | |
| "AL-YAWM (day โ the fundamental unit of time computation)", | |
| "ุงูููููู / al-yawm / CONTRACTION+ROUNDING+ENCLOSURE", | |
| "R378", "ู-ู-ู ", "yโู(S06) โ wโู(S10) โ mโู (S17)", | |
| "p.200", | |
| "Q2:184,Q7:54,Q22:47,Q32:5,Q70:4", | |
| f"ุฃูุงู = days, column header in conversion table (p.200, abjad cells). " | |
| f"Root ู-ู-ู (475 Qur tokens). yawm = day = base temporal unit in calendar computation. {MS_REF}" | |
| ), | |
| ( | |
| "AL-TABAQA (layer โ computational level in astronomical analysis)", | |
| "ุงูุทููุจูููุฉ / al-tabaqa / SEAL+CLOSURE+STRIKE", | |
| "R295", "ุท-ุจ-ู", "tโุท(S04) โ bโุจ(S09) โ qโู(S01)", | |
| "p.110", | |
| "Q67:3,Q71:15,Q84:19", | |
| f"ุทุจูุฉ = layer/level, in multi-level computation methodology (p.110). " | |
| f"Root ุท-ุจ-ู (4 Qur tokens). Q84:19: layer upon layer. {MS_REF}" | |
| ), | |
| ( | |
| "AL-SANAWAT (years โ solar time division in calendar computation)", | |
| "ุงูุณููููููุงุช / al-sanawat / FLOW+CONTINUATION+ROUNDING", | |
| "R816", "ุณ-ู-ู", "sโุณ(S21) โ nโู(S18) โ wโู(S10)", | |
| "p.119", | |
| "Q2:259,Q10:5,Q17:12,Q18:25,Q29:14", | |
| f"ุงูุณููุงุช = years, in table heading ุงุณู ุงุก ุงูุณููุงุช (p.119, abjad). " | |
| f"Root ุณ-ู-ู (20 Qur tokens). Q10:5: to know the number of years and the reckoning. {MS_REF}" | |
| ), | |
| ] | |
| # โโ Write entries โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| written = 0 | |
| failed = 0 | |
| for en_term, aa_word, root_id, root_letters, phonetic_chain, ms_pages, qur_refs, notes in entries: | |
| try: | |
| data = { | |
| 'en_term': en_term, | |
| 'aa_word': aa_word, | |
| 'root_id': root_id, | |
| 'root_letters': root_letters, | |
| 'phonetic_chain': phonetic_chain, | |
| 'source_form': 'AA_DIRECT', | |
| 'qur_refs': qur_refs, | |
| 'notes': notes, | |
| 'foundation_refs': f"MS: {MS_REF} | Pages: {ms_pages} | Notation: ABJAD", | |
| } | |
| result = h.write_entry(data, 'WORD_EN') | |
| if result.get('success'): | |
| written += 1 | |
| print(f" OK [{result.get('id')}] {en_term[:55]}") | |
| else: | |
| failed += 1 | |
| msg = result.get('message', str(result))[:80] | |
| print(f" FAIL {en_term[:45]} โ {msg}") | |
| except Exception as e: | |
| failed += 1 | |
| print(f" ERR {en_term[:45]} โ {e}") | |
| print(f"\n{'='*60}") | |
| print(f"WRITTEN: {written} | FAILED: {failed} | TOTAL: {len(entries)}") | |
| print(f"MS: {MS_REF}") | |
| print(f"All entries from ABJAD table pages only.") | |