Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read resource project with GetUSFM #26

Open
steve-pence opened this issue Jan 18, 2023 · 5 comments
Open

Can't read resource project with GetUSFM #26

steve-pence opened this issue Jan 18, 2023 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@steve-pence
Copy link

The following demo code works fine with an ordinary project, but with a resource project I'm getting
"Plugin does not have access to GetUSFM for this project."
Does the API not support reading content from resource projects? Or have I missed something?
Thanks,
Steve

internal static void TryReadingScripture(IParatextChildState state)
{
var activeProjectName = state.Project.ShortName;
string thisBook = state.VerseRef.BookCode;
int thisBookNo = state.VerseRef.BookNum;
int thisChapter = state.VerseRef.ChapterNum;
int thisVerse = state.VerseRef.VerseNum;
int thisVerseCode = state.VerseRef.BBBCCCVVV;

        MessageBox.Show($"My Paratext cursor is at {thisBook} {thisChapter}:{thisVerse} of {activeProjectName}, and the Book Number for {thisBook} is {thisBookNo}, and the ref code is {thisVerseCode} ");

        MessageBox.Show("GetUSFM: \r\n" + state.Project.GetUSFM(thisBookNo, thisChapter, thisVerse));

        MessageBox.Show("GetUSFMTokens: \r\n" + state.Project.GetUSFMTokens(thisBookNo, thisChapter, thisVerse).Count());
       
        IEnumerable<IUSFMToken> tokens = state.Project.GetUSFMTokens(thisBookNo, thisChapter, thisVerse);
        foreach (IUSFMToken token in tokens)
        {
            if (token is IUSFMTextToken) MessageBox.Show( ((IUSFMTextToken)token).Text );
        }
    }
@FoolRunning
Copy link
Contributor

Please see the WIKI page Accessing protected resource content.

@steve-pence
Copy link
Author

steve-pence commented Jan 18, 2023 via email

@tombogle
Copy link
Collaborator

I think it’s maybe somewhat intentional to not make this very high profile.

@steve-pence
Copy link
Author

steve-pence commented Jan 18, 2023 via email

@FoolRunning FoolRunning added the documentation Improvements or additions to documentation label Jan 18, 2023
@steve-pence
Copy link
Author

Hi,
It is nearly two weeks since I submitted a request pursuant to the link mentioned above, which says: "The plugin developer needs to send in an email to support@paratext.org explaining why they need access to resource data and what they plan on doing with the data."

I have received no response, either from my initial request, or to a followup email. There was no acknowledgement, no ticket number, nothing. I understand that these things can take time, but I need some assurance that my request is in a queue and not in a bit bucket.

Could you kindly confirm that support@paratext.org is the correct recipient and that a defined process for this is actually in place? If so, I'd like to know how to prompt some acknowledgement from them. Since this resource was specifically developed for use with this plugin, approval should be a formality. This issue is currently impacting my progress on the project.

Please advise,

Steve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants