Hi Jonathan,
Thank you for your attention to this matter! I assume you want the .bblx file and not the rtf. You might find the communication helpful that I got from MySword on the issues they fixed to have the MySword version look exactly like the ESword version:
Yes, my script expects a SQLite database file and will convert the text verse by verse.
I just used the E-Sword version as its RTF is more simplified than the original RTF you sent in the simple conversion tool.
The following are the RTF commands considered:
- \b and \b0
- \i and \i0
- \endash and \emdash
- \ldblquote and \rdblquote
- \lquote and \rquote
- \line
- \{ and \}
The rest were just removed.
Ouch, we have an issue here. My script cannot handle "\tag ... \tag0" RTF tags. The script parses the RTF tags recursively and with this form of tagging it is impossible for me to know if "\tag0" is the end of a earlier tag or just a new one. My script expects RTF tags in the form of "{\tag ... }". If you only used start and stop tags for bold and italic, AND you did not use the curly brace form of tagging, it should be easy enough to replace every "\i0" by "}" and every "\i" by "{\i" (and the same for "\b0" and "\b") and feed the result to my script.
I can easily handle "\endash" and the like, that should not be a problem. Regarding the "\{", I thought that was a literal curly brace? How should it be handled? As a grouping tag or as a literal curly brace?
Regards,
Rob