From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: RLT (hebrew) tables and org-odt-export-to-odt problems Date: Thu, 31 Oct 2013 02:11:05 +0530 Message-ID: <87wqku5w66.fsf@gmail.com> References: <87y55kun5y.fsf@gilgamesch.quim.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbcYL-00043h-Np for emacs-orgmode@gnu.org; Wed, 30 Oct 2013 16:39:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbcYH-00019e-03 for emacs-orgmode@gnu.org; Wed, 30 Oct 2013 16:39:45 -0400 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:55449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbcYG-00019Z-Kc for emacs-orgmode@gnu.org; Wed, 30 Oct 2013 16:39:40 -0400 Received: by mail-pa0-f54.google.com with SMTP id fa1so1495173pad.41 for ; Wed, 30 Oct 2013 13:39:39 -0700 (PDT) In-Reply-To: <87y55kun5y.fsf@gilgamesch.quim.ucm.es> (Uwe Brauer's message of "Wed, 23 Oct 2013 15:33:45 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Uwe Brauer Cc: emacs-orgmode@gnu.org In LibreOffice,=20 Right click on the table->Table->Text Direction->Right-to-Left. Now, does what you see seem right to you? As a side-note, the OrgOdtStyles.xml using a LibreOffice that uses en-GB (IN). So, there could be "issues" when it is used with "other" languages. You will be better of creating a .ott file that uses language and country of your choice. See Tools->Options->Language Settings->Languages->Default Languages for Documents->Whatever. I have seen recommendations of using CTL->Hebrew. ---------------------------------------------------------------- As an experiment, look at your *Messages* buffer and see where the exporter is loading OrgOdtStyles.xml from. In the same directory, there would be a OrgOdtContentTemplate.xml. Look for the "OrgTable" style spec. Add a style:writing-mode=3D"rl-tb" to the table-properties. i.e., do this Now re-export. See whether things are OK. Rememeber, the style "OrgTable" (which is an automatic style because it comes from content.xml and not styles.xml) gets applied to ALL your tables. ---------------------------------------------------------------- As a developer note, the ox-odt.el already can create automatic-style for tables. If a table has a rel-width attr_odt line, it would use an automatic style. So it is just a matter of few 15 minutes for one to add support for how a table is rendered. ---------------------------------------------------------------- Since we have an exporter framework in place, the question I would probably ask is what does LaTeX do. Meaning, is there a need to mark a table as rtl when being exported to LaTeX. If yes, what would be the specific attribute that the maintainer of ox.el recommend. ---------------------------------------------------------------- I will queue up a fix for this in my private repo: http://repo.or.cz/w/org-mode/org-kjn.git I WILL merge my fixes and improvements once Emacs has the current release cycle for Emacs is over. If you try out the suggestions above and give me feedback, I will factor in input in to my fix. ---------------------------------------------------------------- Uwe Brauer writes: > Hello=20 > > > Please consider the following example of a hebrew text, which is written > in logical form.=20 > > =D7=A4=D7=A8=D7=95=D7=99=D7=A7=D7=98 =D7=9C=D7=A9=D7=9E=D7=95=D7=A8 = =D7=9E=D7=92=D7=93=D7=9C =D7=A4=D7=99=D7=96=D7=94 =D7=A9=D7=A2=D7=9C=D7= =94 20 =D7=9E=D7=99=D7=9C=D7=99=D7=95=D7=9F =D7=90=D7=99=D7=A8=D7=95 = =D7=94=D7=A9=D7=9C=D7=99=D7=9D =D7=9C=D7=90=D7=97=D7=A8=D7=95=D7=A0=D7= =94.=20 > > When exported to odt, the first sentence is displayed correctly. > However when I try to put it in a table as the following lines > indicates. > > Then this table is displayed L2R. > > | =D7=A4=D7=A8=D7=95=D7=99=D7=A7=D7=98| =D7=9C=D7=A9=D7=9E=D7=95=D7=A8| = =D7=9E=D7=92=D7=93=D7=9C| =D7=A4=D7=99=D7=96=D7=94| =D7=A9=D7=A2=D7=9C=D7= =94| 20| =D7=9E=D7=99=D7=9C=D7=99=D7=95=D7=9F | =D7=90=D7=99=D7=A8=D7=95| = =D7=94=D7=A9=D7=9C=D7=99=D7=9D | > =D7=9C=D7=90=D7=97=D7=A8=D7=95=D7=A0=D7=94.| >=20=20 > > I attach the odt file. > > This seems a sort of bug? > > Uwe Brauer=20