observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

Arabic string does not appear in the inspector #506

Closed yurivish closed 1 year ago

yurivish commented 1 year ago

Describe the bug

A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: Go here; if you do not see the string in the inspector, then you have reproduced the bug: https://observablehq.com/d/3afdbeabd799351f

Expected behavior Seeing the string "قطر"

Screenshots

image

Desktop (please complete the following information):

macOS 12.6.1, Chrome Version 107.0.5304.110 (Official Build) (x86_64)

Smartphone (please complete the following information):

Additional context Might have to do with RTL or multi-codepoint characters.

CobusT commented 1 year ago

Interesting... I actually see something on the far right of the inspector...

Screenshot 2022-11-23 at 11 25 29 AM
yurivish commented 1 year ago

Hah, so do I. Totally missed that! I wonder if that's somehow technically correct...

CobusT commented 1 year ago

I think it may be! Since it is a right-to-left language...

mbostock commented 1 year ago

See also https://twitter.com/mapmeld/status/967634520295071744 Previously https://github.com/observablehq/notebook/pull/1011

I think it would be fine to always use dir="left" for the Object inspector, but we should definitely leave on dir="auto" for non-inspector output.

yurivish commented 1 year ago

Was thinking about this again, and remembered about this fun blog post about a Mathematica error message: https://blog.wolfram.com/2009/09/03/a-new-slant-in-mathematica/

grant commented 1 year ago

I believe this is WAI as reported.

If you're facing a real issue writing notebooks in RTL languages, please state the expected behavior and we can change the behavior to fix it, or create a new issue.