Gestion multilingue des noms des elements

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@32 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet 2006-11-20 17:46:13 +00:00
parent f1c5d494b3
commit 6305019380
23 changed files with 492 additions and 307 deletions

View File

@ -7,7 +7,8 @@ ElementPerso::ElementPerso(QString &nom_fichier, QGraphicsItem *qgi, Schema *s,
elmt_etat = -1;
// le fichier doit exister
if (!QFileInfo(nomfichier).exists()) {
QFileInfo infos_file(nomfichier);
if (!infos_file.exists() || !infos_file.isFile()) {
if (etat != NULL) *etat = 1;
elmt_etat = 1;
return;
@ -40,7 +41,6 @@ ElementPerso::ElementPerso(QString &nom_fichier, QGraphicsItem *qgi, Schema *s,
// ces attributs doivent etre presents et valides
int w, h, hot_x, hot_y;
if (
racine.attribute("nom") == QString("") ||\
!attributeIsAnInteger(racine, QString("width"), &w) ||\
!attributeIsAnInteger(racine, QString("height"), &h) ||\
!attributeIsAnInteger(racine, QString("hotspot_x"), &hot_x) ||\
@ -52,8 +52,7 @@ ElementPerso::ElementPerso(QString &nom_fichier, QGraphicsItem *qgi, Schema *s,
return;
}
// on peut d'ores et deja specifier le nom, la taille et le hotspot
priv_nom = racine.attribute("nom");
// on peut d'ores et deja specifier la taille et le hotspot
setSize(w, h);
setHotspot(QPoint(hot_x, hot_y));
setConnexionsInternesAcceptees(racine.attribute("ci") == "true");
@ -64,8 +63,7 @@ ElementPerso::ElementPerso(QString &nom_fichier, QGraphicsItem *qgi, Schema *s,
return;
}
// parcours des enfants de la definition
int nb_elements_parses = 0;
// initialisation du QPainter (pour dessiner l'element)
QPainter qp;
qp.begin(&dessin);
QPen t;
@ -73,16 +71,53 @@ ElementPerso::ElementPerso(QString &nom_fichier, QGraphicsItem *qgi, Schema *s,
t.setWidthF(1.0);
t.setJoinStyle(Qt::MiterJoin);
qp.setPen(t);
// recupere les deux premiers caracteres de la locale en cours du systeme
QString system_language = QLocale::system().name().left(2);
// au depart, le nom de l'element est celui du fichier le decrivant
bool name_found = false;
QString name_elmt = infos_file.baseName();
// parcours des enfants de la definition : noms et parties du dessin
int nb_elements_parses = 0;
for (QDomNode node = racine.firstChild() ; !node.isNull() ; node = node.nextSibling()) {
QDomElement elmts = node.toElement();
if(elmts.isNull()) continue;
if (parseElement(elmts, qp, s)) ++ nb_elements_parses;
else {
if (etat != NULL) *etat = 7;
elmt_etat = 7;
return;
if (elmts.isNull()) continue;
if (elmts.tagName() == "names") {
// gestion des noms de l'element
if (name_found) continue;
for (QDomNode n = node.firstChild() ; !n.isNull() ; n = n.nextSibling()) {
QDomElement qde = n.toElement();
if (qde.isNull() || qde.tagName() != "name" || !qde.hasAttribute("lang")) continue;
if (qde.attribute("lang") == system_language) {
name_elmt = qde.text();
name_found = true;
break;
} else if (qde.attribute("lang") == "en") {
name_elmt = qde.text();
}
}
} else if (elmts.tagName() == "description") {
// gestion de la description graphique de l'element
// = parcours des differentes parties du dessin
for (QDomNode n = node.firstChild() ; !n.isNull() ; n = n.nextSibling()) {
QDomElement qde = n.toElement();
if (qde.isNull()) continue;
if (parseElement(qde, qp, s)) ++ nb_elements_parses;
else {
if (etat != NULL) *etat = 7;
elmt_etat = 7;
return;
}
}
}
}
// on garde le nom trouve
priv_nom = name_elmt;
// fin du dessin
qp.end();
// il doit y avoir au moins un element charge

View File

@ -1,14 +1,21 @@
<definition type="element" nom="Bobine" width="100" height="90" hotspot_x="25" hotspot_y="45" orientation="dnnn">
<!--Bobine-->
<ligne x1="-20" y1="-20" x2="-20" y2="20" antialias="false" style="normal" />
<ligne x1="-20" y1="20" x2="40" y2="20" antialias="false" style="normal" />
<ligne x1="40" y1="20" x2="40" y2="-20" antialias="false" style="normal" />
<ligne x1="40" y1="-20" x2="-20" y2="-20" antialias="false" style="normal" />
<!--Fils-->
<ligne x1="0" y1="-20" x2="0" y2="-40" antialias="false" style="normal" />
<ligne x1="0" y1="20" x2="0" y2="40" antialias="false" style="normal" />
<!--Borne A2-->
<borne orientation="s" x="0" y="40" />
<!--Borne A1-->
<borne orientation="n" x="0" y="-40" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="100" height="90" hotspot_x="25" hotspot_y="45" orientation="dnnn">
<names>
<name lang="fr">Bobine</name>
<name lang="en">Coil</name>
</names>
<description>
<!--Bobine-->
<ligne x1="-20" y1="-20" x2="-20" y2="20" antialias="false" style="normal" />
<ligne x1="-20" y1="20" x2="40" y2="20" antialias="false" style="normal" />
<ligne x1="40" y1="20" x2="40" y2="-20" antialias="false" style="normal" />
<ligne x1="40" y1="-20" x2="-20" y2="-20" antialias="false" style="normal" />
<!--Fils-->
<ligne x1="0" y1="-20" x2="0" y2="-40" antialias="false" style="normal" />
<ligne x1="0" y1="20" x2="0" y2="40" antialias="false" style="normal" />
<!--Borne A2-->
<borne orientation="s" x="0" y="40" />
<!--Borne A1-->
<borne orientation="n" x="0" y="-40" />
</description>
</definition>

View File

@ -1,14 +1,21 @@
<definition type="element" nom="Bouton Poussoir" width="35" height="70" hotspot_x="30" hotspot_y="5" orientation="dnny">
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Poussoir-->
<ligne x1="-20" y1="20" x2="-20" y2="40" antialias="false" style="dashed" />
<ligne x1="-20" y1="20" x2="-15" y2="20" antialias="false" style="dashed" />
<ligne x1="-20" y1="40" x2="-15" y2="40" antialias="false" style="dashed" />
<ligne x1="-20" y1="30" x2="-5" y2="30" antialias="false" style="dashed" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="35" height="70" hotspot_x="30" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">Bouton poussoir</name>
<name lang="en">Push-button</name>
</names>
<description>
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Poussoir-->
<ligne x1="-20" y1="20" x2="-20" y2="40" antialias="false" style="dashed" />
<ligne x1="-20" y1="20" x2="-15" y2="20" antialias="false" style="dashed" />
<ligne x1="-20" y1="40" x2="-15" y2="40" antialias="false" style="dashed" />
<ligne x1="-20" y1="30" x2="-5" y2="30" antialias="false" style="dashed" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,15 +1,22 @@
<definition type="element" nom="Bouton Poussoir NF" width="45" height="70" hotspot_x="30" hotspot_y="5" orientation="dnny">
<!--Contact-->
<ligne x1="10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<ligne x1="15" y1="20" x2="0" y2="20" antialias="false" style="normal" />
<!--Poussoir-->
<ligne x1="-20" y1="20" x2="-20" y2="40" antialias="false" style="dashed" />
<ligne x1="-20" y1="20" x2="-15" y2="20" antialias="false" style="dashed" />
<ligne x1="-20" y1="40" x2="-15" y2="40" antialias="false" style="dashed" />
<ligne x1="-20" y1="30" x2="5" y2="30" antialias="false" style="dashed" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="45" height="70" hotspot_x="30" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">Bouton Poussoir NF</name>
<name lang="en">Push-button NF</name>
</names>
<description>
<!--Contact-->
<ligne x1="10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<ligne x1="15" y1="20" x2="0" y2="20" antialias="false" style="normal" />
<!--Poussoir-->
<ligne x1="-20" y1="20" x2="-20" y2="40" antialias="false" style="dashed" />
<ligne x1="-20" y1="20" x2="-15" y2="20" antialias="false" style="dashed" />
<ligne x1="-20" y1="40" x2="-15" y2="40" antialias="false" style="dashed" />
<ligne x1="-20" y1="30" x2="5" y2="30" antialias="false" style="dashed" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,12 +1,19 @@
<definition type="element" nom="Contact Capteur TOR" width="20" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Partie Capteur-->
<ligne x1="-7.5" y1="25" x2="-7.5" y2="35" antialias="false" style="normal" />
<ligne x1="-7.5" y1="35" x2="-2.5" y2="35" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="20" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">Contact Capteur TOR</name>
<name lang="en">AoN Transducer Contact</name>
</names>
<description>
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Partie Capteur-->
<ligne x1="-7.5" y1="25" x2="-7.5" y2="35" antialias="false" style="normal" />
<ligne x1="-7.5" y1="35" x2="-2.5" y2="35" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,14 +1,20 @@
<definition type="element" nom="Capteur NF" width="45"
height="70" hotspot_x="20" hotspot_y="5" orientation="dnny">
<!--Contact-->
<ligne x1="10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<ligne x1="15" y1="20" x2="0" y2="20" antialias="false" style="normal" />
<!--Modification Capteur-->
<ligne x1="2.5" y1="25" x2="2.5" y2="35" antialias="false" style="normal" />
<ligne x1="7.5" y1="25" x2="2.5" y2="25" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="45" height="70" hotspot_x="20" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">Capteur NF</name>
<name lang="en">Transducer NF</name>
</names>
<description>
<!--Contact-->
<ligne x1="10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<ligne x1="15" y1="20" x2="0" y2="20" antialias="false" style="normal" />
<!--Modification Capteur-->
<ligne x1="2.5" y1="25" x2="2.5" y2="35" antialias="false" style="normal" />
<ligne x1="7.5" y1="25" x2="2.5" y2="25" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,9 +1,16 @@
<definition type="element" nom="Contact" width="20" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="20" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">Contact</name>
<name lang="en">Contact</name>
</names>
<description>
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,10 +1,17 @@
<definition type="element" nom="Contact NF" width="45" height="70" hotspot_x="20" hotspot_y="5" orientation="dnny">
<!--Contact-->
<ligne x1="10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<ligne x1="15" y1="20" x2="0" y2="20" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="45" height="70" hotspot_x="20" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">Contact NF</name>
<name lang="en">Contact NF</name>
</names>
<description>
<!--Contact-->
<ligne x1="10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<ligne x1="15" y1="20" x2="0" y2="20" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,12 +1,19 @@
<definition type="element" nom="Disjoncteur" width="25" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Partie Disjoncteur-->
<ligne x1="-5" y1="19" x2="5" y2="9" antialias="true" style="normal" />
<ligne x1="5" y1="19" x2="-5" y2="9" antialias="true" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="25" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">Disjoncteur</name>
<name lang="en">Circuit-breaker</name>
</names>
<description>
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Partie Disjoncteur-->
<ligne x1="-5" y1="19" x2="5" y2="9" antialias="true" style="normal" />
<ligne x1="5" y1="19" x2="-5" y2="9" antialias="true" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,14 +1,21 @@
<definition type="element" nom="Disjoncteur-sectionneur" width="25" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Partie Disjoncteur-->
<ligne x1="-5" y1="19" x2="5" y2="9" antialias="true" style="normal" />
<ligne x1="5" y1="19" x2="-5" y2="9" antialias="true" style="normal" />
<!--Partie sectioneur-->
<ligne x1="-5" y1="20" x2="5" y2="20" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="25" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">Disjoncteur-sectionneur</name>
<name lang="en">Disconnecting circuit-breaker</name>
</names>
<description>
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Partie Disjoncteur-->
<ligne x1="-5" y1="19" x2="5" y2="9" antialias="true" style="normal" />
<ligne x1="5" y1="19" x2="-5" y2="9" antialias="true" style="normal" />
<!--Partie sectioneur-->
<ligne x1="-5" y1="20" x2="5" y2="20" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,11 +1,18 @@
<definition type="element" nom="Sectioneur" width="25" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Partie Sectionneur-->
<ligne x1="-5" y1="20" x2="5" y2="20" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="25" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">Sectioneur</name>
<name lang="en">Disconnecting switch</name>
</names>
<description>
<!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Partie Sectionneur-->
<ligne x1="-5" y1="20" x2="5" y2="20" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,7 +1,6 @@
<!ELEMENT definition (borne+|ligne*|cercle*|polygone*)+>
<!ELEMENT definition (names+|description+)>
<!ATTLIST definition
type CDATA #FIXED "element"
nom CDATA #REQUIRED
width CDATA #REQUIRED
height CDATA #REQUIRED
hotspot_x CDATA #REQUIRED
@ -9,6 +8,13 @@
orientation CDATA "dnnn"
>
<!ELEMENT names (name)+>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name lang CDATA #REQUIRED>
<!ELEMENT description (borne+|ligne*|cercle*|polygone*)+>
<!ELEMENT borne EMPTY>
<!ATTLIST borne
x CDATA #REQUIRED

View File

@ -1,13 +1,19 @@
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" nom="del" width="30" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<!--Lampe-->
<cercle x="-10" y="20" rayon="20" antialias="true" style="normal" />
<ligne x1="-7" y1="23" x2="7" y2="37" antialias="true" style="normal" />
<ligne x1="7" y1="23" x2="-7" y2="37" antialias="true" style="normal" />
<!--Fils-->
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
<definition type="element" width="30" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<names>
<name lang="fr">DEL</name>
<name lang="en">LED</name>
</names>
<description>
<!--Lampe-->
<cercle x="-10" y="20" rayon="20" antialias="true" style="normal" />
<ligne x1="-7" y1="23" x2="7" y2="37" antialias="true" style="normal" />
<ligne x1="7" y1="23" x2="-7" y2="37" antialias="true" style="normal" />
<!--Fils-->
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" />
</description>
</definition>

View File

@ -1,6 +1,12 @@
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" nom="entree" width="20" height="40" hotspot_x="10" hotspot_y="15" orientation="dyyy">
<polygone x1="-7.5" y1="-13" x2="7.5" y2="-13" x3="0" y3="0" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="13" antialias="false" style="normal" />
<borne orientation="s" x="0" y="15" />
<definition type="element" width="20" height="40" hotspot_x="10" hotspot_y="15" orientation="dyyy">
<names>
<name lang="fr">Entree</name>
<name lang="en">Input</name>
</names>
<description>
<polygone x1="-7.5" y1="-13" x2="7.5" y2="-13" x3="0" y3="0" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="13" antialias="false" style="normal" />
<borne orientation="s" x="0" y="15" />
</description>
</definition>

View File

@ -1,24 +1,31 @@
<definition type="element" nom="Moteur a courant continu" width="45" height="85" hotspot_x="25" hotspot_y="45" orientation="dnny">
<!--Rotor-->
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<!--Balait inférieur-->
<ligne x1="-14" y1="-25" x2="-14" y2="-14" antialias="false" style="normal" />
<ligne x1="14" y1="-25" x2="14" y2="-14" antialias="false" style="normal" />
<ligne x1="14" y1="-25" x2="-14" y2="-25" antialias="false" style="normal" />
<!--Fil inférieur-->
<ligne x1="0" y1="-40" x2="0" y2="-25" antialias="false" style="normal" />
<!--Balait supérieur-->
<ligne x1="-14" y1="25" x2="-14" y2="14" antialias="false" style="normal" />
<ligne x1="14" y1="25" x2="14" y2="14" antialias="false" style="normal" />
<ligne x1="14" y1="25" x2="-14" y2="25" antialias="false" style="normal" />
<!--Fil superieur-->
<ligne x1="0" y1="40" x2="0" y2="25" antialias="false" style="normal" />
<!--Lettre M-->
<ligne x1="-10" y1="-10" x2="-10" y2="10" antialias="false" style="normal" />
<ligne x1="-10" y1="-10" x2="0" y2="0" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="10" y2="-10" antialias="true" style="normal" />
<ligne x1="10" y1="-10" x2="10" y2="10" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="-40" />
<borne orientation="s" x="0" y="40" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="45" height="85" hotspot_x="25" hotspot_y="45" orientation="dnny">
<names>
<name lang="fr">Moteur a courant continu</name>
<name lang="en">Direct-current motor</name>
</names>
<description>
<!--Rotor-->
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<!--Balait inférieur-->
<ligne x1="-14" y1="-25" x2="-14" y2="-14" antialias="false" style="normal" />
<ligne x1="14" y1="-25" x2="14" y2="-14" antialias="false" style="normal" />
<ligne x1="14" y1="-25" x2="-14" y2="-25" antialias="false" style="normal" />
<!--Fil inférieur-->
<ligne x1="0" y1="-40" x2="0" y2="-25" antialias="false" style="normal" />
<!--Balait supérieur-->
<ligne x1="-14" y1="25" x2="-14" y2="14" antialias="false" style="normal" />
<ligne x1="14" y1="25" x2="14" y2="14" antialias="false" style="normal" />
<ligne x1="14" y1="25" x2="-14" y2="25" antialias="false" style="normal" />
<!--Fil superieur-->
<ligne x1="0" y1="40" x2="0" y2="25" antialias="false" style="normal" />
<!--Lettre M-->
<ligne x1="-10" y1="-10" x2="-10" y2="10" antialias="false" style="normal" />
<ligne x1="-10" y1="-10" x2="0" y2="0" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="10" y2="-10" antialias="true" style="normal" />
<ligne x1="10" y1="-10" x2="10" y2="10" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="0" y="-40" />
<borne orientation="s" x="0" y="40" />
</description>
</definition>

View File

@ -1,20 +1,27 @@
<definition type="element" nom="Moteur Asyncrone triphasé" width="45" height="65" hotspot_x="25" hotspot_y="45" orientation="dnnn">
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<!--U-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" style="normal" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" style="normal" />
<!--V-->
<ligne x1="0" y1="-40" x2="0" y2="-20" antialias="false" style="normal" />
<!--W-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" style="normal" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" style="normal" />
<!--Lettre M-->
<ligne x1="-10" y1="-10" x2="-10" y2="10" antialias="false" style="normal" />
<ligne x1="-10" y1="-10" x2="0" y2="0" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="10" y2="-10" antialias="true" style="normal" />
<ligne x1="10" y1="-10" x2="10" y2="10" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="-20" y="-40" />
<borne orientation="n" x="0" y="-40" />
<borne orientation="n" x="20" y="-40" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="45" height="65" hotspot_x="25" hotspot_y="45" orientation="dnnn">
<names>
<name lang="fr">Moteur asynchrone triphasé</name>
<name lang="en">Three-phase induction motor</name>
</names>
<description>
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<!--U-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" style="normal" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" style="normal" />
<!--V-->
<ligne x1="0" y1="-40" x2="0" y2="-20" antialias="false" style="normal" />
<!--W-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" style="normal" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" style="normal" />
<!--Lettre M-->
<ligne x1="-10" y1="-10" x2="-10" y2="10" antialias="false" style="normal" />
<ligne x1="-10" y1="-10" x2="0" y2="0" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="10" y2="-10" antialias="true" style="normal" />
<ligne x1="10" y1="-10" x2="10" y2="10" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="n" x="-20" y="-40" />
<borne orientation="n" x="0" y="-40" />
<borne orientation="n" x="20" y="-40" />
</description>
</definition>

View File

@ -1,32 +1,39 @@
<definition type="element" nom="Moteur Asyncrone triphasé (non couplé)" width="45" height="85" hotspot_x="25" hotspot_y="45" orientation="dnnn">
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<!--U1-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" style="normal" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" style="normal" />
<!--V1-->
<ligne x1="0" y1="-40" x2="0" y2="-20" antialias="false" style="normal" />
<!--W1-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" style="normal" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" style="normal" />
<!--U2-->
<ligne x1="-20" y1="40" x2="-20" y2="20" antialias="false" style="normal" />
<ligne x1="-20" y1="20" x2="-14" y2="14" antialias="true" style="normal" />
<!--V2-->
<ligne x1="0" y1="40" x2="0" y2="20" antialias="false" style="normal" />
<!--W2-->
<ligne x1="20" y1="40" x2="20" y2="20" antialias="false" style="normal" />
<ligne x1="20" y1="20" x2="14" y2="14" antialias="true" style="normal" />
<!--Lettre M-->
<ligne x1="-10" y1="-10" x2="-10" y2="10" antialias="false" style="normal" />
<ligne x1="-10" y1="-10" x2="0" y2="0" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="10" y2="-10" antialias="true" style="normal" />
<ligne x1="10" y1="-10" x2="10" y2="10" antialias="false" style="normal" />
<!--Bornes Supérieurs-->
<borne orientation="n" x="-20" y="-40" />
<borne orientation="n" x="0" y="-40" />
<borne orientation="n" x="20" y="-40" />
<!--Bornes Inférieurs-->
<borne orientation="s" x="-20" y="40" />
<borne orientation="s" x="0" y="40" />
<borne orientation="s" x="20" y="40" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="45" height="85" hotspot_x="25" hotspot_y="45" orientation="dnnn">
<names>
<name lang="fr">Moteur Asyncrone triphasé (non couplé)</name>
<name lang="en">Three-phase induction motor (not coupled)</name>
</names>
<description>
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<!--U1-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" style="normal" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" style="normal" />
<!--V1-->
<ligne x1="0" y1="-40" x2="0" y2="-20" antialias="false" style="normal" />
<!--W1-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" style="normal" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" style="normal" />
<!--U2-->
<ligne x1="-20" y1="40" x2="-20" y2="20" antialias="false" style="normal" />
<ligne x1="-20" y1="20" x2="-14" y2="14" antialias="true" style="normal" />
<!--V2-->
<ligne x1="0" y1="40" x2="0" y2="20" antialias="false" style="normal" />
<!--W2-->
<ligne x1="20" y1="40" x2="20" y2="20" antialias="false" style="normal" />
<ligne x1="20" y1="20" x2="14" y2="14" antialias="true" style="normal" />
<!--Lettre M-->
<ligne x1="-10" y1="-10" x2="-10" y2="10" antialias="false" style="normal" />
<ligne x1="-10" y1="-10" x2="0" y2="0" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="10" y2="-10" antialias="true" style="normal" />
<ligne x1="10" y1="-10" x2="10" y2="10" antialias="false" style="normal" />
<!--Bornes Supérieurs-->
<borne orientation="n" x="-20" y="-40" />
<borne orientation="n" x="0" y="-40" />
<borne orientation="n" x="20" y="-40" />
<!--Bornes Inférieurs-->
<borne orientation="s" x="-20" y="40" />
<borne orientation="s" x="0" y="40" />
<borne orientation="s" x="20" y="40" />
</description>
</definition>

View File

@ -1,9 +1,16 @@
<definition type="element" nom="Diode" width="25" height="45" hotspot_x="15" hotspot_y="25" orientation="dyyy">
<!--Diode-->
<polygone x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="normal" />
<ligne x1="0" y1="-20" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="s" x="0" y="20" />
<borne orientation="n" x="0" y="-20" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="25" height="45" hotspot_x="15" hotspot_y="25" orientation="dyyy">
<names>
<name lang="fr">Diode</name>
<name lang="en">Diode</name>
</names>
<description>
<!--Diode-->
<polygone x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="normal" />
<ligne x1="0" y1="-20" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="s" x="0" y="20" />
<borne orientation="n" x="0" y="-20" />
</description>
</definition>

View File

@ -1,14 +1,21 @@
<definition type="element" nom="Tyristor" width="40" height="40" hotspot_x="20" hotspot_y="20" orientation="dyyy">
<!--Diode-->
<polygone x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="normal" />
<ligne x1="0" y1="-20" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" style="normal" />
<!--Gachette-->
<ligne x1="-5" y1="10" x2="-10" y2="15" antialias="true" style="normal" />
<ligne x1="-10" y1="15" x2="-15" y2="15" antialias="false" style="normal" />
<!--Borne Diode-->
<borne orientation="s" x="0" y="20" />
<borne orientation="n" x="0" y="-20" />
<!--Borne Gachette-->
<borne orientation="o" x="-15" y="15" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="40" height="40" hotspot_x="20" hotspot_y="20" orientation="dyyy">
<names>
<name lang="fr">Thyristor</name>
<name lang="en">Thyristor</name>
</names>
<description>
<!--Diode-->
<polygone x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="normal" />
<ligne x1="0" y1="-20" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" style="normal" />
<!--Gachette-->
<ligne x1="-5" y1="10" x2="-10" y2="15" antialias="true" style="normal" />
<ligne x1="-10" y1="15" x2="-15" y2="15" antialias="false" style="normal" />
<!--Borne Diode-->
<borne orientation="s" x="0" y="20" />
<borne orientation="n" x="0" y="-20" />
<!--Borne Gachette-->
<borne orientation="o" x="-15" y="15" />
</description>
</definition>

View File

@ -1,12 +1,19 @@
<definition type="element" nom="Zener" width="25" height="45" hotspot_x="15" hotspot_y="25" orientation="dyyy">
<!--Diode-->
<polygone x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="normal" />
<ligne x1="0" y1="-20" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" style="normal" />
<!--Zener-->
<ligne x1="-10" y1="10" x2="-10" y2="5" antialias="false" style="normal" />
<ligne x1="10" y1="10" x2="10" y2="15" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="s" x="0" y="20" />
<borne orientation="n" x="0" y="-20" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="25" height="45" hotspot_x="15" hotspot_y="25" orientation="dyyy">
<names>
<name lang="fr">Zener</name>
<name lang="en">Zener</name>
</names>
<description>
<!--Diode-->
<polygone x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="normal" />
<ligne x1="0" y1="-20" x2="0" y2="20" antialias="false" style="normal" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" style="normal" />
<!--Zener-->
<ligne x1="-10" y1="10" x2="-10" y2="5" antialias="false" style="normal" />
<ligne x1="10" y1="10" x2="10" y2="15" antialias="false" style="normal" />
<!--Bornes-->
<borne orientation="s" x="0" y="20" />
<borne orientation="n" x="0" y="-20" />
</description>
</definition>

View File

@ -1,9 +1,16 @@
<definition type="element" nom="Terre" width="30" height="30" hotspot_x="15" hotspot_y="5" orientation="dnnn">
<!--Terre-->
<ligne x1="0" y1="-0" x2="0" y2="10" antialias="false" style="normal" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" style="normal" />
<ligne x1="-6" y1="14" x2="6" y2="14" antialias="false" style="normal" />
<ligne x1="-2" y1="18" x2="2" y2="18" antialias="false" style="normal" />
<!--Borne-->
<borne orientation="n" x="0" y="0" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="30" height="30" hotspot_x="15" hotspot_y="5" orientation="dnnn">
<names>
<name lang="fr">Terre</name>
<name lang="en">Ground</name>
</names>
<description>
<!--Terre-->
<ligne x1="0" y1="-0" x2="0" y2="10" antialias="false" style="normal" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" style="normal" />
<ligne x1="-6" y1="14" x2="6" y2="14" antialias="false" style="normal" />
<ligne x1="-2" y1="18" x2="2" y2="18" antialias="false" style="normal" />
<!--Borne-->
<borne orientation="n" x="0" y="0" />
</description>
</definition>

View File

@ -1,23 +1,30 @@
<definition type="element" nom="Transformateur monophasé" width="45" height="105" hotspot_x="25" hotspot_y="45" orientation="dnny">
<!--Transforateur-->
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<cercle x="-20" y="0" rayon="40" antialias="true" style="normal" />
<!--Phase 1-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" style="normal" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" style="normal" />
<!--Neutre 1-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" style="normal" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" style="normal" />
<!--Phase 2-->
<ligne x1="-20" y1="60" x2="-20" y2="40" antialias="false" style="normal" />
<ligne x1="-20" y1="40" x2="-14" y2="34" antialias="true" style="normal" />
<!--Neutre 2-->
<ligne x1="20" y1="60" x2="20" y2="40" antialias="false" style="normal" />
<ligne x1="20" y1="40" x2="14" y2="34" antialias="true" style="normal" />
<!--Bornes supérieurs-->
<borne orientation="n" x="-20" y="-40" />
<borne orientation="n" x="20" y="-40" />
<!--Bornes inférieurs-->
<borne orientation="s" x="-20" y="60" />
<borne orientation="s" x="20" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="45" height="105" hotspot_x="25" hotspot_y="45" orientation="dnny">
<names>
<name lang="fr">Transformateur monophasé</name>
<name lang="en">One-phase transformer</name>
</names>
<description>
<!--Transforateur-->
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<cercle x="-20" y="0" rayon="40" antialias="true" style="normal" />
<!--Phase 1-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" style="normal" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" style="normal" />
<!--Neutre 1-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" style="normal" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" style="normal" />
<!--Phase 2-->
<ligne x1="-20" y1="60" x2="-20" y2="40" antialias="false" style="normal" />
<ligne x1="-20" y1="40" x2="-14" y2="34" antialias="true" style="normal" />
<!--Neutre 2-->
<ligne x1="20" y1="60" x2="20" y2="40" antialias="false" style="normal" />
<ligne x1="20" y1="40" x2="14" y2="34" antialias="true" style="normal" />
<!--Bornes supérieurs-->
<borne orientation="n" x="-20" y="-40" />
<borne orientation="n" x="20" y="-40" />
<!--Bornes inférieurs-->
<borne orientation="s" x="-20" y="60" />
<borne orientation="s" x="20" y="60" />
</description>
</definition>

View File

@ -1,29 +1,36 @@
<definition type="element" nom="Transformateur triphasé" width="45" height="105" hotspot_x="25" hotspot_y="45" orientation="dnny" ci="true">
<!--Transformateur-->
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<cercle x="-20" y="0" rayon="40" antialias="true" style="normal" />
<!--U1-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" style="normal" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" style="normal" />
<!--V1-->
<ligne x1="0" y1="-40" x2="0" y2="-20" antialias="false" style="dashed" />
<!--W1-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" style="normal" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" style="normal" />
<!--U2-->
<ligne x1="-20" y1="60" x2="-20" y2="40" antialias="false" style="normal" />
<ligne x1="-20" y1="40" x2="-14" y2="34" antialias="true" style="normal" />
<!--V2-->
<ligne x1="0" y1="60" x2="0" y2="40" antialias="false" style="normal" />
<!--W2-->
<ligne x1="20" y1="60" x2="20" y2="40" antialias="false" style="normal" />
<ligne x1="20" y1="40" x2="14" y2="34" antialias="true" style="normal" />
<!--Bornes supérieurs-->
<borne orientation="n" x="-20" y="-40" />
<borne orientation="n" x="0" y="-40" />
<borne orientation="n" x="20" y="-40" />
<!--Bornes inférieurs-->
<borne orientation="s" x="-20" y="60" />
<borne orientation="s" x="0" y="60" />
<borne orientation="s" x="20" y="60" />
<!DOCTYPE definition SYSTEM "definition_element.dtd">
<definition type="element" width="45" height="105" hotspot_x="25" hotspot_y="45" orientation="dnny" ci="true">
<names>
<name lang="fr">Transformateur triphasé</name>
<name lang="en">Three-phase transformer</name>
</names>
<description>
<!--Transformateur-->
<cercle x="-20" y="-20" rayon="40" antialias="true" style="normal" />
<cercle x="-20" y="0" rayon="40" antialias="true" style="normal" />
<!--U1-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" style="normal" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" style="normal" />
<!--V1-->
<ligne x1="0" y1="-40" x2="0" y2="-20" antialias="false" style="dashed" />
<!--W1-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" style="normal" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" style="normal" />
<!--U2-->
<ligne x1="-20" y1="60" x2="-20" y2="40" antialias="false" style="normal" />
<ligne x1="-20" y1="40" x2="-14" y2="34" antialias="true" style="normal" />
<!--V2-->
<ligne x1="0" y1="60" x2="0" y2="40" antialias="false" style="normal" />
<!--W2-->
<ligne x1="20" y1="60" x2="20" y2="40" antialias="false" style="normal" />
<ligne x1="20" y1="40" x2="14" y2="34" antialias="true" style="normal" />
<!--Bornes supérieurs-->
<borne orientation="n" x="-20" y="-40" />
<borne orientation="n" x="0" y="-40" />
<borne orientation="n" x="20" y="-40" />
<!--Bornes inférieurs-->
<borne orientation="s" x="-20" y="60" />
<borne orientation="s" x="0" y="60" />
<borne orientation="s" x="20" y="60" />
</description>
</definition>