Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
### New in `sym`

- Mathematical symbols
- `in.small.not`: ∊̸
- `in.rev.small.not`: ∍̸
- `minus.tilde.not`: ≂̸
- `eq.quad.not`: ≣̸
- `lt.equiv.not`: ≦̸
- `gt.equiv.not`: ≧̸
- `lt.eq.slant.not`: ⩽̸
- `gt.eq.slant.not`: ⩾̸
- `gt.double.nested`: ⪢
- `lt.double.nested`: ⪡
- `gt.arc` ⪧
Expand Down
17 changes: 17 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,23 @@ fn decode_value(mut text: &str) -> StrResult<String> {
};
result.push(vs);
text = tail;
} else if let Some(rest) = text.strip_prefix("\\c{") {
let Some((value, tail)) = rest.split_once('}') else {
return Err(format!(
"unclosed combining character escape: \\c{{{}",
rest.escape_debug(),
));
};
let c = match value {
"not" => '\u{0338}',
code => {
return Err(format!(
"invalid combining character escape: \\c{{{code}}}",
))
}
};
result.push(c);
text = tail;
} else if let Some((prefix, tail)) = text.find('\\').map(|i| text.split_at(i)) {
if prefix.is_empty() {
return Err(format!("invalid escape sequence: {tail}"));
Expand Down
8 changes: 8 additions & 0 deletions src/modules/sym.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ minus −
.plus ∓
.square ⊟
.tilde ≂
.tilde.not ≂\c{not}
.triangle ⨺
div ÷
.o ⨸
Expand Down Expand Up @@ -302,6 +303,7 @@ eq =
.triple ≡
.triple.not ≢
.quad ≣
.quad.not ≣\c{not}
gt >
.o ⧁
.dot ⋗
Expand All @@ -312,9 +314,11 @@ gt >
.double.nested ⪢
.eq ≥
.eq.slant ⩾
.eq.slant.not ⩾\c{not}
.eq.lt ⋛
.eq.not ≱
.equiv ≧
.equiv.not ≧\c{not}
.lt ≷
.lt.not ≹
.neq ⪈
Expand All @@ -340,9 +344,11 @@ lt <
.double.nested ⪡
.eq ≤
.eq.slant ⩽
.eq.slant.not ⩽\c{not}
.eq.gt ⋚
.eq.not ≰
.equiv ≦
.equiv.not ≦\c{not}
.gt ≶
.gt.not ≸
.neq ⪇
Expand Down Expand Up @@ -419,7 +425,9 @@ in ∈
.rev ∋
.rev.not ∌
.rev.small ∍
.rev.small.not ∍\c{not}
.small ∊
.small.not ∊\c{not}
subset ⊂
.approx ⫉
.closed ⫏
Expand Down