You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by hugues parvillers <hp...@yahoo.fr> on 2005/04/28 22:47:28 UTC
[BATIK] polygon and class
Hello,
I have some trouble with such tree of SVG:
<g id="LAMBERT" transform="matrix(1,0,0,-1,0,4988910)"
class="LAMBERT" >
<g id="POLYGONS" class="POLYGONS">
<g id="LANDUSEA" class="LANDUSEA" >
<polygon class="HOSPITAL" points="[...]" />
Batik doesn't considerer the class "HOSPITAL" to
display the polygon . It
only considers direct in-tag attribute like fill for
example.
The same is ok with ASV.
Do you have any comment about this trouble ?
Tks in advance
Rgs
H/P
Online sample file :
http://parvillers.homeip.net/carto2004/tut/z.svg
Salutations,
Hugues PARVILLERS
AgdF S.A., groupe Cegedim
Mob : (+33) 6 81 59 25 03
PS: attention mel provisoire à utiliser pour toute correspondance pro jusqu'à plus nouvelle information
__________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: [BATIK] polygon and class
Posted by Thomas DeWeese <Th...@Kodak.com>.
Thomas DeWeese wrote:
> There is a small bug in the Batik CSS Scanner.
> It didn't allow '_' in identifiers. I'm fixing
> that. In the meantime if you change
> '.ADMINBNDYB_76A' to use a '-' instead then
> Batik will successfully parse your stylesheet
> and reach the class specification for HOSPITAL.
I take this back, Batik is behaving correctly.
CSS version 2 (not 2.1) does not allow '_' in
identifiers unless they are escaped ('\_'). I am
a little unsure about how to proceed as it appears
that SVG 1.2 is planning on continuing to reference
CSS 2 normatively and ignoring CSS 2.1. So I
am reluctant to support CSS 2.1's grammar for
'ident'.
> Currently it bails silently as it considers
> the stylesheet 'unparseable'.
>
>> The same is ok with ASV.
>>
>> Do you have any comment about this trouble ?
>>
>> Tks in advance
>> Rgs
>> H/P
>>
>> Online sample file :
>> http://parvillers.homeip.net/carto2004/tut/z.svg
>>
>>
>>
>> Salutations,
>>
>> Hugues PARVILLERS
>> AgdF S.A., groupe Cegedim
>>
>> Mob : (+33) 6 81 59 25 03
>>
>> PS: attention mel provisoire à utiliser pour toute correspondance pro
>> jusqu'à plus nouvelle information
>>
>>
>>
>>
>>
>>
>>
>>
>> __________________________________________________________________
>> Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour
>> vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
saving a an svg as a jpeg on the server
Posted by Arian Hojat <ar...@gmail.com>.
Hello all,
i feel like such a newb posting and reposting here but my issues are
not completely solved yet and maybe someone can give a fresh outlook.
I have an svg in memory. i save it on windows fine. I fixed my code so
i dont need to know if i am on unix or windows. but anyway i
public static void saveJPEG(Document svgDoc, String fullPath,
PrintWriter out) {
JPEGTranscoder t = new JPEGTranscoder();
FileInputStream blah = null;
TranscoderInput input = null;
FileOutputStream ostream = null;
TranscoderOutput output = null;
File f = null;
input = new TranscoderInput( svgDoc );
f = new File(fullPath+ "yyyy.jpg");
try {
ostream = new FileOutputStream(f);
} catch(FileNotFoundException e) {
e.getMessage();
}
output = new TranscoderOutput(ostream);
try {
t.transcode(input, output);
} catch( TranscoderException e) {
e.getMessage();
}
try{
ostream.flush();
ostream.close();
} catch(IOException e) {
e.getMessage();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: [BATIK] polygon and class
Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Hugues,
hugues parvillers wrote:
> <polygon class="HOSPITAL" points="[...]" />
>
> Batik doesn't considerer the class "HOSPITAL" to
> display the polygon . It only considers direct
> in-tag attribute like fill for example.
There is a small bug in the Batik CSS Scanner.
It didn't allow '_' in identifiers. I'm fixing
that. In the meantime if you change
'.ADMINBNDYB_76A' to use a '-' instead then
Batik will successfully parse your stylesheet
and reach the class specification for HOSPITAL.
Currently it bails silently as it considers
the stylesheet 'unparseable'.
> The same is ok with ASV.
>
> Do you have any comment about this trouble ?
>
> Tks in advance
> Rgs
> H/P
>
> Online sample file :
> http://parvillers.homeip.net/carto2004/tut/z.svg
>
>
>
> Salutations,
>
> Hugues PARVILLERS
> AgdF S.A., groupe Cegedim
>
> Mob : (+33) 6 81 59 25 03
>
> PS: attention mel provisoire à utiliser pour toute correspondance pro jusqu'à plus nouvelle information
>
>
>
>
>
>
>
>
> __________________________________________________________________
> Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
> Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org