mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Add symbol name for narrow non-breaking space (#3217)
This commit is contained in:
parent
ff6da491c8
commit
b4b17871d6
@ -24,6 +24,7 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
|
|||||||
space: [
|
space: [
|
||||||
' ',
|
' ',
|
||||||
nobreak: '\u{A0}',
|
nobreak: '\u{A0}',
|
||||||
|
nobreak.narrow: '\u{202F}',
|
||||||
en: '\u{2002}',
|
en: '\u{2002}',
|
||||||
quad: '\u{2003}',
|
quad: '\u{2003}',
|
||||||
third: '\u{2004}',
|
third: '\u{2004}',
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 44 KiB |
@ -8,6 +8,15 @@ This is a spaceexceedinglylongy.
|
|||||||
// Test two overlong words in a row.
|
// Test two overlong words in a row.
|
||||||
Supercalifragilisticexpialidocious Expialigoricmetrioxidation.
|
Supercalifragilisticexpialidocious Expialigoricmetrioxidation.
|
||||||
|
|
||||||
|
---
|
||||||
|
// Test for non-breaking space and hyphen.
|
||||||
|
There are non\u{2011}breaking~characters.
|
||||||
|
|
||||||
|
---
|
||||||
|
// Test for narrow non-breaking space.
|
||||||
|
#show "_": sym.space.nobreak.narrow
|
||||||
|
0.1_g, 1_g, 10_g, 100_g, 1_000_g, 10_000_g, 100_000_g, 1_000_000_g
|
||||||
|
|
||||||
---
|
---
|
||||||
// Test that there are no unwanted line break opportunities on run change.
|
// Test that there are no unwanted line break opportunities on run change.
|
||||||
This is partly emp#emph[has]ized.
|
This is partly emp#emph[has]ized.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user