Closed mandolyte closed 1 year ago
@birchamp @mandolyte It'd be helpful to have an example of each kind of url we want to support for each case above.
@superdav42 @birchamp
Perhaps a simpler approach is to change the dialog to include the org and repo. The org could default to that specified in the account settings. This would be an easy way for users to access book in repos that don't follow our naming standards.
And from there we could determine whether the user has write access to the repo. So this takes care of use cases 1 and 2.
If they have write access, we could have the save button. But if they don't we could replace it with a "download" button.
Example:
Possibly even provide a file picker instead of letting them type it.
For the pure URL approach we could just treat it as data they cannot save back to the original location. In this case, we'd show the download button instead of the save button.
@superdav42 almost forgot... Mark had a good idea, namely, get the book ID from the fetched USFM. This would be used as part of use case 3 in preceding post.
Since Greek and Hebrew is anticipated to be common use case, gT should conside a built in way to obtain the original language texts. Possibly even provide a file picker instead of letting them type it.
To solve both of these requirements, why not just add language as a drop down in the add scripture dialog? We could have original languages at the top of the list and the rest below.
We could add a check box to show all languages which would show even those repos that they are not members of.
How would you convert a language to a file to fetch in DCS?
Perhaps some Catalog Next query?
On Mon, Nov 7, 2022 at 7:06 PM David Stone @.***> wrote:
Since Greek and Hebrew is anticipated to be common use case, gT should conside a built in way to obtain the original language texts. Possibly even provide a file picker instead of letting them type it.
To solve both of these requirements, why not just add language as a drop down in the add scripture dialog? We could have original languages at the top of the list and the rest below.
We could add a check box to show all languages which would show even those repos that they are not members of.
— Reply to this email directly, view it on GitHub https://github.com/unfoldingWord/gateway-translate/issues/63#issuecomment-1306395541, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ2ZXPC53ZYPGTZSTVGPNLWHGKP5ANCNFSM6AAAAAARX77MHI . You are receiving this because you were mentioned.Message ID: @.***>
How would you convert a language to a file to fetch in DCS?
I was going to start with the same language list that's used in the account settings + Greek and Hebrew. This includes all the GW languages in languages.json.
Perhaps some Catalog Next query?
Querying catalog next would probably be best. I'm not sure how to do that but ideally we'd get a list of all bible text for a given org in catelog next. @richmahn Do you know such a query that could do this?
Here's what I have so far:
Nothing like a picture to explain. Looks good!
USFM by URL
Goal: a translator will be able to view and/or edit USFM text obtained via URL.
There are three general use cases.
Use Case 1
The USFM text comes from DCS, but user does not have access to save the changes. For example, the Original Languages Greek and Hebrew texts, wherein the user, unless thay are a member of the unfoldingWord organization, will not be able to save any changes. This use case is expected to common for any translator who know Greek or Hebrew.
Use Case 2
The USFM text comes from DCS and the user has access to save the changes, since they are a member of the owning organization. This would be a common use case for a translator who wanted to refer to legacy texts stored on DCS. This would also be the use case for making changes to the Greek or Hebrew texts.
Use Case 3
The USFM text does not come from DCS. This use case might be of use to anyone who wished to use our tools. Since the edits could not be saved, gT will need to provide a download option for the edited text.
Note on Original Languages
Since Greek and Hebrew is anticipated to be common use case, gT should conside a built in way to obtain the original language texts.
Considerations and Constraints