Git Product home page Git Product logo

mt2414ui's People

Contributors

beniza avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mt2414ui's Issues

Upload tokens as Binary/Plain Text, submit as JSON

When a user submits the translated tokens, allow him to submit the translations either as an Excel file (.xlsx/.xls) or as a deliminated file (*.csv/*csv).

This file need to be parsed into a JSON file before submitting to the server.

Upload Tokens

Upload the list of translated tokens (xlsx file) for a particular language

Display links for the APIs only after a successful login

Autographa MT permits people to access the resources without login to the system. Please fix this urgently. Make sure that the links to various tools are available only when the user is logged in.

Tip

Hiding the menu item is not the right solution. The system shouldn't create these links until the user logs in.

Byte Order Mark is missing when downloading tokens

The Byte Order Mark (BOM) is missing in the downloaded tokens file.

Suggestion to fix

Background Information

The UTF-8 BOM is a sequence of bytes (EF BB BF) that allows the reader to identify a file as being encoded in UTF-8. If it is missing in a file, some programs will not be able to display the text correctly.

With BOM

माझे, येशूचा

Without BOM

मा�े,
येशूचा,

Read more about BOM here

Group selection option

When selecting the books, provide a way to select them as a group also (Pentateuch, Old Testament, New Testament, Cluster wise etc.)

Get languages and Books

After signing in, on page load, display the list of languages, their versions, alogwith the list of books and revision numbers, available in the system. This page will give the user a tabular view of the items that are available in the database.

Generate Concordance

Now successfully Generated Concordance and Concordances Created and Stored in DB !!!.
Ready for review
successfully generated concordance

failed in generate concordance

Generate Tokens

Generatetokens from source text provided download options in the form XLS file.
In Generatetokens[Language Name, Version, Revision ] is passing form UI & able to you download tokens in the form of XLS file.

Also need API for upload file.

Display Book Names in places of Book Codes

On several places on the site Book Codes are given. Most end users are not familiar with Book codes. So we should change the book code to book names. In the future we will have to provide the book names in the Gateway languages (using a skin).

Option to create a new target language

Currently there is no option for the user to specify to which language he is translating into. Please provide a way to add a new language as a target language.

Option to create a new source language

From time to time Admin users need to created new source languages on the system, so that they can upload new source texts for translation. This would need both an api and a UI.

List all the Books in download tokens

Need to be develop the UI for the list all the books in download tokens, so that the user can select the books of his choice, for which the tokens and concordance need to be downloaded.

Save downloaded items to a user specified location

Currently the items downloaded are directly being saved in the default location (downloads folder). We must give the user the ability (File-Open Dialogue Box) to save the files to his preferred location.

Avoid Scroll Bars

Create the layout in such a way that the content is accessible without having to scroll through the pages.

UI Translation

I have completed UI for the task to generate concordance for the particular tokens in UI.
Also find attached screenshot for the same.
ui

Download book-wise translated draft

Currently the downloading the translated draft downloads the entire set of books available on the server. Please provide an option download individual books (can connect with #39).

A new API endpoint is needed for this.

Remember User States

When a user select a combination of source, the system should remember it across the pages (until the user changes it to something else).

Eg: If the user pick Hindi ULB Revision 1 on the Get Languages page and moves to the Get Tokens and Concordance page, that page also should have the same source automatically selected.

Get Concordances

Get Concordances is now successfully coming from server side now I am showing in text area whole response.

Download tokens as XLS

When we download the tokens, the file downloaded is a .xls extension. However the file is a plain text file. Please download the file as a proper .xls file.

Tip

There may be existing libraries that can convert a plain text file into a .xls file.

Convert source selection text boxes into combo boxes

Currently, except for the language, information such as Version and Revision is entered via a text box. It requires that a user need to have an information about the languages already available to him. By changing these text boxes into combo boxes and populating them from the table with the existing information (filtered according to the previous choice made by the user) he will be able to make the right decisions fast.

UI and UX improvements

Communication messages on the UI need to be more specific and intuitive

Sign in Page

  • Show a message after successful login page.
  • Redirect user to the Sign in page if he try to access a resource on the server.
    • Redirect him back to the resource after the successful login
  • Show a Sign out option if the user is already signed in.

Available Source Texts

  • Language Name should be the full language name
  • Change Show Book to Show Books
  • Show full book names
  • Sort book names according to the Canonical order

Download Tokens

  • Change Version and Revision Text boxes into Combo Boxes
  • Provide an option to create a new target language (Populate the target language box with the language info data from http://td.unfoldingword.org/exports/langnames.json)
  • Change the book codes to book names

Upload Tokens

  • Drag-n-drop files option
  • List the names of the files selected for uploading (especially if the user has selected more than one file)
  • Change Version and Revision Text boxes into Combo Boxes
  • Show the progress of token uploading to the server

Translation Draft

  • Change the title from “Translation Draft” to “Download Translation Draft”
  • Change Version and Revision Text boxes into Combo Boxes
  • Change the name of the button from Translate → Download drafts
  • Display a report of available books for the selected SL-TL pair.

Create "Upload Sources"

Create a page for the user to submit the Source documents

Requirements

  1. Endpoint: https://api.mt2414.in/v1/sources
  2. Payloads
    1. language [Ethnologue code of the language]
    2. content [Content of all the source documents stored]
    3. Access ID and Key [Returned as a response after authentication]

curl

$ curl -X POST http://127.0.0.1:8000/v1/sources -d '{"language":"XYZ", "content":{"GEN":"\id GEN\n\c 1\n\p\n\v 1 In the beginning God created the heavens and the earth.\n\v 2 And the earth was without form and was void form.", "EXO":"\id EXO\n\c 1\n\p\n\v 1 Now these are the names of the children of Israel, which came to Egypt; every man and his household came with Jacob\n\v 2 Reuben, Simeon, Levi, and Judah", "LEV":"\id LEV\n\c 1\n\p\n\v 1 And the Lord called unto Moses, and spake unto him out of the tabernacle of the congregation, saying,\n\v 2 Speak unto the children of Israel"}}' -H "Authorization:bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJiaWpvYjg5QGdtYWlsLmNvbSJ9.RX_rx24v1uhzRv5FypR1X7QlyALUPvHSg1q6OUFtGos"

Response: {}

sources

Logic

bibContent = '{"language":"<ethnologue_code>", "content":'

for file in file_list_selected_by_the_user:

    file_content=<read the content of the file>

    book_id = re.search("\\id (.{3}), file_content, re.U) # <To find the value of the \id tag in the current file>  This is a 3 letter code in uppercase, normally appear as the first line of the book"

    bibContent += '{"book_id.group(1)":"file_content"},'

bibContent += "}'"

Fix the alignment issue of the Book listing

Download Tokens & Concordance page lists all the Books code. However the vertical alignment of this list need to be fixed. (there is already an issue to change the list item from book code to book name. fix this issue along with that.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.