From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105987 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Epub export css buglets Date: Mon, 6 Jan 2020 13:08:43 -0500 Message-ID: <4a76c534-43a8-9461-fa98-f732948f5149@rik.users.panix.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3934972644597863476==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="126778"; 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 Mon Jan 06 19:09:51 2020 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 1ioWp5-000Wp7-G0 for gctc-ntg-context-518@m.gmane.org; Mon, 06 Jan 2020 19:09:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6A2561648CD; Mon, 6 Jan 2020 19:08:49 +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 KkKYPyhFhs3j; Mon, 6 Jan 2020 19:08:48 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8BD721649B9; Mon, 6 Jan 2020 19:08:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 369F41649B6 for ; Mon, 6 Jan 2020 19:08:47 +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 OUTc-nmoafcw for ; Mon, 6 Jan 2020 19:08:46 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=context@rik.users.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 331211648CD for ; Mon, 6 Jan 2020 19:08:45 +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 47s3RJ3F6vz11CZ for ; Mon, 6 Jan 2020 13:08:44 -0500 (EST) 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:105987 Archived-At: This is a multi-part message in MIME format. --===============3934972644597863476== Content-Type: multipart/alternative; boundary="------------6496271C40B50C3DEA5B28F2" Content-Language: en-US This is a multi-part message in MIME format. --------------6496271C40B50C3DEA5B28F2 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit A couple of small issues with the css for epub output. First, back-exp.lua creates, in \jobname-styles.css @namespace context url('%namespace%') ; This should probably be: @namespace context url('http://www.pragma-ade.com/context/export') ; That file also has: document, %namespace%div.document { font-size : %size% !important ; max-width : %width% !important ; text-width : %align% !important ; hyphens : %hyphens% !important ; } which contains the invalid css property text-width. Perhaps that should be text-align or text-justify. Something else appears to be creating, in \jobname-defaults.css: pubfld[detail="title"], div.pubfld.title { display : inline ; font-weight : italic ; } which incorrectly assigns italic to font-weight when of course it  is a font-style as far as css is concerned. This can be seen in file export-example.css in the distribution. -- Rik --------------6496271C40B50C3DEA5B28F2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

A couple of small issues with the css for epub output.

First, back-exp.lua creates, in \jobname-styles.css

@namespace context url('%namespace%') ;

This should probably be:

@namespace context url('http://www.pragma-ade.com/context/export') ;

That file also has:

document,
%namespace%div.document {
    font-size  : %size% !important ;
    max-width  : %width% !important ;
    text-width : %align% !important ;
    hyphens    : %hyphens% !important ;
}

which contains the invalid css property text-width. Perhaps that should be text-align or text-justify.

Something else appears to be creating, in \jobname-defaults.css:

pubfld[detail="title"],
div.pubfld.title {
    display     : inline ;
    font-weight : italic ;
}

which incorrectly assigns italic to font-weight when of course it  is a font-style as far as css is concerned. This can be seen in file export-example.css in the distribution.

--
Rik

--------------6496271C40B50C3DEA5B28F2-- --===============3934972644597863476== 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== --===============3934972644597863476==--