Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Oct 11, 2024
1 parent 0cab3a9 commit eea3188
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions TeXmacs/langs/encoding/herktounicode.scm
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
("#39" "#39")
("#3A" "#3A")
("#3B" "#3B")
;; ("#3C" "#3C") ; less than
("#3C" "#3C") ; less than
("#3D" "#3D")
;; ("#3E" "#3E") ; greater than
("#3E" "#3E") ; greater than
("#3F" "#3F")
("#40" "#40")
("#41" "#41")
Expand Down
6 changes: 3 additions & 3 deletions src/Data/String/converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@ utf8_to_herk (string input) {
int start, i, n= N (input);
string output;
for (i= 0; i < n;) {
start = i;
start = i;
uint32_t code= decode_from_utf8 (input, i);
string s = input (start, i);
string r = apply (conv, s);
string s = input (start, i);
string r = apply (conv, s);
if (r == s && (code < 32 || code >= 128)) r= "<#" * to_Hex (code) * ">";
output << r;
}
Expand Down

0 comments on commit eea3188

Please sign in to comment.