Skip to main content

Format to import User Notes

Comments

8 comments

  • Steven S

    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
  • Nicolai Skødt Holmgaard

    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
  • Steven S

    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
  • Nicolai Skødt Holmgaard

    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

    1. A script to convert the RTF to custom Accordance HTML format (works really well)
    2. A script to collect multiple txt Bible books (also works really well)
    3. A script to collect footnotes in RTF (currently working on that)
    1
  • jlm

    In case my solution helps, this is my post on the old forum, and here is my Python script to split a Markdown file and feed each chunk through Python.

    1
  • Nicolai Skødt Holmgaard

    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
  • Accordance Bible

    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.

Powered by Zendesk