- - -
Oh, No, it's not: Someone on the LiveCode team developed a sticky keyboard.

- -
Knowing them that'll still be there in LC 9.6.45
The HTMLText is actually HTML, but it's only a subset of current HTMl, it's a bit like working with old-school HTML v2.FourthWorld wrote: ↑Sat Aug 17, 2024 6:14 pm Most of those anomalies serve as reminders that htmlText isn't HTML.
It's similar, and some of it coincidentally renders well in a browser. But only coincidentally; it was designed to provide full-fidelity transfer of field contents in a plain text format for use within MetaCard.
Was that the goal of the HTMLText? If it was then that seems rather redundant when there's also 'the RTFText' and 'the StyleText', and plain old 'the text'. MC on Unix even supported EPS (Postscript)! I see no reason to include any HTML capabilities other than working on HTML formatted text.Any use in another program was not a design goal, and with modern CSS increasingly challenging to attempt to use it as such.
I've spent many years making web authoring tools in MC/RR/LC. The ones that need content editing are being migrated to web-native tech, ultimately more flexible and cost-effective when the target is a browser.
But for display within OXT, htmlText is awesome, the right tool for the right job (except where the job involves parsing; the pre-parsed compartmentalization of the styledText array is amazingly convenient and performant).
3dbox and maybe a few other tags since aren't found in HTML.OpenXTalkPaul wrote: ↑Fri Aug 23, 2024 9:02 pmThe HTMLText is actually HTML, but it's only a subset of current HTMl, it's like working with old-school HTML v2.FourthWorld wrote: ↑Sat Aug 17, 2024 6:14 pm Most of those anomalies serve as reminders that htmlText isn't HTML.
It's similar, and some of it coincidentally renders well in a browser. But only coincidentally; it was designed to provide full-fidelity transfer of field contents in a plain text format for use within MetaCard.
Yes, as per the engine's inventor, htmlText was designed to provide full-fidelity transfer of field contents in a plain text format for use within MetaCard.Was that the goal of the HTMLText? If it was then that seems rather redundant when there's also 'the RTFText' and 'the StyleText', and plain old 'the text'.
MC supported Display Postscript, famously used by NeXT and IIRC later adopted by at least one other Unix vendor (Silicon Graphics?).MC on Unix even supported EPS (Postscript)!
Before the ubiquity of JavaScript made JSON the go-to serialization format, the world was enamored with using XML for that role.I see no reason to include any HTML capabilities other than working on HTML formatted text.
Wanna see an exciting future that won't happen? Look at Dan Gelder's HyperTalk-to-JavaScript transpiler. With oxTalk being so much larger than HyperTalk, and so few people remaining using xTalks, I can't see a business case for extending it. But once upon a time it might have saved $340k and nine years of payroll burn...Field text in HyperCard Simulator documents are literally made of HTML, each line is its own <div>.
Ah gotcha, that makes sense for the early 90s, it would've been one of the only widely used XMLs around then.FourthWorld wrote: ↑Fri Aug 23, 2024 10:28 pm if you needed to parse with style and link info retained, MC's htmlText was reliably consistent, and inspired by HTML conventions it felt familiar and was easy to work with, a good solution for its time.
Yes, I try to use arrays whenever I'm looking for fast lookups, and having the text formatted with key/values pairs that match the xTalk properties is rather a nice too.StyledText arrays were added by Mark Waddingham about 20 years later, a few years after arrays became multidimensional. They are the closest representation to the binary style run data the engine uses internally, super efficient to work with, and now the recommended way to work with styling outside of fields.
Right, RTF is a Microsoft created format (IIRC?), but pretty common now, Apple has used it too since acquiring NeXT, and has a .bundle version called .rftd that can include images and other resources.RTF is a messy format and only includes the subset of styling information common to both that core RTF spec and MC. It was designed for quick exports for use in word processors.
Probably Sun Microsystems too IIRC, I used to deal with several Sparc stations, and for a short time some SGI (Irix was the OS) Indigos and Octanes (SGI made THE coolest computer cases) back when.MC supported Display Postscript, famously used by NeXT and IIRC later adopted by at least one other Unix vendor (Silicon Graphics?)MC on Unix even supported EPS (Postscript)!
Yes, there's a few of those non-conformant MLs around.Before the ubiquity of JavaScript made JSON the go-to serialization format, the world was enamored with using XML for that role.
Although HTML is XML-like, it's famously not XML, and often won't survive XML parsing.
OK, maybe not so much '3dox' or 'Shadow' as Font styling tags, styles that are largely universally deprecated remnants of bitmap font era. I suspect they're still in the Engine only for compatibility with HC / ancient xTalks.3dbox and maybe a few other tags since aren't found in HTML.
That's fine with me, I'm not really looking for a business use case. I just love the entire idea of it. It being an HTML doc, it's as portable and extensible as anything else that's built as html5/JS webapp, and because of prudent design decisions, it's pretty damn easy to extend the language interpreting too! Add in a few wrappers for some choice JS libraries and it could be doing some really cool things inside that web page.Wanna see an exciting future that won't happen? Look at Dan Gelder's HyperTalk-to-JavaScript transpiler. With oxTalk being so much larger than HyperTalk, and so few people remaining using xTalks, I can't see a business case for extending it.
It's a fine piece of work, potentially the struts of a bridge between the preinstalled scriptable rich-media engine from the dawn of GUIs, HyperCard, and the preinstalled scriptable rich-media engine of the present, the browser.OpenXTalkPaul wrote: ↑Sat Aug 24, 2024 12:54 amThat's fine with me, I'm not really looking for a business use case. I just love the entire idea of it.Wanna see an exciting future that won't happen? Look at Dan Gelder's HyperTalk-to-JavaScript transpiler. With oxTalk being so much larger than HyperTalk, and so few people remaining using xTalks, I can't see a business case for extending it.
Users browsing this forum: No registered users and 2 guests