diff --git a/regression/encoding-rtl/DejaVuSans.ttf b/regression/encoding-rtl/DejaVuSans.ttf new file mode 120000 index 0000000..5a13a91 --- /dev/null +++ b/regression/encoding-rtl/DejaVuSans.ttf @@ -0,0 +1 @@ +../.fonts/DejaVuSans.ttf \ No newline at end of file diff --git a/regression/encoding-rtl/desc b/regression/encoding-rtl/desc new file mode 100644 index 0000000..1674e4a --- /dev/null +++ b/regression/encoding-rtl/desc @@ -0,0 +1,45 @@ +Encoding -2: right-to-left base direction without whole text layout. + +The visual order is the same as with whole text layout: the Unicode +Bidirectional Algorithm runs over the whole event text with a +right-to-left paragraph direction, and each line is reordered after +wrapping. Text is still shaped run by run (each character with \fsp), +and a run is split where its bidi level changes. +Style R uses Encoding -2, style L Encoding 0. Coloured text marks +separate runs. + +Each event is shown for one second and sampled half a second in. + +rtl-runs.ass: end punctuation, a line starting with Latin, a number in + text, a coloured word, a number as its own run, Latin followed by a + number run, brackets, Arabic with Arabic-Indic digits, a drawing inside + a line, \an9 (alignment is unchanged), a decimal point that is a run + of its own between two number runs, a paragraph separator (U+2029) + between tags (each paragraph is reordered on its own), a Latin phrase + split by a tag next to Hebrew text, a Hebrew line ending in Latin + text and a period (the period goes to the left), a Latin-only line + (also a right-to-left paragraph, so its period goes to the left), a + tagged Latin word between Hebrew words, an isolate (LRI...PDI) across + a tag (needs FriBidi 1.0 or later), an override (LRO...PDF) inside a + bold run, a translucent BorderStyle 3 box behind Hebrew, Latin and a + number in one run, an RLO over Hebrew with niqqud and an LRO over + Arabic with harakat. +rtl-karaoke.ass: \k, \kf halfway through the first syllable, \ko, + \k0 starting karaoke in the middle of a Latin phrase, Latin syllables + between Hebrew ones and a line starting with Latin syllables (spaces + between syllables stay in place), and a \kf syllable whose Hebrew and + Latin parts end up apart. Karaoke timing is unchanged, and \kf still + fills each syllable from left to right, across its whole width. +rtl-fsp.ass: \fsp with Hebrew, Hebrew with digits, Hebrew with Latin + words, numbers with separators ("50%", "3.14", "1,000", + "03-1234567"), U+001C (a paragraph separator, drawn as a missing + glyph), an LRE between digits, alone and inside Hebrew text (it + applies to the rest of the line), and a Latin-only line. +rtl-wrap.ass: lines are reordered after wrapping; a long line with a + coloured run, a wrap inside an italic Latin run, \N, and a coloured + number followed by "%" and \N. +rtl-overrides.ass: \fe-2 in an Encoding 0 style, \fe0 in an Encoding -2 + style (left to right as before), \r to an Encoding 0 style and back + (the event's last setting applies), and \fay (the shear restarts at + each run, and continues across the parts of a run that has Hebrew and + Latin text). diff --git a/regression/encoding-rtl/rtl-fsp-00500.png b/regression/encoding-rtl/rtl-fsp-00500.png new file mode 100644 index 0000000..e69906c Binary files /dev/null and b/regression/encoding-rtl/rtl-fsp-00500.png differ diff --git a/regression/encoding-rtl/rtl-fsp-01500.png b/regression/encoding-rtl/rtl-fsp-01500.png new file mode 100644 index 0000000..832b64d Binary files /dev/null and b/regression/encoding-rtl/rtl-fsp-01500.png differ diff --git a/regression/encoding-rtl/rtl-fsp-02500.png b/regression/encoding-rtl/rtl-fsp-02500.png new file mode 100644 index 0000000..90292fd Binary files /dev/null and b/regression/encoding-rtl/rtl-fsp-02500.png differ diff --git a/regression/encoding-rtl/rtl-fsp-03500.png b/regression/encoding-rtl/rtl-fsp-03500.png new file mode 100644 index 0000000..134b4a2 Binary files /dev/null and b/regression/encoding-rtl/rtl-fsp-03500.png differ diff --git a/regression/encoding-rtl/rtl-fsp-04500.png b/regression/encoding-rtl/rtl-fsp-04500.png new file mode 100644 index 0000000..ce42a16 Binary files /dev/null and b/regression/encoding-rtl/rtl-fsp-04500.png differ diff --git a/regression/encoding-rtl/rtl-fsp-05500.png b/regression/encoding-rtl/rtl-fsp-05500.png new file mode 100644 index 0000000..e2a8848 Binary files /dev/null and b/regression/encoding-rtl/rtl-fsp-05500.png differ diff --git a/regression/encoding-rtl/rtl-fsp-06500.png b/regression/encoding-rtl/rtl-fsp-06500.png new file mode 100644 index 0000000..2012fe5 Binary files /dev/null and b/regression/encoding-rtl/rtl-fsp-06500.png differ diff --git a/regression/encoding-rtl/rtl-fsp-07500.png b/regression/encoding-rtl/rtl-fsp-07500.png new file mode 100644 index 0000000..f34eaf9 Binary files /dev/null and b/regression/encoding-rtl/rtl-fsp-07500.png differ diff --git a/regression/encoding-rtl/rtl-fsp-08500.png b/regression/encoding-rtl/rtl-fsp-08500.png new file mode 100644 index 0000000..c58bbba Binary files /dev/null and b/regression/encoding-rtl/rtl-fsp-08500.png differ diff --git a/regression/encoding-rtl/rtl-fsp.ass b/regression/encoding-rtl/rtl-fsp.ass new file mode 100644 index 0000000..e32acfc --- /dev/null +++ b/regression/encoding-rtl/rtl-fsp.ass @@ -0,0 +1,23 @@ +[Script Info] +ScriptType: v4.00+ +PlayResX: 640 +PlayResY: 200 +WrapStyle: 0 +ScaledBorderAndShadow: yes + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding +Style: R,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,-2 +Style: L,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,0 + +[Events] +Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text +Dialogue: 0,0:00:00.00,0:00:01.00,R,hebrew,0,0,0,,{\fsp6}שלום עולם! +Dialogue: 0,0:00:01.00,0:00:02.00,R,digits,0,0,0,,{\fsp6}יש לי 12 תפוחים. +Dialogue: 0,0:00:02.00,0:00:03.00,R,latin,0,0,0,,{\fsp6}אמרתי hello world היום. +Dialogue: 0,0:00:03.00,0:00:04.00,R,price,0,0,0,,{\fsp3}מחיר: 50%, 3.14 ו-1,000! +Dialogue: 0,0:00:04.00,0:00:05.00,R,phone,0,0,0,,{\fsp3}התקשר ל-03-1234567 +Dialogue: 0,0:00:05.00,0:00:06.00,R,separator,0,0,0,,{\fsp1}Xאחד שתיים four חמש +Dialogue: 0,0:00:06.00,0:00:07.00,R,embedding,0,0,0,,{\fsp3}12‪34 +Dialogue: 0,0:00:07.00,0:00:08.00,R,embedding-in-text,0,0,0,,{\fsp3}מספר 12‪34 בסדר +Dialogue: 0,0:00:08.00,0:00:09.00,R,latin-only,0,0,0,,{\fsp6}Hello world. diff --git a/regression/encoding-rtl/rtl-karaoke-00500.png b/regression/encoding-rtl/rtl-karaoke-00500.png new file mode 100644 index 0000000..0c8be19 Binary files /dev/null and b/regression/encoding-rtl/rtl-karaoke-00500.png differ diff --git a/regression/encoding-rtl/rtl-karaoke-01500.png b/regression/encoding-rtl/rtl-karaoke-01500.png new file mode 100644 index 0000000..d2f713d Binary files /dev/null and b/regression/encoding-rtl/rtl-karaoke-01500.png differ diff --git a/regression/encoding-rtl/rtl-karaoke-02500.png b/regression/encoding-rtl/rtl-karaoke-02500.png new file mode 100644 index 0000000..b524768 Binary files /dev/null and b/regression/encoding-rtl/rtl-karaoke-02500.png differ diff --git a/regression/encoding-rtl/rtl-karaoke-03500.png b/regression/encoding-rtl/rtl-karaoke-03500.png new file mode 100644 index 0000000..16a6c0b Binary files /dev/null and b/regression/encoding-rtl/rtl-karaoke-03500.png differ diff --git a/regression/encoding-rtl/rtl-karaoke-04500.png b/regression/encoding-rtl/rtl-karaoke-04500.png new file mode 100644 index 0000000..649d6ba Binary files /dev/null and b/regression/encoding-rtl/rtl-karaoke-04500.png differ diff --git a/regression/encoding-rtl/rtl-karaoke-05500.png b/regression/encoding-rtl/rtl-karaoke-05500.png new file mode 100644 index 0000000..1033641 Binary files /dev/null and b/regression/encoding-rtl/rtl-karaoke-05500.png differ diff --git a/regression/encoding-rtl/rtl-karaoke-06500.png b/regression/encoding-rtl/rtl-karaoke-06500.png new file mode 100644 index 0000000..2504199 Binary files /dev/null and b/regression/encoding-rtl/rtl-karaoke-06500.png differ diff --git a/regression/encoding-rtl/rtl-karaoke.ass b/regression/encoding-rtl/rtl-karaoke.ass new file mode 100644 index 0000000..6e9c6ca --- /dev/null +++ b/regression/encoding-rtl/rtl-karaoke.ass @@ -0,0 +1,21 @@ +[Script Info] +ScriptType: v4.00+ +PlayResX: 640 +PlayResY: 200 +WrapStyle: 0 +ScaledBorderAndShadow: yes + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding +Style: R,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,-2 +Style: L,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,0 + +[Events] +Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text +Dialogue: 0,0:00:00.00,0:00:01.00,R,k,0,0,0,,{\k40}שלום {\k40}עולם {\k40}יפה! +Dialogue: 0,0:00:01.00,0:00:02.00,R,kf,0,0,0,,{\kf100}שלום {\kf100}עולם! +Dialogue: 0,0:00:02.00,0:00:03.00,R,ko,0,0,0,,{\ko40}שלום {\ko40}עולם {\ko40}יפה! +Dialogue: 0,0:00:03.00,0:00:04.00,R,k0,0,0,0,,אמרתי hello {\k0}world היום. +Dialogue: 0,0:00:04.00,0:00:05.00,R,k-latin-middle,0,0,0,,{\k20}אני {\k20}אוהב {\k20}you {\k20}baby {\k20}הלילה +Dialogue: 0,0:00:05.00,0:00:06.00,R,kf-latin-first,0,0,0,,{\kf25}I {\kf25}love {\kf25}you {\kf25}אהובה +Dialogue: 0,0:00:06.00,0:00:07.00,R,kf-split,0,0,0,,{\kf100}שלום hello {\kf100}world diff --git a/regression/encoding-rtl/rtl-overrides-00500.png b/regression/encoding-rtl/rtl-overrides-00500.png new file mode 100644 index 0000000..a3ff8db Binary files /dev/null and b/regression/encoding-rtl/rtl-overrides-00500.png differ diff --git a/regression/encoding-rtl/rtl-overrides-01500.png b/regression/encoding-rtl/rtl-overrides-01500.png new file mode 100644 index 0000000..3a578a8 Binary files /dev/null and b/regression/encoding-rtl/rtl-overrides-01500.png differ diff --git a/regression/encoding-rtl/rtl-overrides-02500.png b/regression/encoding-rtl/rtl-overrides-02500.png new file mode 100644 index 0000000..c833d79 Binary files /dev/null and b/regression/encoding-rtl/rtl-overrides-02500.png differ diff --git a/regression/encoding-rtl/rtl-overrides-03500.png b/regression/encoding-rtl/rtl-overrides-03500.png new file mode 100644 index 0000000..77a577d Binary files /dev/null and b/regression/encoding-rtl/rtl-overrides-03500.png differ diff --git a/regression/encoding-rtl/rtl-overrides-04500.png b/regression/encoding-rtl/rtl-overrides-04500.png new file mode 100644 index 0000000..e3f1fda Binary files /dev/null and b/regression/encoding-rtl/rtl-overrides-04500.png differ diff --git a/regression/encoding-rtl/rtl-overrides.ass b/regression/encoding-rtl/rtl-overrides.ass new file mode 100644 index 0000000..23bf2ea --- /dev/null +++ b/regression/encoding-rtl/rtl-overrides.ass @@ -0,0 +1,19 @@ +[Script Info] +ScriptType: v4.00+ +PlayResX: 640 +PlayResY: 200 +WrapStyle: 0 +ScaledBorderAndShadow: yes + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding +Style: R,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,-2 +Style: L,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,0 + +[Events] +Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text +Dialogue: 0,0:00:00.00,0:00:01.00,L,fe-2,0,0,0,,{\fe-2}שלום {\1c&H00C0FF&}עולם{\1c}! +Dialogue: 0,0:00:01.00,0:00:02.00,R,fe0,0,0,0,,{\fe0}שלום {\1c&H00C0FF&}עולם{\1c}! +Dialogue: 0,0:00:02.00,0:00:03.00,R,reset-ltr-style,0,0,0,,שלום {\rL}hello{\r} עולם! +Dialogue: 0,0:00:03.00,0:00:04.00,R,fay,0,0,0,,{\fay0.2}שלום {\1c&H00C0FF&}ע{\1c} יפה מאוד! +Dialogue: 0,0:00:04.00,0:00:05.00,R,fay-mixed,0,0,0,,{\fay0.2}שלום hello {\1c&H00C0FF&}עולם{\1c} 12! diff --git a/regression/encoding-rtl/rtl-runs-00500.png b/regression/encoding-rtl/rtl-runs-00500.png new file mode 100644 index 0000000..9056043 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-00500.png differ diff --git a/regression/encoding-rtl/rtl-runs-01500.png b/regression/encoding-rtl/rtl-runs-01500.png new file mode 100644 index 0000000..cb974f2 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-01500.png differ diff --git a/regression/encoding-rtl/rtl-runs-02500.png b/regression/encoding-rtl/rtl-runs-02500.png new file mode 100644 index 0000000..3a4b802 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-02500.png differ diff --git a/regression/encoding-rtl/rtl-runs-03500.png b/regression/encoding-rtl/rtl-runs-03500.png new file mode 100644 index 0000000..a13b3a2 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-03500.png differ diff --git a/regression/encoding-rtl/rtl-runs-04500.png b/regression/encoding-rtl/rtl-runs-04500.png new file mode 100644 index 0000000..56af3c8 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-04500.png differ diff --git a/regression/encoding-rtl/rtl-runs-05500.png b/regression/encoding-rtl/rtl-runs-05500.png new file mode 100644 index 0000000..9ef0358 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-05500.png differ diff --git a/regression/encoding-rtl/rtl-runs-06500.png b/regression/encoding-rtl/rtl-runs-06500.png new file mode 100644 index 0000000..e82e241 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-06500.png differ diff --git a/regression/encoding-rtl/rtl-runs-07500.png b/regression/encoding-rtl/rtl-runs-07500.png new file mode 100644 index 0000000..4cd5d80 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-07500.png differ diff --git a/regression/encoding-rtl/rtl-runs-08500.png b/regression/encoding-rtl/rtl-runs-08500.png new file mode 100644 index 0000000..82b9b47 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-08500.png differ diff --git a/regression/encoding-rtl/rtl-runs-09500.png b/regression/encoding-rtl/rtl-runs-09500.png new file mode 100644 index 0000000..41e3df2 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-09500.png differ diff --git a/regression/encoding-rtl/rtl-runs-10500.png b/regression/encoding-rtl/rtl-runs-10500.png new file mode 100644 index 0000000..d14bcfe Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-10500.png differ diff --git a/regression/encoding-rtl/rtl-runs-11500.png b/regression/encoding-rtl/rtl-runs-11500.png new file mode 100644 index 0000000..f3d93dc Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-11500.png differ diff --git a/regression/encoding-rtl/rtl-runs-12500.png b/regression/encoding-rtl/rtl-runs-12500.png new file mode 100644 index 0000000..a75d6d7 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-12500.png differ diff --git a/regression/encoding-rtl/rtl-runs-13500.png b/regression/encoding-rtl/rtl-runs-13500.png new file mode 100644 index 0000000..88bc334 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-13500.png differ diff --git a/regression/encoding-rtl/rtl-runs-14500.png b/regression/encoding-rtl/rtl-runs-14500.png new file mode 100644 index 0000000..6b8e6f8 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-14500.png differ diff --git a/regression/encoding-rtl/rtl-runs-15500.png b/regression/encoding-rtl/rtl-runs-15500.png new file mode 100644 index 0000000..4ab9e81 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-15500.png differ diff --git a/regression/encoding-rtl/rtl-runs-16500.png b/regression/encoding-rtl/rtl-runs-16500.png new file mode 100644 index 0000000..be6e0fa Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-16500.png differ diff --git a/regression/encoding-rtl/rtl-runs-17500.png b/regression/encoding-rtl/rtl-runs-17500.png new file mode 100644 index 0000000..0ea8109 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-17500.png differ diff --git a/regression/encoding-rtl/rtl-runs-18500.png b/regression/encoding-rtl/rtl-runs-18500.png new file mode 100644 index 0000000..5f7eeac Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-18500.png differ diff --git a/regression/encoding-rtl/rtl-runs-19500.png b/regression/encoding-rtl/rtl-runs-19500.png new file mode 100644 index 0000000..92bd641 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-19500.png differ diff --git a/regression/encoding-rtl/rtl-runs-20500.png b/regression/encoding-rtl/rtl-runs-20500.png new file mode 100644 index 0000000..ce04166 Binary files /dev/null and b/regression/encoding-rtl/rtl-runs-20500.png differ diff --git a/regression/encoding-rtl/rtl-runs.ass b/regression/encoding-rtl/rtl-runs.ass new file mode 100644 index 0000000..a92e092 --- /dev/null +++ b/regression/encoding-rtl/rtl-runs.ass @@ -0,0 +1,36 @@ +[Script Info] +ScriptType: v4.00+ +PlayResX: 640 +PlayResY: 200 +WrapStyle: 0 +ScaledBorderAndShadow: yes + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding +Style: R,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,-2 +Style: L,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,0 +Style: B,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H80C04000,&H00000000,0,0,0,0,100,100,0,0,3,4,0,2,20,20,20,-2 + +[Events] +Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text +Dialogue: 0,0:00:00.00,0:00:01.00,R,end-punct,0,0,0,,שלום עולם! +Dialogue: 0,0:00:01.00,0:00:02.00,R,latin-first,0,0,0,,OK, אני בא? +Dialogue: 0,0:00:02.00,0:00:03.00,R,number,0,0,0,,אני גר ברחוב 12 בתל אביב. +Dialogue: 0,0:00:03.00,0:00:04.00,R,tagged-word,0,0,0,,זה {\1c&H00C0FF&}חשוב{\1c} מאוד. +Dialogue: 0,0:00:04.00,0:00:05.00,R,number-run,0,0,0,,יש לי {\1c&H00C0FF&}12{\1c} תפוחים. +Dialogue: 0,0:00:05.00,0:00:06.00,R,latin-then-number,0,0,0,,Windows {\1c&H00C0FF&}11{\1c} יצא היום. +Dialogue: 0,0:00:06.00,0:00:07.00,R,brackets,0,0,0,,הוא אמר (שלום) ו[עולם] {\1c&H00C0FF&}<טוב>{\1c}. +Dialogue: 0,0:00:07.00,0:00:08.00,R,arabic,0,0,0,,عندي ١٢ {\1c&H00C0FF&}تفاحة{\1c}! +Dialogue: 0,0:00:08.00,0:00:09.00,R,drawing,0,0,0,,שלום {\p1}m 0 0 l 20 0 20 20 0 20{\p0} עולם! +Dialogue: 0,0:00:09.00,0:00:10.00,R,an9,0,0,0,,{\an9}שלום {\1c&H00C0FF&}עולם{\1c}! +Dialogue: 0,0:00:10.00,0:00:11.00,R,separator-run,0,0,0,,המחיר {\1c&H00C0FF&}3{\b1}.{\b0}14{\1c} שקל +Dialogue: 0,0:00:11.00,0:00:12.00,R,paragraph-separator,0,0,0,,{\b1}X{\b0}
אחד {\b1}שתיים{\b0} שלוש {\i1}four{\i0} חמש +Dialogue: 0,0:00:12.00,0:00:13.00,R,split-phrase,0,0,0,,אמרתי {\i1}hello {\i0}world ואז הלכתי. +Dialogue: 0,0:00:13.00,0:00:14.00,R,latin-end,0,0,0,,אמרתי {\i1}hello {\i0}world. +Dialogue: 0,0:00:14.00,0:00:15.00,R,latin-only,0,0,0,,Hello {\1c&H00C0FF&}big{\1c} world. +Dialogue: 0,0:00:15.00,0:00:16.00,R,tagged-latin-spaces,0,0,0,,שלום {\i1}hello {\i0}עולם +Dialogue: 0,0:00:16.00,0:00:17.00,R,isolate,0,0,0,,שלום ⁦{\i1}one{\i0}, two!⁩ עולם +Dialogue: 0,0:00:17.00,0:00:18.00,R,override,0,0,0,,שלום {\b1}‭אבג‬{\b0} עולם +Dialogue: 0,0:00:18.00,0:00:19.00,B,box,0,0,0,,שלום hello עולם 123 סוף +Dialogue: 0,0:00:19.00,0:00:20.00,R,rlo-niqqud,0,0,0,,‮שָׁלוֹם‬ abc +Dialogue: 0,0:00:20.00,0:00:21.00,R,lro-harakat,0,0,0,,שלום ‭سَلَام‬ diff --git a/regression/encoding-rtl/rtl-wrap-00500.png b/regression/encoding-rtl/rtl-wrap-00500.png new file mode 100644 index 0000000..8e81755 Binary files /dev/null and b/regression/encoding-rtl/rtl-wrap-00500.png differ diff --git a/regression/encoding-rtl/rtl-wrap-01500.png b/regression/encoding-rtl/rtl-wrap-01500.png new file mode 100644 index 0000000..64a22c4 Binary files /dev/null and b/regression/encoding-rtl/rtl-wrap-01500.png differ diff --git a/regression/encoding-rtl/rtl-wrap-02500.png b/regression/encoding-rtl/rtl-wrap-02500.png new file mode 100644 index 0000000..5dc818b Binary files /dev/null and b/regression/encoding-rtl/rtl-wrap-02500.png differ diff --git a/regression/encoding-rtl/rtl-wrap-03500.png b/regression/encoding-rtl/rtl-wrap-03500.png new file mode 100644 index 0000000..174b687 Binary files /dev/null and b/regression/encoding-rtl/rtl-wrap-03500.png differ diff --git a/regression/encoding-rtl/rtl-wrap.ass b/regression/encoding-rtl/rtl-wrap.ass new file mode 100644 index 0000000..cdb7e0d --- /dev/null +++ b/regression/encoding-rtl/rtl-wrap.ass @@ -0,0 +1,18 @@ +[Script Info] +ScriptType: v4.00+ +PlayResX: 640 +PlayResY: 200 +WrapStyle: 0 +ScaledBorderAndShadow: yes + +[V4+ Styles] +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding +Style: R,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,-2 +Style: L,DejaVu Sans,32,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,0 + +[Events] +Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text +Dialogue: 0,0:00:00.00,0:00:01.00,R,wrap,0,0,0,,זה משפט ארוך מאוד שצריך {\1c&H00C0FF&}להישבר{\1c} לשתי שורות לפחות כדי שנוכל לבדוק את הגלישה, נכון? +Dialogue: 0,0:00:01.00,0:00:02.00,R,wrap-latin,0,0,0,,זה משפט ארוך עם מילים באנגלית כמו {\i1}Windows Subsystem for Linux{\i0} שצריך להישבר לשורות. +Dialogue: 0,0:00:02.00,0:00:03.00,R,hard-break,0,0,0,,שורה ראשונה!\Nשורה {\1c&H00C0FF&}שנייה{\1c}? +Dialogue: 0,0:00:03.00,0:00:04.00,R,hard-break-after-run,0,0,0,,שלום {\1c&H00C0FF&}50{\1c}%\Nabc