Quantcast

Reading methematical content: create implementation

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Reading methematical content: create implementation

蔡宗豪 Victor Cai

Hi all,
When reading methematical content, is it possible to create your own (braille) implementation via registerProvider? See source/mathPres/init.py.

Framework for presentation of math.
Three types of presentation are supported: speech, braille and interaction.
All of these accept MathML markup.
Plugins can register their own implementation for any or all of these
using L{registerProvider}.

example:

In the attachment, plus signs are not brailled.

Steps to reproduce:

  1. Open the attachment.
  2. Press downArrow five times.
    NVDA report: a1+a3+a5+a7+a9 = 120
    braille: a1a3a5a7a9 = 120


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel

examination.html (12K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reading methematical content: create implementation

James Teh
Yes, this is possible. However, this only relates to math that has been properly marked up; e.g. using MathML on the web. The attachment you provided does not include MathML, so none of this code applies.

On Tue, Feb 21, 2017 at 1:59 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

Hi all,
When reading methematical content, is it possible to create your own (braille) implementation via registerProvider? See source/mathPres/init.py.

Framework for presentation of math.
Three types of presentation are supported: speech, braille and interaction.
All of these accept MathML markup.
Plugins can register their own implementation for any or all of these
using L{registerProvider}.

example:

In the attachment, plus signs are not brailled.

Steps to reproduce:

  1. Open the attachment.
  2. Press downArrow five times.
    NVDA report: a1+a3+a5+a7+a9 = 120
    braille: a1a3a5a7a9 = 120


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reading methematical content: create implementation

蔡宗豪 Victor Cai

The attachment you provided does not include MathML, so none of this code applies.

Sorry, how to know whether a file is include MathMl or not? Before installing MathPlayer, NVDA will skip mathematical content.

Thanks


Regards,
Victor


2017-02-21 12:54 GMT+08:00 James Teh <[hidden email]>:
Yes, this is possible. However, this only relates to math that has been properly marked up; e.g. using MathML on the web. The attachment you provided does not include MathML, so none of this code applies.

On Tue, Feb 21, 2017 at 1:59 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

Hi all,
When reading methematical content, is it possible to create your own (braille) implementation via registerProvider? See source/mathPres/init.py.

Framework for presentation of math.
Three types of presentation are supported: speech, braille and interaction.
All of these accept MathML markup.
Plugins can register their own implementation for any or all of these
using L{registerProvider}.

example:

In the attachment, plus signs are not brailled.

Steps to reproduce:

  1. Open the attachment.
  2. Press downArrow five times.
    NVDA report: a1+a3+a5+a7+a9 = 120
    braille: a1a3a5a7a9 = 120


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reading methematical content: create implementation

Grzegorz Zlotowicz
In reply to this post by James Teh
The attachment you provided does not include MathML,
GZ: probably I misunderstood something, but provided attachment includes 36 Mathml objects...

Greetings, Greg.

W dniu 21.02.2017 05:54, James Teh napisał/a:
Yes, this is possible. However, this only relates to math that has been properly marked up; e.g. using MathML on the web. The attachment you provided does not include MathML, so none of this code applies.

On Tue, Feb 21, 2017 at 1:59 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

Hi all,
When reading methematical content, is it possible to create your own (braille) implementation via registerProvider? See source/mathPres/init.py.

Framework for presentation of math.
Three types of presentation are supported: speech, braille and interaction.
All of these accept MathML markup.
Plugins can register their own implementation for any or all of these
using L{registerProvider}.

example:

In the attachment, plus signs are not brailled.

Steps to reproduce:

  1. Open the attachment.
  2. Press downArrow five times.
    NVDA report: a1+a3+a5+a7+a9 = 120
    braille: a1a3a5a7a9 = 120


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reading methematical content: create implementation

James Teh
In reply to this post by 蔡宗豪 Victor Cai
My sincere apologies. My mistake. The file does indeed include MathML. Apparently, Gmail attachment preview strips out MathML. :(

I will need to investigate this with a braille display, but by default, it should be using Nemeth braille, where the plus signs should be translated correctly.

At any rate, yes, you could develop your own math braille implementation if you wish and distribute it as an add-on.

Jamie

On Tue, Feb 21, 2017 at 5:56 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

The attachment you provided does not include MathML, so none of this code applies.

Sorry, how to know whether a file is include MathMl or not? Before installing MathPlayer, NVDA will skip mathematical content.

Thanks


Regards,
Victor


2017-02-21 12:54 GMT+08:00 James Teh <[hidden email]>:
Yes, this is possible. However, this only relates to math that has been properly marked up; e.g. using MathML on the web. The attachment you provided does not include MathML, so none of this code applies.

On Tue, Feb 21, 2017 at 1:59 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

Hi all,
When reading methematical content, is it possible to create your own (braille) implementation via registerProvider? See source/mathPres/init.py.

Framework for presentation of math.
Three types of presentation are supported: speech, braille and interaction.
All of these accept MathML markup.
Plugins can register their own implementation for any or all of these
using L{registerProvider}.

example:

In the attachment, plus signs are not brailled.

Steps to reproduce:

  1. Open the attachment.
  2. Press downArrow five times.
    NVDA report: a1+a3+a5+a7+a9 = 120
    braille: a1a3a5a7a9 = 120


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reading methematical content: create implementation

蔡宗豪 Victor Cai

At any rate, yes, you could develop your own math braille implementation if you wish and distribute it as an add-on.

Could you please provide one example?

  • How to get the MathMl data for the current position?
  • Is it correct that all of the MathMl content would be brailled with Nemeth braille?
    Thanks.

Regards,
Victor


2017-02-21 19:24 GMT+08:00 James Teh <[hidden email]>:
My sincere apologies. My mistake. The file does indeed include MathML. Apparently, Gmail attachment preview strips out MathML. :(

I will need to investigate this with a braille display, but by default, it should be using Nemeth braille, where the plus signs should be translated correctly.

At any rate, yes, you could develop your own math braille implementation if you wish and distribute it as an add-on.

Jamie

On Tue, Feb 21, 2017 at 5:56 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

The attachment you provided does not include MathML, so none of this code applies.

Sorry, how to know whether a file is include MathMl or not? Before installing MathPlayer, NVDA will skip mathematical content.

Thanks


Regards,
Victor


2017-02-21 12:54 GMT+08:00 James Teh <[hidden email]>:
Yes, this is possible. However, this only relates to math that has been properly marked up; e.g. using MathML on the web. The attachment you provided does not include MathML, so none of this code applies.

On Tue, Feb 21, 2017 at 1:59 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

Hi all,
When reading methematical content, is it possible to create your own (braille) implementation via registerProvider? See source/mathPres/init.py.

Framework for presentation of math.
Three types of presentation are supported: speech, braille and interaction.
All of these accept MathML markup.
Plugins can register their own implementation for any or all of these
using L{registerProvider}.

example:

In the attachment, plus signs are not brailled.

Steps to reproduce:

  1. Open the attachment.
  2. Press downArrow five times.
    NVDA report: a1+a3+a5+a7+a9 = 120
    braille: a1a3a5a7a9 = 120


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reading methematical content: create implementation

James Teh
See the documentation in the mathPres module. For example, for braille, you'd subclass MathPresentationProvider, implement getBrailleForMathMl and then register the provider for braille only. If you're providing your own implementation, the question of whether it's Nemeth or something else is entirely up to you; your code has to provide the entire translation from MathML to braille.

On Thu, Feb 23, 2017 at 6:28 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

At any rate, yes, you could develop your own math braille implementation if you wish and distribute it as an add-on.

Could you please provide one example?

  • How to get the MathMl data for the current position?
  • Is it correct that all of the MathMl content would be brailled with Nemeth braille?
    Thanks.

Regards,
Victor


2017-02-21 19:24 GMT+08:00 James Teh <[hidden email]>:
My sincere apologies. My mistake. The file does indeed include MathML. Apparently, Gmail attachment preview strips out MathML. :(

I will need to investigate this with a braille display, but by default, it should be using Nemeth braille, where the plus signs should be translated correctly.

At any rate, yes, you could develop your own math braille implementation if you wish and distribute it as an add-on.

Jamie

On Tue, Feb 21, 2017 at 5:56 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

The attachment you provided does not include MathML, so none of this code applies.

Sorry, how to know whether a file is include MathMl or not? Before installing MathPlayer, NVDA will skip mathematical content.

Thanks


Regards,
Victor


2017-02-21 12:54 GMT+08:00 James Teh <[hidden email]>:
Yes, this is possible. However, this only relates to math that has been properly marked up; e.g. using MathML on the web. The attachment you provided does not include MathML, so none of this code applies.

On Tue, Feb 21, 2017 at 1:59 PM, 蔡宗豪 Victor Cai <[hidden email]> wrote:

Hi all,
When reading methematical content, is it possible to create your own (braille) implementation via registerProvider? See source/mathPres/init.py.

Framework for presentation of math.
Three types of presentation are supported: speech, braille and interaction.
All of these accept MathML markup.
Plugins can register their own implementation for any or all of these
using L{registerProvider}.

example:

In the attachment, plus signs are not brailled.

Steps to reproduce:

  1. Open the attachment.
  2. Press downArrow five times.
    NVDA report: a1+a3+a5+a7+a9 = 120
    braille: a1a3a5a7a9 = 120


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Loading...