Difference between revisions of "Images (ePistolarium)"

From XML
Jump to: navigation, search
(Add page)
 
(Add attribute description.)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
<code>figure</code> groups elements representing or containing graphic information such as an illustration, formula, or figure.
 
<code>figure</code> groups elements representing or containing graphic information such as an illustration, formula, or figure.
:In the ePistolarium the attribute value <code>rend="inline"</code> is used to indicate that the figure must be rendered in the running text. This is used, for instance, for certain mathehatical symbols.
+
:In the ePistolarium the attribute value <code>rend="inline"</code> is used to indicate that the figure must be rendered in the running text. This is used, for instance, for certain mathematical symbols.
  
 
<code>figDesc</code> (description of figure) contains a brief prose description of the appearance or content of a graphic figure,
 
<code>figDesc</code> (description of figure) contains a brief prose description of the appearance or content of a graphic figure,
Line 10: Line 10:
  
 
<code>graphic</code> indicates the location of a graphic or illustration, either forming part of a text, or providing an image of it.
 
<code>graphic</code> indicates the location of a graphic or illustration, either forming part of a text, or providing an image of it.
 +
:<code>@url</code> Refers to the image file to be displayed. Use a relative value, the front converts this to an absolute URL.
 
:<code>@width</code> Where the media are displayed, indicates the display width.
 
:<code>@width</code> Where the media are displayed, indicates the display width.
 
:<code>@height</code> Where the media are displayed, indicates the display height.
 
:<code>@height</code> Where the media are displayed, indicates the display height.
Line 16: Line 17:
  
  
Example: https://test.epistolarium.huygens.knaw.nl/documents/3365c937-4b0e-4ba0-909c-6258b32c4e3f
+
Example: https://correspondence.huygens.knaw.nl/documents/3365c937-4b0e-4ba0-909c-6258b32c4e3f
 
(between text lines)
 
(between text lines)
  
Line 26: Line 27:
  
  
Example: https://test.epistolarium.huygens.knaw.nl/documents/999fb392-00a3-48ec-ba55-349c9bc5db4b
+
Example: https://correspondence.huygens.knaw.nl/documents/999fb392-00a3-48ec-ba55-349c9bc5db4b
 
(inline)
 
(inline)
  
Line 34: Line 35:
  
  
Example: https://test.epistolarium.huygens.knaw.nl/documents/8e59eff5-e44f-434a-af77-a3014924797a
+
Example: https://correspondence.huygens.knaw.nl/documents/8e59eff5-e44f-434a-af77-a3014924797a
 
(scaled)
 
(scaled)
  

Latest revision as of 12:20, 17 January 2018

Images are encoded with the figure, graphic, and figDesc elements.

figure groups elements representing or containing graphic information such as an illustration, formula, or figure.

In the ePistolarium the attribute value rend="inline" is used to indicate that the figure must be rendered in the running text. This is used, for instance, for certain mathematical symbols.

figDesc (description of figure) contains a brief prose description of the appearance or content of a graphic figure, for use when documenting an image without displaying it.

In the ePistolarium the contents of this element is not displayed.

graphic indicates the location of a graphic or illustration, either forming part of a text, or providing an image of it.

@url Refers to the image file to be displayed. Use a relative value, the front converts this to an absolute URL.
@width Where the media are displayed, indicates the display width.
@height Where the media are displayed, indicates the display height.
@scale Where the media are displayed, indicates a scale factor to be applied when generating the desired display size.
In the ePistolarium these attributes are occasionally used.


Example: https://correspondence.huygens.knaw.nl/documents/3365c937-4b0e-4ba0-909c-6258b32c4e3f (between text lines)

<p>... hoc est ad minimum una hora, ad spatium quod est inter Lunam et Terram, etiam bis pertranseundum, ut patet numeranti.</p>
<p><figure><graphic url="beec002jour04ill32a.gif"/></figure></p>
<p>Atque ex his concessis ita sum argumentatus: Sit <formula>ABC</formula> linea recta et, ut possimus idem concludere sive Sol ...</p>


Example: https://correspondence.huygens.knaw.nl/documents/999fb392-00a3-48ec-ba55-349c9bc5db4b (inline)

<p xml:id="p-2">Haec tamen aequatio radicem habet planum ut facillime ostendam si opus est +30<figure rend="inline"><graphic url="huyg003oeuv06fi19.gif"/></figure>Π+<figure rend="inline"><graphic url="huyg003oeuv06fi25.gif"/></figure>.</p>


Example: https://correspondence.huygens.knaw.nl/documents/8e59eff5-e44f-434a-af77-a3014924797a (scaled)

<p>Een ander</p>
<p>Zoekt twee getallen, zoo men die te zamen multipliceert, uytkomt 22 2/9 en zoo men 't grootste door 't kleynste divideert, uyt komt 2. Vraage na de getallen?</p>
<p><figure><graphic url="nier005-11-02.gif" width="1294" height="357" scale="0.25"/></figure></p>
<p>Nog een ander.</p>