[NTG-context] Issues in export

Hans Hagen pragma at wxs.nl
Mon Jan 19 10:44:22 CET 2015


On 1/17/2015 5:15 PM, Henning Hraban Ramm wrote:
> Hi, please consider the example at http://wiki.contextgarden.net/Export#More_useful_example
> and its result at http://wiki.contextgarden.net/Export#raw.xml_2 etc.
>
> The <metadata> tags end up within the first section (in this case: chapter), even if they’re defined before \starttext.
>
> Please fix, thanks.
>
>
>
> Further, I wonder about the tagging of footnotes (and probably other references, didn’t look into them yet):
> This is completely visual instead of semantical:
>
> (in *-raw.xml:)
>
> Quoth<descriptionsymbol detail="footnote"><sup>1</sup></descriptionsymbol>
> ...
>    <description detail="footnote" chain="footnote">
>     <descriptiontag><sup>1</sup> </descriptiontag>
>     <descriptioncontent>by Edgar Al­lan Poe</descriptioncontent>
>    </description>
 >
> (in *-div.xhtml:)
>
> Quoth<div class="descriptionsymbol footnote"><div class="sup">1</div></div>
> ...
>    <div class="description footnote">
>     <div class="descriptiontag"><div class="sup">1</div> </div>
>     <div class="descriptioncontent">by Edgar Al­lan Poe</div>
>    </div>
>
>
> In raw.xml I’d prefer something like
>
>
> Quoth<description detail="footnote" id="1">by Edgar Allan Poe</description>
>
>
> or
>
>
> Quoth<description detail="footnote" id="1" />
> ...
>    <description detail="footnote" id="1">
>     <descriptiontag>1</descriptiontag>
>     <descriptioncontent>by Edgar Al­lan Poe</descriptioncontent>
>    </description>
>
>
> and in div.xhtml something that works in HTML, like a title:

Well, basically the export is visual with a few goodies; a footnote is 
nothing special unless i intercept it as such and even then it would be 
'note' and again something generic it's probably no big deal to provide 
the crosslinked reference between the items but that would then not be 
'1' because there can be many 1's. Just collect such wishes and i can 
look at it when i'm in epub mode again.

> Quoth<div class="descriptionsymbol footnote" title="by Edgar Al­lan Poe"><div class="sup">1</div></div>

That would be kind of arbitrary and unnatural: why should some content 
(of a description) suddenly end up as an attribute title.

> or a link:
 >
> Quoth<a href="#footnote_1"><div class="descriptionsymbol footnote"><div class="sup">1</div></div></a>
>> <a name=„footnote_1“>
>    <div class="description footnote">
>     <div class="descriptiontag"><div class="sup">1</div> </div>
>     <div class="descriptioncontent">by Edgar Al­lan Poe</div>
>    </div>
> </a>

an automated link (when no reference is given) sounds ok

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list