diff options
| author | Hugo Herbelin | 2015-11-19 22:32:54 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2015-12-05 08:58:19 +0100 |
| commit | d1c4ea65c490b59d34a5464554237a270063cbc9 (patch) | |
| tree | e882b4b449e03987b1ab39a22e3a69364fc7913b /dev/ocamldoc/fix-ocamldoc-utf8 | |
| parent | 05a710d636634b35d8147fe819d061e367f02591 (diff) | |
Ensuring that documentation of mli code works in the presence of utf-8
characters.
Diffstat (limited to 'dev/ocamldoc/fix-ocamldoc-utf8')
| -rwxr-xr-x | dev/ocamldoc/fix-ocamldoc-utf8 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/ocamldoc/fix-ocamldoc-utf8 b/dev/ocamldoc/fix-ocamldoc-utf8 new file mode 100755 index 0000000000..fe2e0c1155 --- /dev/null +++ b/dev/ocamldoc/fix-ocamldoc-utf8 @@ -0,0 +1,6 @@ +#!/bin/sh + +# This reverts automatic translation of latin1 accentuated letters by ocamldoc +# Usage: fix-ocamldoc-utf8 file + +sed -i -e 's/\\`a/\d224/g' -e "s/\\\^a/\d226/g" -e "s/\\\'e/\d233/g" -e 's/\\`e/\d232/g' -e "s/\\\^e/\d234/g" -e 's/\\\"e/\d235/g' -e "s/\\\^o/\d244/g" -e 's/\\\"o/\d246/g' -e "s/\\\^i/\d238/g" -e 's/\\\"i/\d239/g' -e 's/\\`u/\d249/g' -e "s/\\\^u/\d251/g" -e "s/\\\c{c}/\d231/g" $1 |
