From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.devel Subject: Re: [conversion fails] Date: Tue, 13 Feb 2018 09:51:33 +0100 Message-ID: <87h8qll1be.fsf@mat.ucm.es> References: <878tcbdpf3.fsf@mat.ucm.es> <876078p1gy.fsf@md5i.com> <87tvurldff.fsf@mat.ucm.es> <87wozmnhny.fsf@md5i.com> <8760750vz4.fsf_-_@mat.ucm.es> <87po5aoocr.fsf@md5i.com> <87sha6o5ij.fsf@mat.ucm.es> <87lgfxo8qb.fsf@md5i.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1518511902 13757 195.159.176.226 (13 Feb 2018 08:51:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 08:51:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 13 09:51:37 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elWJ0-0001rn-Su for ged-emacs-devel@m.gmane.org; Tue, 13 Feb 2018 09:51:15 +0100 Original-Received: from localhost ([::1]:57363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elWL2-00036x-Jh for ged-emacs-devel@m.gmane.org; Tue, 13 Feb 2018 03:53:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elWK3-00035f-1V for emacs-devel@gnu.org; Tue, 13 Feb 2018 03:52:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elWJz-0000CT-Vr for emacs-devel@gnu.org; Tue, 13 Feb 2018 03:52:19 -0500 Original-Received: from [195.159.176.226] (port=47703 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elWJz-0000CB-Oj for emacs-devel@gnu.org; Tue, 13 Feb 2018 03:52:15 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1elWHY-0004yB-3g for emacs-devel@gnu.org; Tue, 13 Feb 2018 09:49:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 46 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:B75Wt/8KkCy3zFeGLYB6TEGZ6ac= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222707 Archived-At: > Uwe Brauer writes: > [...] > Right. A corner case I missed. Specifically, if the region ends on a > key sequence that encodes a valid character, but could be a prefix of > another character. I cried victory to earlier, there seems more corner cases. Take the following examples 1 )En a)rxh=| h)=n o( lo'gos, kai` o( lo'gos h)=n pro`s to`n qeo'n, kai` qeo`s h)=n o( lo'gos. Should be translated to 1 Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν, καὶ θεὸς ἦν ὁ λόγος. But is translated to 1 Ἐν a)rχῇ h)=n o( λόγos, kaὶ o( λόγos h)=n πro`s τὸν θeo'n, kaὶ θeo`s h)=n o( λόγos. % % 2 ou(=tos h)=n e)n a)rxh=| pro`s to`n qeo'n. Should be 2 οὗτος ἦν ἐν ἀρχῇ πρὸς τὸν θεόν. But gives 2 ou(=tos h)=n e)n a)rχῇ πro`s τὸν θeo'n. That looks really tough. I tried to debug your function, but I don't really understand the problem. Thank you, really I appreciate your help Uwe