- ASCIIMathML HOME -- http://www1.chapman.edu/~jipsen/mathml/asciimath.html
- James Gary's ASCIIMathML Page -- http://www.wjagray.co.uk/maths/ASCIIMathMLinfo.html
網頁線上編輯器︰(可外掛ACSIIMathML的線上編輯器)
- FCKeditor -- http://www.fckeditor.net/
- TinyMCE -- http://tinymce.moxiecode.com/
OpenOffice 滙出成 Latex︰
- 用 tr-cjk.pl 轉成 CJK-Latex,可再成 PDF
- 用 TeX4ht/mn 把 Latex 轉成 xhtml 檔 (含 MathML),以網頁型式上發佈
- 指令 (要安裝 MikTex) : mzlatex Tex-file "html,mathplayer", 產生 XML 檔
- 用 tr-cjk.pl 把 unicode 轉成 Big5 或 以 #xxxx 表示
use Encode;
sub B5_U { return Encode::decode("big5", shift); }
sub U_B5 { return Encode::encode("big5", shift); }
die "Usage: $0 TEX_file\n" if $#ARGV<0;
die "Cannot open $ARGV[0]\n" unless -e $ARGV[0];
open I ,$ARGV[0];
while(my $line= ) {
$line2 = $line;
(print($line) && next ) unless $line =~ m/(\[\w\w\w\w\?\])/;
while ($line =~ m/(\[\w\w\w\w\?\])/g) {
my $w = $1;
$w =~ /(\w+)/;
my $us = $1;
my $uc = pack 'U', hex($us),0,0;
$b5char = U_B5 $uc;
# printf "$w %X %s\n", hex($us), $b5char;
$line2 =~ s/(\[\w\w\w\w\?\])/$b5char/;
}
print $line2;
}
close I;
沒有留言:
張貼留言