jchen42703 / translator-app

Web app for editing machine translations efficiently. [WIP]
Apache License 2.0
1 stars 0 forks source link

Add a button that aligns the start/end of paragraphs on both the editor and translated output #2

Closed jchen42703 closed 3 years ago

jchen42703 commented 3 years ago

Align Approach You can do this by adding number lines to the editor and just adding \n on either side to make the paragraphs start or end on the same line.

OR

Highlight Approach Make a button that toggles a mode so that when you highlight a word/sentence/paragraph, you can see the corresponding underlined sentence/paragraph on the translated display (Make the translated display scroll down/up to the line number that that sentence is on).

(and when you toggle off, it just stays at that point).

Can be done by counting periods?

You don't highlight the phrase on the translated display because google translate does a batch translation (sentence in -> sentence out; not word -> word).

jchen42703 commented 3 years ago

Paragraph numbers on editor and display

alignParagraphs

jchen42703 commented 3 years ago

MAYBE, instead of align paragraphs, do collapse (fold) all other paragraphs

jchen42703 commented 3 years ago

OR render EditorBlocks after a certain word limit per line or when there’s a new line?