CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 06:48:33 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/libass/libass.git
etag: W/"8e5baa8d306968a421a518fc8f553e70"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=mzpgXTkdtozIq1x3j5T0sVIznnNcB7nviXwf9450o3odN7ZHZca81vJPKA9KS5Dy%2BXJYBfpyIwFrwouI6kBYmwhsIAnhCi%2B5Oy6T58igbY3kOxDTxpEz5pu%2BGXf7UixYv%2FzJZkz3znyuee%2F87TFFywuLNl0SJIClHjOd%2BeSNihG4bOrCT7pXXBPk%2FctHBStk2BzLEOnjj%2F2Pkis05oiROGsWpM1QrDznF2gGwbIwf9Hj%2BQaPCTaeBUUQ01iblz1vs4LopZeGFGjvO%2Ba2qzK87Q%3D%3D--XhcGCW7BDhaHopMQ--ZqINjCkuZXM4u2omnM2AwQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.538551209.1753166913; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 06:48:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 06:48:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 979A:1065F9:1CB52C:200EAF:687F3440
Bidi: remember resolved base direction · libass/libass@cc54eea · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit cc54eea
committed
Bidi: remember resolved base direction
There used to be a FIXME comment about this,
but it was removed in commit 27cc033.
Reordering works fine without this *most of the time*, but this is still
a bug. It affects one thing only: trailing whitespace in each line/run.
Of course, we remove trailing U+0020 SPACE characters from each line
regardless of bidi, but Unicode bidi recognizes other whitespace,
and we can now also have trailing U+0020 within in-line runs.
With right-to-left base direction, all trailing whitespace within
each line (after line wrapping) or run are to be placed at the leftmost
end in visual order (even if that whitespace is nominally part
of a left-to-right embed). Conversely, with our current code that
always tells FriBidi the base direction is left-to-right here,
trailing whitespace is always placed at the rightmost end of each line,
even if it is inside right-to-left text (which makes it appear
as *leading* whitespace to the reader).
We treat explicit line breaks \N as paragraph separators,
where each paragraph can have its own base direction. Therefore,
we must remember each paragraph's resolved direction separately.1 parent 03cbb01 commit cc54eeaCopy full SHA for cc54eea
File tree
Expand file treeCollapse file tree
1 file changed
+24
-7
lines changedFilter options
- libass
Expand file treeCollapse file tree
1 file changed
+24
-7
lines changed+24-7Lines changed: 24 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
| |||
99 | 100 |
| |
100 | 101 |
| |
101 | 102 |
| |
102 |
| - | |
| 103 | + | |
103 | 104 |
| |
104 | 105 |
| |
105 | 106 |
| |
| |||
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
115 | 121 |
| |
116 | 122 |
| |
117 | 123 |
| |
| |||
129 | 135 |
| |
130 | 136 |
| |
131 | 137 |
| |
| 138 | + | |
132 | 139 |
| |
133 | 140 |
| |
134 | 141 |
| |
| |||
965 | 972 |
| |
966 | 973 |
| |
967 | 974 |
| |
968 |
| - | |
| 975 | + | |
969 | 976 |
| |
970 | 977 |
| |
971 |
| - | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
972 | 984 |
| |
973 | 985 |
| |
974 | 986 |
| |
| |||
986 | 998 |
| |
987 | 999 |
| |
988 | 1000 |
| |
| 1001 | + | |
989 | 1002 |
| |
990 | 1003 |
| |
991 | 1004 |
| |
| |||
1006 | 1019 |
| |
1007 | 1020 |
| |
1008 | 1021 |
| |
| 1022 | + | |
| 1023 | + | |
1009 | 1024 |
| |
1010 | 1025 |
| |
1011 | 1026 |
| |
| |||
1079 | 1094 |
| |
1080 | 1095 |
| |
1081 | 1096 |
| |
| 1097 | + | |
| 1098 | + | |
1082 | 1099 |
| |
1083 | 1100 |
| |
1084 | 1101 |
| |
1085 | 1102 |
| |
1086 | 1103 |
| |
1087 |
| - | |
1088 |
| - | |
1089 | 1104 |
| |
1090 |
| - | |
| 1105 | + | |
1091 | 1106 |
| |
1092 | 1107 |
| |
1093 | 1108 |
| |
1094 | 1109 |
| |
1095 | 1110 |
| |
1096 | 1111 |
| |
| 1112 | + | |
| 1113 | + | |
1097 | 1114 |
| |
1098 | 1115 |
| |
1099 | 1116 |
| |
|
You can’t perform that action at this time.
0 commit comments