I'm looking at getting a few additions made to the cleanUp script we use for detailed markup. In the interest of making our lives easier or whatever. Here they are:
..... AND SO ON. Each numbers sequentially regardless of nesting. We'd need it to work for section3 elements as well. (Sorry about this long and obvious example. I just want these numbered by the script like everything else that's numbered by the script.
2. Image numbering
In two ways. A figure, for example looks like this:
where it says <image id="imPPPP"> (the PPPP is clearly just a placeholder) the images should number sequentially, across any time of image within the <corps> and also <annexe> elements. It doesn't matter what type of image it is.
Additionally, the figure id ("fig2" in this case) could also be numbered sequentially based on the type of image. Figures would all go fig1, fig2... etc. Tables are ta1, ta2... equations are eq... etc.
3. The <grlien> section
... has two things happening that need to be looked at. First of all, notes. For every note, the following code has to be in the <grlien> element:
<pointeur xlink:label="re1no38" xlink:href="#re1no38" xlink:title="Return to Note 38" xlink:type="locator" typemime="none"/>
<lien xlink:from="re1no38" xlink:to="no38" xlink:title="Go to Note 38" xlink:actuate="onRequest" xlink:show="replace" xlink:type="arc"/>
<lien xlink:from="no38" xlink:to="re1no38" xlink:actuate="onRequest" xlink:show="replace" xlink:title="Return to Anchor for Note 38" xlink:type="arc"/>
So, that's for note 38, obviously. Yup.
4. Generation of image xlinks
They look like this:
<pointeur xlink:href="/journalimages/MCR/2004/Vol_59/mcr59art02_fig2.jpg" xlink:label="im2t" xlink:title="Thumbnail of Figure/Table 2" dimx="0" dimy="0" taille="0ko" typemime="image:jpeg" desc="mcr59art02_fig2jpg" xlink:type="locator"/>
<!-- Arc defined for viewing the thumbnail onLoad -->
<lien xlink:type="arc" xlink:from="im2" xlink:to="im2t" xlink:show="embed" xlink:actuate="onLoad" xlink:title="Display thumbnail of Figure/Table 2"/>
<!-- Large image as locator -->
<pointeur xlink:href="/journalimages/MCR/2004/Vol_59/mcr59art02_fig2.jpg" xlink:label="im2n" xlink:title="Large image of Figure/Table 2" dimx="533" dimy="115" taille="25.50ko" typemime="image:jpeg" desc="mcr59art02_fig2.jpg" xlink:type="locator"/>
<!-- Arc defined for viewing the large image onRequest -->
<lien xlink:type="arc" xlink:from="im2" xlink:to="im2n" xlink:show="embed" xlink:actuate="onRequest" xlink:title="Display large image of Figure/Table 2"/>
You can see all sorts of things in here we enter. File paths to the image (which always match the file path to the issue the XML is in except they're in "journalimages' instead of etc_journals). The desc attribute is basically just the same as the idproprio attribute we fill out at the top, which actually just matches the file name? So maybe there's more to be done there. Anyway... this whole thing could be whipped up with existing information.
5. The infoarticle element
... could be filled in. It could count references, notes, figures, tables, images in general, and words.
I'm looking at getting a few additions made to the cleanUp script we use for detailed markup. In the interest of making our lives easier or whatever. Here they are:
1. Section Numbering
Sections go like:
..... AND SO ON. Each numbers sequentially regardless of nesting. We'd need it to work for section3 elements as well. (Sorry about this long and obvious example. I just want these numbered by the script like everything else that's numbered by the script.
2. Image numbering
In two ways. A figure, for example looks like this:
where it says
<image id="imPPPP">
(the PPPP is clearly just a placeholder) the images should number sequentially, across any time of image within the<corps>
and also<annexe>
elements. It doesn't matter what type of image it is.Additionally, the figure id ("fig2" in this case) could also be numbered sequentially based on the type of image. Figures would all go fig1, fig2... etc. Tables are ta1, ta2... equations are eq... etc.
3. The
<grlien>
section... has two things happening that need to be looked at. First of all, notes. For every note, the following code has to be in the
<grlien>
element:So, that's for note 38, obviously. Yup.
4. Generation of image xlinks
They look like this:
You can see all sorts of things in here we enter. File paths to the image (which always match the file path to the issue the XML is in except they're in "journalimages' instead of etc_journals). The desc attribute is basically just the same as the idproprio attribute we fill out at the top, which actually just matches the file name? So maybe there's more to be done there. Anyway... this whole thing could be whipped up with existing information.
5. The infoarticle element
... could be filled in. It could count references, notes, figures, tables, images in general, and words.
How's that for a bunch of stuff? It's a bunch.