From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: org-odt: specifying fonts Date: Wed, 19 Oct 2011 10:35:53 -0400 Message-ID: References: <4E9DDBB7.5050806@christianmoe.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0444015ad973b404afa7c1a5 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGXFU-0002so-AZ for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 10:36:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGXFK-00006Z-Um for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 10:36:01 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:59782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGXFK-00006F-RE for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 10:35:54 -0400 Received: by vws16 with SMTP id 16so1576115vws.0 for ; Wed, 19 Oct 2011 07:35:53 -0700 (PDT) In-Reply-To: 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: Mehul Sanghvi Cc: emacs-orgmode@gnu.org, mail@christianmoe.com, Jambunathan K --f46d0444015ad973b404afa7c1a5 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Oct 18, 2011 at 5:15 PM, Mehul Sanghvi wrote: > Christian, > > Thanks for the stopgap measure. As for fonts, like styles, it > would be easier, simpler and more elegant > to be able to do that without having to edit styles.odt every time. > This is not specific to org-odt. It should be, > at least I think so for now, to do this with any exporting backend. > > If you send me a styles.odt, and I do not like the fonts you are > using, it becomes cumbersome to be editing the styles.odt > for each font and making sure to change it in all possible places > until I settle on a proper font I want to use. > > If I could instead specify the font in org file itself, it would be a > matter of changing the header and re-generating the file. > > The ODT_STYLE is certainly a good enhancement. > > I think the problem here, Mehul, is that odt export works with styles, not fonts. So to do what you want, the exporter would need to be able to tweak the styles manually(so, I guess, first run some kind of xml transform on the stylesheet, then apply the stylesheet itself). If there are hidden inconsistencies in the original stylesheet, you may end up with difficult-to-diagnose breakage. I'd definitely suggest just modifying hte stylesheet and saving it somewhere safe. m --f46d0444015ad973b404afa7c1a5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Oct 18, 2011 at 5:15 PM, Mehul S= anghvi <meh= ul.sanghvi@gmail.com> wrote:
Christian,

=A0 =A0 =A0Thanks for the stopgap measure. =A0As for fonts, like styles, i= t
would be easier, simpler and more elegant
to be able to do that without having to edit styles.odt every time.
This is not specific to org-odt. =A0It should be,
at least I think so for now, to do this with any exporting backend.

If you send me a styles.odt, and I do not like the fonts you are
using, it becomes cumbersome to be editing the styles.odt
for each font and making sure to change it in all possible places
until I settle on a proper font I want to use.

If I could instead specify the font in org file itself, it would be a
matter of changing the header and re-generating the file.

The ODT_STYLE is certainly a good enhancement.

I think the problem here, Mehul, is that odt export w= orks with styles, not fonts.=A0 So to do what you want, the exporter would = need to be able to tweak the styles manually(so, I guess, first run some ki= nd of xml transform on the stylesheet, then apply the stylesheet itself).= =A0 If there are hidden inconsistencies in the original stylesheet, you may= end up with difficult-to-diagnose breakage. I'd definitely suggest jus= t modifying hte stylesheet and saving it somewhere safe.=A0
m

--f46d0444015ad973b404afa7c1a5--