ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Christoph Hintermüller" <christoph@out-world.com>
To: ntg-context@ntg.nl
Subject: Re: xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes
Date: Fri, 10 Apr 2020 18:11:57 +0200	[thread overview]
Message-ID: <c1e6f361a5861b28fc558e756417e608e61e4d9c.camel@out-world.com> (raw)
In-Reply-To: <feb2cf24-8140-c830-e028-227e538527f9@xs4all.nl>

[-- Attachment #1: Type: text/plain, Size: 2412 bytes --]

On Fri, 2020-04-10 at 16:29 +0200, Hans Hagen wrote:
> On 4/10/2020 3:09 PM, Thomas A. Schmitz wrote:
> > 
> > 
> > > On 10. Apr 2020, at 14:49, Christoph Hintermüller <
> > > christoph@out-world.com> wrote:
> > > 
> 
> Indeed. the exporter is just a reconstructor of content so the
> better 
> structured, the better the export, and the trickier the rendering
> the 
> worse. Also, one can if needed add tags, add attributes etc etc but 
> don't expect me to keep track of all modules and user stuff and add 
> export specififcs. Of course I can make some aspects better but i
> never 
> needed epub so far.


There is no need to keep track, otherwise the modules and user stuff
would be senseless. It is up to them to keep track of their
specialities.


> 
> Then, given an export, one can use xslt or whatever, of have one's
> own 
> css as there is no common ground for rendering idiologies. Ever
> yuser 
> wants something different.
> he best multi-output stuff comes from good neutral input
> and 
> for instance xml is more suitable for that than tex encoded input.
> I'm 
> currently doing just that: making some css for rather extensive kind
> of 
> free xml based content (mostly because i have nothing better todo
> right 
> now).


If the xml is the document source, what for would I need ConTeXt at
all? Why not use typesetting system using xml as native format?


> 
> In the end it all boils down to 'does it pay off' in terms of 
> 'useability', 'neccessity' and 'the fun of it'. We're talking of
> free 
> software so no one can demand something, only request.
> 


I apologize if if missed the proper tone. It was just my frustration,
that any attempt to convince the exporter that it should display spaces
as are in the inputfile and not remove them. The pdf backend properly
keeps it like in typing environment.  
And the second which increased my frustration more and what i could
also not solve by css is that when linenumbers are added later they
appear on separate lines and not on the same line as in the pdf output.
That is also true for typing environment (see attached) example. 

Sorry again.

> Suggestion for Christoph: look at what Thomas has done for a long
> time 
> now: one input (often quite advanced) and multiple output for
> publishing 
> ane educational purposes. And it looks pretty good too.
> 


Thank you very much i will do. You are refering to Thomas Schmitz? 



[-- Attachment #2: typing-wrong-linenumberplacement-in-export.tex --]
[-- Type: text/x-tex, Size: 608 bytes --]

\setupbackend[
export=yes,
xhtml=yes
]
\setupexport[
title={linenumber placement missmatch example in export},
subtitle={},
author={Xristoph}
]
\definetyping[mine][numbering=line,tab=4,location=left]
\starttext
This is a small example trying to use verbatim linenumbering in xml export

\startmine
#!python
a=12
def hellow_world(hello):
    print("simon says: {}".format(hello))
hallo_welt("how do youdo")
\stopmine

The spaces are kept but the linenumbers are placed on intermediate lines as they are not included inside \type{<verbatimline>} tags but lateron added outside infront oft the tags.
\stoptext


[-- Attachment #3: 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
___________________________________________________________________________________

  reply	other threads:[~2020-04-10 16:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-05 13:56 Christoph Hintermüller
2020-04-08  9:52 ` Christoph Hintermüller
2020-04-10 12:49   ` Christoph Hintermüller
2020-04-10 13:09     ` Thomas A. Schmitz
2020-04-10 14:29       ` Hans Hagen
2020-04-10 16:11         ` Christoph Hintermüller [this message]
2020-04-10 21:26         ` Christoph Hintermüller

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=c1e6f361a5861b28fc558e756417e608e61e4d9c.camel@out-world.com \
    --to=christoph@out-world.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).