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

Formatting of output when displaying verb or word forms #3

Open
hrishikeshrt opened this issue Jan 18, 2023 · 1 comment
Open

Formatting of output when displaying verb or word forms #3

hrishikeshrt opened this issue Jan 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@hrishikeshrt
Copy link
Owner

Currently, the output format is not clean, especially when viewing on mobile.

This is due to Devanagari fonts not being monospace.
One possible solution is suggested by @vipranarayan14 is to generate image of the output and then send that to user as output.

PROs

  • Good visibility

CONs

  • Output will lose "copy-ability"
@vipranarayan14
Copy link

Thank you for considering my suggestion.

Yes, we may lose the "copy-ability" of the output if we prerender it as an image.

One way to overcome that is by showing a button like "Show as text" after the output image. So, initially when the user requests something like, "/dr_01_0001", first an image with the forms of lat, lrt, lot and lan lakaras will be displayed. Below that there will be two buttons -- "Show all forms" and "Show as text". When the user clicks "Show all forms", an image with all forms will be displayed. Below that there will be one button "Show as text". When the user clicks "Show as text" in either case, the corresponding lakaras will be displayed as text.

Another way is by using the Web Apps feature in the Telegram API. We will have more options with the interface. But it may take more time to implement. Also, the ease of use of the Web App feature from a user perspective has to be considered.

@hrishikeshrt hrishikeshrt added the enhancement New feature or request label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants