/*v 1.0*/

/****************************************
*					*
*	Rules for Generic Files		*
*					*
****************************************/

rule("P", "xxx", "*") {
  bitmap = "Fifo.cbm";
  description = "̾դѥ";
}

rule("S", "xxx", "*") {
  bitmap = "Socket.cbm";
  description = "å";
}

rule("C", "xxx", "*") {
  bitmap = "CharDev.cbm";
  description = "饯ǥХ";
}

rule("B", "xxx", "*") {
  bitmap = "BlockDev.cbm";
  description = "֥åǥХ";
}

rule("L", "xxx", "*") {
  bitmap = "Question_2.cbm";
  description = "ܥå";
}

rule("D", "xxx", "*") {
  bitmap = "Folder.cbm";
  description = "ǥ쥯ȥ";
  print {
    preproc = "ls -lg %file";
  }
}

rule("D", "x0x", "*") {
  bitmap = "ProtectedFolder.cbm";
}

rule("R", "xx0", "*") {
  bitmap = "NormalFile.cbm";
  description = "ǡե";
  print {
    preproc = "cat %file";
  }
  script {
    open("1") {
      console("more %file ; echo -n \"Press RETURN to continue\"; read dummy");
    }
    open("s1") {
      console("more %file ; echo -n \"Press RETURN to continue\"; read dummy");
    }
  }
}

rule("R", "xx1", "*") {
  bitmap = "Command.cbm";
  description = "ޥ";
  print {
    preproc = "%path";
  }
  script {
    open("1") {
      console("%path ; echo -n \"Press RETURN to continue\"; read dummy");
    }
    open("s1") {
      console("%path | more ; echo -n \"Press RETURN to continue\"; read dummy");
    }
  }
}

/****************************************
*					*
*	Rules for UNIX Command		*
*					*
****************************************/

/****************************************
*					*
*	Rules for UNIX Files		*
*					*
****************************************/

rule("R", "xx0", ".*") {
  bitmap = "Control.cbm";
  description = "ȥե";
}

rule("R", "xx0", "*.Z") {
  bitmap = "Compressed.cbm";
  description = "̲줿ե";
}

rule("R", "xx0", "*.pic") {
  bitmap = "Pic.cbm";
  description = "pic ե";
}

rule("R", "xx0", "*.man") {
  bitmap = "MANroff.cbm";
  description = "man ޥ roff ե";
  print {
    preproc = "ditroff -man %file";
    filter = "-n";
  }
  script {
    open("1") { shell("ditroff -man %file | xprev"); }
  }
}

rule("R", "xx0", "*.me") {
  bitmap = "MEroff.cbm";
  description = "me ޥ roff ե";
  print {
    preproc = "ditroff -me %file";
    filter = "-n";
  }
  script {
    open("1") { shell("ditroff -me %file | xprev"); }
  }
}

rule("R", "xx0", "*.tbl.ms") {
  description = "tbl Ѥ ms ޥ roff ե";
  print {
    preproc = "tbl %file | ditroff -ms";
    filter = "-n";
  }
  script {
    open("1") { shell("tbl %file | ditroff -ms | xprev"); }
  }
}

rule("R", "xx0", "*.ms") {
  bitmap = "MSroff.cbm";
  description = "ms ޥ roff ե";
  print {
    preproc = "ditroff -ms %file";
    filter = "-n";
  }
  script {
    open("1") { shell("ditroff -ms %file | xprev"); }
  }
}

rule("R", "xx0", "Imakefile*") {
  bitmap = "Imakefile.cbm";
  description = "Imakefile";
}

rule("R", "xx0", "Makefile*") {
  bitmap = "Makefile.cbm";
  description = "Makefile";
}

rule("R", "xx0", "*.a") {
  bitmap = "Library.cbm";
  description = "饤֥ե";
}

rule("R", "xx0", "*.h") {
  bitmap = "Header.cbm";
  description = "C Υإåե";
}

rule("R", "xx0", "*.o") {
  bitmap = "Object.cbm";
  description = "֥";
}

rule("R", "xx0", "*.c") {
  bitmap = "CSource.cbm";
  description = "C Υե";
}

/****************************************
*					*
*	Rules for X Window Command	*
*					*
****************************************/

rule("R", "xx1", "X") {
  bitmap = "Xcommand.cbm";
  description = "X Window ";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "Xnews") {
  bitmap = "Xcommand.cbm";
  description = "X Window ";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "*clock") {
  bitmap = "Clock_1.cbm";
  description = "X Window ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "*term") {
  bitmap = "Terminal.cbm";
  description = "ߥʥ륨ߥ졼";
  script {
    open("1") { shell("%path"); }
    open("s1") { shell("%path -sb"); }
  }
}

rule("R", "xx1", "*wm") {
  bitmap = "Xcommand.cbm";
  description = "ɥޥ͡";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "*xdm") {
  bitmap = "Door.cbm";
  description = "ǥץ쥤ޥ͡";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "appres") {
  description = "ץꥱ꥽ɽޥ";
  script {
    open("1") {
      console("\n\
	classname=`sxparam -pr \"ץꥱ󥯥饹̾ϤƤ\"` \n\
	case $classname in \n\
	'') ;; \n\
	*) %path $classname | more; echo -n \"Press RETURN to continue\"; read dummy;; \n\
	esac");
    }
  }
}

rule("R", "xx1", "atobm") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "bdftosnf") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "bitmap") {
  bitmap = "Xcommand.cbm";
  description = "ӥåȥޥåץǥ";
  script {
    open("1") {
      shell("\n\
	filename=`sxparam -pr \"ե̾ϤƤ\"` \n\
	case $filename in \n\
	'') ;; \n\
	*) %path $filename ;; \n\
	esac");
    }
    drop("1") { shell("%command %file"); }
  }
}

rule("R", "xx1", "bmtoa") {
  script {
    open("1") {
      console("\n\
	filename=`sxparam -pr \"ӥåȥޥåץե̾ϤƤ\"` \n\
	case $filename in \n\
	'') ;; \n\
	*) %path -chars 01 $filename | more \n\
	   echo  -n \"Press RETURN to continue\"; read dummy ;; \n\
	esac");
    }
    drop("1") {
      console("\n\
	%command -chars 01 %file | more \n\
	echo -n \"Press RETURN to continue\"; read dummy");
    }
  }
}

rule("R", "xx1", "editres") {
  bitmap = "Xcommand.cbm";
  description = "꥽ǥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "ico") {
  bitmap = "Ico.cbm";
  description = "¿ΤΥǥץ";
  script {
    open("1") { shell("%path"); }
    open("s1") { shell("%path -faces -colors red green blue"); }
  }
}

rule("R", "xx1", "imake") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "makedepend") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "maze") {
  bitmap = "Maze.cbm";
  description = "ϩΥǥץ";
  script {
    open("1") { shell("%path"); }
    open("s1") { shell("%path -S"); }
  }
}

rule("R", "xx1", "mkdirhier") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "mkfontdir") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "muncher") {
  bitmap = "Muncher.cbm";
  description = "򤤥ѥǥץ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "plaid") {
  bitmap = "Plaid.cbm";
  description = "ʻͤǥץ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "puzzle") {
  bitmap = "Puzzle.cbm";
  description = "ѥ륲";
  script {
    open("1") { shell("%path"); }
    open("s1") { shell("%path -picture /usr/sony/demo/X11/puzzle/mandrill.cm"); }
  }
}

rule("R", "xx1", "resize") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "showsnf") {
  bitmap = "Showsnf.cbm";
  description = "SNF եƤɽ륳ޥ";
  script {
    open("1") {
      console("\n\
	filename=`sxparam -pr \"եȥե̾ϤƤ\"` \n\
	case $filename in \n\
	'') ;; \n\
	*) %path $filename | more; echo -n \"Press RETURN to continue\"; read dummy;; \n\
	esac");
    }
    drop("1") {
      console("%command %file | more ; echo -n \"Press RETURN to continue\"; read dummy"); }
    }
}

rule("R", "xx1", "scx") {
  bitmap = "SJX.cbm";
  description = "ϥեȥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "sjx") {
  bitmap = "SJX.cbm";
  description = "ܸϥեȥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "skx") {
  bitmap = "SJX.cbm";
  description = "ڹϥեȥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "startx") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "uil") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "xauth") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "viewres") {
  bitmap = "Xcommand.cbm";
  description = "꥽ӥ塼";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xbiff") {
  bitmap = "/usr/include/X11/bitmaps/flagdown";
  description = "᡼忮˥";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xcalc") {
  bitmap = "Calculator.cbm";
  description = "X Window ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xclipboard") {
  bitmap = "Xcommand.cbm";
  description = "X Window åץܡ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xclock") {
  script {
    open("1") { shell("%path -d -u 1"); }
    open("s1") { shell("%path -u 1"); }
  }
}

rule("R", "xx1", "xcutsel") {
  bitmap = "Xcommand.cbm";
  description = "åȥХåեȥ쥯֤Υǡ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xditview") {
  bitmap = "Xcommand.cbm";
  description = "ditroff Υץӥ塼";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xdpr") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "xedit") {
  bitmap = "Xcommand.cbm";
  description = "ƥȥǥ";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command %file"); }
  }
}

rule("R", "xx1", "xev") {
  bitmap = "Xcommand.cbm";
  description = "٥ȥƥ";
  script {
    open("1") { console("%path"); }
  }
}

rule("R", "xx1", "xeyes") {
  bitmap = "Xeyes.cbm";
  description = "ʤƻ뤹륳ޥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xfd") {
  bitmap = "Xfd.cbm";
  description = "X Window եɽޥ";
  script {
    open("1") {
      shell("\n\
	fontname=`sxparam -pr \"ե̾ϤƤ\"` \n\
	case $fontname in \n\
	'') ;; \n\
	*) %path -fn $fontname;; \n\
	esac");
    }
  }
}

rule("R", "xx1", "xfontsel") {
  bitmap = "Xcommand.cbm";
  description = "X Window ե򥳥ޥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xgc") {
  bitmap = "Xcommand.cbm";
  description = "եå¬ꥳޥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xgraph") {
  bitmap = "Xgraph.cbm";
  description = "snmp ѥɽޥ";
  script {
    open("1") {
      shell("\n\
	filename=`sxparam -pr \"եե̾ϤƤ\"` \n\
	case $filename in \n\
	'') ;; \n\
	*) %path $filename;; \n\
	esac");
    }
    drop("1") {
      shell("%command %file");
    }
  }
}

rule("R", "xx1", "xhost") {
  bitmap = "Xhost.cbm";
  description = "С楳ޥ";
  script {
    open("1") {
      console("\n\
	option=`sxparam -pr \"ץϤƤ\"` \n\
	case $? in \n\
	0) %path $option | more; echo -n \"Press RETURN to continue\"; read dummy;; \n\
	1) ;; \n\
	esac");
    }
  }
}

rule("R", "xx1", "xinit") {
  description = "X ɥƥΥ˥饤";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "xisdn") {
  bitmap = "Xisdn.cbm";
  description = "X  isdn ǥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xkill") {
  bitmap = "Xkill.cbm";
  description = "饤ȶλޥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xload") {
  bitmap = "Xload.cbm";
  description = "ɥ٥졼˥";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xlogo") {
  bitmap = "Xlogo.cbm";
  description = "X Window Υɽޥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xmag") {
  bitmap = "Xmag.cbm";
  description = "꡼ʬ祳ޥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xman") {
  bitmap = "Xman.cbm";
  description = "ޥ˥奢ڡɽޥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xmh") {
  bitmap = "Xcommand.cbm";
  description = "X Window ᥤϥɥ顼";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xmj") {
  bitmap = "Mahjong.cbm";
  description = "峤";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xmkmf") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "xmodmap") {
  bitmap = "Xmodmap.cbm";
  description = "ޥå׽ޥ";
}

rule("R", "xx1", "xpr") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "xprev") {
  bitmap = "Xcommand.cbm";
  description = "ditroff Υץӥ塼";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "xrdb") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "xrefresh") {
  bitmap = "Xrefresh.cbm";
  description = "꡼Υեå女ޥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xscn") {
  bitmap = "Xscn.cbm";
  description = "᡼ɤ߼ġ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "xsed") {
  bitmap = "s_apr.cbm";
  description = "ɥǥ";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command %file"); }
  }
}

rule("R", "xx1", "xset") {
  bitmap = "Xset.cbm";
  description = "X Window γƼꥳޥ";
  script {
    open("1") {
      console("%path q ; echo -n \"Press RETURN to continue\"; read dummy");
    }
  }
}

rule("R", "xx1", "xsetroot") {
  bitmap = "Xsetroot.cbm";
  description = "롼ȥɥꥳޥ";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "xstdcmap") {
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "xvmap") {
  bitmap = "Xvmap.cbm";
  description = "X ѥӥǥޥåפΥǥ";
  script {
    open("1") { shell("%path"); }
    open("s1") {
      shell("%path -dev `sxparam \"ǥХ̾ϤƤ\"`");
    }
  }
}

rule("R", "xx1", "xwd") {
  bitmap = "Xwd.cbm";
  description = "ɥ";
  print {
    preproc = "xwd";
    filter = "-x";
  }
  script {
    open("1") {
      shell("\n\
	filename=`sxparam -pr \"ϥե̾ꤷƤ\"` \n\
	case $filename in \n\
	'') ;; \n\
	*) xwd -out $filename \n\
	esac");
    }
  }
}

rule("R", "xx1", "xwud") {
  bitmap = "Xwud.cbm";
  description = "ɥ";
  script {
    open("1") {
      shell("\n\
	filename=`sxparam -pr \"ɽե̾ꤷƤ\"` \n\
	case $filename in \n\
	'') ;; \n\
	*) xwud -in $filename;; \n\
	esac");
    }
    drop("1") { shell("%command -in %file"); }
  }
}

/****************************************
*					*
*	Rules for X Window Files	*
*					*
****************************************/

rule("R", "xx0", "*.xwd") {
  bitmap = "Image.cbm";
  description = "ɥץե";
  print {
    preproc = "cat %file";
    filter = "-x";
  }
  script {
    open("1") { shell("xwud -in %file"); }
  }
}

rule("R", "xxx", "*.snf") {
  bitmap = "Snf.cbm";
  description = "X Window Υեȥե";
  script {
    open("1") { shell("xfd -fn `basename %file .snf`"); }
    open("2") { console("showsnf %file | more; echo -n \"press RETURN to continue\"; read dummy"); }
  }
}

rule("R", "xxx", "*.xg") {
  bitmap = "Graph.cbm";
  description = "xgraph ޥѤΥեե";
  script {
    open("1") { shell("xgraph %file"); }
  }
}

/****************************************
*					*
*	Rules for desktop Commands	*
*					*
****************************************/

rule("R", "xx1", "sxsession") {
  bitmap = "Xcommand.cbm";
  description = "NEWS Desk åޥ͡";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "sxfiler") {
  bitmap = "Sxfiler.cbm";
  description = "NEWS Desk եޥ͡";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "sxmail") {
  bitmap = "Sxmail.cbm";
  description = "NEWS Desk ᡼ϥɥ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "sxsend") {
  bitmap = "Sxsend.cbm";
  description = "NEWS Desk ᡼ޥ";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command -sf %file"); }
  }
}

rule("R", "xx1", "sxedit") {
  bitmap = "Editor.cbm";
  description = "NEWS Desk ƥȥǥ";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command -file %file"); }
  }
}

rule("R", "xx1", "sxbitmap") {
  bitmap = "IconMaker.cbm";
  description = "NEWS Desk ӥåȥޥåץǥ";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command -file %file"); }
  }
}

rule("R", "xx1", "sxcal") {
  bitmap = "Calendar_1.cbm";
  description = "NEWS Desk ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "sxfloppy") {
  bitmap = "Format.cbm";
  description = "NEWS Desk եåԡġ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "sxadmin") {
  bitmap = "SystemControl.cbm";
  description = "NEWS Desk ƥġ";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx1", "sxparam") {
  bitmap = "Xcommand.cbm";
  description = "NEWS Desk 桼ƥƥ";
  script {
    open("1") { shell(""); }
  }
}

rule("R", "xx1", "sxmenu") {
  bitmap = "Xcommand.cbm";
  description = "NEWS Desk 桼ƥƥ";
  script {
    open("1") { shell(""); }
  }
}

/****************************************
*					*
*	Rules for desktop Files		*
*					*
****************************************/

rule("R", "xx0", "*::TEXT") {
  bitmap = "Paper_2.cbm";
  description = "̾Υƥȥե";
  print {
    preproc = "cat %file";
  }
  script {
    open("1") { shell("sxedit -file %file"); }
  }
}

rule("R", "xx0", "*.txt") {
  bitmap = "Paper_2.cbm";
  description = "̾Υƥȥե";
  print {
    preproc = "cat %file";
  }
  script {
    open("1") { shell("sxedit -file %file"); }
  }
}

rule("R", "xx0", "*.cbm") {
  bitmap = "Bitmap.cbm";
  description = "ѥȥӥåȥޥåץե";
  script {
    open("1") { shell("sxbitmap -file %file"); }
  }
}

rule("R", "xx0", "*::CBM") {
  bitmap = "Bitmap.cbm";
  description = "ѥȥӥåȥޥåץե";
  script {
    open("1") { shell("sxbitmap -file %file"); }
  }
}

/****************************************
*					*
*	Rules for Applications		*
*					*
****************************************/

/****************************************
*					*
*	Rules for CD-ROM Creator	*
*					*
****************************************/

rule("R", "xx1", "mkcd") {
  bitmap = "mkcd.cbm";
  description = "CD-ROM Creator";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command %file"); }
  }
}

rule("R", "xx0", "*.cfi") {
  bitmap = "Cfi.cbm";
  description = "CD-ROM format information ե";
  script {
    open("1") { shell("mkcd %path"); }
  }
}

/****************************************
*					*
*	Rules for MediaPaint		*
*					*
****************************************/

rule("R", "xx1", "mpaint") {
  bitmap = "p_apr.cbm";
  description = "MediaPaint";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command %file"); }
  }
}

rule("R", "xx0", "*.pnt") {
  bitmap = "p_data.cbm";
  description = "MadiaPaint Υǡե";
  print {
    proc = "xmcpr %file";
  }
  script {
    open("1") { shell("mpaint %file"); }
  }
}

/****************************************
*					*
*	Rules for MediaDraw		*
*					*
****************************************/

rule("R", "xx1", "mdraw") {
  bitmap = "d_apr.cbm";
  description  = "MediaDraw";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command %file"); }
  }
}

rule("R", "xx0", "*.drw") {
  bitmap = "d_data.cbm";
  description = "MadiaDraw Υǡե";
  print {
    proc = "xmcpr %file";
  }
  script {
    open("1") { shell("mdraw %file"); }
  }
}

/****************************************
*					*
*	Rules for MediaWrite		*
*					*
****************************************/

rule("R", "xx1", "mwrite") {
  bitmap = "e_apr.cbm";
  description = "MediaWrite";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command %file"); }
  }
}

rule("R", "xx0", "*.wrt") {
  bitmap = "e_data.cbm";
  description = "MadiaWrite Υǡե";
  print {
    proc = "xmcpr %file";
  }
  script {
    open("1") { shell("mwrite %file"); }
  }
}

/****************************************
*					*
*	Rules for MediaSound		*
*					*
****************************************/

rule("R", "xx1", "msound") {
  bitmap = "s_apr.cbm";
  description = "MediaSound";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command %file"); }
  }
}

rule("R", "xx0", "*.snd") {
  bitmap = "s_data.cbm";
  description = "ɥե";
  script {
    open("1") { shell("xsed %file"); }
    open("2") { shell("msound %file"); }
    open("3") { shell("sbplay %file"); }
  }
}

/****************************************
*					*
*	Rules for MediaPresentation	*
*					*
****************************************/

rule("R", "xx1", "mpres") {
  bitmap = "mp_icon.cbm";
  description = "MediaPresentation";
  script {
    open("1") { shell("%path"); }
    drop("1") { shell("%command %file"); }
  }
}

rule("R", "xx0", "*.prs") {
  bitmap = "mp_data.cbm";
  description = "MediaPresentation Υǡե";
  script {
    open("1") { shell("mpres %file"); }
  }
}

/****************************************
*					*
*	Rules for MediaFinder		*
*					*
****************************************/

rule("R", "xx1", "mfinder") {
  bitmap = "Mfinder.cbm";
  description = "MediaFinder";
  script {
    open("1") { shell("%path"); }
  }
}

/****************************************
*					*
*	Rules for MediaBank		*
*					*
****************************************/

rule("R", "xx1", "mbank") {
  bitmap = "MediaBank.cbm";
  description = "MediaBank";
  script {
    open("1") { shell("%path"); }
  }
}

rule("R", "xx0", "*.cdf") {
  bitmap = "CDFF.cbm";
  description = "CDFF ե";
  script {
    open("1") { shell(""); }
  }
}

/****************************************
*					*
*	Rules for xadpcm		*
*					*
****************************************/

rule("R", "xx1", "xadpcm") {
  bitmap = "Xadpcm.cbm";
  description = "ADPCM ꥢ륿२󥳡";
  script {
    open("1") { shell("%path"); }
  }
}

/****************************************
*                                       *
*       Rules for Other Applications	*
*                                       *
****************************************/
/****************************************
*                                       *
*       Rules for ashisuto calc         *
*                                       *
****************************************/

rule("R", "xx1", "s2020") {
  bitmap = "s2020.cbm";
  description = "ȥ륯";
  script {
    open("1") { shell("SYS_CODE=euc; export SYS_CODE; %path -tNEWSWINDOW"); }
    drop("1") { shell("SYS_CODE=euc; export SYS_CODE; %command -tNEWSWINDOW %file"); }
  }
}

rule("R", "xx0", "*.w20") {
  bitmap = "s2020.cbm";
  description = "ȥ륯Хʥե";
  script {
    open("1") { shell("SYS_CODE=euc; export SYS_CODE; s2020 -tNEWSWINDOW %file"); }
  }
}
