lib/scripts/recode.pl
author wenzelm
Thu Nov 13 23:45:15 2014 +0100 (2014-11-13)
changeset 58999 ed09ae4ea2d8
parent 52835 0906c00bb21d
child 62506 860cd901ab43
permissions -rw-r--r--
uniform treatment of all document markup commands: 'text' and 'txt' merely differ in LaTeX style;
discontinued obsolete 'txt_raw' (superseded by 'text_raw');
eliminated obsolete Outer_Syntax.markup (superseded by keyword kinds);
'text' and 'txt' no longer appear in Sidekick tree due to change of keyword kind;
changed tagging of diagnostic commands within proof;
wenzelm@52835
     1
#
wenzelm@52835
     2
# Author: Makarius
wenzelm@52835
     3
#
wenzelm@52835
     4
# recode.pl - recode utf8 for ML
wenzelm@52835
     5
#
wenzelm@52835
     6
wenzelm@52835
     7
for (@ARGV) {
wenzelm@52835
     8
  utf8::upgrade($_);
wenzelm@52835
     9
  s/([\x80-\xff])/\\${\(ord($1))}/g;
wenzelm@52835
    10
  print $_, " ";
wenzelm@52835
    11
}
wenzelm@52835
    12