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

feat(frontend): add inline transliterations to presenter gurmukhi #623

Conversation

Harjot1Singh
Copy link
Member

MOVED FROM #607

This can be used in camps to help teach gurmukhi from it's english equivalent

note: it is no longer possible to justify gurmukhi/source line (center text and primary pause wrapping continue to work fine)

This also renders transliterations on the fly, and no longer fetches them from database. This should result in a performance enhancement for loading times.

Additionally, code refactoring occurred to make the line components more maintainable and logical.

Fixes #248

Summary of PR

image

Tests for unexpected behavior

  • various settings combos juggled around in browser

@Harjot1Singh tests:

  • Copy transliterations + translations hotkeys
  • Overlays with different content enabled
  • Presenter with different content enabled
  • Escaping in and out of content

Time spent on PR

  • 5-6 hours
  • Harjot 3-4 hours

Linked issues

Fix #248

Reviewers

@Harjot1Singh

Comments

I can also add a "guide" option such as "Column Lines for Inline Transliterations", it would perhaps look something like this:

image

Harjot1Singh and others added 19 commits May 16, 2020 00:42
this can be used in camps to help teach gurmukhi from it's english equivalent

note: it is no longer possible to justify gurmukhi/source line (center text and primary pause wrapping continue to work fine)

Fixes shabados#248
helps with readability and grouping words with their translit better
issue was introduced and now fixed in same PR
with the introduction of inline translit, words can have different width spaces in the same word column, which would lead to staggered alignment as opposed to true centered alignment of words in the column

using margin alleviates that issue by allowing words in the column to center properly and having the space between each word column be the same

font size of word class is now set to gurmukhi so as to leverage the gurmukhi font size as the space sizer
@bhajneet
Copy link
Member

bhajneet commented Nov 3, 2020

Great work!

image

image

bhajneet
bhajneet previously approved these changes Nov 3, 2020
Copy link
Member

@bhajneet bhajneet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to update GU, otherwise LGTM

@bhajneet bhajneet removed their assignment Nov 3, 2020
@bhajneet bhajneet added ⊖ Blocked ⊖ Not moving for some reason. Refine prioritization! and removed Status: Merge labels Nov 3, 2020
@Harjot1Singh Harjot1Singh assigned bhajneet and saihaj and unassigned Harjot1Singh Nov 3, 2020
@Harjot1Singh Harjot1Singh merged commit 125a48c into shabados:dev Nov 4, 2020
@Harjot1Singh Harjot1Singh deleted the 607-248-inline-transliterations-refactor branch November 4, 2020 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⊖ Blocked ⊖ Not moving for some reason. Refine prioritization! Effort 8 Needs some splitting!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add hybrid gurmukhi pronunciation field
3 participants