Kizuki
    Preparing search index...

    Function batchSections

    • Groups passages into requests of about maxChars characters, keeping each section together where possible.

      Parameters

      • sections: {
            heading?: boolean;
            level: number;
            ordinal: number;
            sectionId: string;
            title: string;
        }[]
        • Optionalheading?: boolean

          True when the title is a real heading of the material, not a page number or a file name.

        • level: number
        • ordinal: number
        • sectionId: string
        • title: string
      • passages: {
            location: {
                cells?: string;
                heading?: string;
                notes?: boolean;
                page?: number;
                paragraph?: number;
                sheet?: string;
                slide?: number;
            };
            materialId: string;
            ordinal: number;
            passageId: string;
            sectionId: string;
            text: string;
        }[]
      • maxChars: number = MAX_BATCH_CHARS

      Returns Batch[]