Skip to content

Commit 2f4f8f5

Browse files
committed
feat: add macron and overline on the unicode map module, copied from: #116
1 parent ab2579c commit 2f4f8f5

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/svgbob/src/map/unicode_map.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ pub static UNICODE_FRAGMENTS: Lazy<BTreeMap<char, Vec<Fragment>>> =
9898
let unit8 = Cell::unit(8);
9999

100100
let map = vec![
101+
// TODO: add Arc connections, like underscore, for macron/overline
102+
// overline, U+203E
103+
('‾', vec![line(a, e)]),
104+
// macron, U+00AF
105+
('¯', vec![line(a, e)]),
101106
// dash
102107
('─', vec![line(k, o)]),
103108
// en dash, E2 80 93

crates/svgbob/test_data/demo.bob

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
‾‾‾‾‾‾‾‾‾‾
3+
------------
4+
______________
5+
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
6+
27
\ | /
38
\|/
49
-----o-----

0 commit comments

Comments
 (0)