Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 3. Juni 2010, 10:31

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 ).

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »nelk« (3. Juni 2010, 12:14)


2

Donnerstag, 3. Juni 2010, 11:13

very nice.
GG!

bulp

Fortgeschrittener

Beiträge: 389

Wohnort: Malaysia

  • Nachricht senden

3

Mittwoch, 9. Juni 2010, 07:34

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

4

Mittwoch, 9. Juni 2010, 17:22

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

Anfänger

Beiträge: 36

Wohnort: Finland

Beruf: Photographer, Retoucher, Web Developer

  • Nachricht senden

5

Donnerstag, 10. Juni 2010, 00:07

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

Erleuchteter

Beiträge: 2 774

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

6

Donnerstag, 10. Juni 2010, 00:11

Hi,

will that work with Dreamweaver??

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

autiomaa

Anfänger

Beiträge: 36

Wohnort: Finland

Beruf: Photographer, Retoucher, Web Developer

  • Nachricht senden

7

Donnerstag, 10. Juni 2010, 01:17

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. ;)

8

Donnerstag, 10. Juni 2010, 08:55

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

Donnerstag, 10. Juni 2010, 12:52

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

10

Freitag, 11. Juni 2010, 00:24

@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

Erleuchteter

Beiträge: 2 774

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

11

Freitag, 11. Juni 2010, 14:20

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
http://www.virtualtuur.com
Skype:studiotuur

12

Freitag, 11. Juni 2010, 14:27

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

13

Montag, 21. Juni 2010, 12:21

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 !

Quellcode

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

Dienstag, 22. Juni 2010, 11:03

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

15

Donnerstag, 24. Juni 2010, 16:35

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 ).

16

Donnerstag, 24. Juni 2010, 17:16

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.

17

Donnerstag, 24. Juni 2010, 17:28

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 ).

18

Freitag, 25. Juni 2010, 13:04

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 ).

19

Freitag, 25. Juni 2010, 18:48

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

Sonntag, 27. Juni 2010, 19:13

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!