schierlm / BibleMultiConverter

Converter written in Java to convert between different Bible program formats
Other
124 stars 33 forks source link

OnLineBible export: Merge adjacent references #49

Closed schierlm closed 3 years ago

schierlm commented 3 years ago

Starting from this comment by @Michahel, when exporting to OnLineBible, adjacent references should be merged so that clicking them opens one reference window and not multiple ones.

References are adjacent if they are only separted by whitespace or certain punctuation (I would suggest semicolon, comma, period; as I have seen those in separating references in various input formats).

So, instead of exporting

{\\#Ref1\\; \\#Ref2\\.\\#Ref3\\}

it should get exported as

{\\#Ref1 Ref2 Ref3\\}