Get the region

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Get the region

tayky
Hello All :)
I have find the cursor position :)
But now I want the text contain in the region.
When I use the rawText contain in BrailleBuffer.
This text is the complete line.

Please, Do you have a idea for get the text display on the braille
display befor the translate in dots ?

I love NVDA <3

thank
tayky

------------------------------------------------------------------------------
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
|

Re: Get the region

James Teh
The visible area on the display is entirely based on the braille cells, not the text. So, while the code obviously has to support scrolling to a particular piece of text, that then gets mapped to the relevant braille position. There's no single function to map back from the visible braille to the original text. However, the relevant mapping information is available (buffer.bufferPosToRegionPos(), region.brailleToRawPos), so you should be able to calculate this, though I don't have any example code.


On Thu, Mar 2, 2017 at 12:47 AM, tayky <[hidden email]> wrote:
Hello All :)
I have find the cursor position :)
But now I want the text contain in the region.
When I use the rawText contain in BrailleBuffer.
This text is the complete line.

Please, Do you have a idea for get the text display on the braille
display befor the translate in dots ?

I love NVDA <3

thank
tayky

------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel