ubsicap / paratext_demo_plugins

Sample code to demonstrate how to create a Paratext plugin
2 stars 4 forks source link

There does not seem to be a way to format a verse range #11

Open tombogle opened 2 years ago

tombogle commented 2 years ago

IProject.GetFormattedReference takes a single IVerseRef. If that reference happens to be a bridge, then the resulting formatted reference will correctly represent that. But IVersification given no method for creating a single IVerseRef that represents a range of verses. So if a plugin has two IVerseRef objects (e.g., from IScriptureTextSelection.VerseRefStart and IScriptureTextSelection.VerseRefEnd), there is no way to get a properly formatted string representation of the range of verses from start to finish.