From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id B23C61F062E; Sun, 28 May 2017 16:49:08 -0400 (EDT) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) by befuddled.reisers.ca (Postfix) with ESMTPS id 2939E1F0628 for ; Sun, 28 May 2017 16:49:07 -0400 (EDT) Received: by mail-wm0-x22e.google.com with SMTP id e127so35703591wmg.1 for ; Sun, 28 May 2017 13:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hloHtSBydegNtsa+tgo0eGqRX1wImI7Rl789tZTOXxg=; b=j0Tz8dwnBA1byKAjqhjlnp6REZEyKp9inMv/+RuHNjyqhFMkhOAHBXN3lVtnU5zurm hjnK1j3aW/MOrJ2YZDlomsrQWMSGcohY1/4ioIojWYlbO21kKWyabX6nOsd6/ZTD4BqP CT5kEyDcpNlcUbbebVu3ZGRI8qKseRdgksclE89/LtoiRYG3PCfVccfVVhpv3ubbtSq7 8ImkVh7BanWt2KLI4ULkmBjGechtHRpcOeXGR7TR3rEi93RHaPPVc62bveC6ucBS2sqs Fld0uRxr66tPfQYBBkO1EtdRx6DagBbSRW5bhsFAthRAT2ndTHegcMDTkAuUtyWHgSmb vCCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hloHtSBydegNtsa+tgo0eGqRX1wImI7Rl789tZTOXxg=; b=Cfn9uYApRDV6Vt0XbczR5RWp230OWjozES0LlqQH3VR+ydOPNzsac00aRvlkqvlUaK yTqHfYt2k+MMxSaZhXHJKXGG3fLKFmy+mBcn2DSjT70tkjFbx7bKCyHlfzz4Kg2HS+MV 1+MdMIeRmsdCdYN+ScMActS1fWTu0W4elyrQS7dKLiY/HuvkpiRaDGLsQVg/GsdD3ASa Vhmo2BDpk9D4sxBaxbk5kEZkfTzNn8M3YYEoncwZAJKRMye3AU+sJoSb+Aeiyk/cunMS hZpenhbxHm4pa0wHouWq3WiPdsMPCcSmX7mLk06MCTfov4tSz1+ci8Z6GVSIkyON0TWy +FWQ== X-Gm-Message-State: AODbwcALBpPAXq5QGlKSZt3FqC/JJTGXdQ/qxvrCc7o0Q1dkYohr0DRB MC4ByYbfwS0zmg== X-Received: by 10.223.138.139 with SMTP id y11mr9242796wry.22.1496004539453; Sun, 28 May 2017 13:48:59 -0700 (PDT) Received: from sanghar (host81-157-247-88.range81-157.btcentralplus.com. [81.157.247.88]) by smtp.gmail.com with ESMTPSA id v45sm4652344wrb.68.2017.05.28.13.48.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 May 2017 13:48:58 -0700 (PDT) Date: Sun, 28 May 2017 21:48:56 +0100 From: Okash Khawaja To: covici@ccs.covici.com, "Speakup is a screen review system for Linux." Subject: Re: speakup-r functionality Message-ID: <20170528204856.GA883@sanghar> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-BeenThere: speakup@linux-speakup.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2017 20:49:08 -0000 On Sun, May 28, 2017 at 02:39:17PM -0400, John Covici wrote: > Well, find a document such as a text file -- I use emacs for this, but > I suppose any editor will work -- of course it has to be in a text > console. Now, make sure the synthesizer supports indexing -- I think > indexing support was not implemented for all drivers. Now do > speakup-r and the file should be spoken and when you hit the control > key the cursor should be where the last word spoken. Currently its a > number of lines down. Try this with the old speakup with the serial > workaround patch to hear what it is supposed to b like. > > Hope this helps. Thanks. I don't have a synth that supports indexing. But it looks like this fix by Dan Carpenter likely addresses the issue: http://linux-speakup.org/pipermail/speakup/2017-May/060802.html handle_cursor_read_all() in main.c ultimately calls into spk_ttyio_in_nowait. If value returned by spk_ttyio_in_nowait() is 0xff when 0x00 is expectd then sentence count and index count will be different (higher in this case) than expected. I have update speakup.tgz to include this fix. If the above explanation makes sense then please test it when possible. Okash