all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* exporting typefaces
@ 2006-06-06 14:26 Austin Frank
  2006-06-06 14:33 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Austin Frank @ 2006-06-06 14:26 UTC (permalink / raw)
  To: emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all--

I'm interested in being able to export stacked typefaces.  This org file:

    * headline
      *bold* /italic/ _underlined_
      */bold italic/* *_bold underlined_* /_italic underlined_/


produces this xhtml:


    <h1 class="title">test</h1>

    <h2>headline</h2>

    <p><b>bold</b> <i>italic</i> <u>underlined</u>
    </p><ul>
    <li>
    /bold italic/* *<sub>bold</sub> underlined<sub>*</sub>
/<sub>italic</sub> underlined_/

    </li>
    </ul>


I would like to see something like


    <h1 class="title">test</h1>

    <h2>headline</h2>

    <p><b>bold</b> <i>italic</i> <u>underlined</u>
    </p><ul>
    <li>
    <b><i>bold italic</i></b> <b><u>bold underlined</u></b> <i><u>italic
underlined</u></i>

    </li>
    </ul>


One can even imagine stacking all of the typeface indicators, like
*/_really fancy text_/*.  I can understand if there's some restriction
on the order that the indicators should be stacked in (e.g., _/.../_
instead of /_..._/), but I still hope that there is some syntax for
applying multiple typeface markups to the same string.

Thanks,
/au
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEhZB7lHMl2/XbR4ERArSpAKDqUY3I5NXOrkfN88Km8TBjwh1CJACfbSmA
WTN9hJsV9eT6WsWerWL/s4Y=
=9Ypd
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: exporting typefaces
  2006-06-06 14:26 exporting typefaces Austin Frank
@ 2006-06-06 14:33 ` Carsten Dominik
  2006-06-06 14:55   ` Austin Frank
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2006-06-06 14:33 UTC (permalink / raw)
  To: Austin Frank; +Cc: emacs-orgmode

I have never even once in my lifetime applied two different styles to a 
piece of text.  What is the application of this?

- Carsten

On Jun 6, 2006, at 16:26, Austin Frank wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello all--
>
> I'm interested in being able to export stacked typefaces.  This org 
> file:
>
>     * headline
>       *bold* /italic/ _underlined_
>       */bold italic/* *_bold underlined_* /_italic underlined_/
>
>
> produces this xhtml:
>
>
>     <h1 class="title">test</h1>
>
>     <h2>headline</h2>
>
>     <p><b>bold</b> <i>italic</i> <u>underlined</u>
>     </p><ul>
>     <li>
>     /bold italic/* *<sub>bold</sub> underlined<sub>*</sub>
> /<sub>italic</sub> underlined_/
>
>     </li>
>     </ul>
>
>
> I would like to see something like
>
>
>     <h1 class="title">test</h1>
>
>     <h2>headline</h2>
>
>     <p><b>bold</b> <i>italic</i> <u>underlined</u>
>     </p><ul>
>     <li>
>     <b><i>bold italic</i></b> <b><u>bold underlined</u></b> 
> <i><u>italic
> underlined</u></i>
>
>     </li>
>     </ul>
>
>
> One can even imagine stacking all of the typeface indicators, like
> */_really fancy text_/*.  I can understand if there's some restriction
> on the order that the indicators should be stacked in (e.g., _/.../_
> instead of /_..._/), but I still hope that there is some syntax for
> applying multiple typeface markups to the same string.
>
> Thanks,
> /au
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFEhZB7lHMl2/XbR4ERArSpAKDqUY3I5NXOrkfN88Km8TBjwh1CJACfbSmA
> WTN9hJsV9eT6WsWerWL/s4Y=
> =9Ypd
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: exporting typefaces
  2006-06-06 14:33 ` Carsten Dominik
@ 2006-06-06 14:55   ` Austin Frank
  2006-06-07 10:21     ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Austin Frank @ 2006-06-06 14:55 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carsten Dominik wrote:

> I have never even once in my lifetime applied two different styles to
> a piece of text.  What is the application of this?

Looking through a few O'Reilly books on my shelf, I see that different
books use constant-width bold (<b><pre>text</pre></b>) and
constant-width italics (<i><pre>text</pre></i>) to indicate where a user
should enter input in example code.

I've been writing a tutorial for use in my lab, and have wanted the
ability to typographically distinguish between optional and required
parts of our in-house scripting language.  I'd like to say

    All *bold* terms are properties of a certain part.  All
    /*italic bold*/ terms are required properties of that part.

I don't know if this request is common enough to warrant inclusion, or
how much of a pain it would be to add to the parser, but that's the
first example off the top of my head of where I'd use this kind of
formatting.

Thanks,
/au

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEhZdVlHMl2/XbR4ERAh7AAKCexPBqwT5cXTmeeIv0GeiIT7dx8gCgtF5p
ODgsAQccvx72clftxlD3J3s=
=lRQH
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: exporting typefaces
  2006-06-06 14:55   ` Austin Frank
@ 2006-06-07 10:21     ` Carsten Dominik
  0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2006-06-07 10:21 UTC (permalink / raw)
  To: Austin Frank; +Cc: emacs-orgmode


On Jun 6, 2006, at 16:55, Austin Frank wrote:
>
> Looking through a few O'Reilly books on my shelf, I see that different
> books use constant-width bold (<b><pre>text</pre></b>) and
> constant-width italics (<i><pre>text</pre></i>) to indicate where a 
> user
> should enter input in example code.

Yes, that is true, O'Reilly books use some excessive styling - I guess 
it makes sense in these cases.

Generalizing the emphasis stuff is tricky, and I am worried that the 
regular expressions will match unintentionally.

However, I have now made this configurable, a test version is at

http://www.astro.uva.nl/~dominik/Tools/org/org-testemphasize.zip

In this version you can configure your own text styling through the 
option `org-emphasis-alist'.  Before I release this, some tweaking of 
the other new option `org-emphasis-regexp-components' might be 
necessary.  In that option you can also define the number of newlines 
you wish to allow in a single emphasized expression (default is one for 
now, don't increase this too much because of a potentially significant 
performance penalty).  Also you can ask for stacked styling in that 
variable.

For now, stacked styling is turned off by default.

- Carsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-07 10:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-06 14:26 exporting typefaces Austin Frank
2006-06-06 14:33 ` Carsten Dominik
2006-06-06 14:55   ` Austin Frank
2006-06-07 10:21     ` Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.