Giter Club home page Giter Club logo

img2latex-mathpix's People

Contributors

allcontributors[bot] avatar blaisewang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

img2latex-mathpix's Issues

[Bug] Mac 下无反应

Describe the bug 遇到的应该是和#93一样的问题

Mac 自带快捷键截图,Image2LaTeX 始终一片空白,没反应(如图所示)。
截屏2020-11-03 13 46 13

Image2LaTeX 已经加入安全性与隐私-辅助功能/输入监视

Desktop (please complete the following information):

  • OS: Mac OS 10.15.7
  • Version 0.7.7

快捷键唤醒

经常识别之后由于挡住了屏幕而点了关闭,再次唤醒时还要在通知栏找到图标打开,能不能设置快捷键直接唤醒呢?

能否添加队列模式

因为这个api实在太好用了 有时候就拿过来当文字识别的api用 能否添加队列模式呢 因为识别速度跟不上添加速度

[Bug] 网络不稳定

image
按下enter后一直处于Waiting状态(挂了梯子也是一样),偶尔正常。app version:0.3.2,系统:mac osx 10.14.5 ,ubuntu 16.04。

总是出现connection reset

windows 10系统,总是出现connection reset,无法返回结果,等一段时间就好了,但很快就又会出现connection reset。

Windows隐藏cmd黑窗的建议

谢谢作者,你的软件很赞!
我有一个改善Windows平台软件使用体验的建议:
建议在Image2LaTeX.bat脚本的位置创建一个Image2LaTeX.vbs的脚本,内容为

set ws=WScript.CreateObject("WScript.Shell")
ws.Run "Image2LaTeX.bat",hide

cmd黑窗就可以被隐藏在后台,不显示在屏幕上了
希望考虑一下

[Bug] Content not found

Describe the bug
error msg: Content not found
it worked fine before today. I don't know what caused this matter.

To Reproduce
Steps to reproduce the behavior:
正常复制粘贴,手动submit,返回提示信息:Content not found.

Expected behavior
反回出错。以前一直正常。

Screenshots
d

Desktop (please complete the following information):

  • OS: [e.g. Windows 7]
  • Version [e.g. 0.7.7]

Additional context
Add any other context about the problem here.

[Bug]产生了大量的临时文件

Describe the bug
使用的是0.3.3版本,1月7日下载,在两天的使用中产生了大约260G的临时文件,产生路径为:C:\Users{USER NAME}\AppData\Local\Temp
文件名字格式为~DFXXXXXXXXXX.TMP,二进制文件,大小从16K到16M不等。
产生了大约15w个临时文件。
To Reproduce
复现步骤不明,启动后使用一段时间挂在后台会自然产生,产生文件有周期性,一段时间内会持续产生大量文件后停止,过不定的时间继续产生。正常退出后停止产生文件,临时文件不会自动删除。

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 1809

Additional context
并没有绝对的确认临时文件是因为本软件产生的,但是在产生临时文件的过程中(本软件在托盘运行)从托盘退出本软件,临时文件的生辰即刻停止,另外最早的该格式临时文件产生的日期是1月7日,与我下载本软件的时间一致,故推测。

Win10 下运行时任务栏中没有对应的窗口

运行 Image2LaTeX.bat 后只会出现一个 cmd 窗口,Image2LaTeX 的主窗口并不会显示在任务栏中,这样在运行全屏软件(pdf阅读软件或者写论文的编辑器)时都无法快速找到 Image2LaTeX

我使用双屏的话感觉还好,但是使用单个显示器的同学可能会很不方便吧。

如果没有任务栏图标的话,能否在截图成功后自动显示 Image2LaTex 的主窗口,方便点击 Submit

on Config File Creation

Could you please so kind to put an example or some descriptions on how to create a config file, or what a config file it should look like?

win10安装出现错误

win10下单击gradlew出现如下错误:

  • What went wrong:
    java.lang.UnsupportedClassVersionError: org/openjfx/gradle/JavaFXPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

org/openjfx/gradle/JavaFXPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

[Bug] data is sent multiple times

Describe the bug
I used the MathPix dashboard to check on my information and observed more recorded requests than I had done.

To Reproduce
Steps to reproduce the behavior:

  1. Launched the application
  2. Took a screen shot
  3. Used return to send the request
  4. Received response
  5. Went to the dashboard and observed an extra request

Expected behavior
I expected one message per button press.

Desktop (please complete the following information):

  • OS: Ubuntu Linux
  • Version 18.04

Additional context
I changed the code and added println to confirm what was happening.
The message was in fact sent twice. I then confirmed that no press de-bounce
code was present in the Java code.

I have added de-bounce to the BackGridPaneclass here.

I also added additional changes to the accepted keys:

  • insert to do the same as backspace
  • delete to do the same as enter

The reason is that the enter will only work if one of the text fields have focus.
However the delete is always detected (like the backspace) and allows us
to forego the selection of a text field.

If you like, I can make a pull request with these changes.

每次截图之后,只能使用一次,再次截图摁Enter键软件无反应。

Describe the bug
win10 64位系统,下载的使用0.7.5版本。
打开软件后第一次操作:使用快捷键微信Alt+A截图之后,单击软件,然后摁Enter键,可以使用。
第二次进行同样的操作,截图,单击软件,摁Enter键软件无反应,退出软件重新打开,ClipBoard Image区域直接显示关闭之前截图的公式。

核心问题就是:在我电脑上,软件只能用一次,就没反应了,关闭重新打开软件还是只能用一次。。。重启电脑、更换截图软件还是一样的问题。

Can't build app from script

Hello, I have been trying to launch img2latex-mathpix. In the readme, it is said to simply run the .app file but I could find it. I thought that I was maybe supposed to run the macos_release.sh file but I keep stumbling on this error:

`
unzip: cannot find or open ./*macos.zip, ./*macos.zip.zip or ./*macos.zip.ZIP.

No zipfiles found.
mv: rename ./Image2LaTeX-macos/* to ./Image2LaTeX.app/Contents/MacOS/*: No such file or directory
sed: 1: "s/0.0.0/./macos.zip/g": bad flag in substitute command: ''
`

[Bug] No clipboard image found

Describe the bug
I'm getting a no clipboard image found bug

To Reproduce
I take a screenshot with the default mac app that transfers to clipboard and then press "enter", but I get the error message. I am able to paste afterwards into microsoft word but the program doesn't pick up the clipboard

Desktop (please complete the following information):
Mac

Thanks!!

Feedback

Version 0.26 works fine. I have a small suggestion:
Software should remove the Submit button, make it automatically switch back to Latex.

字符乱码/截图获取不稳定

最新的Image2Latex 0.2.2-windows.zip文件中,双击bin文件夹中的Image2LaTeX.bat出现乱码情况。
运行环境:Windows10 1909 18363.535,没有安装任何Java或者Python等工作环境

1. 乱码情况说明:

所有字符均乱码,不论数字还是英文字母。包括输入的秘钥,软件可以工作
1.1填写秘钥界面
image
1.2软件主体界面
image

2.截图情况说明

我使用snipaste截图,然后复制,软件无法自动获取我所截的图,但是用搜狗输入法的截屏和天若文字识别的截图,软件可以自动获取截图并识别。识别出的字符乱码,但是复制粘贴后有效
2.1无法获取snipaste截图
image
2.2可以获取其他软件截图,但字符乱码
image
2.3识别出的公式有效
image

0.6.0 mac 软件没有反应

你好,我下载了0.6.0 mac版本,使用系统自带的戳图工具后,软件没有反应。
我已经做的操作:开启了系统偏好设置中的输入监视,设置了api id。不知道是不是我还有操作没有做好,希望能得到指点,谢谢。

[Bug] 识别时间过长,且经常time required out

Describe the bug
每次截图后进行公式识别时,waiting时间过长,并偶尔出现time required out,确认本地网络没有问题。
不知道是调用api本身的问题,还是软件的bug。

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Version [10.0.18362]

实现缩放

Is your feature request related to a problem? Please describe.
软件字体较小,名义上可以缩放,但内容并不随之改变
Describe the solution you'd like
真正实现缩放窗口

Additional context
图片

[Bug] Bash script does not execute JDK 11 but Gradle does

Describe the bug
I have changed the Gradle script to execute the application with the KDK 11 (LTS version). The changes can be found in my fork. They include a correction in the detection of the OS that was not working correctly (tested in Linux).

When I execute the application directly from the Gradle in the IDE, it works fine. However when I execute the bash script I get the following error:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: entry/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
...
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)

To Reproduce
Steps to reproduce the behavior:

  1. Set the active java version to JDK 11
  2. Clone the project
  3. Build and run via Gradle - application works.
  4. Go to the directory img2latex-mathpix/build/install/Image2LaTeX/bin
  5. Execute the script ./Image2LaTeX

Expected behavior
I expect the application should execute us8ing the bash script as it does in Gradle.

Screenshots

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: entry/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 18.04.4 LTS

Additional context
I cannot figure out how the class is compiled in a different version of JDK seeing as it is set in the Gradle script.

[Feature Request] 是否可以考虑增加LaTeX转MathML功能

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

该想法来源近期写论文贴公式的流程。由于学校要求只能用Word,虽然Word现在支持使用LaTeX作为公式源,但部分公式仍显示不正常。且根据某些资料(不一定可靠)LaTeX公式在查重中可能有问题。
目前的方法是MathpixOCR转图片为LaTeX,然后LaTeX转MathML,最后增加对应xml标签粘贴到Word。具体流程可见https://www.pzhao.org/zh/post/latex-equations-to-word/
该方法有效但步骤略繁琐,故想增加该功能。

Describe the solution you'd like
A clear and concise description of what you want to happen.

该方法我在0.3.0版本上有魔改实现过,LaTeX转MathML使用的是snuggletex。(但近期想在新版本上进行修改时idea编译运行出错,似乎总是提示javafx有问题,还没有找到原因...所以搁浅了)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

在主页中增加该功能区或在设置中进行开关。
由于该功能可能不是普遍需求,我可以尽可能提供一些帮助。

[Feature Request]How to reduce a $ sign?

image
The result is now 【$$
   \ mathrm {Cl} ^ {-} \ left (0.1 \ mathrm {mol} \ cdot \ mathrm {kg} ^ {-1} \ right) = 1/2 \ mathrm {Cl} _ {2} \ left (\ mathrm {g}, p ^ {\ ominus} \ right) + \ mathrm {e} ^ {-}
$$】,how can I change to 【$
   \ mathrm {Cl} ^ {-} \ left (0.1 \ mathrm {mol} \ cdot \ mathrm {kg} ^ {-1} \ right) = 1/2 \ mathrm {Cl} _ {2} \ left (\ mathrm {g}, p ^ {\ ominus} \ right) + \ mathrm {e} ^ {-}
$】,only reduce a $ sign?

[Question] Where to download

Can someone explain me how to get this app to work on Mac OS environment? I am unable to locate executable files in the dowloaded directory.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10]
  • Version [e.g. 0.2.1]

Additional context
Add any other context about the problem here.

dash窗口并不能切换

Describe the bug
dash上显示有该程序,但点击并不能切换到该界面。只能通过小图标切换

To Reproduce
Steps to reproduce the behavior:

  1. 打开程序
  2. 点击图标

Expected behavior
切换到程序界面

Screenshots
图片
点不开
Desktop (please complete the following information):

  • OS: debian
  • Version 10

Additional context
其实如果能去掉这个图标也舒服一些

[Feature Request] 增加运行中的加载界面

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

0.2.7版中取消了Submit按钮用回车取代了,但是有时候因为网络或其他原因加载不出(我不确定是因为网络较慢还是没有触发)。

Describe the solution you'd like
A clear and concise description of what you want to happen.

希望可以增加loading界面或其他可以帮助判断是否在运行的功能。

[Feature Request] Automatic line breaks in output

Currently, when snipping a multi-line equation, the output latex is a single line, which makes it slightly tedious to edit the source code:

image.

Is it possible to insert \newlines in the output, so that it looks like this?

image

It would make sense, for example, to break at "\".

[Mac] Discrete graphics waken during usage

Just asking, do we really need to switch to discrete graphics when using img2latex? I'd prefer integrated graphics if possible, as it uses lower power and makes less fan noise.

P.S. I am using 2018 15 inch macbook pro

[Feature] not removing linebreaks

One difference I noticed between the actual mathpix app and this version is that there is no word wrap. For some reason there will be new lines inserted in places while the mathpix by default will remove those linebreaks.

[Feature Request] Snip hotkey to automatically send the OCR request

Is your feature request related to a problem? Please describe.
Creating the screenshot, switching to the image2Latex app, pressing enter and switching back to the document takes a bit of time. It would be great if a snip hotkey was added, just like in the main Mathpix app.

Describe the solution you'd like
It would be great if I could press a hotkey (e.g. alt+shift+s) and a screenshot creator would open, letting me drag the screenshot area just like the default operaing system screenshot taker. Then, the OCR request gets automatically sent, so that after the response I can directly paste the formula in my document, without having to interact with the app directly.

Additional context
This already happens in the main mathpix application, and I find it extremely userful and productive.

Failed to Execute : Error Occurred

I tried to run D:\Image2LaTeX-windows\bin\Image2LaTeX.bat on Windows 10. And terminal shows:

Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries

Now I don't know what to do next. Could you please help me ? Thx.

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.