You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

1

Thursday, June 3rd 2010, 10:31am

DTD for krPano

Hi everybody,

I've write a DTD for krPano. What is the idea of a DTD ? It's to list all the possibility an xml file can have. So in this case : all the options krpano can have in the XML files.

It's very usefull when using with a XML editor that have the autocompletion capability :

you type "<events on" and the software will list all the events possibility. It's very usefull because you don't have to go to the documentation to see if the event that occurs when the xml is loaded is onxmlloaded, onxmlcomplete, onxmlparse ... or whatever !

I'll write a complete tutorial on it soon, but for now you can download the dtd here : http://github.com/nelk1/krpano_dtd/blob/master/krpano.dtd
- Put it in the same folder as a krpano xml files
- Add <!DOCTYPE krpano SYSTEM "krpano.dtd"> on top of the xml files
- Install an XML editor that handle autocompletion (I'm using Eclipse)

And have fun !

Any suggestion is welcome ... and I'll complete the dtd files as soon as the documentation is up to date.

For the developer around here. The project is hosted on github, so feel free to fork if you want !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

This post has been edited 1 times, last edit by "nelk" (Jun 3rd 2010, 12:14pm)


2

Thursday, June 3rd 2010, 11:13am

very nice.
GG!

bulp

Intermediate

Posts: 388

Location: Malaysia

  • Send private message

3

Wednesday, June 9th 2010, 7:34am

thank you nelk..



but i do have problem with which are this link the eclipse that u use?... or any specific link ?

this eclipse ?

regards..

bulp

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

4

Wednesday, June 9th 2010, 5:22pm

Hi bulb,

I'm using the "Eclipse for PHP Developers".

But Eclipse is a versatile software, you can add plugin on top of it. Like Flash Builder for instance. But I think Eclipse for PHP Developpers is Ok to handle the XML files ! (I've to check that by the way in my tutorial ;-) )

Let us know if it's Ok for you, or too complicated !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

autiomaa

Beginner

Posts: 36

Location: Finland

Occupation: Photographer, Retoucher, Web Developer

  • Send private message

5

Thursday, June 10th 2010, 12:07am

Thanks!

Thanks for this, I was wondering today if there would be DTD like this somewhere. Nice to know that you used your time to help other people besides yourself and put the file to GitHub (had to watch your repository instantly). :)

Tuur

Master

Posts: 2,340

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

6

Thursday, June 10th 2010, 12:11am

Hi,

will that work with Dreamweaver??

Tuur *thumbsup*

autiomaa

Beginner

Posts: 36

Location: Finland

Occupation: Photographer, Retoucher, Web Developer

  • Send private message

7

Thursday, June 10th 2010, 1:17am

Line endings of DTD

There is small problem in the file as line endings are in Windows format and there is ^M visible in the end of each line when looked with vim in OS X. ;)

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

8

Thursday, June 10th 2010, 8:55am

Thanks autiomaa, I'll have a look.

I don't know if this is something related to github, do you ?

There is an option for the ending lines, I've probably not choose the good one :-)
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

9

Thursday, June 10th 2010, 12:52pm

Hi,

great work!

may be this can help - here the unfinished quick-reference documentation:

http://krpano.com/docu/quickref/

the formating and linking in this page is not finished yet,
but all variables are listed there,

best regards,
Klaus

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

10

Friday, June 11th 2010, 12:24am

@autiomaa I've updated the repository ... can you check if there is still a problem with the end of lines ?
I've activated the core.autocrlf

@Klaus Thanks ! It'll help, but there is many things I don't understand the usage. I hope the complete documentation will be online soon ;-)
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Tuur

Master

Posts: 2,340

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

11

Friday, June 11th 2010, 2:20pm

hi,

i'm probably stupid but...

can i do that also with dreamweaver? like put that dtd in it or should i use another editor for this..


Thanx

Tuur

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

12

Friday, June 11th 2010, 2:27pm

I'm not using Dreamweaver, but I think it should be ok !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

13

Monday, June 21st 2010, 12:21pm

Klaus, can you tell me if this values are ok, for plugin and hotspot, whick one are in common, which one is plugin / hotspot specific ?

Thanks !

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!ENTITY % plugin_hotspot_common 
		'style 							CDATA 							#IMPLIED
		name				 			CDATA 							#IMPLIED
		url					 			CDATA 							#IMPLIED
		visible							(true | false)					"true"
		enabled							(true | false)					"true"
		capture							(true | false)					"true"
		onover							CDATA							#IMPLIED
		onhover							CDATA							#IMPLIED
		onout							CDATA							#IMPLIED
		onclick							CDATA							#IMPLIED
		ondown							CDATA							#IMPLIED
		onup							CDATA							#IMPLIED
		onloaded						CDATA							#IMPLIED
		rotate							CDATA							"0"
		blendmode						( %blendmode; ) 				"normal"
		align							( %align; )						"bottom"
		keep 							(true | false)					"false"
		zorder							CDATA							"0"
		alpha							CDATA							"1"
		effect							CDATA							"glow(0x000000,0.7,4,2);dropshadow(10,45,0x000000,3,0.5);"
		children						(true | false)					"true"
		parent							(STAGE | BGLAYER | any_plugin)	#IMPLIED
		scalechildren					(true | false)					"false"
		handcursor						(true | false)					"true"
		edge							( same_as_origin | %align; ) 	"same_as_origin"
		width							CDATA							#IMPLIED
		height							CDATA							#IMPLIED
		scale							CDATA							"1"
		smoothing						(true | false)					"true"
		crop							CDATA							#IMPLIED
		scale9grid						CDATA							"x|y|width|height"
		'
		>
		
<!ENTITY % hotspot_only 
		'distorted						(true | false)					"false"
		zoom							(true | false)					"false"
		ath								CDATA							"0"
		atv								CDATA							"0"
		ox								CDATA							"0"
		oy								CDATA							"0"
		rx								CDATA							#IMPLIED
		ry								CDATA							#IMPLIED
		rz								CDATA							#IMPLIED
		flying							CDATA							#IMPLIED
		'
		>		
		
<!ENTITY % plugin_only 
		'x								CDATA							#IMPLIED
		y								CDATA							#IMPLIED
		preload							(true | false)					"false"
		'
		>
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

14

Tuesday, June 22nd 2010, 11:03am

Hi,
Klaus, can you tell me if this values are ok, for plugin and hotspot, whick one are in common, which one is plugin / hotspot specific ?
ox, oy and preload are common,
the others seems okay,

best regards,
Klaus

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

15

Thursday, June 24th 2010, 4:35pm

I've made a quick screencast and tutorial in french here : Une DTD pour krPano
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

VN2009

Professional

Posts: 1,334

Location: Duluth MN

  • Send private message

16

Thursday, June 24th 2010, 5:16pm

hi,

i'm probably stupid but...

can i do that also with dreamweaver? like put that dtd in it or should i use another editor for this..


Thanx

Tuur


how would we install this into dreamweaver.

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

17

Thursday, June 24th 2010, 5:28pm

Hi,

Maybe try to copy this line at the top of your xml files :

<!DOCTYPE krpano SYSTEM "krpano.dtd">

and check if you have the autocompletion,

Regards,
Nicolas
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

18

Friday, June 25th 2010, 1:04pm

Klaus,

In the quickref page, there is two variables overcrop and downcrop.

I think it's onovercrop and ondowncrop, Am I Right ?

Thanks
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

19

Friday, June 25th 2010, 6:48pm

Hi nelk,

This seems to be a great contribution... thanks to share *thumbup* ...

I would like to be able to use this with Notepad++ but I can find the way to implement it *huh* .... I have tried following the instructions of this link but no way to make it work *sad* ... Perhaps you know how to do ? or someone else (Jarredja? *smile* )? Thank you in advance...

SAlut.

20

Sunday, June 27th 2010, 7:13pm

In the quickref page, there is two variables overcrop and downcrop.

I think it's onovercrop and ondowncrop, Am I Right ?
right! thanks for this note!