Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] web relooking attempts

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] web relooking attempts


Chronological Thread 
  • From: Sam Liddicott <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] web relooking attempts
  • Date: Tue, 20 Mar 2012 09:31:21 +0000

I think I'm saying that the <src-arg|argument-name> and maybe other <src-* tags at the bottom of http://www.texmacs.org/tmweb/manual/webman-styling.en.html should have a different html export rendering.

I have found that setting a global variable / macros inside a <specific|html|...> at the top of the document can be a good way to override the rendering of some tags ONLY for html export in order to provide better html representations.

Although when I export this as html:
<inactive|<assign|abbr|<macro|x|<em|<arg|x>>>>>

I get this <assign|abbr|>

without even reference to the em or  x at all.

And in fact overriding src-var or src-arg does not affect the html export at all, but does affect the on-screen:

<assign|src-arg|<macro|x|[<arg|x>]>>

<inactive|<assign|abbr|<macro|x|(<arg|x>)>>>

Even more interestingly, the src-arg affects rendering arguments to a defined macro but only in the <macro|arg1|arg2|...> tag, not the actual <arg|...> tag

Weird.

Sam


On Mon, Mar 19, 2012 at 4:44 PM, Sam Liddicott <address@hidden> wrote:
I notice that although the coloured html output looks right, it is not helpful for cut-n-paste back into texmacs.

For instance:

See the notes on Macro Primitives, where this example is given: <assign|abbr|<macro|x|<rigid|x>>>

If I cut-n-paste from the browser I get the literal text:
<assign|abbr|<macro|x|<rigid|x>>>

but what the html represents is actually this (with missing characters underscored):
<assign|abbr|<macro|x|<rigid|<arg|x>>>>

It would be a convenience to be able to cut-n-paste examples from the manual into texmacs.

If we do not wish to make <arg|...> be more explicit in the manual, then perhaps using hidden text in the exported page would do, using the hidden class from: http://webaim.org/techniques/css/invisiblecontent/

<i><span class="hidden;">&lt;arg|</span>x<span class="hidden">&gt;</span></i>

This would also make the screen-reader output (where the colour is not apparent) accurate too.

I've also tested that this hidden class makes the text copied from the html manual accurate.

Sam

On Mon, Mar 19, 2012 at 4:08 PM, Massimiliano Gubinelli <address@hidden> wrote:
Here some other small changes,

http://www.ceremade.dauphine.fr/~mgubi/tm-web/home/welcome.en.html

essentially I've tried to keep the overall coloring scheme and just reduce the visual noise created by the various borders in the current style.

If somebody knows how to programmatically (via _javascript_) select different style files I could try to hack up a system to compare different solutions.


Best
max






Archive powered by MHonArc 2.6.19.

Top of Page