uslap-query / Code_files /al_athar_s46_batch_01.py
uslap's picture
Upload folder using huggingface_hub
7cc8e29 verified
Raw
History Blame Contribute Delete
11.3 kB
"""
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.")