Teksta iegūšana no HTML5 canvas elementiem
Author
Laipnieks, Vilnis
Co-author
Latvijas Universitāte. Datorikas fakultāte
Advisor
Solodovņikova, Darja
Date
2016Metadata
Show full item recordAbstract
HTML5 canvas elements un visa tajā atveidotā informācija pēc būtības ir attēls, līdz ar to, no lietojamības viedokļa, grūti pieejams lietotājiem, it īpaši redzes invalīdiem, kuri paļaujas uz ekrāna lasīšanas programmatūru. Darbā pētītas vairākas dažādas metodes HTML5 canvas elementos zīmētās teksta informācijas iegūšanai no lietotāja puses, ļaujot tekstu iezīmēt, kopēt un padarot to pieejamu ekrāna lasīšanas programmatūrai, tādējādi uzlabojot tīmekļa vides lietojamību, it īpaši cilvēkiem ar redzes problēmām. Darba rezultātā veiksmīgi izveidots JavaScript spraudnis, kuru tīmekļa lietotņu izstrādātāji var izmantot, lai bez piepūles zīmētu iezīmējamu, kopējamu un ekrāna lasītājiem pieejamu tekstu, to joprojām saglabājot kā daļu no canvas zīmētā attēla. The HTML5 canvas element and all information represented within, is, by definition, an image, which is poorly accessible by users, especially visually handicapped ones, who rely on screen reading software. The work investigates multiple different approaches to retrieval of text, which is drawn within an HTML5 canvas element, as a user, by letting the user select and copy the text, and making it accessible to screen reading software, thus improving the usability of the web, especially to the visually handicapped. A successful result of the work is a JavaScript plugin, which can be used by web application developers to effortlessly draw selectable, copiable and screen reader accessible text within the native canvas.