'الفيزياء (Physics 10)', 'semesters' => [ 'semester_1' => [ 'name' => 'الفصل الدراسي الأول', 'units' => [ 'unit_01' => [ 'name' => 'الوحدة الأولى: المتجهات (Vectors) — (الصفحات 5 - 33)', 'lessons' => [] ], 'unit_02' => [ 'name' => 'الوحدة الثانية: الحركة والقوة (Motion and Forces) — (الصفحات 33 - 85)', 'lessons' => [] ] ], 'resources' => [ 'textbooks' => [ 'name' => 'الكتب المقررة', 'items' => [ ['title' => 'كتاب الفيزياء - الطالب (85 صفحة)', 'file' => 'grade_10/physics_10/semester_1/physics_student_book.pdf'], ['title' => 'كتاب التجارب والأنشطة العلمية (33 صفحة)', 'file' => 'grade_10/physics_10/semester_1/physics_activities_book.pdf'] ] ], 'worksheets' => [ 'name' => 'أوراق عمل وتجارب', 'items' => [] ] ] ] ] ]; } } file_put_contents($manifestFile, json_encode($tree, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)); echo "SUCCESS! Normalized manifest with English (اللغة الإنجليزية), Math (الرياضيات), and Physics (الفيزياء)!\n";