[sword-devel] Parse key question
karl at kleinpaste.org
Tue May 8 08:29:57 MST 2007
DM Smith <dmsmith555 at yahoo.com> writes:
> I have references of the form:
> Obad 2
> Is this a bug?
> If not how should I work around it?
I don't think it's exactly a bug, but one could argue that Sword's
parsing should handle the three 1-chapter books (Obadiah, Philemon,
Jude) as special cases in the obvious way. Yet I worry that such
handling might cause secondary bugs elsewhere. How do such refs fit
into e.g. range specifications? Say, if someone wants to reference a
range such as "Jude 1-Rev 2". Maybe it wouldn't be a problem, but I
worry about corner cases a lot.
Some of my scripts try just to detect such refs syntactically, and
prefix "1:" onto the verse. It's ugly (you've seen what I do with
sed) and not entirely successful (regexp use can be rather rough) and
possibly suffers from exactly the range problem.
More information about the sword-devel