From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105811 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Ebooks with ConTeXt? Date: Wed, 11 Dec 2019 10:17:20 -0500 Message-ID: <053de0be-474e-8b5c-ed83-7fc9fd3af97f@panix.com> References: <00af8343-7bdd-7d5d-f0ac-2dc2fc810bfd@mailbox.org> <383cd833-93ee-5587-8b84-4386f405bead@mailbox.org> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0004161435931023787==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="185185"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0 Thunderbird/60.9.1 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 11 16:19:48 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1if3mG-000m39-9C for gctc-ntg-context-518@m.gmane.org; Wed, 11 Dec 2019 16:19:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6EE8C1624DB; Wed, 11 Dec 2019 16:17:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LkSS-PcKaXEq; Wed, 11 Dec 2019 16:17:24 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 957B9163839; Wed, 11 Dec 2019 16:17:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8F06A162E7C for ; Wed, 11 Dec 2019 16:17:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jwPCN83s02wT for ; Wed, 11 Dec 2019 16:17:22 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=rik@panix.com; receiver= Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C87261624DB for ; Wed, 11 Dec 2019 16:17:22 +0100 (CET) Original-Received: from [192.168.201.21] (cpe-72-228-11-252.nycap.res.rr.com [72.228.11.252]) by mailbackend.panix.com (Postfix) with ESMTPSA id 47Y0sY238kz1KVb for ; Wed, 11 Dec 2019 10:17:21 -0500 (EST) In-Reply-To: <383cd833-93ee-5587-8b84-4386f405bead@mailbox.org> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105811 Archived-At: This is a multi-part message in MIME format. --===============0004161435931023787== Content-Type: multipart/alternative; boundary="------------4CC83C5D9E1098FB13F6A7CC" Content-Language: en-US This is a multi-part message in MIME format. --------------4CC83C5D9E1098FB13F6A7CC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------4CC83C5D9E1098FB13F6A7CC Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit


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
--------------4CC83C5D9E1098FB13F6A7CC-- --===============0004161435931023787== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0004161435931023787==--