我有一個ruby腳本,它創建一個HTML文件作爲某些字母上色的輸出。用格式創建一個Word文件
例如
<p>
<b>>aug3me.g5.t1</b> has a signal p with a cleavage site between positions 19 and 20.<br>
<b class="SignalP">MLRSMMLMIAMGCFLNAFG</b>QSGQELE<b class="motif_site">KR</b>VI<b class="motif_site">KNAR</b>QLIYEG<b class="motif_site">KR</b>SGEGYFSKDGK<b class="motif_site">HLIFQSER</b>EEENPYYQIYILDLESGDINRVSPGQGKTTCSYFDWSSDNNVLFGSTHHDPKAKEKQQAELDF<b class="motif_site">RASGKKRR</b>YSWDYDKEMDIFSAN<b class="motif_site">RDGSNVKR</b>ITTEEGYDAEGSYSPDG<b class="motif_site">KK</b>IAFCSLRDAYN<b class="motif_site">KK</b>LSEKEIKTLEVDAAYFGEIYIMDADGSNQ<b class="motif_site">KR</b>LTNVPEPVRITHTDGFDGLPVFSPNGKNIAWTSVRTSD<b class="motif_site">KK</b>SQIFYASWDHQAALSLLKQAPAKGQDAKDPNFTGEIKSDEIKSKVAYLASDELEGRMTGSEGI<b class="motif_site">KK</b>ASDYITGQF<b class="motif_site">KK</b>IGLNSIESREEYLQEFPFVSSVEVNAAGTSFSTTN<b class="motif_site">KK</b>KPKAWVLYENFVPLPFSMNGEFEGEVVFAGYGIKTPDKSEVEYNSYANIEVKDKAVMILFDVPPHFNDDEEKELI<b class="motif_site">RYASPR</b>Y<b class="motif_site">KALVAR</b>ELGAKAVIFISE<b class="motif_site">REREFR</b>GVSKDNVPGNAGILALKVKSDLANEMLKSKETDFEKVKTQFENYNPHSENEFPLPGQTIGITTQLDKVESSDNNVIGILYADEPTDHYLMVGAHYD<b class="motif_site">HLGR</b>GEAGTLAHGEEKEEIHNGADDNASGTAAVMELAEYFVQLKNENPGSLTKNLLFALWSGEEMGLVGSAHYTKQSSKEIEGMDAYLNFDMIGMLNDNKLILQGLGSSPAWNKIVE<b class="motif_site">KK</b>NVAAGFDLTLQDDPYVPTDGMSFYQAGVPMLCFFSGIHDYYH<b class="motif_site">KPTDDIER</b>LNYEGAERIIKFSAEIIKELMKVDTLAYA<b class="motif_site">KVEMVKNR</b>AAGSKGFSVYLGTIPDYVAEVEGV<b class="motif_site">KLSGVR</b>AGGPAEKAVFRPN<b class="motif_site">KALR</b>LYGLNPLRGPH
</p>
通過以上序列,某些殘基(字母)的顏色或其它等着色
我需要一個腳本,使一些類型的文本文件(最好.doc文件)包含所有這些格式。
是否可以創建一個腳本來創建帶格式的word文檔。如果是這樣,我會如何處理這個問題?