From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Basic WYSIWYG printing in GNU Emacs (Arabic & Hebrew) Date: Wed, 11 Aug 2021 20:53:39 +0300 Message-ID: <83fsvfeul8.fsf@gnu.org> References: <831r71h5jv.fsf@gnu.org> <831r70fc0b.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17856"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: atamariya@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 11 19:54:53 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 1mDsRJ-0004G8-VA for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Aug 2021 19:54:53 +0200 Original-Received: from localhost ([::1]:59688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDsRI-0007jN-D7 for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Aug 2021 13:54:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDsQE-0006se-31 for emacs-devel@gnu.org; Wed, 11 Aug 2021 13:53:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40248) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDsQD-0007iB-T1; Wed, 11 Aug 2021 13:53:45 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2318 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDsQD-0003J5-45; Wed, 11 Aug 2021 13:53:45 -0400 In-Reply-To: <831r70fc0b.fsf@gnu.org> (message from Eli Zaretskii on Wed, 11 Aug 2021 14:37:24 +0300) 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:272331 Archived-At: > Date: Wed, 11 Aug 2021 14:37:24 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > From: Anand Tamariya > > Date: Wed, 11 Aug 2021 09:18:23 +0530 > > Cc: emacs-devel@gnu.org > > > > 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. > > So this needs the buffer text be displayed in some window, before it > could be printed? The window positioning information can only be obtained for the part of the buffer text actually visible in a window; for buffer positions outside of the viewport posn-at-point will give you nil. How do you work around this limitation to allow printing text of the entire buffer?