Re: Powerpoint to LiveCode

2020-03-03 Thread Bob Sneidar via use-livecode
Maybe it's just me, but I read through the XML library and I couldn't come up 
with a method for parsing an XML file produced by one of our copier vendors. 
Granted, the XML was really complex. But just the process of drilling down into 
the XML seemed so onerous, I gave up. I suppose too that understanding the 
structure of the specific XML is important, and the structure of the file I was 
parsing is almost hopelessly complex. 

I looked at the XML lesson, but it is really basic. If anyone has an XML parser 
that can convert to text or even better an array, in a format that can be 
easily converted back to the exact same XML that produced it, that would go a 
long way to getting me up to speed on it. 

I suppose if I understood the constraints of XML I could do better. 

Bob S


> On Mar 2, 2020, at 18:52 , Richard Gaskin via use-livecode 
>  wrote:
> 
> Bob Sneidar wrote:
> 
> > The XML parser is going to be the pig.
> 
> Would it?  I've found the revXML external to be pretty nice.
> 
> I was able to use it with the revZip external to transform Word/odoc into an 
> LC styledText array in an afternoon (at least the basics I needed at the 
> time).
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Powerpoint to LiveCode

2020-03-03 Thread Paul Dupuis via use-livecode

On 3/2/2020 4:04 PM, Paul Dupuis via use-livecode wrote:
Out of curiosity, has anyone created a library that will import  - the 
parts of a Powerpoint presentation that can be recreated in Livecode 
-  into a LiveCode stack?


Of course .pptx files are actuall just ZIP archives with assorted XML 
files inside, while there is a path to importing .pptx files, it is 
not simple. Use revZIP to open the .pptx file, use revXML (or your 
howm grown xml parser) to extract the XML for each slide (each a 
separate file in the archive) and rectreate those slide elements 
support in LiveCode.


So, I know HOW to do it.

I am asking if any one has already built such a library (or even 
started it)?


I should preemptively add that I am not looking for the slides to be 
imported as images. The whole purpose of parsing the pptx file's XML is 
to convert the presentation into LiveCode elements (imported objects 
like 'image' for any art work, 'graphic' for all line drawing, and 
'field' for any text, so that the LC object are then manipulable in LC.


The work is not in revZip - I've worked with it a lot. And, as Richard 
said, the work is not with revXML - I've used that a lot too and it work 
very nicely for parsing XML quickly.


The work is entirely in mapping those Microsoft XML for Powerpoint 
elements that can be mapped to corresponding  LC elements and mapping 
all the properties (colors, sizes, etc.) and coding those mapping.


A lot of Microsoft stuff can be thrown away. I don't need it as a 
presentation, just the information in the file. So transitions, effects, 
presentation timings, etc, can all be ignored.


I hate reinventing the wheel. Which is why I was asking if anyone out 
there may have done such a library or even started such a library. I 
would rather build on something existing. It you have such a library and 
do not want to give it away, I'd like to discuss possible licensing. If 
you have such a library but it is only partially complete, I'd like to 
discuss a collaboration.


However, if nothing has been started or no library exists, I'll just do 
it in-house, if we go ahead and do a library at all..


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Powerpoint to LiveCode

2020-03-02 Thread Terry Judd via use-livecode
Hi Paul - I haven't done it although I have gone the other way, creating 
content/media with LiveCode and merging it (text, images, audio files) into a 
PPT template file (which is then converted to Keynote and exported as a video). 
Anyway, getting access to the screen content/media for each PPT screen is like 
you say relatively straightforward, not sure about parsing the slideX.xml files 
once you get it into an LC array though, like most MS generated files that 
structure looks very messy.

Terry...

On 3/3/20, 12:29 pm, "use-livecode on behalf of Paul Dupuis via use-livecode" 
 wrote:

Hi Rick,

Powerpoint can export to HTML, and while I have not looked at Keynote's 
HTML export, I think you would be just trading one problem at file 
parsing for another. Tools like PowerPoint and Keynote export to HTML 
with CSS, so you can't just:

set the htmlText of field x to URL tPresentationFile

You'd still have to parse the HTML/CSS into something LiveCode can 
understand.

Again, I know how to do this. My questions is: Has someone already done 
it or even part of it?


On 3/2/2020 7:39 PM, Rick Harrison via use-livecode wrote:
> Hi Paul,
>
> If you had access to a Mac you could import
> your Powerpoint presentation to Keynote, make
> whatever changes you want and then Export it
> as HTML. It’s really cool how it works.
>
> Keynote can also Export to Powerpoint too, as
> well as PDFs.
>
> Then import into LiveCode?
>
> Just my 2 cents.
>
> Rick
>
>> On Mar 2, 2020, at 4:04 PM, Paul Dupuis via use-livecode 
 wrote:
>>
>> Out of curiosity, has anyone created a library that will import  - the 
parts of a Powerpoint presentation that can be recreated in Livecode -  into a 
LiveCode stack?
>>
>> Of course .pptx files are actuall just ZIP archives with assorted XML 
files inside, while there is a path to importing .pptx files, it is not simple. 
Use revZIP to open the .pptx file, use revXML (or your howm grown xml parser) 
to extract the XML for each slide (each a separate file in the archive) and 
rectreate those slide elements support in LiveCode.
>>
>> So, I know HOW to do it.
>>
>> I am asking if any one has already built such a library (or even started 
it)?
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Powerpoint to LiveCode

2020-03-02 Thread Richard Gaskin via use-livecode

Bob Sneidar wrote:

> The XML parser is going to be the pig.

Would it?  I've found the revXML external to be pretty nice.

I was able to use it with the revZip external to transform Word/odoc 
into an LC styledText array in an afternoon (at least the basics I 
needed at the time).


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Powerpoint to LiveCode

2020-03-02 Thread Paul Dupuis via use-livecode

Hi Rick,

Powerpoint can export to HTML, and while I have not looked at Keynote's 
HTML export, I think you would be just trading one problem at file 
parsing for another. Tools like PowerPoint and Keynote export to HTML 
with CSS, so you can't just:


set the htmlText of field x to URL tPresentationFile

You'd still have to parse the HTML/CSS into something LiveCode can 
understand.


Again, I know how to do this. My questions is: Has someone already done 
it or even part of it?



On 3/2/2020 7:39 PM, Rick Harrison via use-livecode wrote:

Hi Paul,

If you had access to a Mac you could import
your Powerpoint presentation to Keynote, make
whatever changes you want and then Export it
as HTML. It’s really cool how it works.

Keynote can also Export to Powerpoint too, as
well as PDFs.

Then import into LiveCode?

Just my 2 cents.

Rick


On Mar 2, 2020, at 4:04 PM, Paul Dupuis via use-livecode 
 wrote:

Out of curiosity, has anyone created a library that will import  - the parts of 
a Powerpoint presentation that can be recreated in Livecode -  into a LiveCode 
stack?

Of course .pptx files are actuall just ZIP archives with assorted XML files 
inside, while there is a path to importing .pptx files, it is not simple. Use 
revZIP to open the .pptx file, use revXML (or your howm grown xml parser) to 
extract the XML for each slide (each a separate file in the archive) and 
rectreate those slide elements support in LiveCode.

So, I know HOW to do it.

I am asking if any one has already built such a library (or even started it)?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Powerpoint to LiveCode

2020-03-02 Thread Rick Harrison via use-livecode
Hi Paul,

If you had access to a Mac you could import
your Powerpoint presentation to Keynote, make 
whatever changes you want and then Export it 
as HTML. It’s really cool how it works.  

Keynote can also Export to Powerpoint too, as 
well as PDFs.

Then import into LiveCode?

Just my 2 cents.

Rick

> On Mar 2, 2020, at 4:04 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Out of curiosity, has anyone created a library that will import  - the parts 
> of a Powerpoint presentation that can be recreated in Livecode -  into a 
> LiveCode stack?
> 
> Of course .pptx files are actuall just ZIP archives with assorted XML files 
> inside, while there is a path to importing .pptx files, it is not simple. Use 
> revZIP to open the .pptx file, use revXML (or your howm grown xml parser) to 
> extract the XML for each slide (each a separate file in the archive) and 
> rectreate those slide elements support in LiveCode.
> 
> So, I know HOW to do it.
> 
> I am asking if any one has already built such a library (or even started it)?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Powerpoint to LiveCode

2020-03-02 Thread Bob Sneidar via use-livecode
The XML parser is going to be the pig. 

Bob S


> On Mar 2, 2020, at 13:04 , Paul Dupuis via use-livecode 
>  wrote:
> 
> Out of curiosity, has anyone created a library that will import  - the parts 
> of a Powerpoint presentation that can be recreated in Livecode -  into a 
> LiveCode stack?
> 
> Of course .pptx files are actuall just ZIP archives with assorted XML files 
> inside, while there is a path to importing .pptx files, it is not simple. Use 
> revZIP to open the .pptx file, use revXML (or your howm grown xml parser) to 
> extract the XML for each slide (each a separate file in the archive) and 
> rectreate those slide elements support in LiveCode.
> 
> So, I know HOW to do it.
> 
> I am asking if any one has already built such a library (or even started it)?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode