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

OPT20033: Commentary native segmentation opf to pecha db json serializer #94

Open
3 of 5 tasks
tenzin3 opened this issue Dec 12, 2024 · 1 comment
Open
3 of 5 tasks
Assignees

Comments

@tenzin3
Copy link
Contributor

tenzin3 commented Dec 12, 2024

Description

A serializer is required to convert commentary data from Pecha OPF format into JSON for pecha.org with api platform. While the script for the conversion has been implemented, modifications are needed to meet the required standard format and enable successful uploads to pecha.org using the provided API.

Dummy Data

Sample data is available here.

Desired Output

The JSON file, provided by Sandup after thorough testing and approval of all required formats, is now available here.
standard_commentary.json

Expected Output

Serialized JSON files for each commentary, meeting the required format, and successfully uploaded to the staging environment of pecha.org.

Implementation Steps

  • Manually prepare JSON files for commentary document files.
  • Test the JSON files with the pecha.org API.
  • Modify the script to generate the desired JSON.
  • Upload the finalized JSON files to staging.pecha.org.

Reviewer

@tenzin3 tenzin3 self-assigned this Dec 12, 2024
@tenzin3
Copy link
Contributor Author

tenzin3 commented Dec 12, 2024

To upload the Commentary JSON files via pecha.org-api

  1. run commentaryToJson.py script to generate links..
  2. run pechaAPI.py script to upload text and its commenary links

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

No branches or pull requests

1 participant