Closed
Description
I am working on the bidi support, and I have some doubts about the following test cases in spec/bidi.json
:
{
"defaultTestProperties": {
"bidiIsolation": "default",
"locale": "en-US"
},
"tests": [
...
{
"description": "complex-message = o *(declaration o) complex-body o",
"src": "\u200E .local $x = {1} {{ {$x}}}",
"exp": " \u20681\u2069"
},
{
"description": "complex-message = o *(declaration o) complex-body o",
"src": ".local $x = {1} \u200F {{ {$x}}}",
"exp": " \u20681\u2069"
},
{
"description": "complex-message = o *(declaration o) complex-body o",
"src": ".local $x = {1} {{ {$x}}} \u2066",
"exp": " \u20681\u2069"
},
...
]
}
I suspect that a test without any kind of bidi control characters in the source would not have any bidi control characters in the expected output:
{
"description": "complex-message = o *(declaration o) complex-body o",
"src": ".local $x = {1} {{ {$x}}}",
"exp": " 1"
},
Question: is that the case?
Or will the "exp"
still be " \u20681\u2069"
because of "bidiIsolation": "default"?
What does "bidiIsolation": "default" actually means?
Does it mean "get it from the locale?"
What are the valid values for bidiIsolation
other then default
and none
?
Now, the whole thing looks under-specified to me.
Depending on the answer to the above I might have a real issue, or "all good, but need better documentation".
Thank you,
M.