Poster | Thread |
Raffaele
| |
New datatypes? Posted on 23-Aug-2016 8:32:14
| | [ #1 ] |
|
|
|
Super Member |
Joined: 7-Dec-2005 Posts: 1906
From: Naples, Italy | | |
|
| I wonder...
As long as build new productivity software with advanced features such as capable tomdeal with XML, Excel files, Word for windows files, HDR graphic files, nd so on, it requires lots of efforts and long time to develop, what if in the meanwhile is it more easy and feasable to just build datatypes capable to show these kind of files, just in read mode only.
What do you think about it? _________________ "When the Amiga came out, everyone [at Apple] was scared as hell." (J.L. Gassée, former CEO of Apple France and chief of devs of Mac II-fx, interviewed by Amazing Computing, Nov 1996). |
|
Status: Offline |
|
|
Rob
| |
Re: New datatypes? Posted on 23-Aug-2016 9:08:15
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 20-Mar-2003 Posts: 6351
From: S.Wales | | |
|
| @Raffaele
I'd imagine it would still be a lot of work to write a datatype for Word or Excel files. Last edited by Rob on 23-Aug-2016 at 09:09 AM.
|
|
Status: Offline |
|
|
amigakit
| |
Re: New datatypes? Posted on 23-Aug-2016 9:37:37
| | [ #3 ] |
|
|
|
Amiga Kit |
Joined: 28-Jun-2004 Posts: 2520
From: www.amigakit.com | | |
|
| If anyone is interested in developing an XML datatype then please contact me. This is a project I am interested in.
_________________ Amiga Kit Amiga Store Links: www.amigakit.com | New Products | A600GS |
|
Status: Offline |
|
|
Hypex
| |
Re: New datatypes? Posted on 23-Aug-2016 10:53:21
| | [ #4 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11215
From: Greensborough, Australia | | |
|
| @Raffaele
I would agree with you here. These are the sort of file types we should have dayatypes for. So that we can just open it and see it. I'd also add mp3 to that list.
Years ago we had to pay for MS DOC readers and one I checked out just converted it to plain text. I'd hope we'd get better value for money these days. Of course these days we do have office software that can load them in or older versions.
I don't think read only is such a bad idea. After all, in OSX, TextEdit has rudimentary support for DOC. I don't think we need much more than what is already proposed.
At the end of the day, for the most part, all we wanted to do was look at file like these. |
|
Status: Offline |
|
|
Tomppeli
| |
Re: New datatypes? Posted on 23-Aug-2016 11:10:31
| | [ #5 ] |
|
|
|
Super Member |
Joined: 18-Jun-2004 Posts: 1652
From: Home land of Santa, sauna, sisu and salmiakki | | |
|
| @amigakit
XML doesn't exist basically. There's no xml standard which you could make any generic reader for. It's always application specific.
Maybe some library which can parse any same style markup language into an nested linked list, for example. Last edited by Tomppeli on 23-Aug-2016 at 11:11 AM.
_________________ Rock lobster bit me. My Workbench has always preferences. X1000 + AmigaOS4.1 FE "Anyone can build a fast CPU. The trick is to build a fast system." -Seymour Cray |
|
Status: Offline |
|
|
Birbo
| |
Re: New datatypes? Posted on 23-Aug-2016 11:36:56
| | [ #6 ] |
|
|
|
Cult Member |
Joined: 5-Apr-2007 Posts: 594
From: Zurich, Switzerland | | |
|
| @Tomppeli
Yes, thats true. But there are many datatypes based on open XML standard.
For example docx/xslx/pptx. (https://msdn.microsoft.com/en-us/library/aa338205(v=office.12).aspx) Last edited by Birbo on 23-Aug-2016 at 11:37 AM.
_________________ Sometimes we give people a lot of credit just because they’re writing nice sentences even if it isn’t adding up to much. |
|
Status: Offline |
|
|
Raffaele
| |
Re: New datatypes? Posted on 23-Aug-2016 13:32:03
| | [ #7 ] |
|
|
|
Super Member |
Joined: 7-Dec-2005 Posts: 1906
From: Naples, Italy | | |
|
| @Hypex
Yes, and once you can read properly a doc file, then 90% of the times is a good "copy and paste" feature you need to extract text or images from it, like for example dealing with PDF files. _________________ "When the Amiga came out, everyone [at Apple] was scared as hell." (J.L. Gassée, former CEO of Apple France and chief of devs of Mac II-fx, interviewed by Amazing Computing, Nov 1996). |
|
Status: Offline |
|
|
Raffaele
| |
Re: New datatypes? Posted on 23-Aug-2016 13:36:11
| | [ #8 ] |
|
|
|
Super Member |
Joined: 7-Dec-2005 Posts: 1906
From: Naples, Italy | | |
|
| @Tomppeli
It was just an example...
Basically I am interested in in it as recently Italian government let available to us citizens to adjust invoices of our tax declarations upon web pages organized as databases, and then save XML file report of the current pending tax situation that contains the forementioned database in it. Last edited by Raffaele on 23-Aug-2016 at 01:37 PM.
_________________ "When the Amiga came out, everyone [at Apple] was scared as hell." (J.L. Gassée, former CEO of Apple France and chief of devs of Mac II-fx, interviewed by Amazing Computing, Nov 1996). |
|
Status: Offline |
|
|
Chris_Y
| |
Re: New datatypes? Posted on 23-Aug-2016 14:33:34
| | [ #9 ] |
|
|
|
Elite Member |
Joined: 21-Jun-2003 Posts: 3203
From: Beds, UK | | |
|
| @Tomppeli
datatypes.library recognises "unknown" IFF files and attempts to pass them to iff.datatype.
XML could do with a similar sort of integration, along with an xmlparse.library. XML is basically an ASCII IFF which is unnecessarily difficult to parse.
As regards XML datatypes, we have two different SVG ones.
_________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz |
|
Status: Offline |
|
|
cgutjahr
| |
Re: New datatypes? Posted on 23-Aug-2016 14:56:14
| | [ #10 ] |
|
|
|
Cult Member |
Joined: 8-Mar-2003 Posts: 969
From: Unknown | | |
|
| @Raffaele
Before you start implementing new datatypes, you should give the underlying infrastructure a major overhaul. Apart from a minor update (24 bit graphics) in 1999, it's essentially 25 years old.
For starters, it needs to support streaming. It needs alse new classes for "Rich Text" and "Vector Graphics" (and probably "Movie file").
As for XML: There already is a shared library for handling XML, no? Not sure why you'd need a datatype for that. |
|
Status: Offline |
|
|
Chris_Y
| |
Re: New datatypes? Posted on 23-Aug-2016 15:50:44
| | [ #11 ] |
|
|
|
Elite Member |
Joined: 21-Jun-2003 Posts: 3203
From: Beds, UK | | |
|
| @cgutjahr
Quote:
It needs alse new classes for "Rich Text" and "Vector Graphics" (and probably "Movie file"). |
Vector graphics is, at least, already done: http://www.openamiga.org/?function=viewproject&projectid=51 (IFF DR2D and SVG datatypes present)
Rich Text is sort of already there via the document superclass. An upgrade of the text superclass for simple formatted text display would be welcomed.
The movie class is an amalgamation of animation and sound. The animation superclass is rubbish, it supports streaming but only 8-bit frames and is in dire need of an update. Somebody was working on this (in relation to modern video formats) but AFAIK the project was abandoned.
Last edited by Chris_Y on 23-Aug-2016 at 03:52 PM.
_________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz |
|
Status: Offline |
|
|
jaokim
| |
Re: New datatypes? Posted on 23-Aug-2016 17:03:54
| | [ #12 ] |
|
|
|
Regular Member |
Joined: 8-Mar-2003 Posts: 278
From: Sweden | | |
|
| @Tomppeli
Er... XML is highly standardised, and having a datype for general XML documents would be great.
For instance, instead of getting a plain text XML, the datatype could present the XML document as a traversable tree, where tags be closed and opened dynamically (something like the prefs objects editor), of course along with syntax highlighting. One could perhaps also hide CDATA segments automatically. One could also imagine an XSLT reader for even more fancy XML processing, based on the XML datatype. _________________
|
|
Status: Offline |
|
|
broadblues
| |
Re: New datatypes? Posted on 23-Aug-2016 17:35:27
| | [ #13 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4446
From: Portsmouth England | | |
|
| @jaokim
Quote:
@Tomppeli
Er... XML is highly standardised,
|
You both right is so far as the xml is a well defined standard but it can be used to describe arbitrary data of many different types.
Quote:
For instance, instead of getting a plain text XML, the datatype could present the XML document as a traversable tree, where tags be closed and opened dynamically (something like the prefs objects editor), of course along with syntax highlighting. One could perhaps also hide CDATA segments automatically. One could also imagine an XSLT reader for even more fancy XML processing, based on the XML datatype.
|
What you describe might be a very nice application, but not as datatype, IMHO, the trouble with using datatypes to display a meta format like XML id that sub datatypes will overide them so SVG files might display as graphics XHTML as a document, only the unrecognised types get displayed as xml.datatype
_________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad |
|
Status: Offline |
|
|
Severin
| |
Re: New datatypes? Posted on 23-Aug-2016 17:47:01
| | [ #14 ] |
|
|
|
Elite Member |
Joined: 19-Aug-2003 Posts: 2740
From: Gloucestershire UK | | |
|
| @jaokim
Quote:
Er... XML is highly standardised, and having a datype for general XML documents would be great.
|
No it's not, it can't be, the FORMAT of XML is simple but as there are no limits to tag definitions all you can really do it get a 2 column list, tag and content.
XML is the mother of bloat but atleast it compresses well but is still a pain in the arse to write manually as I found out last night writing a python syntax hilighter for Annotate. _________________ OS4 Rocks X1000 beta tester, Sam440 Flex (733)
Visit the Official OS4 Support Site for more help.
It may be that your sole purpose is to serve as a warning to others. |
|
Status: Offline |
|
|
broadblues
| |
Re: New datatypes? Posted on 23-Aug-2016 18:19:54
| | [ #15 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4446
From: Portsmouth England | | |
|
| @Severin
Quote:
XML is the mother of bloat but atleast it compresses well
|
Xml is not bloated, if the meta characters tags etc far outwieght the data presented it's likely simply being misused, some times plain text is best.
Quote:
but is still a pain in the arse to write manually as I found out last night writing a python syntax hilighter for Annotate.
|
Some syntax highlighting helps, but compared with writing IFF in hex editor, writing xml in text editor is a breeze....
_________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad |
|
Status: Offline |
|
|
jaokim
| |
Re: New datatypes? Posted on 23-Aug-2016 18:25:00
| | [ #16 ] |
|
|
|
Regular Member |
Joined: 8-Mar-2003 Posts: 278
From: Sweden | | |
|
| Quote:
Severin wrote:
No it's not, it can't be, the FORMAT of XML is simple but as there are no limits to tag definitions all you can really do it get a 2 column list, tag and content.
|
Semantics. The XML format is standardized.
Quote:
XML is the mother of bloat but atleast it compresses well but is still a pain in the arse to write manually as I found out last night writing a python syntax hilighter for Annotate. |
Here I whole-heartily agree! It's a horrible format! It's like getting a super big present for Christmas, and when you're finished unwrapping all you got is a box of matches._________________
|
|
Status: Offline |
|
|
Jupp3
| |
Re: New datatypes? Posted on 23-Aug-2016 21:21:50
| | [ #17 ] |
|
|
|
Super Member |
Joined: 22-Feb-2007 Posts: 1225
From: Unknown | | |
|
| Datatypes are great for instead of f.ex. writing support for loading "just png images", writing a support to load "any" images, with a suitable datatype installed.
Roughly the same effort, you can still read png images (as long as the user has installed a suitable datatype), and more.
So in short, it's good for "supporting many formats for the same purpose with relatively little effort".
As for XML, what would be the other "same purpose" formats, that would also be loadable by datatypes? I can't think of any (well, any that would be more or less "standard")
Therefore, I can't see much point in xml datatype. And I wonder if the old datatypes system would work well with anything other than images, sound etc.
And of course "Datatypes being rather dated" is probably one of the major reasons, why MorphOS now has Reggae, which also supports streaming. Last edited by Jupp3 on 23-Aug-2016 at 09:22 PM.
|
|
Status: Offline |
|
|
Chris_Y
| |
Re: New datatypes? Posted on 23-Aug-2016 21:49:21
| | [ #18 ] |
|
|
|
Elite Member |
Joined: 21-Jun-2003 Posts: 3203
From: Beds, UK | | |
|
| @Jupp3
Quote:
And I wonder if the old datatypes system would work well with anything other than images, sound etc. |
It supports anything you like, but more exotic formats might need a superclass written first if it doesn't fit into any of the existing categories.
_________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz |
|
Status: Offline |
|
|
cgutjahr
| |
Re: New datatypes? Posted on 23-Aug-2016 23:32:43
| | [ #19 ] |
|
|
|
Cult Member |
Joined: 8-Mar-2003 Posts: 969
From: Unknown | | |
|
| I don't get this sudden fixation with XML - what enduser needs to load XML files into something else than (a) a text editor or (b) a ASCII viewer?
XML is either a configuration file or part of some more complicated format that would have to be handled by a datatype dedicated to that particular format (SVG, docx, xlsx...).
What good would a XML datatype do? |
|
Status: Offline |
|
|
cgutjahr
| |
Re: New datatypes? Posted on 23-Aug-2016 23:37:32
| | [ #20 ] |
|
|
|
Cult Member |
Joined: 8-Mar-2003 Posts: 969
From: Unknown | | |
|
| @Chris_Y
Quote:
Ah, thanks - missed that. Does really dr2d handle everything SVG/EPS does? Sounds unlikely, given the former's age?
Quote:
Rich Text is sort of already there via the document superclass.
|
Does that support formatting? |
|
Status: Offline |
|
|