From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Localized org-mode Date: Tue, 08 May 2018 20:21:42 +0200 Message-ID: <87bmdqrosp.fsf@nicolasgoaziou.fr> References: <1525784567.2021.47.camel@gmail.com> <87bmdqtf01.fsf@nicolasgoaziou.fr> <1525801068.2021.56.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fG7FJ-0005xF-HS for emacs-orgmode@gnu.org; Tue, 08 May 2018 14:21:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fG7FE-0008G0-JH for emacs-orgmode@gnu.org; Tue, 08 May 2018 14:21:53 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:57459) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fG7FE-0008CV-C7 for emacs-orgmode@gnu.org; Tue, 08 May 2018 14:21:48 -0400 In-Reply-To: <1525801068.2021.56.camel@gmail.com> (ST's message of "Tue, 08 May 2018 20:37:48 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: ST Cc: emacs-orgmode@gnu.org ST writes: > Why? Run "detranslator" before you start parsing. I.e. based on your > 1-to-1 vocabulary "detranslator" will substitute all :EIGENSCHAFTEN: and > all other org syntax back to English :PROPERTIES: etc.. Then apply > parser as usual. You cannot blindly replace all ":EIGENSCHAFTEN:" with ":PROPERTIES:" because some of them could be real ":EIGENSCHAFTEN:", which is valid syntax. IOW, you need to parse the buffer to know what ":EIGENSCHAFTEN:" ought to be replaced, so you're running in circles. > Writing is only a half of the problem. Imagine Cyrillic or Chinese text > mixed with Latin letters. Org is not html (that hides its syntax once > rendered) and it is supposed to be smoothly readable in raw plain texta > form. Even worth - imagine right-to-left texts like Hebrew or Persian > mixed up with left-to-right Latin letters. It's not aesthetical. If that's an aesthetic issue, we could fix it on the aesthetic side. For example, you can localize timestamps with `org-display-custom-times' and `org-time-stamp-custom-formats'. It could be possible to do something similar, i.e., to use overlays, e.g., on top of properties drawers. Of course, this wouldn't change the underlying appearance, but the solution is much less invasive than what you suggest. Do you want to propose a patch?