From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#39002: [feature requests] calendar-hebrew [code included] Date: Tue, 7 Jan 2020 14:49:02 -0500 Message-ID: <20200107194902.tzpqneoytfqiismv@E15-2016.optimum.net> References: <20200107062830.kyzjn43p4i3fmdzz@E15-2016.optimum.net> <83r20bcle9.fsf@gnu.org> <20200107171141.rcapyzcwrd4hqdfn@E15-2016.optimum.net> <835zhncgt6.fsf@gnu.org> <20200107182927.jk65jen72cq225ft@E15-2016.optimum.net> <83v9pnayri.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="80202"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: 39002@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 07 20:50:32 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ious3-000FjD-IM for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jan 2020 20:50:31 +0100 Original-Received: from localhost ([::1]:55496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ious1-00057D-JP for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jan 2020 14:50:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53514) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iourb-00056C-FQ for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2020 14:50:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioura-0007OJ-3m for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2020 14:50:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43434) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iourZ-0007O4-W1 for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2020 14:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iourZ-0003p1-TI for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2020 14:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jan 2020 19:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39002 X-GNU-PR-Package: emacs Original-Received: via spool by 39002-submit@debbugs.gnu.org id=B39002.157842655714635 (code B ref 39002); Tue, 07 Jan 2020 19:50:01 +0000 Original-Received: (at 39002) by debbugs.gnu.org; 7 Jan 2020 19:49:17 +0000 Original-Received: from localhost ([127.0.0.1]:49407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iouqr-0003ny-8h for submit@debbugs.gnu.org; Tue, 07 Jan 2020 14:49:17 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:44003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iouqm-0003ng-KA for 39002@debbugs.gnu.org; Tue, 07 Jan 2020 14:49:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1578426546; bh=cYi/d6jXjKK4YB1lQfcBIW6BF+d6D3+SDoDGx0Ul9ng=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=km1no1oCrQcdoibEvu9ZhxVGmIYsyNe1P/Ae39ahP4gCWD6uJ2/sk95Vhx7sr95N2 tXj4kpEvt6McbVkHrGlLOqYcfrGg7fPO8UCsFoXOJWT0JyC1raz5kxaxUYhe3e2cwb 4LySFMimwhyNdaEFFsTRjKmAHgO4QqtYyYiFV3FQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([96.246.226.236]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Ma20q-1j9jVd2brQ-00Vwo4; Tue, 07 Jan 2020 20:49:06 +0100 Content-Disposition: inline In-Reply-To: <83v9pnayri.fsf@gnu.org> X-Provags-ID: V03:K1:GWJ27yzeDMMWyppxz2E5XDuNcO2gFMZUmV62Clk663IPQ9XTtIJ KrF1SkEvEQck/v1dZp4sCHHIgraGLTuz0YFyFhVDNKv7U/JoZHkCYQeK+ZI1epmB6fwZI9h z75N0V8iqoEyuJjqSCgaDKchWCPqDJVc4zz9rTOPqezaE8j6eIt9qTG8lBHrSFwfwAqhKbg GlMkS7xtYAdq5E3w0T72g== X-UI-Out-Filterresults: notjunk:1;V03:K0:fjaQCNAr1k4=:HTU4H6wPBrWikPCyaK3TNG jCQYU+cIvlpdC7PdDHBE1SGdMVeIBXThlDwrDRDLcoYedT1BiOketc/mexbH5LQx88HVNQ/Uy 28Wkl6a4GYdtRWyPtKwx768c0cNf2WttN6EeZRcyyq0GetOpugwdTTImwhsoc0ROfIM12DJPP ygAoV8nTxsiU5kJ08l+y47w1yWDNXANYBfY89hEseJsWEuErOhOTbmHRLA8nWjpeeIUzIgsSj TrmYijhhkBFNG8M1i9Y7QEWzw7jWAeGuNgQFDI3rXJkwXAW+nEzU7GLyN9wrFonDIruOTCjsA dqiita+wGxnhWFFJmwJtMZOjg11HNVllDIUdvMHCYI3yjpLsBTM8js73F/hecVbAwm/R/ZYJM EiSXwpcvgwde0VDomc8xSk0qabNps7+wK6skEcD/nBMyYbaSFRUln241UyFpOJirRwquetIyI EIKtBaHj+2geIQRt4eqNpD+iN7ZdM5e/4AG5NQ97faYsI78DhqLwxvU2yCTU/RIR42acicYuC gCSzsNGve5IF5gpUfbIPB8E094xMPbvkJCmytci1aUFdvpnZGLYASWygyX/u2yNG4aQn5/Edr Tb2gEMJz5jt9y5KJDYB133LcE1MYJF3NCK6n73kSjlvuGcjwFCulOr6vdeQtZ8vewb0wCGTH0 OrmpxaHzIgRRqdOzoBmbRhBB3FsozNtrmnSJej3M+KSQzCfEKPjehHA4ibr+FmiAKV4u5W83k wxr50JsxBCDUX9J1og18BiTG97uLJHquyhLvmZ5mLm63bJSOjyc6sMq1AxcqWcTO0kYAArFq X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174346 Archived-At: On 2020-01-07 20:48, Eli Zaretskii wrote: > > Date: Tue, 7 Jan 2020 13:29:27 -0500 > > From: Boruch Baum > > Cc: 39002@debbugs.gnu.org > > > > > I don't think I see the part with the 1,4,2,3 order > > > > Look at the sequence of displayed lines in the screenshot - for exampl= e, > > the first line after the LTR heading line is the parasha RTL line, but > > the diary file (the middle buffer) says that the parasha should be the > > fourth line, after the sun times. > > Sorry, I'm still in the dark here. What is "the LTR heading line"? > what is its text? Tuesday, January 7, 2020: Tzom Teveth =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Also, you are talking about "lines", but are those logical lines > (i.e. each one ends with a newline), It seems so, since altering the bidi paragraph regex alters the justification. > or did Emacs wrap a single long line? Good question. How could I tell the difference? Wouldn't the buffer result look the same? > > > IIUC the problem, that function was created exactly for these use > > > cases, where bidi reordering causes a jumble in what is supposed to = be > > > columnar display of several substrings. > > > > But these aren't sub-strings, they're discrete paragraphs, as defined = by > > the bidi regex. Even without the regex redefinition, they are discrete > > lines. > > If they are separate line with newlines between them, I don't see how > the order of the lines could change. Bidi reordering doesn't reorder > logical lines. ... ok ... but you do have the screenshot figuratively staring right back at you ... that is the essence of the bugs reported. > > > IOW, it should not be necessary to change the paragraph direction in > > > these cases. > > > > But in the current environment, it's much easier. > > Maybe, but it doesn't mean it's TRT. (But I'm not sure I understand > the problem now, so maybe I was talking nonsense. It would be easier > if you just told me how to activate your code, so I could see the > issues with my own eyes. I don't use calendar and diary in Emacs, so > I need detailed instructions.) The code I sent along with the original report includes the customary commentary section with installation notes / instructions / etc. Evaluate that file. Set variables `calendar-longitude', `calendar-latitude', and `calendar-location'. I think also that variable `diary-display-function' may need to be set to =E2=80=98diary-fancy-displa= y'. Add the hook function as described there and in my previous post(s?). The commentary section also includes sample content for what you need to put in ~/.emacs.d/diary (the middle third of the screenshot I sent), but you see the content used in the screenshot I sent, which is slightly different. Then start the calendar with .... `M-x calendar` (!). That would be the top third of the screenshot I sent. Use the arrow keys to navigate dates in the display, and press `d' to open a diary page for the currently selected date (That would be the bottom third of the much-cited screenshot). Edit ~/.emacs.d/diary to change what the diary page will display. > I don't use calendar and diary in Emacs, so I need detailed > instructions.) The calendar.el and diary-lib.el packages each say their author is Edward M. Reingold , and their maintainer is Glenn Morris>. Can they suckered into this thread? > > With the hook function installed, you can open a diary page and see th= e > > Hebrew lines properly aligned. Without the function, those lines justi= fy > > left. > > Sorry, what does "open a diary page" entail? Again, I don't use these > features, so I need detailed instructions. I also had trouble getting up to speed on these features (#38859, #38866). I explained the procedure in detail above, but briefly: 'M-x calendar', followed by 'd'. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0