<html><head></head><body>Right, so, it's going to be different per module, so I would do something like:<br><br>VerseKey *vk = (VerseKey *)currentBible->getKey();<br><br>for ((*vk) = TOP; !vk->popError(); vk->setBook(vk->getBook() + 1)) {<br> cout << vk->getBookAbbrev();<br>}<br><br><div class="gmail_quote">On May 17, 2020 11:27:32 PM MST, Tobias Klein <contact@tklein.info> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 5/15/20 8:22 PM, Troy A. Griffitts wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">The other sections (sections besides [Text] in SWORD's locale files <br>are not specifically for directly translation. They are used by <br>SWORD's verse parser VerseKey translation, etc.<br></blockquote><br>Let me explain my actual use case.<br><br>After doing a module search I'm generating a bar chart that visualizes <br>search results per bible book. It looks like this at the moment:<br><a href="https://paste.pics/073e805fc1a74db1e7899aefaf838e86">https://paste.pics/073e805fc1a74db1e7899aefaf838e86</a><br><br>In that bar chart I'm using the book abbreviations as labels on the <br>x-axis of the chart. I'm simply using the abbreviations, because the <br>full book names would take up too much vertical screen space in this <br>particular case.<br><br>That's why I was asking for a direct method for translating the Abbrev. <br>strings, since I don't need the abbreviations for individual verses <br>(then the VerseKey based approach would totally make sense), but in this <br>case I simply need to generate an array with all the book names <br>(abbreviations) to use as labels for the x-axis of the chart.)<br><br>I can work with the existing API, but for this particular use case it's <br>certainly a bit odd (from an object-oriented standpoint), because I'm <br>not dealing with individual verses in this case.<br><br>Best regards,<br>Tobias<hr>sword-devel mailing list: sword-devel@crosswire.org<br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page</pre></blockquote></div><br>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>