TECHNOLOGY

How Parlant 4.0.4 handles mixed-script right-to-left chat replies

In this article
THE QUICK TAKE

Test paragraph direction, inline isolation and interactive controls with mixed-script fixtures in the actual chat widget.

Parlant 4.0.4 changes the chat widget’s direction choice for replies whose opening word or URL uses a different script from most of the text. The notes describe choosing direction for paragraphs, the message box and suggestions based on the dominant script. Test the rendered conversation rather than only the model’s plain text.

Build a mixed-script fixture set

Use a Hebrew paragraph that starts with an English product name, a paragraph beginning with a URL and a short paragraph dominated by Latin script. Add punctuation and a numeric reference next to an inline link. Record the expected layout at paragraph level and the intended reading order within embedded content.

Distinguish base direction from inline markup

W3C guidance distinguishes a paragraph’s base direction from the handling of a phrase embedded in text of another direction. Inspect what the widget does around inline links and code. Check whether adjacent punctuation appears where a reader expects it. The release’s direction heuristic and the browser’s bidirectional layout are different parts of the result.

Test as the reply streams

A streamed response can initially contain only a URL and then acquire the rest of its paragraph. Observe whether direction shifts while the rest arrives and how that affects selection and reading. Run a finished reply with identical text to distinguish a streaming update problem from the final rendering rules.

Include suggestions and input

The release also mentions suggestion buttons and the message box. Check keyboard navigation, cursor movement and submission in a right-to-left session. Copy the rendered message and verify the stored text still follows logical order. Use narrow and wide layouts so a wrapping artifact is not mistaken for a text direction issue.

Preserve a visual reference

Store the input and expected layout with the widget version. A visual review can catch incorrect punctuation placement that a text comparison would miss.

Primary sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles