Skip to content

Commit

Permalink
feat: add macron and overline on the unicode map module, copied from: #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Jan 27, 2025
1 parent ab2579c commit 2f4f8f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions crates/svgbob/src/map/unicode_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ pub static UNICODE_FRAGMENTS: Lazy<BTreeMap<char, Vec<Fragment>>> =
let unit8 = Cell::unit(8);

let map = vec![
// TODO: add Arc connections, like underscore, for macron/overline
// overline, U+203E
('‾', vec![line(a, e)]),
// macron, U+00AF
('¯', vec![line(a, e)]),
// dash
('─', vec![line(k, o)]),
// en dash, E2 80 93
Expand Down
5 changes: 5 additions & 0 deletions crates/svgbob/test_data/demo.bob
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

‾‾‾‾‾‾‾‾‾‾
------------
______________
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾

\ | /
\|/
-----o-----
Expand Down

0 comments on commit 2f4f8f5

Please sign in to comment.