all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Boruch Baum <boruch_baum@gmx.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 39002@debbugs.gnu.org
Subject: bug#39002: [feature requests] calendar-hebrew [code included]
Date: Tue, 7 Jan 2020 12:11:41 -0500	[thread overview]
Message-ID: <20200107171141.rcapyzcwrd4hqdfn@E15-2016.optimum.net> (raw)
In-Reply-To: <83r20bcle9.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1955 bytes --]

On 2020-01-07 17:54, Eli Zaretskii wrote:
> > Date: Tue, 7 Jan 2020 01:28:30 -0500
> > From: Boruch Baum <boruch_baum@gmx.com>
> >
> > 2.1) This exposed three bugs in the bidi rendering of the diary buffer:
> >
> >     A) Hebrew text lines in the diary are rendered left justified.
> >
> >     B) Hebrew text lines in the diary are rendered in reverse sequence.
> >
> >     C) RTL and LTR lines are rendered out of sequence to each other.
> >
> > 2.1.1) Bug A can be avoided by locally redefining the regexes that
> >        identify bidi paragraphs, and I've included that in the attached
> >        code.
> >
> > 2.1.2) Bugs B and C may possibly be related to bug #15541.
>
> I'm interested to understand better these problems.  Please give
> detailed instructions for how to reproduce them with your calendar
> code, or show a screenshot, because I don't think I understand well
> enough from the above description what the display looks like.
>
> Thanks.

Attached is a screenshot displaying three relevant buffers. Below the
calendar buffer is the content of my ~/.emacs.d/diary file. Note the
sequence of elements: 1) Title line (LTR, implicit; 2) Hebrew date
(RTL); 3) sun times (LTR); 4) Parasha (RTL). However, in the diary
output buffer, at the bottom of the screen shot, the lines are displayed
in the sequence 1,4,2,3. That covers bugs B & C. Bug A and a fix for it
would be reproduced by applying / removing the hook function at line 372
of the previously submitted `cal-ivrit.el'


  (defun cal-ivrit-diary-fancy-display-mode-hook-function ()
    (setq bidi-paragraph-start-re "^")
    (setq bidi-paragraph-separate-re "^"))

  (add-hook 'diary-fancy-display-mode-hook
    'cal-ivrit-diary-fancy-display-mode-hook-function)

For an illustration of emacs bug #15541 (nine+ years old!), see the
attached org-mode file.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

[-- Attachment #2: emacs_bug_report_39002.png --]
[-- Type: image/png, Size: 39290 bytes --]

[-- Attachment #3: emacs_bug_15541.org --]
[-- Type: text/plain, Size: 2866 bytes --]

-*- mode:org; mode:visual-line;  -*-
* demonstration of emacs bug 15541

Here are two Hebrew RTL text paragraphs, taken from today's HaAretz:

נשיא פולין, אנדז'יי דודה, הודיע היום (שלישי) כי יחרים את הטקס לזכר
השואה שייערך בסוף החודש ביד ושם, בטענה שלא הורשה לנאום במהלכו. הוא
הוסיף כי הוא אינו מקבל את העובדה שנציגי רוסיה, צרפת, בריטניה, גרמניה
וארה"ב ינאמו בטקס בעוד הוא לא. שלשום דרש דודה לשאת דברים באירוע, והתנה
בכך את השתתפותו. השבוע פורסם בתקשורת הפולנית כי דודה שוקל לבטל את
הגעתו בשל חשש שנשיא רוסיה, ולדימיר פוטין, ינצל את הבמה בטקס כדי לתקוף
את פולין. 

דודה אמר שלשום בריאיון לטלוויזיה הממלכתית בפולין כי הוא "נציג של
המדינה שאיבדה הכי הרבה אנשים" במחנה ההשמדה אושוויץ. לפי נתוני אתר
ההנצחה של יד ושם, באושוויץ נרצחו 1.1 מיליון בני אדם, מתוכם כמיליון היו
יהודים. שאר הקורבנות היו פולנים (כ-70 אלף), צוענים (כ-21 אלף), אסירי
מלחמה סובייטיים (כ-14 אלף) ובני לאומים אחרים.

Now look how those two paragraphs display when used as org-mode headings:

** נשיא פולין, אנדז'יי דודה, הודיע היום (שלישי) כי יחרים את הטקס לזכר השואה שייערך בסוף החודש ביד ושם, בטענה שלא הורשה לנאום במהלכו. הוא הוסיף כי הוא אינו מקבל את העובדה שנציגי רוסיה, צרפת, בריטניה, גרמניה וארה"ב ינאמו בטקס בעוד הוא לא. שלשום דרש דודה לשאת דברים באירוע, והתנה בכך את השתתפותו. השבוע פורסם בתקשורת הפולנית כי דודה שוקל לבטל את הגעתו בשל חשש שנשיא רוסיה,ולדימיר פוטין, ינצל את הבמה בטקס כדי לתקוף את פולין. 

** דודה אמר שלשום בריאיון לטלוויזיה הממלכתית בפולין כי הוא "נציג של המדינה שאיבדה הכי הרבה אנשים" במחנה ההשמדה אושוויץ. לפי נתוני אתר ההנצחה של יד ושם, באושוויץ נרצחו 1.1 מיליון בני אדם, מתוכם כמיליון היו יהודים. שאר הקורבנות היו פולנים (כ-70 אלף), צוענים (כ-21 אלף), אסירי מלחמה סובייטיים (כ-14 אלף) ובני לאומים אחרים.

  reply	other threads:[~2020-01-07 17:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-07  6:28 bug#39002: [feature requests] calendar-hebrew [code included] Boruch Baum
2020-01-07 15:54 ` Eli Zaretskii
2020-01-07 17:11   ` Boruch Baum [this message]
2020-01-07 17:33     ` Eli Zaretskii
2020-01-07 18:29       ` Boruch Baum
2020-01-07 18:48         ` Eli Zaretskii
2020-01-07 19:49           ` Boruch Baum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200107171141.rcapyzcwrd4hqdfn@E15-2016.optimum.net \
    --to=boruch_baum@gmx.com \
    --cc=39002@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.