tsengwoody / Access8Math

Allows access math content written by MathML ; Assist writing math content by LaTeX
GNU General Public License v2.0
31 stars 15 forks source link

Braille Translation for LaTeX is missing #45

Open 1013hPascal opened 2 years ago

1013hPascal commented 2 years ago

Hi

I was wondering why there was no Braille output in LaTeX in the past. Usually I always read LaTeX, and in German there were always problems with presenting mathematical content on my braille-display with access8math. I have adjusted this behavior, should I just open a pr? you can review the changes in my fork of this repo.

Futyn-Maker commented 2 years ago

I'm sorry, but how should it work? You seem to simply add new local "LaTeX" with rules, but the addon doesn't seem to be able to translate clean LaTeX to braille (without interacting). Or I don't know something?

1013hPascal commented 2 years ago

Hi,

thanks for your answer.

I edit the unicode.dic and mathrule.dic. I replaced the unicode symbols by the LaTeX code (Mathml to LaTeX). I test it on my NVDA-Portable version and it works. Now I can read the formula on Webpages like Wikipedia in LaTeX.

Please write me, if you have question and thank you for your work.

Von: Andrey yakuboy @.> Gesendet: Sonntag, 28. November 2021 19:19 An: tsengwoody/Access8Math @.> Cc: 1013hPascal @.>; Author @.> Betreff: Re: [tsengwoody/Access8Math] Braille Translation for LaTeX is missing (Issue #45)

I'm sorry, but how should it work? You seem to simply add new local "LaTeX" with rules, but the addon doesn't seem to be able to translate clean LaTeX to braille (without interacting). Or I don't know something?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tsengwoody/Access8Math/issues/45#issuecomment-981128889 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWSEW37M3LUHNKVFFBEICXLUOJXBFANCNFSM5I5RLMCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

Futyn-Maker commented 2 years ago

No, I'm not a developer of this addon, just the Russian translator, now just showing my interest. To be honest, I think it's quite strange to read LaTeX in braille display when the correct math braille like Nemeth, Marburg, etc. is possible. But it's just my opinion and I'm not against of any additional features.

1013hPascal commented 2 years ago

oh ok, I think their are two oppinions, they who likest o works with math braille and the others who like to work with LaTeX.

I work with LaTeX, because oft wo reasons. First I study physics and i write my documents in LaTeX and compile it to an pdf, that everone can read it. Also is LaTex a science language and other students cann also read it. An the second reason is, that I don’t want tolern a new language. For LaTeX I have als shortcuts, and can write LaTeX with short code.

Another problem is, that I can’t read the unicode symbol.s. On the braille display is only the unicode number.

But it is intresting, that you work with math braille.

I agree with you, if user can shoose between different languages, everone can find something for him.

Von: Andrey yakuboy @.> Gesendet: Sonntag, 28. November 2021 21:06 An: tsengwoody/Access8Math @.> Cc: 1013hPascal @.>; Author @.> Betreff: Re: [tsengwoody/Access8Math] Braille Translation for LaTeX is missing (#45)

No, I'm not a developer of this addon, just the Russian translator, now just showing my interest. To be honest, I think it's quite strange to read LaTeX in braille display when the correct math braille like Nemeth, Marburg, etc. is possible. But it's just my opinion and I'm not against of any additional features.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tsengwoody/Access8Math/issues/45#issuecomment-981143433 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWSEW3Z47EAMAVAU6FAB3BTUOKDQ3ANCNFSM5I5RLMCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

tsengwoody commented 2 years ago

addon doesn't seem to be able to translate clean LaTeX to braille (without interacting). Yes LaTeX block in text documents need to be converted to HTML documents by alt+h or interacting directly by alt+i in order to be accessed by speech/braille display. LaTeX block cannot be auto display to math braille display when cursor move to LaTeX block but speech already has this feature(refer to writing feature->Browse navigation mode section)

1013hPascal commented 2 years ago

Hi,

thanks for your answer.

You made it possible that user can create a new Braille unicode dictionary. I made a dictionary from unicode symbols to LaTeX and put it in the Braille folder.

I test it on my NVDA-Portable version and it works. Now I can read the formula on Webpages like Wikipedia in LaTeX.

I would like, that it would be possible, that users can shose under general settings / language, next to german, french alsothe language LaTeX.

Please write me, if you have question and thank you for your work.

Von: Tseng Woody @.> Gesendet: Montag, 29. November 2021 01:32 An: tsengwoody/Access8Math @.> Cc: 1013hPascal @.>; Author @.> Betreff: Re: [tsengwoody/Access8Math] Braille Translation for LaTeX is missing (Issue #45)

addon doesn't seem to be able to translate clean LaTeX to braille (without interacting). Yes LaTeX block in text documents need to be converted to HTML documents by alt+h or interacting directly by alt+i in order to be accessed by speech/braille display. LaTeX block cannot be auto display to math braille display when cursor move to LaTeX block but speech already has this feature(refer to writing feature->Browse navigation mode section)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tsengwoody/Access8Math/issues/45#issuecomment-981192842 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWSEW35FDL2DPAPNHXFOG73UOLCWHANCNFSM5I5RLMCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

danijel1124 commented 2 years ago

Hi :)

i found this discussion and now wanted to get involved too. :)

I never learned math braille, I realy don't know why, but I didn't learned it. in fact, i didn't even know there was a sign for faculties or roots in braille. even before I went blind, I was working on the computer, and at school we used LaTeX because everyone was able to work with everyone, regardless of their eyesight, from totaly blind to sighted, and I thought that LaTeX is the Math-braille for the blind. ^^ All of our teachers were , who had to be, therefore able to write LaTeX, and so was every student to. After I went blind, I had to find a solution to continue attending classes, which quickly became a problem.

I found out: In Germany alone there are at least 4 math fonts for the blind, the Marburger Mathematikschrift (MBS), the Karlsruhe and Dresden ASCII-Mathematikschrift (AMS), the Stuttgart Mathematikschrift (SMSB), and the Bochumer Mathematik-Punktschrift (BMPS). Of course, these weren't international either, and each language seemed to have its own. Learning all of them in order to communicate with others everywhere was not possible, but in retrospect it would have been necessary, I gues, since I first went to school in Düsseldorf, then near Cologne and then in Marburg. Now I'm studying in Karlsruhe.

we quickly came up with the idea of ​​using LaTeX because LaTeX is internationally uniform and I allready know most of the syntags. So I've always read \ frac {d} {n} on the braille display instead of reading the fraction as a fraction. Of course, this is not the fastest variant, and in the course of using it I build some abbreviations like \ f {d} {n} \ s {x} in order to read faster, but it is the variant where you have the fastest learning success. There is also extensive documentation for LaTeX and if you want to learn the Syntags and funktions independently, you can do it pretty well, which supports rapid learning success. Since LaTeX is a well known document preparation system , you can do a lot more with LaTeX than just reading it on the Braille display. For example, presentations are much faster and easier to create in LaTeX than with Powerpoint or similar tools, because the blind person can define everything in the code himself and don't neet to find options in menus, wich were designed for sighted people.

I hope that this explanation will make it easier to understand why I think the idea is really cool and would like to see it as a feature in the add-on.

tsengwoody commented 2 years ago

I think that converting MathML to LaTeX and outputting LaTeX braille is a feature can be tried and developed. But it may not use the current multi-language mechanism, because the braille output and the speech output are paired, and the speech should not have the scene where user want to interaction the LaTeX source code. Maybe adding one configure option determine whether the braille output is LaTeX or Regional Braille by user defined I will save 1013hPascals LaTeX unicode.dic/math.rule file and think how to use them. In addition, the conversion of MathML to LaTeX have existed third-party libraries that may be more complete so maybe we can use it. Anyway, I will consider including new feature that outputing LaTeX source code to braille/speech thank everyones feedback.