🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #8329

Re: A la découverte de SVG

#8329
From: Thomas Broyer
Date: Tue, 20 Nov 2001 18:25
64 lines
4301 bytes
In <3bfa6e8b$0$15819$626a54ce@news.free.fr>, Rapha�l THERY wrote:
> Je survole en ce moment la documentation concernant SVG pour voir ce qu'il
> est possible de faire...

Avant toute chose, je n'en connais a priori pas plus que toi sur SVG.

> En fait avec XML-XSLT je voudrais g�n�rer un SVG style organigramme comme
> sous XML Spy pour les sch�mas
> et je voudrais savoir si c'est la philosophie SVG ou s'il sert � tout
> autre chose.

SVG sert � d�crire des images vectorielles, or un organigramme me semble 
�tre une image vectorielle, donc SVG me semble adapt� pour repr�senter un 
organigramme.

SVG int�gre aussi des animations simples et en modifiant le DOM (via 
ECMAScript ou autre) il est possible de faire des animations bien plus 
complexes, il permet aussi d'int�grer des objets "�trangers" (images 
bitmap, etc.). On pourrait donc dans une certaine mesure le comparer � 
Flash et Shockwave. Donc faire des organigrammes ne me semble pas la 
"philosophie" de SVG, mais c'en est une de ses composantes (cf. les 
exemples en annexe des specs XSLT)

> Par exemple ... de ce que j'ai pu voir de xsl-fo il met � disposition des
> "fonctions" telles que label-end(), body-start()
> pour faciliter la disposition des donn�es or je n'ai pas l'impression
> qu'avec SVG cela soit si facile de faire un texte encadr� (c'est � dire
> que si le texte augmente le cadre augmente �galement) mais qu'il faille
> fait les calculs plus en amont.
> 
> Si vous pouvez m'�clairer sur le sujet ce serait un plaisir ;-)

In <http://www.w3.org/TR/SVG/text.html> [10.1 Introduction] :
    Each 'text' element causes a single string of text to be rendered. 
    SVG performs no automatic line breaking or word wrapping. 
    To achieve the effect of multiple lines of text, use one of the
    following methods:
    - The author or authoring package needs to pre-compute the line breaks 
      and use multiple 'text' elements (one for each line of text).
    - The author or authoring package needs to pre-compute the line breaks 
      and use a single 'text' element with one or more 'tspan' child
      elements with appropriate values for attributes x, y, dx and dy to
      set new start positions for those characters which start new lines. 
      (This approach allows user text selection across multiple lines of 
      text -- see Text selection and clipboard operations.)
    - Express the text to be rendered in another XML namespace such as 
      XHTML [XHTML] embedded inline within a 'foreignObject' element.
      (Note: the exact semantics of this approach are not completely 
      defined at this time.)

Si par "texte encadr�" tu voulais dire "word-wrapping", c'est rap�.

Sur la m�me page, juste avant, on lit aussi:
    SVG's 'text' elements are rendered like other graphics elements. 
    Thus, coordinate system transformations, painting, clipping and
    masking features apply to 'text' elements in the same way as they
    apply to shapes such as paths and rectangles.

Le "clipping" r�pond peut-�tre � tes attentes?

Sinon, je comprend pas la question (s�rement par manque de connaissance). 
Merci de pr�ciser.

Tom.
Technical Details
Message-ID: <13419653.W3vaeNJFYE@ltgt.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!teaser.fr!proxad.net!feeder2-1.proxad.net!news2-2.free.fr!not-for-mail
References: <3bfa6e8b$0$15819$626a54ce@news.free.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,9acbe646cac9616e
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-11-20 10:17:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!teaser.fr!proxad.net!feeder2-1.proxad.net!news2-2.free.fr!not-for-mail
Message-ID: <13419653.W3vaeNJFYE@ltgt.net>
From: Thomas Broyer <tbroyer@domain.tld.invalid>
Subject: Re: A la découverte de SVG
Newsgroups: fr.comp.text.xml
Reply-To: tbroyer-usenet@ltgt.net
Mail-Copies-To: nobody
Date: Tue, 20 Nov 2001 19:25:09 +0100
References: <3bfa6e8b$0$15819$626a54ce@news.free.fr>
Organization: </>
User-Agent: KNode/0.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
Lines: 64
NNTP-Posting-Date: 20 Nov 2001 19:17:05 MET
NNTP-Posting-Host: 193.252.183.227
X-Trace: 1006280225 news2-2.free.fr 9966 193.252.183.227
X-Complaints-To: abuse@proxad.net