From: Jambunathan K <kjambunathan@gmail.com>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: RLT (hebrew) tables and org-odt-export-to-odt problems
Date: Thu, 31 Oct 2013 02:11:05 +0530 [thread overview]
Message-ID: <87wqku5w66.fsf@gmail.com> (raw)
In-Reply-To: <87y55kun5y.fsf@gilgamesch.quim.ucm.es> (Uwe Brauer's message of "Wed, 23 Oct 2013 15:33:45 +0200")
In LibreOffice,
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.
<style:style style:name="OrgTable" style:family="table">
<style:table-properties style:rel-width="96%" fo:margin-top="0cm" fo:margin-bottom="0.20cm" table:align="center"/>
</style:style>
Add a style:writing-mode="rl-tb" to the table-properties. i.e., do this
<style:style style:name="OrgTable" style:family="table">
<style:table-properties style:rel-width="96%" fo:margin-top="0cm"
fo:margin-bottom="0.20cm" table:align="center" style:writing-mode="rl-tb"/>
</style:style>
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 <oub@mat.ucm.es> writes:
> Hello
>
>
> Please consider the following example of a hebrew text, which is written
> in logical form.
>
> פרויקט לשמור מגדל פיזה שעלה 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.
>
> | פרויקט| לשמור| מגדל| פיזה| שעלה| 20| מיליון | אירו| השלים |
> לאחרונה.|
>
>
> I attach the odt file.
>
> This seems a sort of bug?
>
> Uwe Brauer
next prev parent reply other threads:[~2013-10-30 20:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 13:33 RLT (hebrew) tables and org-odt-export-to-odt problems Uwe Brauer
2013-10-30 20:41 ` Jambunathan K [this message]
2013-10-30 23:17 ` Uwe Brauer
2013-10-30 23:27 ` NOT SOLVED " Uwe Brauer
2013-10-30 23:37 ` org-odt-export-to-odt, tables bug in OO Uwe Brauer
2013-10-31 10:41 ` RLT (hebrew) tables and org-odt-export-to-odt problems Uwe Brauer
2013-11-04 6:08 ` Jambunathan K
2013-11-04 22:54 ` Uwe Brauer
2013-11-04 22:57 ` Uwe Brauer
2013-11-06 14:51 ` Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wqku5w66.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=oub@mat.ucm.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).