Home Forum Downloads My Favorites Register FAQ

Go Back   EQInterface Forums > Developer Discussion > General authoring help / discussion
User Name
Password

Reply
 
Thread Tools Display Modes
Old 08-19-2002, 12:53 PM   #1
Kraegar
A Gray Wolf
 
Join Date: Aug 2002
Posts: 7
Question Newline in text?

Sorry for cross-posting forums, but I just realized this belongs here.

Trying to use the StaticText piece to place some text, want to know if there's a way to force a newline? Basically what I'm seeing is this:

Test Test Test Test

When what I want is:

Test
Test
Test
Test

Any suggestions? I can post code, if that would help.

Thanks
Kraegar is offline   Reply With Quote
Old 08-19-2002, 03:11 PM   #2
Pini Uldar
A Shissar Disciple
 
Join Date: Jul 2002
Posts: 135
Default

Have you tried turning autowrap on and then using the size to cause the carriage return? I don't know of a way to put carriage returns into the text directly. Maybe it's HTML and you can use BR somehow?

- Pini
Pini Uldar is offline   Reply With Quote
Old 08-19-2002, 03:14 PM   #3
Kraegar
A Gray Wolf
 
Join Date: Aug 2002
Posts: 7
Default

br tags didn't work.

I have wrapping on, but depending on the resolution you run the ui at sometimes things look really bad.
Kraegar is offline   Reply With Quote
Old 08-19-2002, 03:17 PM   #4
UniDyne
A Tundra Mammoth
 
Join Date: Jul 2002
Server: Veeshan
Posts: 64
Post

If the XML used is fully compliant, you should be able to use

Code:
<text><!CDATA[[Test Test Test Test]]></text>


The <!CDATA[[ ]]> is what forces XML to recognize characters as preformatted text and include extra whitespace including carriage returns.

If this works let me know!
UniDyne is offline   Reply With Quote
Old 08-19-2002, 03:23 PM   #5
Kraegar
A Gray Wolf
 
Join Date: Aug 2002
Posts: 7
Default

I'll definitely test that when I get home....
Kraegar is offline   Reply With Quote
Old 08-19-2002, 03:24 PM   #6
Pini Uldar
A Shissar Disciple
 
Join Date: Jul 2002
Posts: 135
Default

Definitely report back please too if it works. I didn't think about wrapping it in CDATA.

- Pini
Pini Uldar is offline   Reply With Quote
Old 08-19-2002, 07:12 PM   #7
Kraegar
A Gray Wolf
 
Join Date: Aug 2002
Posts: 7
Default

Didn't work at all...

Looked up CDATA on the web, format should be <![CDATA[

blah

]]>

Still looking for a new solution.
Kraegar is offline   Reply With Quote
Old 08-19-2002, 07:15 PM   #8
UniDyne
A Tundra Mammoth
 
Join Date: Jul 2002
Server: Veeshan
Posts: 64
Unhappy

Okay, that just confirms my suspicions(sp?). EQ apparently does not use a standard XML parser. I kind of figured that since the language definition is a reference to another XML file rather than a DTD. Something to post under bugs and wish list I guess...
UniDyne is offline   Reply With Quote
Old 08-20-2002, 02:11 AM   #9
Gendal
A Treant
 
Join Date: Jul 2002
Posts: 26
Default

Well technically the other Xml file is a schema, not a dtd. It is however not any standard schema that I can determine, though it is very close to the XDR specification. I love how they indicate namespaces, its almost comical in that they almost, but not quite grasped how namespaces should work (not that I am an expert by anymeans).

Then again I am probably being too harsh, they probably started sidl before even preliminary specifications on Schema 1.0 was released. Wierd how it almost matches XDR though?

EQ definatly does not enforce the entire Xml specification as put forth by the w3c. They allow all kinds of things that a strict xml parser would not, like not requiring the <?xml 1.0 ?> tag at the beginning, etc.
Gendal is offline   Reply With Quote
Old 08-20-2002, 04:58 AM   #10
guice
Keeper of the Hampster
 
guice's Avatar
 
Join Date: Jul 2002
Server: Mithaniel Marr
Posts: 598
Interface Author - Click to view interfaces
Send a message via AIM to guice Send a message via Yahoo to guice
Default

Quote:
They allow all kinds of things that a strict xml parser would not, like not requiring the <?xml 1.0 ?> tag at the beginning, etc.


LOL .. Which is exaclty what XML isn't about.

XML was designed to be strict and to enforce contraints over data to make it uniform across the board.

It's not like HTML where every browser and it's brother is making their own new tags.

XML needs to be strict and I don't like how companies go out and start making their own rules.


Oh, and the SIDL.xml is an attempt at a Schema, an invalid and small attempt, but an attempt none the less.
__________________
Sithr, 65th Transcendent
Officer/Leader of Chronology
Mithaniel Marr
http://www.chronology-guild.org/
guice is offline   Reply With Quote
Old 08-20-2002, 02:34 PM   #11
Gendal
A Treant
 
Join Date: Jul 2002
Posts: 26
Default

Several authors on this board (like the popular vert mod) are posting mods that cause my xml parser to choke because they put comments before the <?xml?> start tag.

I don't know whether to be a hard ass and throw an error and tell them "fix this or I won't load it" or try and read the file again and just start reading from the <?xml?> tag. Thinking I am going to be a hardass, even though EQ allows it.

Then again that's not very user friendly. sigh.
Gendal is offline   Reply With Quote
Old 08-20-2002, 03:08 PM   #12
Kraegar
A Gray Wolf
 
Join Date: Aug 2002
Posts: 7
Default

XML, the Extensible Markup language. It's made to be extended - new tags are supposed to be created. However, they're supposed to follow the rules - and eq's don't.
Kraegar is offline   Reply With Quote
Old 08-20-2002, 03:16 PM   #13
UniDyne
A Tundra Mammoth
 
Join Date: Jul 2002
Server: Veeshan
Posts: 64
Default

The non-standard XML is what's stopping me from writing an editor. (That and my lack of time at the moment.) I wish VI would go ahead and work on the UI to get it in a state where it is more or less stable and done so that they can publish a real schema or DTD.

If and when they do, it shouldn't be much of a problem to write good editors for SIDL.
UniDyne is offline   Reply With Quote
Old 08-20-2002, 03:42 PM   #14
Gendal
A Treant
 
Join Date: Jul 2002
Posts: 26
Default

When I first started working with sidl I actually made a xsl transformation to produce a Schema 1.0 xsd from the mock schema that is SIDL.xml. However I took the path that inherited objects are defined by complex types, and it seems elements who inherit a complex type's are limited to either sequential or choice complexContent, which of course eq doesn't use. Why in the hell I can't use the all ordering scheme I don't know, but it basically makes the produced schema useless. /rude schema 1.0.

If anybody else has any ideas for creating an xsd based around sidl.xml I would love to hear em (and if you want to see the xsl or produced xsd just ask). For now I have just given up on using a validating xml parser, my object layer throws errors as necessary anyways, just be a nicety to see what's wrong ahead of time while reading the document.
Gendal is offline   Reply With Quote
Old 08-20-2002, 06:39 PM   #15
UniDyne
A Tundra Mammoth
 
Join Date: Jul 2002
Server: Veeshan
Posts: 64
Default

Interesting. I'd like to see the XSL and XSD. The ordering thing is a bit strange.
UniDyne is offline   Reply With Quote
Reply




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 07:32 AM.


vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI