ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Christoph Hintermüller" <christoph@out-world.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes
Date: Wed, 08 Apr 2020 11:52:49 +0200	[thread overview]
Message-ID: <febafc9da242e259610acab8b0579caf7318aaa4.camel@out-world.com> (raw)
In-Reply-To: <c334057783067b91d13670d9fb95bae8a0f50132.camel@out-world.com>

Hi 
On Sun, 2020-04-05 at 15:56 +0200, Christoph Hintermüller wrote:
> Hi
> I'm helping to make t-vim module fully usable in xhtml and futher
> epub
> export. Getting a distingct tag for the individual lines was quiet
> easy
> to do using \dostarttagged and \dostoptagged internal macros.
> What i'm not able to figure are the following things:
> 1) How can i set/modify the display attribute of the resulting
> div.myclass section in the generated *_templates.css file.
> Per default the display attribute is set to "inline" while i need
> "block" or "flex" (not jet decided" which).
> 2) How can i predefine the white-space css attribute to pre-wrap 
> 3) Is there a way to tell context to include the resulting class
> inside
> the *.default.css or *.styles.css or should that be done via the css
> parameter of the \setupbackend macro only?
> 


I figured so far that 
with the command 
\setelementnature[<mytagid>][block]

I can change the css 'displayÄ attribute of my <mytag> to display=block
in the *_templates.css output

But i did not manage so far to in addition set the 'white-space' css
attribute of mytag to 'pre-wrap' 

I tried `\dosettagproperty` and `\setelementexporttag` commands but
none of the gave me the expected result in the *_templates.css output
for the xhtm export.

What other commands do i have to call first, after `\dostarttagged` to
be able to use eg `dosettagproperty` to also set the 'white-space' css
attribute accordingly and/or how is the related context/lua property
called which will be than translated into `white-space=pre-wrap`. The
css 'display' attribute is to be changed by changing the 'nature'
property of the tag.

Is there anybody who can provide at least some hints which *.tex and
*.lua source files to look at to figure myself. At least some
orientation would already help.

Best 
Xristoph



___________________________________________________________________________________
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-08  9:52 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 [this message]
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
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=febafc9da242e259610acab8b0579caf7318aaa4.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).