From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Evan Aad Newsgroups: gmane.emacs.help Subject: Re: Is there a way to force the directionality of a line of text in the GUI? Date: Tue, 15 Nov 2022 13:48:37 +0200 Message-ID: References: <87sfiktpt2.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21482"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 15 12:49:31 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ouuRW-0005NW-S9 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 12:49:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouuQv-0007hV-Jz; Tue, 15 Nov 2022 06:48:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouuQs-0007gU-Nz for help-gnu-emacs@gnu.org; Tue, 15 Nov 2022 06:48:51 -0500 Original-Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouuQr-0008Lv-Dt for help-gnu-emacs@gnu.org; Tue, 15 Nov 2022 06:48:50 -0500 Original-Received: by mail-yb1-xb2e.google.com with SMTP id 7so16818162ybp.13 for ; Tue, 15 Nov 2022 03:48:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pj6kEIVDvVDUF0V6/lymdQpWwTdUcI9cTJVENF1Jbk8=; b=aHdeuatApTfXqfc9xgL/iehwqq/2/ZfD3kaPHNVbK4I1C3iO61EQQgL1FdqI9bMdp9 v3K8M8opdron7JWi38hUG5JEqSOJr1Qn5Uj3jTm57OeONU81JPUOl485POmv0zVB6YAO TLqlOqrc8/QfjFNLOoPTf/r69npenrdRVVLavk1hBnS9+ECWFi4AbUMBInjfD0FIW3Nf 6MfgulhWYE6Lt6KDKdniUOpLL/CQb+hTQfR2qwNOGPFUKjnx1QMVDvA6XgUDa5TKBI8U djOVqFmYOGt9VXamgLoUZTxVPMf8W339q0a9fTzP6e8S++b+kaazcYSYzTLdgxEOGB3f q+YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pj6kEIVDvVDUF0V6/lymdQpWwTdUcI9cTJVENF1Jbk8=; b=fue+Kw+zRPd4ZtrayyMQQ1+k/gjqdVVHYUMOJc0qVBkv3TS/8S980S3KuSkLOW4fwo heqT1MpgqqRxflCts6fEEHflj40Zdx+7Fv+G89sUedFRvF1Cc/W85xGvggaPvtVh8Cp9 P4xooQx8q8USr5oiAykBSrvAfBwwgO+5fbILXVL/qJWrLNfUz6uYD8gs6Gk9q/ER9KYm nnK+ftt1FJboJjKXkHsHZbM6rJ06qBNSao3w8HmBfXu4ZMHgBxkxWsmGTY8moo/xBlko NBrnyM1/4QfSCpF2M17+zk+zXXy4u6Af6Q+rUQ40AUZPw42r9U7r3DchdbkEAZnSgjgB v0bQ== X-Gm-Message-State: ANoB5plfI0et7e3l+xG54mVkdyx7MnBKF2HvUzNcF5Civp1LE1yyAcAU JwAe+lrYJN7sN18E0iODGgyyNkFTasQeT0POKL0= X-Google-Smtp-Source: AA0mqf4Zy09jo/0TjOy0IJbZCTo79fQapX7n2HqeJdUKmd+i758w8qG1WCm4MvahAOTC1gx/kH1TC6nKzkXLmlhnSQ8= X-Received: by 2002:a05:6902:118e:b0:6d7:8639:bade with SMTP id m14-20020a056902118e00b006d78639bademr15581705ybu.427.1668512928226; Tue, 15 Nov 2022 03:48:48 -0800 (PST) In-Reply-To: <87sfiktpt2.fsf@fastmail.fm> Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=oddeveneven@gmail.com; helo=mail-yb1-xb2e.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, 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140961 Archived-At: On Tue, Nov 15, 2022 at 1:33 PM Joost Kremers wrote: > I think all you can do is insert the special Unicode character LEFT-TO-RIGHT MARK at the beginning of the relevant line. I don't know what your TeX system will do with that character, though. I have solved the problem using the following workaround: I have added the comment "%LTR" immediately after the second dollar sign. Now that the line contains letters from the English alphabet, Emacs' bidi algorithm recognizes it as English text, and therefore justifies it to the left of the buffer. However, since this is a TeX comment, it is ignored by the TeX compiler, and therefore affects the processing, and the resulting typeset PDF file, in no way.