<p dir="ltr">I believe there is a standard class in the engine that does an RTF to HTML conversion on arbitrary text.  You should be able to pass these entries through that converter to get out reasonable text. </p>
<p dir="ltr">--Greg</p>
<div class="gmail_quote">On May 18, 2014 10:12 AM, &quot;Jaak Ristioja&quot; &lt;<a href="mailto:jaak@ristioja.ee">jaak@ristioja.ee</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi!<br>
<br>
<a href="http://www.crosswire.org/sword/develop/swordmodule/" target="_blank">http://www.crosswire.org/sword/develop/swordmodule/</a> states:<br>
<br>
&quot;About is a lengthier description and may include copyright, source,<br>
etc. information. It may be formatted as RTF or as plain text.&quot;<br>
<br>
I agree that something more than plain text is needed for anything<br>
more than one non-formatted paragraph of non-formatted text. But as<br>
everybody surely knows, all RTF starts with the string &quot;{\rtf&quot;.<br>
However looking at the .conf files in my ~/.sword/mods.d/, I conclude<br>
that actually only a subset of RTF is allowed in the About field.<br>
<br>
I have two questions:<br>
<br>
1) What exactly are frontends required to support here? Groups?<br>
Certain control words only?<br>
<br>
2) How should a frontend distinguish between an RTF formatted About<br>
field and a plain text About field? Search for RTF control words, fall<br>
back to plain text if none found or if invalid RTF segment provided?<br>
<br>
Thanks!<br>
<br>
<br>
Blessings,<br>
Jaak<br>
<br>
PS: histmideast.conf contains a probably invalid \oar (did not find<br>
this in the RTF specs).<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.22 (GNU/Linux)<br>
<br>
iQgcBAEBAgAGBQJTeM1QAAoJELozJlbjIn79Mg1AAM78348kfUfRm8FSyClswWey<br>
/rld/AVKe7x/ug+7U1CTbPxdJdabCbPdxN3LmwkRLRDYQ7nk5pufzAyajMK0U/rW<br>
m2eacM3FHR6R4qu0WZRSMIdCJtAUpgNUrwh6VwbS7T6UjPhPI3vKQWTHxnojWufR<br>
J5RDXm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JWNC4X3Ntj3ABY/ADnfgHi2BPaF8r/llESgjB<br>
bX+aLeS5VYmlpgq1wBLdm2nLGEWrLqO2+dNZMPKOb/B1m74dqSf7v+0CulSEijix<br>
aAOLEbd4Aq4u1Q/UmB57+yMIjXMz+wk3j00xrZ7MqgDuy18wO4pzZoPF5GrOnB9k<br>
R7YqppZk9LD27EMyyOySxVlpjQy78PdCVkN+xb//Kf9QEXVlXefz0RaGmPvdU/jO<br>
LVd10TyHNDKGqgVtquicyY1n71YZfNCpAbCDFLQOsi7h2Nn5Puewok5mJwpsTc9m<br>
wXoQpOFItDJZD5XiOpSnXvVMKR/aj3Z7sVzLXx8ogeg7Y9XxUejRCtXXxOB0XoC2<br>
56uKpwmjVrUii4KnNu3mQN+vaeIIv7PySAoed0fGQGwUHZqxiX1wC1dK5IM9BNAk<br>
+boQS0dkeZSUxnnf+/3UVkXCI8d04UAix8VykQd3B1mGNSX2IwLzBdKC7Mv+1py3<br>
megzDHZ153i+z+/0DPdQiGWICscjVNhJmoWfZSsxxc+gI1QHsW5/VCDIqqQsWlfb<br>
S9icGJc263KWbhTsoKj4<br>
=Vm2Q<br>
-----END PGP SIGNATURE-----<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</blockquote></div>