Jaak Ristioja
2014-05-18 15:10:11 UTC
Hi!
http://www.crosswire.org/sword/develop/swordmodule/ states:
"About is a lengthier description and may include copyright, source,
etc. information. It may be formatted as RTF or as plain text."
I agree that something more than plain text is needed for anything
more than one non-formatted paragraph of non-formatted text. But as
everybody surely knows, all RTF starts with the string "{\rtf".
However looking at the .conf files in my ~/.sword/mods.d/, I conclude
that actually only a subset of RTF is allowed in the About field.
I have two questions:
1) What exactly are frontends required to support here? Groups?
Certain control words only?
2) How should a frontend distinguish between an RTF formatted About
field and a plain text About field? Search for RTF control words, fall
back to plain text if none found or if invalid RTF segment provided?
Thanks!
Blessings,
Jaak
PS: histmideast.conf contains a probably invalid \oar (did not find
this in the RTF specs).
http://www.crosswire.org/sword/develop/swordmodule/ states:
"About is a lengthier description and may include copyright, source,
etc. information. It may be formatted as RTF or as plain text."
I agree that something more than plain text is needed for anything
more than one non-formatted paragraph of non-formatted text. But as
everybody surely knows, all RTF starts with the string "{\rtf".
However looking at the .conf files in my ~/.sword/mods.d/, I conclude
that actually only a subset of RTF is allowed in the About field.
I have two questions:
1) What exactly are frontends required to support here? Groups?
Certain control words only?
2) How should a frontend distinguish between an RTF formatted About
field and a plain text About field? Search for RTF control words, fall
back to plain text if none found or if invalid RTF segment provided?
Thanks!
Blessings,
Jaak
PS: histmideast.conf contains a probably invalid \oar (did not find
this in the RTF specs).