diff --git a/src/transliteration/domain/columns.ts b/src/transliteration/domain/columns.ts index 263811ddc..16d2f792e 100644 --- a/src/transliteration/domain/columns.ts +++ b/src/transliteration/domain/columns.ts @@ -59,7 +59,6 @@ export function lineAccFromColumns({ acc.addColumnToken( token, index, - isInLineGroup, showMeter, showIpa, updatePhoneticPropsContext(column.content, index, phoneticProps), @@ -72,7 +71,7 @@ export function lineAccFromColumns({ acc ) return acc - }, new LineAccumulator()) + }, new LineAccumulator(isInLineGroup)) } export function numberOfColumns(columns: readonly TextLineColumn[]): number { diff --git a/src/transliteration/ui/LineAccumulator.tsx b/src/transliteration/ui/LineAccumulator.tsx index 10a16b6ec..a34bc8197 100644 --- a/src/transliteration/ui/LineAccumulator.tsx +++ b/src/transliteration/ui/LineAccumulator.tsx @@ -56,8 +56,13 @@ export class LineAccumulator { private enclosureOpened = false private protocol: Protocol | null = null private isFirstWord = true + private isInLineGroup = false lemmas: string[] = [] + constructor(isInLineGroup?: boolean) { + this.isInLineGroup = isInLineGroup || false + } + getColumns(maxColumns: number): React.ReactNode[] { return this.columns.map((column: ColumnData, index: number) => (