mind-elixir
Version:
Mind elixir is a free open source mind map core.
29 lines (28 loc) • 1.48 kB
TypeScript
import type { MindElixirData } from '../index';
/**
* An Arabic (RTL) dataset.
*
* Every topic is a case that only reads correctly under a right-to-left
* paragraph direction. Open `/demos/arabic.html` to see the same data twice:
* `rtl: false` (default) on the left, `rtl: true` on the right.
* - a trailing ASCII neutral (`!` below) hugs the LEFT edge of the sentence
* under RTL, the RIGHT edge under LTR
* - a two-line topic aligns on its RIGHT edge under RTL, its LEFT edge under
* LTR
* - Latin word inside an Arabic sentence keeps its own direction
* - East Arabic-Indic digits (١٢٣) read in their own order inside the
* sentence
* - a tag row is text as well: the chips are read right to left and the row
* starts at the leading edge, and a chip's own paragraph follows the
* direction (the `!` in `مرحبا!` moves to the other side of the word)
*
* Note what is NOT a case: a plain Arabic sentence with no neutral on either
* end looks identical in both modes. The node box shrinks to fit its text, so
* the paragraph's own alignment has nothing to move — and the bidi algorithm
* already lays a run of Arabic characters right-to-left inside an LTR
* paragraph. The Arabic question mark `؟` is a strong RTL character, not a
* neutral, so it rides the run in either mode and cannot serve as the
* discriminator; `!` / `?` / `.` can.
*/
declare const arabicSample: MindElixirData;
export default arabicSample;