Iske notes de banakar achhe se aise banake samajh ana chahiye
python3 -c " import pdfplumber with pdfplumber.open('/home/daytona/workspace/att…
python3 -c " from pypdf import PdfReader reader = PdfReader('/home/daytona/works…
python3 -c " import subprocess result = subprocess.run(['ocrmypdf', '--version']…
python3 -c " import subprocess # Check available tools for cmd in ['tesseract', …
python3 << 'EOF' from pdf2image import convert_from_path import pytesseract impo…
python3 << 'EOF' from pdf2image import convert_from_path import pytesseract pdf…
mkdir -p /home/daytona/workspace/unani-notes && ls /home/daytona/workspace/unani…
~/unani-notes/create_notes.js
const {
Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
HeadingLevel, AlignmentType, BorderStyle, WidthType, ShadingType,
VerticalAlign, PageBreak, UnderlineType
} = require('docx');
const fs = require('fs');
// Color palette
const COLORS = {
darkGreen: "1B5E20",
medGreen: "2E7D32",
lightGreen: "E8F5E9",
orange: "E65100",
lightOrange: "FFF3E0",
blue: "0D47A1",
lightBlue: "E3F2FD",
purple: "4A148C",
lightPurple: "F3E5F5",
teal: "004D40",
lightTeal: "E0F2F1",
red: "B71C1C",
lightRed: "FFEBEE",
gold: "F57F17",
lightGold: "FFFDE7",
gray: "424242",
lightGray: "F5F5F5",
white: "FFFFFF",
};
function heading1(text, color) {
return new Paragraph({
children: [new TextRun({ text, bold: true, size: 36, color: color || COLORS.darkGreen, font: "Calibri" })],
heading: HeadingLevel.HEADING_1,
spacing: { before: 400, after: 200 },
shading: { type: ShadingType.CLEAR, fill: COLORS.lightGreen },
});
}
function heading2(text, color) {
return new Paragraph({
children: [new TextRun({ text, bold: true, size: 28, color: color || COLORS.medGreen, font: "Calibri" })],
heading: HeadingLevel.HEADING_2,
spacing: { before: 300, after: 150 },
});
}
function heading3(text, color) {
return new Paragraph({
children: [new TextRun({ text, bold: true, size: 24, color: color || COLORS.blue, font: "Calibri" })],
heading: HeadingLevel.HEADING_3,
spacing: { before: 200, after: 100 },
});
}
function para(text, color, bold, italic) {
return new Paragraph({
children: [new TextRun({ text, size: 22, color: color || COLORS.gray, bold: bold || false, italic: italic || false, font: "Calibri" })],
spacing: { before: 80, after: 80 },
});
}
function bullet(text, color) {
return new Paragraph({
bullet: { level: 0 },
children: [new TextRun({ text, size: 22, color: color || COLORS.gray, font: "Calibri" })],
spacing: { before: 60, after: 60 },
});
}
function subBullet(text) {
return new Paragraph({
bullet: { level: 1 },
children: [new TextRun({ text, size: 20, color: COLORS.gray, font: "Calibri" })],
spacing: { before: 40, after: 40 },
});
}
function colorBox(text, fillColor, textColor) {
return new Paragraph({
children: [new TextRun({ text, bold: true, size: 22, color: textColor || COLORS.white, font: "Calibri" })],
shading: { type: ShadingType.CLEAR, fill: fillColor },
spacing: { before: 100, after: 100 },
indent: { left: 200, right: 200 },
});
}
function divider() {
return new Paragraph({
children: [new TextRun({ text: "─".repeat(80), size: 18, color: "BDBDBD" })],
spacing: { before: 100, after: 100 },
});
}
function topicRow(num, unaniName, englishName, fillColor) {
return new TableRow({
children: [
new TableCell({
children: [new Paragraph({ children: [new TextRun({ text: num, bold: true, size: 20, color: COLORS.white, font: "Calibri" })] })],
shading: { type: ShadingType.CLEAR, fill: fillColor },
width: { size: 8, type: WidthType.PERCENTAGE },
verticalAlign: VerticalAlign.CENTER,
}),
new TableCell({
children: [new Paragraph({ children: [new TextRun({ text: unaniName, size: 20, color: COLORS.darkGreen, font: "Calibri", bold: true })] })],
shading: { type: ShadingType.CLEAR, fill: COLORS.lightGreen },
width: { size: 38, type: WidthType.PERCENTAGE },
verticalAlign: VerticalAlign.CENTER,
}),
new TableCell({
children: [new Paragraph({ children: [new TextRun({ text: englishName, size: 20, color: COLORS.blue, font: "Calibri" })] })],
shading: { type: ShadingType.CLEAR, fill: COLORS.lightBlue },
width: { size: 54, type: WidthType.PERCENTAGE },
verticalAlign: VerticalAlign.CENTER,
}),
],
});
}
function sectionTable(topics, headerColor) {
const headerRow = new TableRow({
children: [
new TableCell({
children: [new Paragraph({ children: [new TextRun({ text: "S.No", bold: true, size: 20, color: COLORS.white, font: "Calibri" })] })],
shading: { type: ShadingType.CLEAR, fill: headerColor },
width: { size: 8, type: WidthType.PERCENTAGE },
}),
new TableCell({
children: [new Paragraph({ children: [new TextRun({ text: "Unani Naam (اردو/عربی)", bold: true, size: 20, color: COLORS.white, font: "Calibri" })] })],
shading: { type: ShadingType.CLEAR, fill: headerColor },
width: { size: 38, type: WidthType.PERCENTAGE },
}),
new TableCell({
children: [new Paragraph({ children: [new TextRun({ text: "English / Medical Term", bold: true, size: 20, color: COLORS.white, font: "Calibri" })] })],
shading: { type: ShadingType.CLEAR, fill: headerColor },
width: { size: 54, type: WidthType.PERCENTAGE },
}),
],
});
const rows = topics.map((t, i) => topicRow(t[0], t[1], t[2], i % 2 === 0 ? headerColor : "546E7A"));
return new Table({
rows: [headerRow, ...rows],
width: { size: 100, type: WidthType.PERCENTAGE },
margins: { top: 60, bottom: 60, left: 100, right: 100 },
});
}
// ========== DOCUMENT CONTENT ==========
const children = [
// ---- COVER ----
new Paragraph({
children: [new TextRun({ text: "BUMS - Moalajat (Medicine)", bold: true, size: 56, color: COLORS.darkGreen, font: "Calibri" })],
alignment: AlignmentType.CENTER,
spacing: { before: 600, after: 200 },
shading: { type: ShadingType.CLEAR, fill: COLORS.lightGreen },
}),
new Paragraph({
children: [new TextRun({ text: "Paper III - Syllabus Notes", bold: true, size: 40, color: COLORS.orange, font: "Calibri" })],
alignment: AlignmentType.CENTER,
spacing: { before: 100, after: 200 },
}),
new Paragraph({
children: [new TextRun({ text: "UNIUG-MOA-III | NCISM, New Delhi", size: 24, color: COLORS.gray, font: "Calibri", italic: true })],
alignment: AlignmentType.CENTER,
spacing: { before: 0, after: 100 },
}),
colorBox("📘 Ye notes BUMS ke Moalajat Paper III ke puri syllabus par based hain. Har topic ke Unani naam aur English equivalent diye gaye hain, saath mein padhai ke tips bhi.", COLORS.teal, COLORS.white),
divider(),
// ---- INTRODUCTION ----
heading1("📋 Paper III Overview (Parichay)", COLORS.darkGreen),
para("Moalajat Paper III mein mainly digestive system, urinary system, reproductive health, infectious diseases, musculoskeletal, nervous system, respiratory aur cardiovascular diseases cover hoti hain.", COLORS.gray, false, false),
para("Har topic mein aapko seekhna hoga:", COLORS.gray, true),
bullet("Etiology (Asbab) - Bimari ke karan"),
bullet("Pathophysiology - Bimari kaise hoti hai"),
bullet("Clinical Features (Alamat) - Lakshan kya hain"),
bullet("Diagnosis (Tashkhis) - Kaise pehchante hain"),
bullet("Management (Ilaj) - Unani aur Modern dono treatment"),
divider(),
// ---- PAPER 3 SECTION ----
heading1("📗 Paper 3: Moalajat (Medicine) Paper III", COLORS.medGreen),
// Topic 32
heading2("32. Amrad-i-Mari (امراضِ مری) - Diseases of the Oesophagus", COLORS.teal),
colorBox("Marks: 30 | Lecture Hours: 3 | Non-Lecture (Theory): 1 | Non-Lecture (Practical): 3", COLORS.teal, COLORS.white),
para("Yeh topic oesophagus (food pipe) ki common bimariyon ke baare mein hai. Unani aur Modern dono perspective se padhai hoti hai.", COLORS.gray),
new Paragraph({ children: [], spacing: { before: 100 } }),
sectionTable([
["32.1", "Taqahqur-i-Mari (تقهقرِ مری)", "GERD (Gastro-Esophageal Reflux Disease)"],
["32.2", "'Usr al-Bal' (عسرالبلع)", "Dysphagia (Difficulty in swallowing)"],
["32.3", "Intibaq al-Mari (انطباقِ مری)", "Achalasia Cardia"],
["32.4", "Waram-i-Mari (ورمِ مری)", "Esophagitis (Swelling of food pipe)"],
], COLORS.teal),
new Paragraph({ children: [], spacing: { before: 150 } }),
// Topic 33
heading2("33. Amrad-i-Mi'da (امراضِ معدہ) - Diseases of the Stomach", COLORS.orange),
colorBox("Marks: - | GI System ka important topic", COLORS.orange, COLORS.white),
para("Pet (stomach) ki bimariyon ka comprehensive overview. Causes, symptoms, tests aur treatment dono Unani aur modern tarike se.", COLORS.gray),
new Paragraph({ children: [], spacing: { before: 100 } }),
sectionTable([
["33.1", "Du'f al-Hadm / Su' al-Hadm (ضعف الهضم)", "Dyspepsia / Delayed / Perverted digestion"],
["33.2", "Waram-i-Mi'da (ورمِ معدہ)", "Gastritis"],
["33.3", "Quruh-i-Mi'da wa Athna 'Ashri (قروحِ معدہ)", "Peptic Ulcer Disease (PUD)"],
["33.4", "Qay' al-Dam (قیءالدم)", "Hematemesis (Vomiting of blood)"],
["33.5", "Fuwaq / Hichki (فواق)", "Hiccup"],
["33.6", "Bulimus / Shahwa-i-Kalbiyya (بولیموس)", "Bulimia / Food aversion / Voracious appetite"],
["33.7", "Waja' al-Mi'da (وجعِ معدہ)", "Gastralgia (Stomach pain)"],
["33.8", "Du'f al-Mi'da (ضعفِ معدہ)", "Gastric debility"],
["33.9", "Nafkh-i-Mi'da (نفخِ معدہ)", "Abdominal bloating"],
["33.10", "Hurqat-i-Mi'da (حرقتِ معدہ)", "Burning sensation of stomach"],
["33.11", "Du'f wa Butlan Ishteha (ضعف الاشتہاء)", "Poor Appetite"],
["33.12", "Fasad al-Shahwa / Waham (فسادالشہوہ)", "Pica / Perversion of Appetite"],
["33.13", "Qay' / Tahawwu' / Ghathayan (قیء)", "Vomiting, Retching and Nausea"],
["33.14", "Saratan-i-Mi'da (سرطانِ معدہ)", "Carcinoma of Stomach"],
], COLORS.orange),
new Paragraph({ children: [], spacing: { before: 150 } }),
// Topic 34
heading2("34. Amrad-i-Am'a (امراضِ امعاء) - Diseases of the Intestines", COLORS.purple),
colorBox("Intestines (aanton) ki bimariyon ka broad topic", COLORS.purple, COLORS.white),
new Paragraph({ children: [], spacing: { before: 100 } }),
sectionTable([
["34.1", "Diqq al-Am'a' (دقِّ الأمعاء)", "Intestinal Tuberculosis"],
["34.2", "Iltihab al-Am'a' (التهابِ امعاء)", "Appendicitis"],
["34.3", "Quruh Iltihab Taqarruh (قروح التهابی)", "Inflammatory Bowel Disease (Crohn's + UC)"],
["34.4", "Ishal (اسہال)", "Diarrhoea"],
["34.5", "Dhsantariya (دسنتریا)", "Bloody Diarrhoea"],
["34.6", "Zahir (ظاہر)", "Dysentery"],
["34.7", "Nuqs Injidab (نقصِ انجذاب)", "Malabsorption Syndrome / Celiac Disease"],
["34.8", "Qillanj wa Ila'us (قولنج)", "Large and Small Intestinal Colic"],
["34.9", "Didan al-Am'a' (ديدانِ امعاء)", "Intestinal Worms"],
["34.10", "Qabd (قبض)", "Constipation"],
["34.11", "Bawasir (بواسیر)", "Haemorrhoids (Piles)"],
], COLORS.purple),
new Paragraph({ children: [], spacing: { before: 150 } }),
// Topic 35
heading2("35. Amrad-i-Kabid (امراضِ کبد) - Diseases of the Liver", COLORS.red),
colorBox("Liver ki bimariyan - Unani mein Kabid bahut important organ mana jata hai", COLORS.red, COLORS.white),
new Paragraph({ children: [], spacing: { before: 100 } }),
para("Note: Extract mein poori list visible nahi thi; main topics include:", COLORS.gray, true),
bullet("Waram-i-Kabid (ورمِ کبد) - Hepatitis"),
bullet("Tasammum-i-Kabid - Toxic Liver Disease"),
bullet("Tashammug-i-Kabid - Liver Cirrhosis"),
bullet("Saratan-i-Kabid - Liver Cancer"),
bullet("Yarghan (یرقان) - Jaundice"),
new Paragraph({ children: [], spacing: { before: 150 } }),
// Topic 37
heading2("37. Amrad-i-Masalik-i-Bawl (امراض مسالکِ بول) - Urinary Tract Diseases", COLORS.blue),
new Paragraph({ children: [], spacing: { before: 100 } }),
sectionTable([
["37.1", "Hurqa al-Bawl / Ta'dia al-Majarl (حرقةالبول)", "Urinary Tract Infection (UTI)"],
["37.2", "Bawl al-Dam (بولِ دم)", "Haematuria (Blood in urine)"],
["37.3", "Salas al-Bawl / Taqattur (سلسِ بول)", "Urinary Incontinence / PMD"],
["37.4", "Kathra al-Bawl / Qilla al-Bawl (کثرۃ البول)", "Polyuria / Oliguria"],
["37.5", "Waram al-Mathana (ورمِ مثانہ)", "Cystitis"],
["37.6", "Hasd wa Ramal al-Mathana (حصاۃ المثانہ)", "Vesicolithiasis (Bladder stones)"],
["37.7", "Ihtibas al-Bawl (احتباسِ بول)", "Urinary Retention"],
], COLORS.blue),
new Paragraph({ children: [], spacing: { before: 150 } }),
// Topic 38
heading2("38. Amrad-i-Aza'-i-Tanasulya Mardana (امراضِ تناسلیہ مردانہ) - Male Genital Disorders", COLORS.teal),
new Paragraph({ children: [], spacing: { before: 100 } }),
sectionTable([
["38.1", "Du'f al-Bah (ضعفِ باہ)", "Sexual Debility (Oligospermia / Oligozoospermia / Infertility)"],
["38.2", "Sur'a al-Inzal (سرعۃ الانزال)", "Premature Ejaculation"],
["38.3", "Kathra al-Ihtilam (کثرة الاحتلام)", "Excessive Nocturnal Emission"],
["38.4", "Sailan Mani wa Mazi (سیلانِ منی)", "Spermatorrhoea / Pre-ejaculate"],
["38.5", "Nuqs Na'iz (نقصِ نائظ)", "Erectile Dysfunction (ED)"],
], COLORS.teal),
new Paragraph({ children: [], spacing: { before: 150 } }),
// Topic 39
heading2("39. Amrad-i-Muta'di (امراضِ متعدی) - Infectious Diseases", COLORS.red),
colorBox("⚠️ Recent endemic/pandemic diseases bhi include kiye jayenge", COLORS.red, COLORS.white),
new Paragraph({ children: [], spacing: { before: 100 } }),
sectionTable([
["39.1", "Marad Influenza Vayirusi (انفلوئنزا)", "Influenza Virus Disease"],
["39.2", "Marad Saris (سارس)", "SARS (Severe Acute Respiratory Syndrome)"],
["39.3", "Marad Kuroina Vayirusi (کورونا)", "Coronavirus Disease (COVID-19)"],
["39.4", "Da' al-Lyptosbiriils / Humma-Q (لیپٹوسپیریسز)", "Leptospirosis / Weil's Disease / Q-Fever"],
["39.5", "Humma Mi'wiya (حمیٰ معویہ)", "Enteric Fever (Typhoid)"],
["39.6", "Humma Ajamiyya (حمیٰ عجمیہ)", "Malaria"],
["39.7", "Humma Danj (حمیٰ ڈینگی)", "Dengue Fever"],
["39.8", "Humma Chikunguunya (چکن گنیا)", "Chikungunya Fever"],
["39.9", "Kala Azar (کالا آزار)", "Leishmaniasis"],
["39.10", "Ta'un (طاعون)", "Plague"],
["39.11", "Marad Eybola Vayirusi (ایبولا)", "Ebola Virus Disease"],
["39.12", "Marad Zika Vayirusi (زیکا)", "Zika Virus Disease"],
["39.13", "Humma Maymun / KFD (حمیٰ قرد)", "Monkey Fever / Kyasanur Forest Disease"],
["39.14", "Aych-Al-Vi wa Aydz (HIV/AIDS)", "HIV and AIDS"],
["39.15", "Hayda Waba'i (ہیضہ وبائی)", "Cholera"],
["39.16", "Iltinab al-Dimagh al-Yabani-B (التهابِ دماغ)", "Japanese B Encephalitis"],
["39.17", "Da' al-Fil al-Limfawiyya (دائِ فیل)", "Lymphatic Filariasis"],
["39.18", "Taeniasis / Cysticercosis (طفیلی)", "Taeniasis, Cysticercosis, Neurocysticercosis"],
], COLORS.red),
new Paragraph({ children: [], spacing: { before: 150 } }),
// Topic 40
heading2("40. Amrad-i-Mafasil-o-Izam (امراض مفاصل و عظام) - Musculoskeletal Disorders", COLORS.gold),
new Paragraph({ children: [], spacing: { before: 100 } }),
bullet("Waja' al-Mafasil (وجعِ مفاصل) - Arthritis (Rheumatoid / Osteoarthritis)"),
bullet("Niqris (نقرس) - Gout"),
bullet("Iltihab-i-Mafasil (التهابِ مفاصل) - Inflammatory Joint Diseases"),
bullet("Da' al-Munfarid (ضعفِ عظام) - Osteoporosis"),
bullet("Waja' al-Zahar (وجعِ ظہر) - Back Pain / Disc Problems"),
bullet("Fraktchar / Toot (ٹوٹ) - Fractures"),
new Paragraph({ children: [], spacing: { before: 150 } }),
// Page break before Paper II syllabus
new Paragraph({ children: [new PageBreak()] }),
heading1("📘 Paper II (Moalajat Paper II) - Topic Overview", COLORS.blue),
para("Paper II mein yeh systems cover hote hain:", COLORS.gray, true),
new Paragraph({ children: [], spacing: { before: 100 } }),
heading3("🫁 Respiratory System (Nizam-i-Tanaffus)", COLORS.teal),
bullet("Part 1: Nazla wa Su'al (نزلہ و سعال) - Catarrh and Cough"),
bullet("Part 2: Insidad al-Ri'a (انسدادِ ریہ) - Obstructive Pulmonary Disease (COPD/Asthma)"),
bullet("Part 3: Ta'diya Nizam-i-Tanaffus (تعدیہ) - Infections of Respiratory System"),
bullet("Part 4: Tanaffusi Dastaras Sindram Had - ARDS (Acute Respiratory Distress Syndrome)"),
bullet("Part 5: Saratan Shu'ab al-Ri'a (سرطان) - Bronchial Carcinoma"),
bullet("Part 6: Da' al-Ri'a Ma'ashi - Occupational Lung Diseases"),
bullet("Part 7: Amrad-i-Janb (امراضِ جنب) - Diseases of Pleura"),
new Paragraph({ children: [], spacing: { before: 100 } }),
heading3("❤️ Cardiovascular System (Qalb wa Awa'id)", COLORS.red),
bullet("Part 1: Presenting Problems in Cardiovascular Diseases"),
bullet("Part 2: Iltihab-i-Qalb - Ischaemic Heart Disease"),
bullet("Part 3: Heart Failure & Arrhythmias"),
bullet("Part 4: Amrad-i-Samamat-i-Qalb - Diseases of Heart Valves"),
new Paragraph({ children: [], spacing: { before: 100 } }),
heading3("🧠 Nervous System (Nizam-i-A'sab)", COLORS.purple),
bullet("Part 1: Suda' (صداع) - Headache"),
bullet("Part 2: Adwa al-Jihaz al-'Asbi al-Markazi - Infections of CNS (Meningitis/Encephalitis)"),
bullet("Part 3: Idtirabat al-A'sabiyya Adliyya - Neuromuscular Disorders"),
bullet("Part 4: Idtirabat Awa'iya al-Damawiyya al-Dimaghiyya - Cerebrovascular Disorders (CVA/Stroke)"),
bullet("Part 5: Halat al-Wa'iyya al-Mutaghayyira - Altered State of Consciousness"),
bullet("Part 6: Idtirabat al-Ma'rifiyya - Cognitive Disorders (Dementia/Alzheimer)"),
bullet("Part 7: Idtirabat al-Sar' wa Haraka - Epileptic and Movement Disorders"),
new Paragraph({ children: [], spacing: { before: 100 } }),
heading3("🌡️ Hummayat (حمیات) - Fevers", COLORS.orange),
bullet("Various types of fevers in Unani classification"),
bullet("Humma Yawmiyya (یومیہ) - Ephemeral Fever"),
bullet("Humma Diqq (دق) - Hectic Fever"),
bullet("Humma Ufniya (عفونیہ) - Putrid Fever"),
new Paragraph({ children: [], spacing: { before: 100 } }),
heading3("⚗️ Metabolic / Endocrine / Psychiatric Disorders", COLORS.teal),
bullet("Amrad-i-Naqs-i-Istihala (استحالہ) - Metabolic Disorders (Diabetes, Obesity)"),
bullet("Amrad-i-Ghudud la Qanati - Endocrine Disorders (Thyroid, Adrenal)"),
bullet("Amrad-i-Nafsani (نفسانی) - Psychiatric Disorders (Depression, Anxiety, Schizophrenia)"),
new Paragraph({ children: [], spacing: { before: 200 } }),
divider(),
// ---- STUDY TIPS ----
new Paragraph({ children: [new PageBreak()] }),
heading1("💡 Padhai ke Tips (Study Tips)", COLORS.darkGreen),
colorBox("Yeh tips Unani Medicine ke exam mein achha karne ke liye hain", COLORS.medGreen, COLORS.white),
new Paragraph({ children: [], spacing: { before: 150 } }),
heading2("1. Unani Terminology Yaad Karne ka Tarika", COLORS.orange),
bullet("Har term ko 3 parts mein tod ke yaad karo: Arabic root + meaning + English equivalent"),
bullet("Example: 'Waram' = Warnum = Swelling/Inflammation → Waram-i-Mi'da = Gastritis"),
bullet("Flashcards banao: Ek side Unani naam, doosri side English term"),
bullet("Rozana 10-15 terms practice karo"),
new Paragraph({ children: [], spacing: { before: 100 } }),
heading2("2. System-wise Grouping (Systematic Approach)", COLORS.blue),
bullet("Ek system ek hafton mein complete karo"),
bullet("GI System: Topic 32-36 (Oesophagus → Stomach → Intestines → Liver → Gallbladder)"),
bullet("Urinary: Topic 37, Reproductive: Topic 38"),
bullet("Infectious: Topic 39 (sabse lamba topic - 18+ subtopics)"),
new Paragraph({ children: [], spacing: { before: 100 } }),
heading2("3. High-Yield Topics (Zaroor Padho)", COLORS.red),
colorBox("🔴 Exam Mein Zyada Aate Hain:", COLORS.red, COLORS.white),
bullet("GERD (Topic 32.1) - Bahut common clinical question"),
bullet("Peptic Ulcer Disease (Topic 33.3) - Unani ilaj ke saath"),
bullet("IBD - Crohn's + UC (Topic 34.3)"),
bullet("Malaria (Topic 39.6) - Unani mein Humma Ajamiyya"),
bullet("Dengue (Topic 39.7) - Important infectious topic"),
bullet("HIV/AIDS (Topic 39.14) - Always asked"),
bullet("UTI (Topic 37.1) - Very common"),
bullet("Erectile Dysfunction (Topic 38.5) - Unani treatment important"),
new Paragraph({ children: [], spacing: { before: 100 } }),
heading2("4. Unani vs. Modern Treatment Comparison", COLORS.teal),
para("Har bimari ke liye dono perspectives yaad karo:", COLORS.gray, true),
sectionTable([
["Concept", "Unani Term", "Modern Equivalent"],
["Hot temperament", "Mizaj Har (مزاج حار)", "Inflammatory conditions"],
["Phlegm excess", "Ghalbah Balgham (بلغم)", "Mucus / Exudate"],
["Blood purification", "Tasfiyah-i-Dam (تصفیه دم)", "Blood detoxification"],
["Purgation", "Ishal (اسہال therapeutic)", "Catharsis / Enema"],
["Emesis induction", "Qay' (قیء therapeutic)", "Emetic therapy"],
], COLORS.teal),
new Paragraph({ children: [], spacing: { before: 100 } }),
heading2("5. Question Paper Pattern", COLORS.purple),
colorBox("Paper II: 20 MCQs (1 mark each) - All Compulsory", COLORS.purple, COLORS.white),
colorBox("Paper III: Short notes + Long answers + MCQs format", COLORS.blue, COLORS.white),
new Paragraph({ children: [], spacing: { before: 100 } }),
divider(),
// ---- QUICK REFERENCE ----
heading1("📌 Quick Reference: Unani-English Glossary", COLORS.darkGreen),
para("Important common terms jo har topic mein aate hain:", COLORS.gray, true),
new Paragraph({ children: [], spacing: { before: 100 } }),
sectionTable([
["Unani Term", "English", "Hindi Matlab"],
["Waram (ورم)", "Inflammation / Swelling", "Sujan"],
["Saratan (سرطان)", "Carcinoma / Cancer", "Cancer"],
["Du'f (ضعف)", "Weakness / Debility", "Kamzori"],
["Humma (حمی)", "Fever / Pyrexia", "Bukhar"],
["Ishal (اسہال)", "Diarrhoea", "Dast"],
["Qabd (قبض)", "Constipation", "Kabz"],
["Bawl (بول)", "Urine", "Peshaab"],
["Kathra (کثرت)", "Excess / Polyuria", "Zyada"],
["Qilla (قلت)", "Deficiency / Decrease", "Kami"],
["Ihtibas (احتباس)", "Retention / Obstruction", "Rukna"],
["Waja' (وجع)", "Pain / Ache", "Dard"],
["Ta'diya (تعدیہ)", "Infection / Contagion", "Infection"],
["Amrad (امراض)", "Diseases (plural)", "Bimariyan"],
["Iltihab (التہاب)", "Inflammation", "Sujan"],
["Tashkhis (تشخیص)", "Diagnosis", "Pahchaan"],
["Ilaj (علاج)", "Treatment", "Ilaaj"],
["Muta'di (متعدی)", "Infectious / Contagious", "Choot ki bimari"],
], COLORS.darkGreen),
new Paragraph({ children: [], spacing: { before: 200 } }),
divider(),
new Paragraph({
children: [new TextRun({ text: "Notes prepared from UNIUG-MOA-III Syllabus | NCISM, New Delhi | BUMS Program", size: 18, color: COLORS.gray, italic: true, font: "Calibri" })],
alignment: AlignmentType.CENTER,
spacing: { before: 200, after: 100 },
}),
];
const doc = new Document({
sections: [{ children }],
styles: {
default: {
document: {
run: { font: "Calibri", size: 22 },
},
},
},
});
Packer.toBuffer(doc).then(buf => {
fs.writeFileSync('/home/daytona/workspace/unani-notes/Moalajat_Paper3_Notes.docx', buf);
console.log('✅ File created successfully!');
}).catch(e => {
console.error('Error:', e.message);
});
cd /home/daytona/workspace/unani-notes && node create_notes.js 2>&1
De
Stomach disease