christopher melen | 5 Aug 2008 19:28
Picon
Favicon

Floats as coordinate values

Hi,

I need to draw on a window using single- or double-floats as coordinate values (I am plotting spectral
analysis data, though not with the chart-widget). Is there an easy way to do this? Currently I am having to
round my values in order to see anything, which is OK, but inconvenient if I want to do fine editing of data
using the mouse. Might mixing in a scaling-stream work?

Many thanks,
Chris

      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html

Juan Vista | 11 Aug 2008 23:53
Picon
Favicon

SAX/DOM bugs

Hi.

I just recently found this bug in Allegro's XML package:

CG-USER(1): (require :sax)
; Fast loading C:\Program Files\acl81-express\code\SAX.fasl
;   Fast loading from bundle code\EF-E-ANYNL.fasl.
T
CG-USER(2): (find-symbol "PROCESSING-INSTRUCTION" :net.xml.sax)
NET.XML.SAX::PROCESSING-INSTRUCTION
:INTERNAL

The symbol is not exported, and as such SAX parsers/handlers outside that
package will not be fired for processing instructions, like the
net.xml.dom:dom-parser. I hacked a bit and added the net.xml.dom method in the
net.xml.sax generic method and the DOM parser now correctly generates the PI
nodes.

But then, dom-print doesn't print PI's correctly. In fact, it seems like a
format ~a, it shoots a hash #<...>. The dom-print has another major flaw, it
does not escape or replace invalid XML characters with the respective entities.
Not having a serializer is quite a drawback.

There could be a DOM to SAX mapping, and a SAX handler that writes XML (with
xref:get-relation, I've seen that this is not what dom-print does). LXML to SAX
would be nice as well, so you could reuse the SAX writer or any other SAX
handler.

Another thing, the DOM parser keeps the document child nodes in an inverse
order. That is the parse-to-dom (or file-to-dom) of the following excerpt:
(Continue reading)


Gmane