Format to import User Notes
I'm currently helping someone working on a new Bible Translation. I was provided the RTF file and have made a Python script, that can extract the footnotes.
But I don't know the formatting for importing a User Note to Accordance.
I have already checked the following, but it doesn't provide the formatting: https://accordancefiles2.com/helpfiles/Win13/Default.htm#topics/05_dd/importing_rtf_notes.htm?TocPath=Digging%2520Deeper%257CWorking%2520with%2520User%2520Notes%257C_____7
-
Hi Nicolai Skødt Holmgaard. I may be misunderstanding your question, but I'm assuming you're asking what the individual RTF files should look like. What follows is a sample RTF file for a single footnote from one of my User Bibles (a collection of which is imported using the File > User Files > Import Notes Folder command). When this file (named Acts 1_1.rtf) is imported, Accordance will associate a note containing the text "Jesus Taken Up Into Heaven (1:1–11)" in bold-italic font with Acts 1:1.
{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 \fmodern Courier;}} {\colortbl;\red255\green0\blue0;\red0\green0\blue255;} \widowctrl\hyphauto {\pard \ql \f0 \sa180 \li0 \fi0 {\b {\i Jesus Taken Up Into Heaven (1:1\u8211-11)}}\par} }
This particular RTF file was generated using Pandoc. Since you're using Python, you might be interested in using pypandoc to generate your RTF files instead of rolling your own formatter.
0 -
Hey Steven S. Thanks a lot.
Does that mean, that I have to make every single note it's own file?
I can't make a combined document, that has all notes?
0 -
Nicolai Skødt Holmgaard, yes, that's correct: one note per file. At the help system link you referenced above, it states:
There can be only one verse note per file.
(My User Bible's notes folder has 4,805 RTF files. 😀)
As part of your workflow, you could create a single intermediate document that contains the notes for every verse, but you must then write your own code to break it up into multiple RTF files that can be consumed by Accordance. When I asked a similar question to yours several years ago, jlm helpfully suggested to use a single Markdown document and split it up using Pandoc. It's a fairly straightforward process, but if you need some assistance, feel free to ask.
0 -
Thanks Steven S.
I'm sticking to Python for now, since more things can change in the future and it's easier for me to use.
The original formatted Bible I got in RTF was very well formatted. From that I could create 3 Python scripts
- A script to convert the RTF to custom Accordance HTML format (works really well)
- A script to collect multiple txt Bible books (also works really well)
- A script to collect footnotes in RTF (currently working on that)
1 -
Accordance Bible I have tried so many things and spend so many hours.
Sometimes User Notes will import. Sometimes it will crash and then I can import the file when reopening Accordance. Sometimes I can only import books, if they are the only book in a folder, but won't if there are more books in the same folder
I can't figure out what the error is, since Accordance doesn't provide an error code. It simply crashes.
Please update documation or provide error codes.
0 -
Can you email me the files that are causing the crash? https://support.accordancebible.com/hc/en-us/articles/35992960306843-Accordance-Community-Direct-Messaging
0 -
I can reproduce the issue you are seeing on my Windows 11, 14.0.11 PC. I will report it to our programmers.
0
Please sign in to leave a comment.
Comments
8 comments