Jump to content

User tool import (Html) fails with some scripture references


Tim Campbell

Recommended Posts

As reported in my support thread here I have found that importing user tools fails when scripture references are in <book> <chapter>.<verse> format, and especially when they are gathered together in lists.

 

For example, any of the following occurring in a html document to be imported will cause the import to fail silently, and no user tool will be created:

 

Eph. 1.1-10, 12-14

2 Cor. 1.22; 5.5; Eph 1.14

Josephus in J. W. 4.335-344; 2.254-257, 264-265.

 

 

Steps to reproduce

==============

1. Create an HTML file containing any of the lines above.

2. File -> User Files -> Import User Tool...

3. Import the HTML file as a new user tool

 

Expected results

============

Even if the above were not correctly hyperlinked, I would expect the import to run to completion and the user tool to be created. Ideally, they would all be detected and hyperlinked correctly.

 

At a minimum, if the import did fail I would expect a notification indicating the nature of the failure and the context (i.e. the line / reference that it failed on).

 

Actual results

==========

Import fails, no user tool is created.

 

Workaround

=========

In all of the cases shown above, converting the period to a colon allows the import to succeed. However, tracking back through 8 years of research notes and manually making this change is tedious, particularly when (a) there is no indication of what or where the problem is; and (B) the same data imported fine into Accordance 10.

 

System Details

===========

Accordance 11.0.6

2015 MacBook Pro

OS X 10.10.2

Link to comment
Share on other sites

If you use OpenOffice or similar LibreOffice or NeoOffice, then with (\w+) (\d+)[.](\d+) as search and replace it as $1 $2:$3 in the replace field. When set on more options and then tick regular expressions or regex. Then it would all dots that comes after a word then a digit, followed by a digit replace to a :

 

Or only 

 

(\d+)[.](\d+)

 

$1:$2

 

for verse numbering after a verse (for all). If you don't have another format that use digit.digit then you can take this alone. But I'm try first better this which is more specific. I had made my experiences :blink: as I use to global searches and replaces.

 

Go on the search and replace pop-up to the help files, down left and search there for regu? and you'll find more infos.

 

Greetings

 

Fabian

Edited by Fabian
Link to comment
Share on other sites

  • 2 weeks later...

Tim, just to follow up here as well, I apologize for the delay, but this bug will be fixed in the next rev of Accordance.  It will be able to successfully import and autolink all of those references, except the Josephus set.

  • Like 1
Link to comment
Share on other sites

Tim, just to follow up here as well, I apologize for the delay, but this bug will be fixed in the next rev of Accordance.  It will be able to successfully import and autolink all of those references, except the Josephus set.

 

Thanks Joel, this is great news :-) I will look forward to the next update!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...