Skip to content

Commit

Permalink
docs: fix Unicode text in Fraktur font (#3873)
Browse files Browse the repository at this point in the history
* docs: fix Unicode text in Fraktur font

Fix Fraktur font documentation by correcting spelling and not attempting
to use the Unicode symbols in text mode.

Fixes #3867

* Update docs/supported.md

Co-authored-by: Untitled_unrevised <348070954@qq.com>

---------

Co-authored-by: Untitled_unrevised <348070954@qq.com>
  • Loading branch information
edemaine and untitledunrevised committed Apr 18, 2024
1 parent ab32359 commit 347e578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/supported.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ Math-mode Unicode (sub|super)script characters will render as if you had written
| Italic | $\text{๐ด-๐‘ ๐‘Ž-๐‘ง}$ | Sans serif | $\text{๐– -๐–น ๐–บ-๐—“ ๐Ÿข-๐Ÿซ}$
| Bold Italic | $\text{๐‘จ-๐’ ๐’‚-๐’›}$ | Sans serif bold | $\text{๐—”-๐—ญ ๐—ฎ-๐˜‡ ๐Ÿฌ-๐Ÿต}$
| Script | $\text{๐’œ-๐’ต}$ | Sans serif italic | $\text{๐˜ˆ-๐˜ก ๐˜ข-๐˜ป}$
| Fractur | $\text{๐”„-โ„จ}\text{ ๐”ž-๐”ท}$| Monospace | $\text{๐™ฐ-๐š‰ ๐šŠ-๐šฃ ๐Ÿถ-๐Ÿฟ}$
| Bold Fractur | $\text{๐•ฌ-๐–…}\text{๐–†-๐–Ÿ}$ | |
| Fraktur | $\text{$๐”„$-$โ„จ$}\text{ $๐”ž$-$๐”ท$}$| Monospace | $\text{๐™ฐ-๐š‰ ๐šŠ-๐šฃ ๐Ÿถ-๐Ÿฟ}$
| Bold Fraktur | $\text{๐•ฌ-๐–… ๐–†-๐–Ÿ}$ | |

</div>
<div class="katex-hopscotch">
Expand Down
4 changes: 2 additions & 2 deletions src/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,11 @@ for (let i = 0; i < letters.length; i++) {
defineSymbol(math, main, mathord, ch, wideChar);
defineSymbol(text, main, textord, ch, wideChar);

wideChar = String.fromCharCode(0xD835, 0xDD04 + i); // A-Z a-z Fractur
wideChar = String.fromCharCode(0xD835, 0xDD04 + i); // A-Z a-z Fraktur
defineSymbol(math, main, mathord, ch, wideChar);
defineSymbol(text, main, textord, ch, wideChar);

wideChar = String.fromCharCode(0xD835, 0xDD6C + i); // A-Z a-z bold Fractur
wideChar = String.fromCharCode(0xD835, 0xDD6C + i); // A-Z a-z bold Fraktur
defineSymbol(math, main, mathord, ch, wideChar);
defineSymbol(text, main, textord, ch, wideChar);

Expand Down

0 comments on commit 347e578

Please sign in to comment.