Thursday, 2009-05-28

*** tpb has joined #freeorion00:00
*** bhelyer has joined #freeorion00:04
bhelyerGood afternoon.00:04
bhelyerGeofftheMedio: Just got an email from the XML parser guy:00:06
bhelyer"you can always download the latest version of the XMLParser library here: http://www.applied-mathematics.net/tools/__xmlParser.zip00:06
bhelyerIf you need another license, let me know...00:06
bhelyer  (I can give you freely a BSD-style license for you and your company00:06
bhelyer   or project. Simply tell me the name of your company or project... )00:06
bhelyerIf you like this library, please add a link from you internet site towards http://www.applied-mathematics.net/tools/xmlParser.html00:06
tpb<http://ln-s.net/3Ei_> (at www.applied-mathematics.net)00:06
tpb<http://ln-s.net/3EWI> (at www.applied-mathematics.net)00:06
bhelyerGood luck with your project!00:06
bhelyerSee you!00:06
bhelyerFrank"00:06
GeofftheMediohmm.  well, sounds promising00:06
bhelyerIt does.00:07
bhelyerNow we just have to figure out if it works or not.00:07
bhelyerSo if it can parse an SVG file, you reckon?00:08
GeofftheMedioa good sign00:08
GeofftheMedionote that we can probably make do with SVG basic or SVG tiny00:08
bhelyerI don't know the first thing about parsing SVG.00:09
bhelyerSo the research may be a little slow.00:09
GeofftheMedioI think the basic idea is that it's a list of shapes to draw00:11
GeofftheMediomy idea being to parse the SVG into a suitable vector graphic data structure which knows how to render itself at any size00:12
GeofftheMedioand also to parse the SVG for other uses...00:12
GeofftheMedioone idea being to store freeorion galaxy maps as SVG images00:12
bhelyerSo basically I if I can 'see' all elements and nodes, and contained data?00:12
bhelyerbasically if*00:12
GeofftheMedioI think so00:13
GeofftheMediothere's probably a bit more to it than that, though.00:14
bhelyerThis is very nice for the simple case.00:26
bhelyer#include <iostream>00:26
bhelyer#include "xmlParser.h"00:26
bhelyerint main(int argc, char** argv)00:26
bhelyer{00:26
bhelyer    XMLNode xMainNode = XMLNode::openFileHelper("library.xml", "LIBRARY");00:26
bhelyer    int childnodes = xMainNode.nChildNode();00:26
bhelyer    for (int i = 0; i < childnodes; i++) {00:26
bhelyer        XMLNode xNode = xMainNode.getChildNode(i);00:26
bhelyer        std::cout << "NODE: " << xNode.getName() << std::endl;00:26
bhelyer    }00:26
bhelyer}00:26
GeofftheMediono way to iterate over the child notes directly?  (rather than incrementing an index variable)00:29
bhelyerI was looking for one.00:30
bhelyerI'm not sure.00:30
bhelyerLooks like you can iterate over named nodes.00:31
bhelyerBut if you want to do it anonymously, the above looks to be it.00:32
GeofftheMediohmm00:36
bhelyerDamn.00:39
bhelyerChokes on the svg root node.00:39
bhelyerXML Parsing error inside file 'emblem02.svg'.00:39
bhelyerError: Unknown character entity00:39
bhelyerAt line 17, column 24.00:39
GeofftheMediohmm.00:40
*** bhelyer has quit IRC01:52
kroddnthat's mostly utf8 problems03:56
kroddnor "unicode" problems03:56
GeofftheMedioI think that library was supposed to be able to handle unicode04:48
kroddnyes, but maybe the svg is NOT unicode04:50
kroddnSome lines above I read something about that unicode must be used in this lib04:51
kroddn<bhelyer> The entire library is parametrized for the (unicode) character type. Proper04:51
kroddn<bhelyer> unicode handling is outside the scope of this library.04:51
kroddnSo that means that svg content has to be unicode04:51
kroddnWhere did he get this emblem02.svn from?04:52
kroddnokay, better wait for him to return ^^04:53
*** bhelyer has joined #freeorion05:20
GeofftheMedioemblem02.svg was from a zip eleazar posted on the forums05:58
bhelyerYes.06:00
bhelyerWhy?06:06
GeofftheMediokroddn was asking06:12
bhelyerAh.06:20
kroddnbhelyer: your problem seems so be unicode related06:24
kroddnwhere can i get this zip?06:24
bhelyerHang on, I'll drag up the email.06:24
GeofftheMedioI think he means the svg files, not the xml library06:25
bhelyerOh, that'll take more dragging. Hang on.06:25
bhelyerkroddn: http://www.jwbjerk.com/dl/freeorion/starter-flags.zip06:27
tpb<http://ln-s.net/3ElD> (at www.jwbjerk.com)06:27
kroddnhm, doesnt seem to be a unicode problem06:34
kroddnmaybe you can dig into the xmllib sourcecode and extent the errormessage so that it outputs which entity causes the error06:36
bhelyerI will, probably won't get a chance till Monday, but I will.06:41
*** mithro_ has quit IRC08:58
*** GeofftheMedio_ has joined #freeorion11:10
*** GeofftheMedio has quit IRC11:14
*** GeofftheMedio_ is now known as GeofftheMedio11:14
*** bhelyer has quit IRC13:46
*** kroddnoMobil has joined #freeorion14:20
*** ChanServ sets mode: +o kroddnoMobil14:20
*** kroddnoMobil has quit IRC18:32
*** GeofftheMedio has quit IRC18:42
*** GeofftheMedio has joined #freeorion18:42
*** GeofftheMedio_ has joined #freeorion19:31
*** GeofftheMedio__ has joined #freeorion19:34
*** GeofftheMedio___ has joined #freeorion19:36
*** GeofftheMedio has quit IRC19:49
*** GeofftheMedio_ has quit IRC19:52
*** GeofftheMedio__ has quit IRC19:55
*** GeofftheMedio has joined #freeorion20:13
*** mithro_ has joined #freeorion20:31
*** GeofftheMedio___ has quit IRC20:32
*** STalKer-X has joined #freeorion23:41
*** STalKer-Y has quit IRC23:46

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!