From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anand Tamariya Newsgroups: gmane.emacs.devel Subject: Re: Basic WYSIWYG printing in GNU Emacs (Arabic & Hebrew) Date: Wed, 11 Aug 2021 09:18:23 +0530 Message-ID: References: <831r71h5jv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000023104505c9407e21" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1055"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 11 05:49:10 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDfEr-000AaZ-LY for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Aug 2021 05:49:09 +0200 Original-Received: from localhost ([::1]:58668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDfEp-0007Um-Tc for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 23:49:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDfEL-0006o0-Tw for emacs-devel@gnu.org; Tue, 10 Aug 2021 23:48:37 -0400 Original-Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:43896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDfEK-0007Tw-D5; Tue, 10 Aug 2021 23:48:37 -0400 Original-Received: by mail-io1-xd35.google.com with SMTP id y1so1879077iod.10; Tue, 10 Aug 2021 20:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GYdLvUIvVze9NpCMVt8cI8XiLBfYe95sx2XDLCKqoY4=; b=ChYU1mRZ8b8TwB73g0vkxnmQg4TsdI+zi945SWeFfLOOfjd8kwx4CQT4qCs9i3qF7f AeFW/RxDolFG10xe0zluZoKn1ZzKHbbCD3a+XL485hcF9K9pLcLuX6i3UHnS5K5IlrUA gro53ZJKrUQNl50FDatE+s4OBg21XyxGYaDj6YGjyDpcI/hjZNgJWeEssj4CpM4ltpNn +AOC2l1//6AztkHgglYbhMgvfRaOHGMaAkDI+3TcJXMJNCrgtaNU0kws1k31oiocdf+p U9q9y5U97kI/x/YRgC80on+MB6rCZjir4djz6EADlbBniHOHJozol6zNMlNiWcnPkiTx nLWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GYdLvUIvVze9NpCMVt8cI8XiLBfYe95sx2XDLCKqoY4=; b=bnEoJVbuw/Wbsj3rMo9RO6ntdEjAzUedDyVU+fFkkNWT/q8zTjwegKMf8EzRSNOsBE JvlWulGO2EGMtO/RhHoU+kt3Psf6yrBC7e5idhhFE4pQuASDRNQH29yPRsfw7eq48y/G CqPh53iydKfTaH5dGpMmjzsnqDJZTSP2VyjLGiYyrjxDzJI3qkFjUFuXapgFDpCNIc1f Dj8YN9o/3da71chGalaSdJKpaZyUFQytb65rVnjDLLSgK9xB2YZwaMbKTQ3r81Nkx88W fNTq8segZIstS9qz26tpwYEP2mIoXR3llGWkLLzZ9WjGhyawI6a35tbdSDGD+D57HR9K vOnA== X-Gm-Message-State: AOAM533XNYgj2y+gi3xa9K9I5P6fnTQB3yX5wvMGtU0TPhTRmA4E73iv l8XxVLK1ZGUG2Pp48OdAiFW0GSiDcfd/1LUWuTYonVv6RnBUZg== X-Google-Smtp-Source: ABdhPJx30SOQsq3Ww7IjYx64q0gp4NYhJqC8hbH81V5M/ZSV8OirjJvFOZzAYqIuS80x3fEn/1fZXXKZaBJ/wP/mZ8k= X-Received: by 2002:a5d:9d9a:: with SMTP id ay26mr26207iob.41.1628653714868; Tue, 10 Aug 2021 20:48:34 -0700 (PDT) In-Reply-To: <831r71h5jv.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::d35; envelope-from=atamariya@gmail.com; helo=mail-io1-xd35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272309 Archived-At: --00000000000023104505c9407e21 Content-Type: text/plain; charset="UTF-8" On Tue, Aug 10, 2021 at 5:31 PM Eli Zaretskii wrote: > > From: Anand Tamariya > > Date: Tue, 10 Aug 2021 11:11:26 +0530 > > > > Here is my next iteration on basic WYSIWYG printing in GNU Emacs for > printing RTL languages like Arabic > > and Hebrew. > > Does it also start RTL text at the right edge of the paper? And how > does it reorder characters for printing? > > (Sorry for asking these questions, but I'm still unable to see > anything useful on the GitLab URL you show -- when I go there, I see > only the navigation tree on the left and an empty pane on the right.) > > The code uses window positioning information for characters from Emacs and then scales the content to fit the print width. It uses following API to determine BIDI classification and processes accordingly: (get-char-code-property (char-after from) 'bidi-class) --00000000000023104505c9407e21 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Aug 10, 2021 at 5:31 PM Eli Z= aretskii <eliz@gnu.org> wrote:
> From: Anand T= amariya <atamar= iya@gmail.com>
> Date: Tue, 10 Aug 2021 11:11:26 +0530
>
> Here is my next iteration on basic WYSIWYG printing in GNU Emacs for p= rinting RTL languages like Arabic
> and Hebrew.

Does it also start RTL text at the right edge of the paper?=C2=A0 And how does it reorder characters for printing?

(Sorry for asking these questions, but I'm still unable to see
anything useful on the GitLab URL you show -- when I go there, I see
only the navigation tree on the left and an empty pane on the right.)

The code uses window positioning information for char= acters from Emacs and then scales the content to fit the print width.
<= /div>

It uses following API to determine BIDI classifica= tion and processes accordingly:
(get-char-code-property (char-aft= er from) 'bidi-class)
--00000000000023104505c9407e21--