mirror of
https://github.com/typst/typst
synced 2025-05-15 17:45:27 +08:00
29 lines
693 B
Typst
29 lines
693 B
Typst
// Test shaping quirks.
|
||
|
||
---
|
||
// Test separation by script.
|
||
ABCअपार्टमेंट
|
||
|
||
// This is how it should look like.
|
||
अपार्टमेंट
|
||
|
||
// This (without the spaces) is how it would look
|
||
// if we didn't separate by script.
|
||
अ पा र् ट में ट
|
||
|
||
---
|
||
// A forced `latn` script inhibits Devanagari font features.
|
||
#set text(script: "latn")
|
||
ABCअपार्टमेंट
|
||
|
||
---
|
||
// A forced `deva` script enables Devanagari font features.
|
||
#set text(script: "deva")
|
||
ABCअपार्टमेंट
|
||
|
||
---
|
||
// Test that RTL safe-to-break doesn't panic even though newline
|
||
// doesn't exist in shaping output.
|
||
#set text(dir: rtl, font: "Noto Serif Hebrew")
|
||
\ ט
|