telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.29k stars 5.22k forks source link

Math formulas support #3788

Closed ohhmm closed 7 years ago

ohhmm commented 7 years ago

Steps to reproduce

  1. copy formula from https://ru.wikipedia.org/wiki/%D0%A2%D0%B5%D0%BE%D1%80%D0%B5%D0%BC%D0%B0_%D0%9A%D1%80%D0%BE%D0%BD%D0%B5%D0%BA%D0%B5%D1%80%D0%B0_%E2%80%94_%D0%9A%D0%B0%D0%BF%D0%B5%D0%BB%D0%BB%D0%B8

Система уравнений A x = b {\displaystyle Ax=b} разрешима тогда и только тогда, когда rank ⁡ A = rank ⁡ ( A , b ) {\displaystyle \operatorname {rank} A=\operatorname {rank} (A,b)} , где ( A , b ) {\displaystyle (A,b)} — расширенная матрица, полученная из матрицы A {\displaystyle A} приписыванием столбца b {\displaystyle b} [1].

or from https://math.stackexchange.com/questions/2282740/extrapolate-a-sum-using-partial-sums-at-powers-of-two

image

Expected behaviour

Expected to use same JS framework as stackexchange or Wikipedia uses to preserve formulas.

Actual behaviour

for stackexchange it almost works

Configuration

Windows

Version of Telegram Desktop: 1.1.18

Used theme: default

Logs: Insert logs here (if necessary)
john-preston commented 7 years ago

@ohhmm I can't use js frameworks :(

stek29 commented 7 years ago

So you want Wikitext/LaTeX parsing in TDesktop?

ohhmm commented 7 years ago

To copy formulas from wikipedia and math.stackexchange.com websites. I thought Telegram use QML in which case I imagined JS and MathML. Wolfram bot allows formula editing. Can it be useful?

john-preston commented 7 years ago

@ohhmm Telegram doesn't use QML 😔

stek29 commented 7 years ago

1349 #636 #437

Wolfram bot allows formula editing. Can it be useful?

Or just use bot platform :) https://t.me/LatexBot can be helpful too.

fakeid30 commented 7 years ago

Why do you need this feature? I don't think it's useful for most people. So it'll be a bloat if added to core. Bots are the way to do it.

ohhmm commented 7 years ago

why do I need to copy a text with image from web? it bloats source code! lets show images through bots with pseudo graphics! Bots are the way to do such staff.

ohhmm commented 7 years ago

https://s-media-cache-ak0.pinimg.com/236x/e1/87/c2/e187c26bea08057f7507b4520b221dd8--simpsons-cartoon-simpsons-quotes.jpg - sorry, was unable to show here the image other way in cozy way. You see, I was thinking about downloading the image to attach it here to see if it show it then but it was too hard to do. And then "Hay, I can type this text here!"

ohhmm commented 7 years ago

RetroShare use QML anyway. Maybe someGSOC someone will implement it in single day in RetroShare. Thank you guys, sorry for bothering.

ohhmm commented 7 years ago

Homer

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.