Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-22 Thread Bastien
Nicolas Goaziou writes: > Polished and applied. Thanks! And I agree this does not need to be something else than a special block. -- Bastien

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-22 Thread Nicolas Goaziou
Hello, Bastien writes: > Feel free to commit this when you want, Polished and applied. Regards, -- Nicolas Goaziou

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-22 Thread Nicolas Goaziou
Hello, Sebastien Vauban writes: > Nicolas Goaziou wrote: >> In addition to @code{#+BEGIN_CENTER} blocks (@pxref{Paragraphs}), it is >> possible to justify contents to the left or the right of the page with the >> following dedicated blocks. >> >> @example >> #+BEGIN_JUSTIFYLEFT >> It's just a

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-22 Thread Sebastien Vauban
Bastien wrote: > Sebastien Vauban > writes: > >> Do I understand correctly that those won't be converted to their >> HTML and LaTeX counterparts (flushright and raggedleft)? > > For HTML, the user can define a new class "justifyright". > > For LaTeX, yes, we should probably handle this as \begin{f

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-22 Thread Bastien
Hi Sébastien, Sebastien Vauban writes: > Do I understand correctly that those won't be converted to their > HTML and LaTeX counterparts (flushright and raggedleft)? For HTML, the user can define a new class "justifyright". For LaTeX, yes, we should probably handle this as \begin{flushright}.

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-22 Thread Sebastien Vauban
Nicolas Goaziou wrote: > In addition to @code{#+BEGIN_CENTER} blocks (@pxref{Paragraphs}), it is > possible to justify contents to the left or the right of the page with the > following dedicated blocks. > > @example > #+BEGIN_JUSTIFYLEFT > It's just a jump to the left > #+END_JUSTIFYLEFT > > #+B

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-22 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > Well, actually it required more work than I thought. Here is the patch, > with some documentation. I didn't test it thoroughly, so feedback is > welcome. I tested it with paragraphs and tables and didn't find any problem, thanks a lot for implementing this.

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Nicolas Goaziou
Bastien writes: > Yes -- I suggest we simply put this aside for the moment. Well, actually it required more work than I thought. Here is the patch, with some documentation. I didn't test it thoroughly, so feedback is welcome. Regards, -- Nicolas Goaziou >From 744ee75b33ce1dea299626621558901d

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Bastien
Nicolas Goaziou writes: > Bastien writes: > >> Can't this be done with `default-justification' set to 'full? > > Alas, only in the simple cases. The block may contain elements that > needs to be treated differently, e.g., tables. Yes -- I suggest we simply put this aside for the moment. -- B

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Nicolas Goaziou
Bastien writes: > Can't this be done with `default-justification' set to 'full? Alas, only in the simple cases. The block may contain elements that needs to be treated differently, e.g., tables. Regards, -- Nicolas Goaziou

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Bastien
Nicolas Goaziou writes: > I find it a bit verbose, but probably clearer than begin_right and > begin_left. My impression too... > OTOH, I'd rather not implement "justifyfull" as it is not necessary at > the time being and requires more work. Can't this be done with `default-justification' set

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Nicolas Goaziou
Bastien writes: > Maybe > > begin_justifyright > begin_justifyleft > begin_justifyfull > > to reuse the Emacs terminology for text alignment? I find it a bit verbose, but probably clearer than begin_right and begin_left. OTOH, I'd rather not implement "justifyfull" as it is not necessary at the

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Bastien
Nicolas Goaziou writes: > What shall be the name of the block? latex uses "raggedleft", html > "flushright"... Maybe begin_justifyright begin_justifyleft begin_justifyfull to reuse the Emacs terminology for text alignment? -- Bastien

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Nicolas Goaziou
Bastien writes: > Yes, good idea. Can you take care of it? I can look into it. What shall be the name of the block? latex uses "raggedleft", html "flushright"... Regards, -- Nicolas Goaziou

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > Also, the feature is already available in some others back-ends, e.g., > LaTeX, through a special block. Mh, yes. In other words, #+begin_flushright Hello #+end_flushright will be exported as Hello in HTML. > ISTM this is only related to `as

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Nicolas Goaziou
Hello, Bastien writes: > Gregor Zattler writes: > >> In the use case for which I wished this is "ASCII/Latin-1/UTF-8 >> export". I write letters in org-mode and right flush would be >> useful for the letter header part with my address. > Thanks -- I don't have time for this right now, but may

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Bastien
Hi Gregor, Gregor Zattler writes: > In the use case for which I wished this is "ASCII/Latin-1/UTF-8 > export". I write letters in org-mode and right flush would be > useful for the letter header part with my address. > > If I have to cooperate with people who do not know how to > collectively p

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-21 Thread Gregor Zattler
Hi Bastien, * Bastien [21. May. 2014]: > Gregor Zattler writes: >> I wish for a #+BEGIN_FLUSH_RIGHT (#+BEGIN_RIGHT_ALIGNED) >> directive in order to render text right flushed (right aligned) >> in export backends. > > Just out of curiosity, what backend do you need this for? In the use case for

Re: [O] wish: provide flush_right/right_aligned text rendering directive

2014-05-20 Thread Bastien
Hi Gregor, Gregor Zattler writes: > I wish for a #+BEGIN_FLUSH_RIGHT (#+BEGIN_RIGHT_ALIGNED) > directive in order to render text right flushed (right aligned) > in export backends. Just out of curiosity, what backend do you need this for? Cheers, -- Bastien

[O] wish: provide flush_right/right_aligned text rendering directive

2014-05-10 Thread Gregor Zattler
Dear org-mode developers, org-modes default for typographic alignment is flush left (or left aligned) (at least for (ltr scripts). There is a #+BEGIN_CENTER formatting directive, though. I wish for a #+BEGIN_FLUSH_RIGHT (#+BEGIN_RIGHT_ALIGNED) directive in order to render text right flushed (rig