ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik Kabel <rik@panix.com>
To: ntg-context@ntg.nl
Subject: Re: Ebooks with ConTeXt?
Date: Wed, 11 Dec 2019 10:17:20 -0500	[thread overview]
Message-ID: <053de0be-474e-8b5c-ed83-7fc9fd3af97f@panix.com> (raw)
In-Reply-To: <383cd833-93ee-5587-8b84-4386f405bead@mailbox.org>


[-- Attachment #1.1: Type: text/plain, Size: 685 bytes --]


On 12/11/2019 01:10, Jan U. Hasecke wrote:
> Ebooks are xhtml so styles are limited to the capabilities of css. I
> fear that initials has to be left flowing images.

Sorry, but if I understand what you mean by initials, that is not the case. Consider

    .lettrine>p::first-letter {
         font-size    : 3rem ;
         line-height  : 0 ;
    }

This produces a raised large character at the beginning of a paragraph. It does not automatically accommodate leading quotation marks and such, so some tuning may be needed, and of course you have to tag the paragraph with the appropriate class.

Similarly, you can set the first line of a paragraph to smallcap.

-- 
Rik


[-- Attachment #1.2: Type: text/html, Size: 1221 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2019-12-11 15:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-09 21:13 Nicola
2019-12-10  7:05 ` Jan U. Hasecke
2019-12-10  7:50   ` Nicola
2019-12-10 15:53     ` Denis Maier
2019-12-10 16:50       ` Henning Hraban Ramm
2019-12-10 19:38         ` Nicola
2019-12-11  6:22           ` Jan U. Hasecke
2019-12-11  6:10     ` Jan U. Hasecke
2019-12-11  9:01       ` Hans Hagen
2019-12-11 15:17       ` Rik Kabel [this message]
2019-12-11 15:45         ` Henning Hraban Ramm
2019-12-11 17:53           ` Rik Kabel
2019-12-10  8:40 ` Hans Hagen
2019-12-10 19:50   ` Nicola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=053de0be-474e-8b5c-ed83-7fc9fd3af97f@panix.com \
    --to=rik@panix.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).