Closed Bug 1254232 Opened 9 years ago Closed 9 years ago

Narrate reads the period at the end of a paragraph, and spells out the next word

Categories

(Toolkit :: Reader Mode, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla48
Tracking Status
firefox48 --- verified

People

(Reporter: ehsan.akhgari, Assigned: eeejay)

References

Details

Attachments

(1 file)

STR: 1. Go to <http://blog.monotonous.org/2016/03/07/narrate-a-new-feature-in-firefox-nightly/> and enter reader mode. 2. Click on Narrate and listen. Narrate speaks the following at the end of the first paragraph: ... "reading pleasure dot A S of today"
I can't repro on my MBP.
Looks like we need to tune the selector to break up that post into paragraphs. I'm surprised this comes up here since it is a standard wp post.
Assignee: nobody → eitan
(In reply to Eitan Isaacson [:eeejay] from comment #2) > Looks like we need to tune the selector to break up that post into > paragraphs. I'm surprised this comes up here since it is a standard wp post. I can repro the paragraphs not being broken up for most (all) articles I've tried today. Note this sounds like a different issue than comment 0.
(In reply to David Bolter [:davidb] from comment #3) > (In reply to Eitan Isaacson [:eeejay] from comment #2) > > Looks like we need to tune the selector to break up that post into > > paragraphs. I'm surprised this comes up here since it is a standard wp post. > > I can repro the paragraphs not being broken up for most (all) articles I've > tried today. Note this sounds like a different issue than comment 0. I can reproduce what Ehsan is getting too. I think we are getting textContent of the container of all the paragraphs, and the text is mushed together. In the case over here, the period is followed by "As", the speech engine parses that as a hostname/url and says pleasure.as ("pleasure dot A S"). So that misspoken word is indicitive of a bigger problem. What oher articles do you see this happening in?
(In reply to Eitan Isaacson [:eeejay] from comment #4) > (In reply to David Bolter [:davidb] from comment #3) > > (In reply to Eitan Isaacson [:eeejay] from comment #2) > What oher articles do you see this happening in? Paragraphs seem not chunked for: e.g. http://www.cnn.com/2016/03/07/middleeast/middle-east-weapons-seizure/index.html e.g. http://news.softpedia.com/news/facebook-fixes-bug-that-allowed-users-to-set-new-passwords-for-other-accounts-501449.shtml (You have to get past title and author, then the rest is lumped together)
I originally thought some CSS selectors were enough to break up the paragraphs reliably. I was wrong. Above is a patch that uses a tree walker to get paragraphs.
Comment on attachment 8727598 [details] MozReview Request: Bug 1254232 - Use a tree walker to get list of atomic paragraphs to read. r=Gijs Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38533/diff/1-2/
Comment on attachment 8727598 [details] MozReview Request: Bug 1254232 - Use a tree walker to get list of atomic paragraphs to read. r=Gijs https://reviewboard.mozilla.org/r/38533/#review35287 ::: toolkit/components/narrate/Narrator.jsm:216 (Diff revision 2) > + // _speakInner advanced to the next node for us. We don't call speakInner here, though... so this comment doesn't really make sense. Can you clarify? ::: toolkit/components/narrate/test/browser_narrate.js:54 (Diff revision 2) > - is(speechinfo.paragraph, 1, "second paragraph is being spoken"); > + isnot(speechinfo.paragraph, paragraph, "next paragraph is being spoken"); Can we verify explicitly that speechino.paragraph corresponds to paragraph.nextElementSibling or something of that sort?
Attachment #8727598 - Flags: review?(gijskruitbosch+bugs) → review+
https://reviewboard.mozilla.org/r/38533/#review35287 > Can we verify explicitly that speechino.paragraph corresponds to paragraph.nextElementSibling or something of that sort? as discussed on IRC, this is tough!
Comment on attachment 8727598 [details] MozReview Request: Bug 1254232 - Use a tree walker to get list of atomic paragraphs to read. r=Gijs Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38533/diff/2-3/
Attachment #8727598 - Attachment description: MozReview Request: Bug 1254232 - Use a tree walker to get list of atomic paragraphs to read. r?Gijs → MozReview Request: Bug 1254232 - Use a tree walker to get list of atomic paragraphs to read. r=Gijs
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Verified fixed on Windows 7 64bit, Ubuntu 13.10 32bit and Mac OSX 10.9.5 using latest Aurora 48.0a2 (buildID: 20160504004015).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: