Re: Table alignment problem

2021-05-08 Thread Ihor Radchenko
Fr Ml  writes:

> Hello,
>
> thanks for the answer. I'm not familiar with github.
> Do you mean this program branch?:
> https://github.com/yantar92/org/tree/feature/org-fold%2Bpatches

Not really. I mean the main branch in the repo (which is
feature/org-fold-universal-core). The installation instructions are in
https://github.com/yantar92/org#installation

Best,
Ihor



Re: Table alignment problem

2021-05-08 Thread Fr Ml

  
  
Hello,
  
  thanks for the answer. I'm not familiar with github.
  Do you mean this program branch?:
  https://github.com/yantar92/org/tree/feature/org-fold%2Bpatches
  Kind regards,
  
  Frank
  

On 5/7/21 4:50 PM, Ihor Radchenko
  wrote:


  Fr Ml  writes:


  
Hello,
there is an old problem with table alignment. It's mentioned here:
https://emacs.stackexchange.com/q/30495/11498

It occurs as far as I know only in 4 cases (last 4 rows):

| 2 latin letters | ab | (2 glyphs)    |
| 2 arabic letters    | من | ok (2 glyphs) |
| same but with 2 diacritics  | مِنْ | also ok  (2 glyphs)   |
| the arabich letter ا and then ل isn't a problem | ال | also ok (2 glyphs)    |
| but ل and then ا is a problem (case1)   | لا | not ok (it's 1 glyph) |
| also ل and then أ (case2)   | لأ | " (it's 1 glyph)  |
| also ل and then إ (case3)   | لإ | " (it's 1 glyph)  |
| also ل and then آ (case4)   | لآ | " (it's 1 glyph)  |

  
  
Can you try with org-fold branch [1]? It implements a new way to
calculate string width.

[1] https://github.com/yantar92/org

Best,
Ihor


  




Re: Table alignment problem

2021-05-08 Thread Fr Ml

  
  
Hello,
  thank you very much. This solves my problem.
  Kind Regards,
  Frank

On 5/8/21 8:37 AM, Jeremie Juste wrote:


  
Hello,

You can have some success using [1] valign-mode.

https://github.com/casouri/valign

HTH,
Jeremie


  




Re: Table alignment problem

2021-05-07 Thread Jeremie Juste


Hello,

You can have some success using [1] valign-mode.

https://github.com/casouri/valign

HTH,
Jeremie



Re: Table alignment problem

2021-05-07 Thread Ihor Radchenko
Fr Ml  writes:

> Hello,
> there is an old problem with table alignment. It's mentioned here:
> https://emacs.stackexchange.com/q/30495/11498
>
> It occurs as far as I know only in 4 cases (last 4 rows):
>
> | 2 latin letters | ab | (2 glyphs)   
>  |
> | 2 arabic letters    | من | ok (2 glyphs)
>  |
> | same but with 2 diacritics  | مِنْ | also ok  (2 
> glyphs)   |
> | the arabich letter ا and then ل isn't a problem | ال | also ok (2 glyphs)   
>  |
> | but ل and then ا is a problem (case1)   | لا | not ok (it's 1 
> glyph) |
> | also ل and then أ (case2)   | لأ | " (it's 1 glyph) 
>  |
> | also ل and then إ (case3)   | لإ | " (it's 1 glyph) 
>  |
> | also ل and then آ (case4)   | لآ | " (it's 1 glyph) 
>  |

Can you try with org-fold branch [1]? It implements a new way to
calculate string width.

[1] https://github.com/yantar92/org

Best,
Ihor


Table alignment problem

2021-05-06 Thread Fr Ml

  
  
Hello,
there is an old problem with table alignment. It's mentioned here:
https://emacs.stackexchange.com/q/30495/11498

It occurs as far as I know only in 4 cases (last 4 rows):

| 2 latin
  letters | ab | (2
  glyphs)    |
  | 2 arabic letters    | من | ok (2
  glyphs) |
  | same but with 2 diacritics  | مِنْ | also
  ok  (2 glyphs)   |
  | the arabich letter ا and then ل isn't a problem | ال | also ok
  (2 glyphs)    |
  | but ل and then ا is a problem (case1)   | لا | not ok
  (it's 1 glyph) |
  | also ل and then أ (case2)   | لأ | " (it's 1
  glyph)  |
  | also ل and then إ (case3)   | لإ | " (it's 1
  glyph)  |
  | also ل and then آ (case4)   | لآ | " (it's 1
  glyph)  |

(screenshot)

In the 4 cases two letters build one single glyph and this isn't
recognized. That's the problem. 
I don't know if it's hard to solve but I've noticed for example that
orgmode handles the word  مَنْ correctly. It has only 2 glyphs even
though this word has 4 characters (2 diacritics+ 2 regular letters).
The alignment is correct (3rd row).
And unfortunately the 4 mentioned cases occurs very often in Arabic,
so the alignment would be much worse with than in the example. 
I hope this could be solved. Many thanks for the great orgmode
features and the bidi support.

(Of course I'm using a monospaced font for Arabic. And the problem
occurs also if I only use Arabic letters.)

Kind Regards
Frank