emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] RLT (hebrew) tables and org-odt-export-to-odt problems


From: Uwe Brauer
Subject: Re: [O] RLT (hebrew) tables and org-odt-export-to-odt problems
Date: Wed, 06 Nov 2013 15:51:12 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) XEmacs/21.5-b33 (linux)

>> "Jambunathan" == Jambunathan K <Jambunathan> writes:

   > Uwe 

   >> r2ltableorg.org is the org file and displays the text as
   >> intended. However not all of the text was written in logical order by
   >> GNU emacs, but copied from some other sources.

   > I am venturing in to the wild here and it will take multiple iterations
   > for me to even get a "feel" for what needs to be happen.  I am not even
   > sure what is right or wrong here.  Anyways...


Hi 

I tried to analyze the unzipped odt files, either generated by the
exporter or by OO. It seems to me that odt, does not support that within
*one* table, one can have one row R2L and the other L2L, but I am
not sure. If this were the case, maybe OO inserts  one row visual not
logical?



So the following simple function[1] does reverse one row of a table in
org-mode and then the export function works as expected.

hten (defun my-org-table-reverse-cells-in-row ()
  "Simple function to reverse cells in one row. This might be useful in tables 
with R2L and L2R text."
  (interactive)
  (save-excursion
        (newline 1)
        (end-of-line 1)
        (newline 1)
        (goto-char (org-table-begin))
        (org-table-transpose-table-at-point)
        (let*     ((beg (org-table-begin))
                           (end (org-table-end)))
          (goto-char beg)
          (reverse-region beg end))
        (org-table-transpose-table-at-point)
        (kill-line nil)
        (goto-char (org-table-begin))
        (previous-line 1)
        (kill-line nil)))


Uwe 

Footnotes:
[1]  thanks to Michael Brand for the main idea.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]