diff --git a/src/transliteration/domain/columns.ts b/src/transliteration/domain/columns.ts index 16d2f792e..df4266899 100644 --- a/src/transliteration/domain/columns.ts +++ b/src/transliteration/domain/columns.ts @@ -59,7 +59,6 @@ export function lineAccFromColumns({ acc.addColumnToken( token, index, - showMeter, showIpa, updatePhoneticPropsContext(column.content, index, phoneticProps), _.isEmpty(_.intersection(token.uniqueLemma, highlightLemmas)) @@ -71,7 +70,7 @@ export function lineAccFromColumns({ acc ) return acc - }, new LineAccumulator(isInLineGroup)) + }, new LineAccumulator(isInLineGroup, showMeter)) } export function numberOfColumns(columns: readonly TextLineColumn[]): number { diff --git a/src/transliteration/ui/LineAccumulator.tsx b/src/transliteration/ui/LineAccumulator.tsx index a34bc8197..e407017cc 100644 --- a/src/transliteration/ui/LineAccumulator.tsx +++ b/src/transliteration/ui/LineAccumulator.tsx @@ -57,10 +57,12 @@ export class LineAccumulator { private protocol: Protocol | null = null private isFirstWord = true private isInLineGroup = false + private showMeter = false lemmas: string[] = [] - constructor(isInLineGroup?: boolean) { + constructor(isInLineGroup?: boolean, showMeter?: boolean) { this.isInLineGroup = isInLineGroup || false + this.showMeter = showMeter || false } getColumns(maxColumns: number): React.ReactNode[] { @@ -143,7 +145,6 @@ export class LineAccumulator { addColumnToken( token: Token, index: number, - showMeter?: boolean, showIpa?: boolean, phoneticProps?: PhoneticProps, bemModifiers: string[] = [] @@ -164,7 +165,7 @@ export class LineAccumulator { this.pushToken( token, index, - showMeter, + this.showMeter, showIpa, phoneticProps, bemModifiers diff --git a/src/transliteration/ui/line-tokens.tsx b/src/transliteration/ui/line-tokens.tsx index cf51f4393..666616e56 100644 --- a/src/transliteration/ui/line-tokens.tsx +++ b/src/transliteration/ui/line-tokens.tsx @@ -29,7 +29,6 @@ export function LineTokens({ token, index, false, - false, {}, highlightTokens.includes(index) ? ['highlight'] : [] )