You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// cgpt code, this part removes the specified columns entirely
63
82
// In this modified code, you can specify the columnsToRemove array at the end of the code, allowing you to easily change which columns you want to remove without modifying the function itself. This provides more flexibility when working with different 2D arrays and column selections.
// cgpt code, this part inserts a specific value into the first column
91
114
// In this code, the insertValueInFirstColumn function uses the map method to iterate through each row of the 2D array. For each row, it adds the specified valueToInsert ('hey') to the beginning of the row, effectively inserting a new column with the same value in the first column position of each row.
92
115
@@ -101,6 +124,11 @@ $(document).ready(() => {
101
124
resultbarbahari,
102
125
"شرح السنة للبربهاري"
103
126
);
127
+
128
+
resultbarbahariDFK=insertValueInFirstColumn(
129
+
resultbarbahariDFK,
130
+
"شرح السنة للبربهاري DFK"
131
+
);
104
132
resultaqidatuRaziyain=insertValueInFirstColumn(
105
133
resultaqidatuRaziyain,
106
134
"عقيدة الرازيين"
@@ -128,11 +156,9 @@ $(document).ready(() => {
128
156
//console.log(result);
129
157
// END BOOK
130
158
131
-
//
132
-
//
133
159
//
134
160
135
-
// PART 2
161
+
// PART 3
136
162
// cgpt code, appends a 2d array to the end of another 2d array, even if their columns/rows differ, and generates empty values
137
163
// In this code, the appendRowsWithEmptyValues function calculates the maximum number of columns from both arrays and pads each row in arr2 with empty values (empty strings) as needed to match the number of columns in the merged array. This ensures that the resulting array has consistent dimensions with empty values where needed.
138
164
functionappendRowsWithEmptyValues(arr1,arr2){
@@ -160,6 +186,8 @@ $(document).ready(() => {
160
186
resultqawaidulArbau,
161
187
resultusooluSiththa,
162
188
resultusooluThalaatha,
189
+
// below should always be last
190
+
resultbarbahariDFK,
163
191
];
164
192
165
193
// ADDED a json object with 6 rows to make this part work for allAqida as it did for allAthar. I dont think 6 is a necessity for it to work, as increasing in doesnt change the data entry.
@@ -256,7 +284,7 @@ $(document).ready(() => {
256
284
},
257
285
{
258
286
data: 5,
259
-
title: "އިތުރު ބަރި",// extra column i need for harawi
287
+
title: "އިތުރު ބަރި",// extra column i need for harawi, dv footnotes?
260
288
},
261
289
],
262
290
@@ -265,6 +293,7 @@ $(document).ready(() => {
265
293
// adds footnote line for shurooh
266
294
// if (data !== "") { } else { return data; } ONLY applies if string is not empty
267
295
{
296
+
// havent quite figured out how to get this right yet, so many different books have different layouts now
268
297
targets: [],// 6, but non takhrij texts are there in this, unlike allAthar
0 commit comments