Background: #fff
Foreground: #000
PrimaryPale: #8cf
PrimaryLight: #18f
PrimaryMid: #04b
PrimaryDark: #014
SecondaryPale: #ffc
SecondaryLight: #fe8
SecondaryMid: #db4
SecondaryDark: #841
TertiaryPale: #eee
TertiaryLight: #ccc
TertiaryMid: #999
TertiaryDark: #666
Error: #f88
<!--{{{-->
<div class='toolbar' macro='toolbar [[ToolbarCommands::EditToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='editor' macro='edit title'></div>
<div macro='annotations'></div>
<div class='editor' macro='edit text'></div>
<div class='editor' macro='edit tags'></div><div class='editorFooter'><span macro='message views.editor.tagPrompt'></span><span macro='tagChooser excludeLists'></span></div>
<!--}}}-->
To get started with this blank [[TiddlyWiki]], you'll need to modify the following tiddlers:
* [[SiteTitle]] & [[SiteSubtitle]]: The title and subtitle of the site, as shown above (after saving, they will also appear in the browser title bar)
* [[MainMenu]]: The menu (usually on the left)
* [[DefaultTiddlers]]: Contains the names of the tiddlers that you want to appear when the TiddlyWiki is opened
You'll also need to enter your username for signing your edits: <<option txtUserName>>
<<importTiddlers>>
<!--{{{-->
<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml' />
<!--}}}-->
These [[InterfaceOptions]] for customising [[TiddlyWiki]] are saved in your browser

Your username for signing your edits. Write it as a [[WikiWord]] (eg [[JoeBloggs]])

<<option txtUserName>>
<<option chkSaveBackups>> [[SaveBackups]]
<<option chkAutoSave>> [[AutoSave]]
<<option chkRegExpSearch>> [[RegExpSearch]]
<<option chkCaseSensitiveSearch>> [[CaseSensitiveSearch]]
<<option chkAnimate>> [[EnableAnimations]]

----
Also see [[AdvancedOptions]]
<!--{{{-->
<div class='header' role='banner' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'>
<div class='headerShadow'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>&nbsp;
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
<div class='headerForeground'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>&nbsp;
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
</div>
<div id='mainMenu' role='navigation' refresh='content' tiddler='MainMenu'></div>
<div id='sidebar'>
<div id='sidebarOptions' role='navigation' refresh='content' tiddler='SideBarOptions'></div>
<div id='sidebarTabs' role='complementary' refresh='content' force='true' tiddler='SideBarTabs'></div>
</div>
<div id='displayArea' role='main'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
<!--}}}-->
/*{{{*/
body {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];}

a {color:[[ColorPalette::PrimaryMid]];}
a:hover {background-color:[[ColorPalette::PrimaryMid]]; color:[[ColorPalette::Background]];}
a img {border:0;}

h1,h2,h3,h4,h5,h6 {color:[[ColorPalette::SecondaryDark]]; background:transparent;}
h1 {border-bottom:2px solid [[ColorPalette::TertiaryLight]];}
h2,h3 {border-bottom:1px solid [[ColorPalette::TertiaryLight]];}

.button {color:[[ColorPalette::PrimaryDark]]; border:1px solid [[ColorPalette::Background]];}
.button:hover {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::SecondaryLight]]; border-color:[[ColorPalette::SecondaryMid]];}
.button:active {color:[[ColorPalette::Background]]; background:[[ColorPalette::SecondaryMid]]; border:1px solid [[ColorPalette::SecondaryDark]];}

.header {background:[[ColorPalette::PrimaryMid]];}
.headerShadow {color:[[ColorPalette::Foreground]];}
.headerShadow a {font-weight:normal; color:[[ColorPalette::Foreground]];}
.headerForeground {color:[[ColorPalette::Background]];}
.headerForeground a {font-weight:normal; color:[[ColorPalette::PrimaryPale]];}

.tabSelected {color:[[ColorPalette::PrimaryDark]];
	background:[[ColorPalette::TertiaryPale]];
	border-left:1px solid [[ColorPalette::TertiaryLight]];
	border-top:1px solid [[ColorPalette::TertiaryLight]];
	border-right:1px solid [[ColorPalette::TertiaryLight]];
}
.tabUnselected {color:[[ColorPalette::Background]]; background:[[ColorPalette::TertiaryMid]];}
.tabContents {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::TertiaryPale]]; border:1px solid [[ColorPalette::TertiaryLight]];}
.tabContents .button {border:0;}

#sidebar {}
#sidebarOptions input {border:1px solid [[ColorPalette::PrimaryMid]];}
#sidebarOptions .sliderPanel {background:[[ColorPalette::PrimaryPale]];}
#sidebarOptions .sliderPanel a {border:none;color:[[ColorPalette::PrimaryMid]];}
#sidebarOptions .sliderPanel a:hover {color:[[ColorPalette::Background]]; background:[[ColorPalette::PrimaryMid]];}
#sidebarOptions .sliderPanel a:active {color:[[ColorPalette::PrimaryMid]]; background:[[ColorPalette::Background]];}

.wizard {background:[[ColorPalette::PrimaryPale]]; border:1px solid [[ColorPalette::PrimaryMid]];}
.wizard h1 {color:[[ColorPalette::PrimaryDark]]; border:none;}
.wizard h2 {color:[[ColorPalette::Foreground]]; border:none;}
.wizardStep {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];
	border:1px solid [[ColorPalette::PrimaryMid]];}
.wizardStep.wizardStepDone {background:[[ColorPalette::TertiaryLight]];}
.wizardFooter {background:[[ColorPalette::PrimaryPale]];}
.wizardFooter .status {background:[[ColorPalette::PrimaryDark]]; color:[[ColorPalette::Background]];}
.wizard .button {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::SecondaryLight]]; border: 1px solid;
	border-color:[[ColorPalette::SecondaryPale]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryPale]];}
.wizard .button:hover {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::Background]];}
.wizard .button:active {color:[[ColorPalette::Background]]; background:[[ColorPalette::Foreground]]; border: 1px solid;
	border-color:[[ColorPalette::PrimaryDark]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryDark]];}

.wizard .notChanged {background:transparent;}
.wizard .changedLocally {background:#80ff80;}
.wizard .changedServer {background:#8080ff;}
.wizard .changedBoth {background:#ff8080;}
.wizard .notFound {background:#ffff80;}
.wizard .putToServer {background:#ff80ff;}
.wizard .gotFromServer {background:#80ffff;}

#messageArea {border:1px solid [[ColorPalette::SecondaryMid]]; background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]];}
#messageArea .button {color:[[ColorPalette::PrimaryMid]]; background:[[ColorPalette::SecondaryPale]]; border:none;}

.popupTiddler {background:[[ColorPalette::TertiaryPale]]; border:2px solid [[ColorPalette::TertiaryMid]];}

.popup {background:[[ColorPalette::TertiaryPale]]; color:[[ColorPalette::TertiaryDark]]; border-left:1px solid [[ColorPalette::TertiaryMid]]; border-top:1px solid [[ColorPalette::TertiaryMid]]; border-right:2px solid [[ColorPalette::TertiaryDark]]; border-bottom:2px solid [[ColorPalette::TertiaryDark]];}
.popup hr {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::PrimaryDark]]; border-bottom:1px;}
.popup li.disabled {color:[[ColorPalette::TertiaryMid]];}
.popup li a, .popup li a:visited {color:[[ColorPalette::Foreground]]; border: none;}
.popup li a:hover {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; border: none;}
.popup li a:active {background:[[ColorPalette::SecondaryPale]]; color:[[ColorPalette::Foreground]]; border: none;}
.popupHighlight {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];}
.listBreak div {border-bottom:1px solid [[ColorPalette::TertiaryDark]];}

.tiddler .defaultCommand {font-weight:bold;}

.shadow .title {color:[[ColorPalette::TertiaryDark]];}

.title {color:[[ColorPalette::SecondaryDark]];}
.subtitle {color:[[ColorPalette::TertiaryDark]];}

.toolbar {color:[[ColorPalette::PrimaryMid]];}
.toolbar a {color:[[ColorPalette::TertiaryLight]];}
.selected .toolbar a {color:[[ColorPalette::TertiaryMid]];}
.selected .toolbar a:hover {color:[[ColorPalette::Foreground]];}

.tagging, .tagged {border:1px solid [[ColorPalette::TertiaryPale]]; background-color:[[ColorPalette::TertiaryPale]];}
.selected .tagging, .selected .tagged {background-color:[[ColorPalette::TertiaryLight]]; border:1px solid [[ColorPalette::TertiaryMid]];}
.tagging .listTitle, .tagged .listTitle {color:[[ColorPalette::PrimaryDark]];}
.tagging .button, .tagged .button {border:none;}

.footer {color:[[ColorPalette::TertiaryLight]];}
.selected .footer {color:[[ColorPalette::TertiaryMid]];}

.error, .errorButton {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::Error]];}
.warning {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::SecondaryPale]];}
.lowlight {background:[[ColorPalette::TertiaryLight]];}

.zoomer {background:none; color:[[ColorPalette::TertiaryMid]]; border:3px solid [[ColorPalette::TertiaryMid]];}

.imageLink, #displayArea .imageLink {background:transparent;}

.annotation {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; border:2px solid [[ColorPalette::SecondaryMid]];}

.viewer .listTitle {list-style-type:none; margin-left:-2em;}
.viewer .button {border:1px solid [[ColorPalette::SecondaryMid]];}
.viewer blockquote {border-left:3px solid [[ColorPalette::TertiaryDark]];}

.viewer table, table.twtable {border:2px solid [[ColorPalette::TertiaryDark]];}
.viewer th, .viewer thead td, .twtable th, .twtable thead td {background:[[ColorPalette::SecondaryMid]]; border:1px solid [[ColorPalette::TertiaryDark]]; color:[[ColorPalette::Background]];}
.viewer td, .viewer tr, .twtable td, .twtable tr {border:1px solid [[ColorPalette::TertiaryDark]];}

.viewer pre {border:1px solid [[ColorPalette::SecondaryLight]]; background:[[ColorPalette::SecondaryPale]];}
.viewer code {color:[[ColorPalette::SecondaryDark]];}
.viewer hr {border:0; border-top:dashed 1px [[ColorPalette::TertiaryDark]]; color:[[ColorPalette::TertiaryDark]];}

.highlight, .marked {background:[[ColorPalette::SecondaryLight]];}

.editor input {border:1px solid [[ColorPalette::PrimaryMid]];}
.editor textarea {border:1px solid [[ColorPalette::PrimaryMid]]; width:100%;}
.editorFooter {color:[[ColorPalette::TertiaryMid]];}
.readOnly {background:[[ColorPalette::TertiaryPale]];}

#backstageArea {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::TertiaryMid]];}
#backstageArea a {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::Background]]; border:none;}
#backstageArea a:hover {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; }
#backstageArea a.backstageSelTab {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];}
#backstageButton a {background:none; color:[[ColorPalette::Background]]; border:none;}
#backstageButton a:hover {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::Background]]; border:none;}
#backstagePanel {background:[[ColorPalette::Background]]; border-color: [[ColorPalette::Background]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]];}
.backstagePanelFooter .button {border:none; color:[[ColorPalette::Background]];}
.backstagePanelFooter .button:hover {color:[[ColorPalette::Foreground]];}
#backstageCloak {background:[[ColorPalette::Foreground]]; opacity:0.6; filter:alpha(opacity=60);}
/*}}}*/
/*{{{*/
* html .tiddler {height:1%;}

body {font-size:.75em; font-family:arial,helvetica; margin:0; padding:0;}

h1,h2,h3,h4,h5,h6 {font-weight:bold; text-decoration:none;}
h1,h2,h3 {padding-bottom:1px; margin-top:1.2em;margin-bottom:0.3em;}
h4,h5,h6 {margin-top:1em;}
h1 {font-size:1.35em;}
h2 {font-size:1.25em;}
h3 {font-size:1.1em;}
h4 {font-size:1em;}
h5 {font-size:.9em;}

hr {height:1px;}

a {text-decoration:none;}

dt {font-weight:bold;}

ol {list-style-type:decimal;}
ol ol {list-style-type:lower-alpha;}
ol ol ol {list-style-type:lower-roman;}
ol ol ol ol {list-style-type:decimal;}
ol ol ol ol ol {list-style-type:lower-alpha;}
ol ol ol ol ol ol {list-style-type:lower-roman;}
ol ol ol ol ol ol ol {list-style-type:decimal;}

.txtOptionInput {width:11em;}

#contentWrapper .chkOptionInput {border:0;}

.externalLink {text-decoration:underline;}

.indent {margin-left:3em;}
.outdent {margin-left:3em; text-indent:-3em;}
code.escaped {white-space:nowrap;}

.tiddlyLinkExisting {font-weight:bold;}
.tiddlyLinkNonExisting {font-style:italic;}

/* the 'a' is required for IE, otherwise it renders the whole tiddler in bold */
a.tiddlyLinkNonExisting.shadow {font-weight:bold;}

#mainMenu .tiddlyLinkExisting,
	#mainMenu .tiddlyLinkNonExisting,
	#sidebarTabs .tiddlyLinkNonExisting {font-weight:normal; font-style:normal;}
#sidebarTabs .tiddlyLinkExisting {font-weight:bold; font-style:normal;}

.header {position:relative;}
.header a:hover {background:transparent;}
.headerShadow {position:relative; padding:4.5em 0 1em 1em; left:-1px; top:-1px;}
.headerForeground {position:absolute; padding:4.5em 0 1em 1em; left:0; top:0;}

.siteTitle {font-size:3em;}
.siteSubtitle {font-size:1.2em;}

#mainMenu {position:absolute; left:0; width:10em; text-align:right; line-height:1.6em; padding:1.5em 0.5em 0.5em 0.5em; font-size:1.1em;}

#sidebar {position:absolute; right:3px; width:16em; font-size:.9em;}
#sidebarOptions {padding-top:0.3em;}
#sidebarOptions a {margin:0 0.2em; padding:0.2em 0.3em; display:block;}
#sidebarOptions input {margin:0.4em 0.5em;}
#sidebarOptions .sliderPanel {margin-left:1em; padding:0.5em; font-size:.85em;}
#sidebarOptions .sliderPanel a {font-weight:bold; display:inline; padding:0;}
#sidebarOptions .sliderPanel input {margin:0 0 0.3em 0;}
#sidebarTabs .tabContents {width:15em; overflow:hidden;}

.wizard {padding:0.1em 1em 0 2em;}
.wizard h1 {font-size:2em; font-weight:bold; background:none; padding:0; margin:0.4em 0 0.2em;}
.wizard h2 {font-size:1.2em; font-weight:bold; background:none; padding:0; margin:0.4em 0 0.2em;}
.wizardStep {padding:1em 1em 1em 1em;}
.wizard .button {margin:0.5em 0 0; font-size:1.2em;}
.wizardFooter {padding:0.8em 0.4em 0.8em 0;}
.wizardFooter .status {padding:0 0.4em; margin-left:1em;}
.wizard .button {padding:0.1em 0.2em;}

#messageArea {position:fixed; top:2em; right:0; margin:0.5em; padding:0.5em; z-index:2000; _position:absolute;}
.messageToolbar {display:block; text-align:right; padding:0.2em;}
#messageArea a {text-decoration:underline;}

.tiddlerPopupButton {padding:0.2em;}
.popupTiddler {position: absolute; z-index:300; padding:1em; margin:0;}

.popup {position:absolute; z-index:300; font-size:.9em; padding:0; list-style:none; margin:0;}
.popup .popupMessage {padding:0.4em;}
.popup hr {display:block; height:1px; width:auto; padding:0; margin:0.2em 0;}
.popup li.disabled {padding:0.4em;}
.popup li a {display:block; padding:0.4em; font-weight:normal; cursor:pointer;}
.listBreak {font-size:1px; line-height:1px;}
.listBreak div {margin:2px 0;}

.tabset {padding:1em 0 0 0.5em;}
.tab {margin:0 0 0 0.25em; padding:2px;}
.tabContents {padding:0.5em;}
.tabContents ul, .tabContents ol {margin:0; padding:0;}
.txtMainTab .tabContents li {list-style:none;}
.tabContents li.listLink { margin-left:.75em;}

#contentWrapper {display:block;}
#splashScreen {display:none;}

#displayArea {margin:1em 17em 0 14em;}

.toolbar {text-align:right; font-size:.9em;}

.tiddler {padding:1em 1em 0;}

.missing .viewer,.missing .title {font-style:italic;}

.title {font-size:1.6em; font-weight:bold;}

.missing .subtitle {display:none;}
.subtitle {font-size:1.1em;}

.tiddler .button {padding:0.2em 0.4em;}

.tagging {margin:0.5em 0.5em 0.5em 0; float:left; display:none;}
.isTag .tagging {display:block;}
.tagged {margin:0.5em; float:right;}
.tagging, .tagged {font-size:0.9em; padding:0.25em;}
.tagging ul, .tagged ul {list-style:none; margin:0.25em; padding:0;}
.tagClear {clear:both;}

.footer {font-size:.9em;}
.footer li {display:inline;}

.annotation {padding:0.5em; margin:0.5em;}

* html .viewer pre {width:99%; padding:0 0 1em 0;}
.viewer {line-height:1.4em; padding-top:0.5em;}
.viewer .button {margin:0 0.25em; padding:0 0.25em;}
.viewer blockquote {line-height:1.5em; padding-left:0.8em;margin-left:2.5em;}
.viewer ul, .viewer ol {margin-left:0.5em; padding-left:1.5em;}

.viewer table, table.twtable {border-collapse:collapse; margin:0.8em 1.0em;}
.viewer th, .viewer td, .viewer tr,.viewer caption,.twtable th, .twtable td, .twtable tr,.twtable caption {padding:3px;}
table.listView {font-size:0.85em; margin:0.8em 1.0em;}
table.listView th, table.listView td, table.listView tr {padding:0 3px 0 3px;}

.viewer pre {padding:0.5em; margin-left:0.5em; font-size:1.2em; line-height:1.4em; overflow:auto;}
.viewer code {font-size:1.2em; line-height:1.4em;}

.editor {font-size:1.1em;}
.editor input, .editor textarea {display:block; width:100%; font:inherit;}
.editorFooter {padding:0.25em 0; font-size:.9em;}
.editorFooter .button {padding-top:0; padding-bottom:0;}

.fieldsetFix {border:0; padding:0; margin:1px 0px;}

.zoomer {font-size:1.1em; position:absolute; overflow:hidden;}
.zoomer div {padding:1em;}

* html #backstage {width:99%;}
* html #backstageArea {width:99%;}
#backstageArea {display:none; position:relative; overflow: hidden; z-index:150; padding:0.3em 0.5em;}
#backstageToolbar {position:relative;}
#backstageArea a {font-weight:bold; margin-left:0.5em; padding:0.3em 0.5em;}
#backstageButton {display:none; position:absolute; z-index:175; top:0; right:0;}
#backstageButton a {padding:0.1em 0.4em; margin:0.1em;}
#backstage {position:relative; width:100%; z-index:50;}
#backstagePanel {display:none; z-index:100; position:absolute; width:90%; margin-left:3em; padding:1em;}
.backstagePanelFooter {padding-top:0.2em; float:right;}
.backstagePanelFooter a {padding:0.2em 0.4em;}
#backstageCloak {display:none; z-index:20; position:absolute; width:100%; height:100px;}

.whenBackstage {display:none;}
.backstageVisible .whenBackstage {display:block;}
/*}}}*/
/***
StyleSheet for use when a translation requires any css style changes.
This StyleSheet can be used directly by languages such as Chinese, Japanese and Korean which need larger font sizes.
***/
/*{{{*/
body {font-size:0.8em;}
#sidebarOptions {font-size:1.05em;}
#sidebarOptions a {font-style:normal;}
#sidebarOptions .sliderPanel {font-size:0.95em;}
.subtitle {font-size:0.8em;}
.viewer table.listView {font-size:0.95em;}
/*}}}*/
/*{{{*/
@media print {
#mainMenu, #sidebar, #messageArea, .toolbar, #backstageButton, #backstageArea {display: none !important;}
#displayArea {margin: 1em 1em 0em;}
noscript {display:none;} /* Fixes a feature in Firefox 1.5.0.2 where print preview displays the noscript content */
}
/*}}}*/
<!--{{{-->
<div class='toolbar' role='navigation' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date'></span>)</div>
<div class='tagging' macro='tagging'></div>
<div class='tagged' macro='tags'></div>
<div class='viewer' macro='view text wikified'></div>
<div class='tagClear'></div>
<!--}}}-->
<script>localStorage.curso="40HorasEletivo";</script><<tiddler cursoIndex>>
<<tiddler Curso with:40horasLista>>
IntroCurso#
EscalsVida#
Complexidade_Resiliencia#
IntroPermacultura#
PrincipiosDesenho#
Agua#
AguaVerde#
Nutricao#
Hortas#
PlantasMedicinais#
SAFs#
Solos#
PraticasSimples#
ReplanejarEscola#
Projetos#
PlanejarIntervencao#
Praticas#
Apresentações#
<<tiddler SideBarOptions>>
{{fourcolumns{<<tiddler SideBarTabs>>}}}
<script>localStorage.tema="Administracao";</script><<tiddler IndexTiddler>>
<script>localStorage.curso="AguaIntegral";</script><<tiddler cursoIndex>>
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Aprendizagem";</script><<tiddler IndexTiddler>>
Escreva o texto para 'Auto-Regulacao'
{{outline{outline}}}
{{outlineDiscuss{discusslkdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjasdasddaDAFGGFHTRGARETTTHYTHDFJDYytdjydtjfyukukfujy
sdfdsf}}}
{{groupbox{groupbox}}}
{{menubox{menubox efdsfsd sdfsdfsf fssdsgfdgdgfd dfgfdsdfsfgfdgfd dfg fdgdfg fdgdghgfhgf fghgfhgf
dadad}}}
{{flexbox{flesboxuuuu uuuuuuuuuuuuuuu uuuuuuuuuuuuuuuuuuu uuuuuuuuuuuuuuuuuu uuuuuuuuuu
dadad}}}
{{bookmarklet{bookmarkletjjjjjjjjjjjjjjjjjjj 
<script src="textToLatex.js"></script>
<script src="removeReturns.js"></script>
<script>localStorage.url="comoUsar/ApresentComoUsar";localStorage.oneMenu="inicio";config.refreshers.content(document.getElementById("notesMenu"));config.refreshers.content(document.getElementById("oneMenu"));</script>




<script>
var bibliografiaURL="bibliografia/"+localStorage.itema+".html";
//return bibliografiaURL;

    var http=new XMLHttpRequest();
    http.open('HEAD', bibliografiaURL, false);
    http.send();
if(http.status!=404){return '<html><iframe src="bibliografia/'+localStorage.itema+'.html" width=100% height=300px></iframe></ht'+'ml>';}
if(http.status==404){return "nao referencias por isso";}
</script>
BiblioTeca para tema: <<wikify {{localStorage.biblioteca}}>><script sc="dir.php?path=biblioteca/'+localStorage.biblioteca+'"></script><script>
var out="";
var bibliotecaURL="biblioteca/"+localStorage.biblioteca+"/";
//return bibliotecaURL;
var biblioteca=getText(bibliotecaURL+"lista");
biblioteca=biblioteca.split("#");
for(bib=0;bib<biblioteca.length;bib++)
{
out+='<script label="'+biblioteca[bib]+'">window.open("'+bibliotecaURL+biblioteca[bib]+'","_here","",true);</scr'+'ipt><br>';
}
return out;
</script>
/%
Assumes that the txt file has a @biblioteca{BIBLIOTECA}endBiblioteca# entry...in which case an icon appears in noteMenu and creates a dropdown list that lists the books in biblioteca/BIBLIOTECA..... using dir.php to generate the list....the code here simply lists the items and open new window for the PDF chosen................NOTA...BIBLIOTECA normaly set to tema...unless txt changes it!!
%/



{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Biofilia";</script><<tiddler IndexTiddler>>
<script>localStorage.curso="Biofilia_Topofilia";</script><<tiddler cursoIndex>>
Escreva o texto para 'Biofilia_Topofilia/IntroProjeto-apresenta.pdf'
<script>
// check that PDF exists for $1...if so make it available through pdf icon
var PDFDoc=localStorage.curso+"/$1.pdf";
//return " looking for "+PDFDoc;
    var http=new XMLHttpRequest();
    http.open('HEAD', PDFDoc, false);
    http.send();
if(http.status!=404){return '[[downloadPDF|'+PDFDoc+']]<<setIcon Logos/pdf.png "" notext>'+'>';}
return "";
</script>
<<wikify {{localStorage.citacao}}>>
/***
|Name|CollapseTiddlersPlugin|
|Source|http://gensoft.revhost.net/Collapse.html|
|Version|2008.10.05|
|Author|Bradley Meck (modified by ELS)|
|License|unknown|
|~CoreVersion|2.1|
|Type|plugin|
|Requires|CollapsedTemplate|
|Overrides||
|Description|show/hide content of a tiddler while leaving tiddler title visible|

|ELS 10/5/2008: collapseAll() and expandAll(): added "return false" to button handlers to prevent IE page transition |
|ELS 3/6/2008: refactored code for size reduction, readability, and I18N/L10N-readiness.  Also added 'folded' flag to tiddler elements (for use by other plugins that need to know if tiddler is folded (e.g., [[SinglePageModePlugin]]) |
|ELS 10/11/2007: moved [[FoldFirst]] inline script and converted to {{{<<foldFirst>>}}} macro. |
|ELS 9/12/2007: suspend/resume SinglePageMode (SPM/TPM/BPM) when folding/unfolding tiddlers |
|ELS 6/5/2007: add "return false" at the end of each command handler to prevent IE 'page transition' problem. |
|ELS 3/30/2007: add a shadow definition for CollapsedTemplate.  Tweak ViewTemplate shadow so "fold/unfold" and "focus" toolbar items automatically appear when using default templates.  Remove error check for "CollapsedTemplate" existence, since shadow version will now always work as a fallback. |
|ELS 2/24/2006: added fallback to "CollapsedTemplate" if "WebCollapsedTemplate" is not found |
|ELS 2/6/2006: added check for 'readOnly' flag to use alternative "WebCollapsedTemplate" |

***/

//{{{
config.shadowTiddlers.CollapsedTemplate=
	"<!--{{{-->\
	<div class='toolbar' macro='toolbar expandTiddler collapseOthers closeTiddler closeOthers +editTiddler permalink references jump'></div>\
	<div class='title' macro='view title'></div>\
	<!--}}}-->";

// automatically tweak shadow ViewTemplate to add "collapseTiddler collapseOthers" commands
config.shadowTiddlers.ViewTemplate=config.shadowTiddlers.ViewTemplate.replace(/closeTiddler/,"collapseTiddler collapseOthers closeTiddler");

config.commands.collapseTiddler = {
	text: "compactar",
	tooltip: "Collapse this tiddler",
	collapsedTemplate: "CollapsedTemplate",
	webCollapsedTemplate: "WebCollapsedTemplate",
	handler: function(event,src,title) {
		var e = story.findContainingTiddler(src); if (!e) return false;
		// don't fold tiddlers that are being edited!
		if(story.isDirty(e.getAttribute("tiddler"))) return false;
		var t=config.commands.collapseTiddler.getCollapsedTemplate();
		config.commands.collapseTiddler.saveTemplate(e);
		config.commands.collapseTiddler.display(title,t);
		e.setAttribute("folded","true");
		return false;
	},
	getCollapsedTemplate: function() {
		if (readOnly&&store.tiddlerExists(this.webCollapsedTemplate))
			return this.webCollapsedTemplate;
		else
			return this.collapsedTemplate
	},
	saveTemplate: function(e) {
		if (e.getAttribute("savedTemplate")==undefined)
			e.setAttribute("savedTemplate",e.getAttribute("template"));

	},
	// fold/unfold tiddler with suspend/resume of single/top/bottom-of-page mode
	display: function(title,t) {
		var opt=config.options;
		var saveSPM=opt.chkSinglePageMode; opt.chkSinglePageMode=false;
		var saveTPM=opt.chkTopOfPageMode; opt.chkTopOfPageMode=false;
		var saveBPM=opt.chkBottomOfPageMode; opt.chkBottomOfPageMode=false;
		story.displayTiddler(null,title,t);
		opt.chkBottomOfPageMode=saveBPM;
		opt.chkTopOfPageMode=saveTPM;
		opt.chkSinglePageMode=saveSPM;
	}
}

config.commands.expandTiddler = {
	text: "expandir",
	tooltip: "Expand this tiddler",
	handler: function(event,src,title) {
		var e = story.findContainingTiddler(src); if (!e) return false;
		var t = e.getAttribute("savedTemplate");
		config.commands.collapseTiddler.display(title,t);
		e.setAttribute("folded","false");
		return false;
	}
}

config.macros.collapseAll = {
	text: "compactarTudos",
	tooltip: "Collapse all tiddlers",
	handler: function(place,macroName,params,wikifier,paramString,tiddler){
		createTiddlyButton(place,this.text,this.tooltip,function(){
			story.forEachTiddler(function(title,tiddler){
				if(story.isDirty(title)) return;
				var t=config.commands.collapseTiddler.getCollapsedTemplate();


				config.commands.collapseTiddler.saveTemplate(tiddler);
				config.commands.collapseTiddler.display(title,t);
				tiddler.folded=true;
			});
			return false;
		})
	}
}

config.macros.expandAll = {
	text: "expandirTodos",
	tooltip: "Expand all tiddlers",
	handler: function(place,macroName,params,wikifier,paramString,tiddler){
		createTiddlyButton(place,this.text,this.tooltip,function(){
			story.forEachTiddler(function(title,tiddler){
				var t=config.commands.collapseTiddler.getCollapsedTemplate();
				if(tiddler.getAttribute("template")!=t) return; // re-display only if collapsed
				var t=tiddler.getAttribute("savedTemplate");
				config.commands.collapseTiddler.display(title,t);
				tiddler.folded=false;
			});
			return false;
		})
	}
}

config.commands.collapseOthers = {
	text: "focus",
	tooltip: "Expand this tiddler and collapse all others",
	handler: function(event,src,title) {
		var e = story.findContainingTiddler(src); if (!e) return false;
		story.forEachTiddler(function(title,tiddler) {
			if(story.isDirty(title)) return;
			var t=config.commands.collapseTiddler.getCollapsedTemplate();
			if (e==tiddler) t=e.getAttribute("savedTemplate");
			config.commands.collapseTiddler.saveTemplate(tiddler);
			config.commands.collapseTiddler.display(title,t);
			tiddler.folded=(e!=tiddler);
		})
		return false;
	}
}

// {{{<<foldFirst>>}}} macro forces tiddler to be folded when *initially* displayed.
// Subsequent re-render does NOT re-fold tiddler, but closing/re-opening tiddler DOES cause it to fold first again.
config.macros.foldFirst = {
	handler: function(place,macroName,params,wikifier,paramString,tiddler){
		var e=story.findContainingTiddler(place);
		if (e.getAttribute("foldedFirst")=="true") return; // already been folded once
		var title=e.getAttribute("tiddler")
		var t=config.commands.collapseTiddler.getCollapsedTemplate();
		config.commands.collapseTiddler.saveTemplate(e);
		config.commands.collapseTiddler.display(title,t);
		e.setAttribute("folded","true");
		e.setAttribute("foldedFirst","true"); // only when tiddler is first rendered
		return false;
	}
}
//}}}
<!--{{{-->	<div class='toolbar' macro='toolbar expandTiddler collapseOthers closeTiddler closeOthers +editTiddler permalink references jump'></div>	<div class='title' macro='view title'></div><div macro='tiddler FirstParagraph'></div>	<!--}}}-->
Para comecar a usar este TiddlyWiki vazio tera de modificar os seguintes tiddlers:
* SiteTitle & SiteSubtitle: O te&shy;tulo e o subte&shy;tulo do site, como pode ver acima (depois de guardar as alteracoes, eles aparecerao tambem na barra de te&shy;tulo do browser)
* MainMenu: O menu (usualmente e&nbsp; esquerda)
* DefaultTiddlers: Contem o nome dos tiddlers que pretende que aparecam quando o TiddlyWiki e aberto
Sera tambem necessario inserir o nome de utilizador que servira para assinar as edicoes: <<option txtUserName>>
<script>localStorage.tema="comoUsar";</script><<tiddler IndexTiddler>>
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Complexidade";</script><<tiddler IndexTiddler>>
config.options.chkHttpReadOnly = false;
config.options.chkAutoSave = true;
readOnly=false;
<script>
var latexText=getTex("TestingTradutor");

latexText=latexText.replace("newpage","");
latexText=latexText.replace("begin{itemize}","");
latexText=latexText.replace("end{itemize}","");
latexText=latexText.replace(/item /g,"*");
latexText=latexText.replace(/sub/g,"");
latexText=latexText.replace("section{","");

var moreItems="yes";
while (moreItems=="yes")
{
if (latexText.indexOf("imagemS"}!=-1)
{var startImagem=latexText.indexOf("imagem")+8;
var endImagem=latexText.substng(startImagem).indexOf("}{")+startImagem;
var endRef=latexText.substring(endImagem).indexOf("}")+endImagem;
latexText.substrng(startImagem-8,endRef)="[img(400px,auto}[latexTest.substrng(startImagem,endImagem)]]"
sessionStorage.refs=sessionStorage.refs+"n"+latexText.substrng(endImagem+2,endRef);}

if (latexText.indexOf("imagemH"}!=-1)
{var startImagem=latexText.indexOf("imagem")+8;
var endImagem=latexText.substng(startImagem).indexOf("}{")+startImagem;
var endCaption=latexText.substring(endImagem).indexOf("}")+endImagem;
var endRef=latexText.substring(endCaption).indexOf("}")+endCaption;
latexText.substrng(startImagem-8,endRef)="[img(400px,auto}[latexText.substrng(startImagem,endImagem)]]<br>"+latexText.substng{endImagem,endCaption);
sessionStorage.refs=sessionStorage.refs+"<br>"+latexText.substrng(endImagem+2,endRef}










//latexText=latexText.replace(//g,"");
latexText=latexText.split("n");
//return "items="+latexText.length;
for(i=0;i<latexText.length;i++)
{
if(i==0)
{


latexText[i]=latexText[i].replace("}","");
}
latexText[i]=latexText[i].replace(/sub/g,"");
if(latexText[i].indexOf("section")!=-1)
{


if(latexText[i].indexOf("imagemS")!=-1)
{
//return latexText[i];
latexText[i]=latexText[i].replace(/imagemS{/,"[img(200px,auto)");
latexText[i]=latexText[i].replace(/}{/,"][");
latexText[i]=latexText[i].replace(/}/,"]");
//return latexText[i];
//latexText[i]=latexText[i].replace(/../,"TT..");
//return latexText[i];
}

if(latexText[i].indexOf("imagemH")!=-1)
{
//return latexText[i];
latexText[i]=latexText[i].replace(/imagemS{/,"[img(600px,auto)");
latexText[i]=latexText[i].replace(/}{/,"][");
latexText[i]=latexText[i].replace(/}/,"]");
//return latexText[i];
//latexText[i]=latexText[i].replace(/../,"TT..");
//return latexText[i];
}

if(latexText[i].indexOf("imagemG")!=-1)
{
//return latexText[i];
latexText[i]=latexText[i].replace(/imagemS{/,"[img(600px,auto)");
latexText[i]=latexText[i].replace(/}{/,"][");
latexText[i]=latexText[i].replace(/}/,"]");
//return latexText[i];
//latexText[i]=latexText[i].replace(/../,"TT..");
//return latexText[i];
}



}
latexText=latexText.join("n");
return latexText;
</script>



var notepainel="";

var latexText=getTex("Bitupita/CriteriaArquiteto");
//return latexText;
var beginDoc=latexText.indexOf("begin{document}");
var endDoc=latexText.indexOf("end{document}");
//latexText=latexText.substring(beginDoc+17,endDoc-1);
//return latexDoc;

///// heading ////

var head=latexText.indexOf("section{");
//return "head="+head;
var endHead=latexText.indexOf("}");
//return "end="+endHead;
sessionStorage.head=latexText.substring(head+8,endHead);
latexText=latexText.substring(endHead+1);

//// sidenotes /////

var startNote=latexText.indexOf("note{");
//return "start="+startNote;
//return latexText.substring(startNote+5);
var endNotePainel=latexText.substring(startNote+5).indexOf("cm}");
//return "endPainel="+endNotePainel;
//return "endNote="+latexText.substring(startNote+5,endNotePainel+startNote+8);
var endNote=latexText.substring(endNotePainel+startNote+1).indexOf("}{");
//return "endNote="+endNote;
notepainel=latexText.substring(startNote+5,startNote+endNote+endNotePainel);
var thisNote=latexText.substring(startNote-1,endNotePainel+9+startNote);
latexText=latexText.replace(thisNote,"");
return latexText;

///need to check for other notes in item///////////////////


//// refs /////

////  images ////

//// itemize lists ////



/***
|Name|CoreTweaks|
|Source|http://www.TiddlyTools.com/#CoreTweaks|
|Version||
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.2.0|
|Type|plugin|
|Description|a small collection of overrides to TW core functions|
This tiddler contains small changes to TW core functions that correct or enhance standard features or behaviors.
***/
//{{{
// calculate TW version number - used to determine which tweaks should be applied
var ver=version.major+version.minor/10+version.revision/100;
//}}}
/***
----

***/
// // to be fixed in 2.6.0:
// // {{block{
/***
!!!1151 adjust popup placement when root element is in scrolled DIV
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/1151
When a popup link is placed inside a DIV with style "overflow:scroll" or "overflow:auto" and that DIV is then scrolled, the position of the resulting popup appears further down the page that intended, because it is not adjusting for the relative scroll offset of the containing DIV.  This tweak patches the Popup.place() function to calculate and subtract the current scroll offset from the computed popup position, so that it appears in the correct location on the page.

Test case: //(scroll to the bottom of this DIV and click on "test popup")//
{{groupbox{
 <<tiddler ScrollBox with: CoreTweaks##1151test 12em>>}}}/%
!1151test
<<tiddler About>>
<<showPopup tiddler:About label:"test popup" tip:About popupClass:sticky>>
!end
%/
***/
//{{{
window.findScrollOffsetX=function(obj) {
	var x=0;
	while(obj) {
		if (obj.scrollLeft && obj.nodeName!='HTML')
			x+=obj.scrollLeft;
		obj=obj.parentNode;
	}
	return -x;
}

window.findScrollOffsetY=function(obj) {
	var y=0;
	while(obj) {
		if (obj.scrollTop && obj.nodeName!='HTML')
			y+=obj.scrollTop;
		obj=obj.parentNode;
	}
	return -y;
}

var fn=Popup.place.toString();
if (fn.indexOf('findScrollOffsetX')==-1) { // only once
	fn=fn.replace(/var\s*rootLeft\s*=/,'var rootLeft = window.findScrollOffsetX(root) +');
	fn=fn.replace(/var\s*rootTop\s*=/,'var rootTop = window.findScrollOffsetY(root) +');
	eval('Popup.place='+fn);
}
//}}}
// // }}}}}}// // {{block{
/***
!!!1147 tiddler macro with params does not refresh
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/1147
when the {{{<<tiddler SomeTiddler>>}}} macro is handled, the resulting span has extra attributes: {{{refresh='content'}}} and {{{tiddler='SomeTiddler'}}}.  If SomeTiddler is changed, {{{store.notify('SomeTiddler')}}} triggers {{{refreshDisplay()}}}, which automatically re-renders transcluded content in any span that has these extra attributes.  However, when additional arguments are passed by using {{{<<tiddler SomeTiddler with: arg arg arg ...>>}}} then the resulting span does NOT get the extra attributes noted above and, as a consequence, the transcluded content is not being refreshed, even though the underlying tiddler has changed

To correct this, in {{{config.macros.tiddler.handler}}}:
*set the 'refresh' and 'tiddler' attributes even when arguments are present in the macro
*store the arguments themselves in an attribute (e.g, 'args'), using as a space-separated, bracketed list
Then, in {{{config.refreshers.content}}}:
*retrieve the stored arguments (if any) and the tiddler source
*substitute arguments into source and re-render the span with the updated content

***/
//{{{
config.refreshers.content=function(e,changeList) {
		var title = e.getAttribute("tiddler");
		var force = e.getAttribute("force");
		var args = e.getAttribute("args"); // ADDED
		if(force != null || changeList == null || changeList.indexOf(title) != -1) {
			removeChildren(e);
//			wikify(store.getTiddlerText(title,""),e,null,store.fetchTiddler(title)); // REMOVED
			config.macros.tiddler.transclude(e,title,args); // ADDED
			return true;
		} else
			return false;
};

config.macros.tiddler.handler=function(place,macroName,params,wikifier,paramString,tiddler) {
	params = paramString.parseParams("name",null,true,false,true);
	var names = params[0]["name"];
	var tiddlerName = names[0];
	var className = names[1] || null;
	var args = params[0]["with"];
	var wrapper = createTiddlyElement(place,"span",null,className);
//	if(!args) { // REMOVED
		wrapper.setAttribute("refresh","content");
		wrapper.setAttribute("tiddler",tiddlerName);
// 	} // REMOVED
	if(args!==undefined) wrapper.setAttribute("args",'[['+args.join(']] [[')+']]'); // ADDED
	this.transclude(wrapper,tiddlerName,args); // REFACTORED TO ...tiddler.transclude
}

// REFACTORED FROM ...tiddler.handler
config.macros.tiddler.transclude=function(wrapper,tiddlerName,args) {
	var text = store.getTiddlerText(tiddlerName); if (!text) return;
	var stack = config.macros.tiddler.tiddlerStack;
	if(stack.indexOf(tiddlerName) !== -1) return;
	stack.push(tiddlerName);
	try {
		if (typeof args == "string") args=args.readBracketedList(); // ADDED
		var n = args ? Math.min(args.length,9) : 0;
		for(var i=0; i<n; i++) {
			var placeholderRE = new RegExp("\\$" + (i + 1),"mg");
			text = text.replace(placeholderRE,args[i]);
		}
		config.macros.tiddler.renderText(wrapper,text,tiddlerName,null); // REMOVED UNUSED 'params'
	} finally {
		stack.pop();
	}
};
//}}}
// // }}}}}}// // {{block{
/***
!!!1134 allow leading whitespace in section headings / TBD handle shadow tiddler sections
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/1134
This tweak REPLACES and extends {{{store.getTiddlerText()}}} so it can return sections defined in shadow tiddlers as well as permitting use of leading whitespace in section headings.
***/
//{{{
TiddlyWiki.prototype.getTiddlerText = function(title,defaultText)
{
	if(!title) return defaultText;
	var parts = title.split(config.textPrimitives.sectionSeparator);
	var title = parts[0];
	var section = parts[1];
	var parts = title.split(config.textPrimitives.sliceSeparator);
	var title = parts[0];
	var slice = parts[1]?this.getTiddlerSlice(title,parts[1]):null;
	if(slice) return slice;
	var tiddler = this.fetchTiddler(title);
	var text = defaultText;
	if(this.isShadowTiddler(title))
		text = this.getShadowTiddlerText(title);
	if(tiddler)
		text = tiddler.text;
	if(!section) return text;
	var re = new RegExp("(^!{1,6}[ \t]*" + section.escapeRegExp() + "[ \t]*\n)","mg");
	re.lastIndex = 0;
	var match = re.exec(text);
	if(match) {
		var t = text.substr(match.index+match[1].length);
		var re2 = /^!/mg;
		re2.lastIndex = 0;
		match = re2.exec(t); //# search for the next heading
		if(match)
			t = t.substr(0,match.index-1);//# don't include final \n
		return t;
	}
	return defaultText;
};
//}}}
// // }}}}}}// // {{block{
/***
!!!824 ~WindowTitle - alternative to combined ~SiteTitle/~SiteSubtitle in window titlebar
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/824 - OPEN
This tweak allows definition of an optional [[WindowTitle]] tiddler that, when present, provides alternative text for display in the browser window's titlebar, instead of using the combined text content from [[SiteTitle]] and [[SiteSubtitle]] (which will still be displayed as usual in the TiddlyWiki document header area).

Note: this ticket replaces http://trac.tiddlywiki.org/ticket/401 (closed), which proposed using a custom [[PageTitle]] tiddler for this purpose.  ''If you were using the previous '401 ~PageTitle' tweak, you will need to rename [[PageTitle]] to [[WindowTitle]] to continue to use your custom window title text''
***/
//{{{
config.shadowTiddlers.WindowTitle='<<tiddler SiteTitle>> - <<tiddler SiteSubtitle>>';
window.getPageTitle=function() { return wikifyPlain('WindowTitle'); }
store.addNotification('WindowTitle',refreshPageTitle); // so title stays in sync with tiddler changes
//}}}
// // }}}}}}// // {{block{
/***
!!!471 'creator' field for new tiddlers
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/471 - OPEN
This tweak HIJACKS the core's saveTiddler() function to automatically add a 'creator' field to a tiddler when it is FIRST created. You can use """<<view creator>>""" (or """<<view creator wikified>>""" if you prefer) to show this value embedded directly within the tiddler content, or {{{<span macro="view creator"></span>}}} in the ViewTemplate and/or EditTemplate to display the creator value in each tiddler.  
***/
//{{{
// hijack saveTiddler()
TiddlyWiki.prototype.CoreTweaks_creatorSaveTiddler=TiddlyWiki.prototype.saveTiddler;
TiddlyWiki.prototype.saveTiddler=function(title,newTitle,newBody,modifier,modified,tags,fields)
{
	var existing=store.tiddlerExists(title);
	var tiddler=this.CoreTweaks_creatorSaveTiddler.apply(this,arguments);
	if (!existing) store.setValue(title,'creator',config.options.txtUserName);
	return tiddler;
}
//}}}
// // }}}}}}
// // fixed in ~TW2.4.3
// // {{block{
/***
!!!444 'tiddler' and 'place' - global variables for use in computed macro parameters
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/444 - CLOSED:FIXED - TW2.4.3 - http://trac.tiddlywiki.org/changeset/8367
When invoking a macro, this tweak makes the current containing tiddler object and DOM rendering location available as global variables (window.tiddler and window.place, respectively).  These globals can then be used within //computed macro parameters// to retrieve tiddler-relative and/or DOM-relative values or perform tiddler-specific side-effect functionality.
***/
//{{{
if (ver<2.43) {
window.coreTweaks_invokeMacro = window.invokeMacro;
window.invokeMacro = function(place,macro,params,wikifier,tiddler) {
	var here=story.findContainingTiddler(place);
	window.tiddler=here?store.getTiddler(here.getAttribute('tiddler')):tiddler;
	window.place=place;
	window.coreTweaks_invokeMacro.apply(this,arguments);
}
}
//}}}
// // }}}}}}
// // fixed in ~TW2.4.2:
// // {{block{
/***
!!!823 apply option values via paramifiers (e.g. #chk...and #txt...)
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/823 - CLOSED:FIXED - TW2.4.2 http://trac.tiddlywiki.org/changeset/7988
This tweak extends and ''//replaces//'' the core {{{invokeParamifier()}}} function to support use of ''option paramifiers'' that set TiddlyWiki option values on-the-fly, directly from a document URL.

If a paramifier begins with 'chk' (checkbox) or 'txt' (text field), it's value will be automatically stored in {{{config.options.*}}}, adding to or overriding any existing 'chk' or 'txt' option values that may have already been loaded from browser cookies and/or assigned by the TW core or plugin initialization functions using hard-coded default values.  Note: option values that have been overriden by paramifiers are only applied during the current document session, and are not //automatically// retained.  However, if you edit an overridden option value during that session, then the modified value is, of course, saved in a browser cookie, as usual.
***/
//{{{
if (ver<2.42) {
function invokeParamifier(params,handler)
{
	if(!params || params.length == undefined || params.length <= 1)
		return;
	for(var t=1; t<params.length; t++) {
		var p = config.paramifiers[params[t].name];
		if(p && p[handler] instanceof Function)
			p[handler](params[t].value);
		else { // not a paramifier with handler()... check for an 'option' prefix
			var h=config.optionHandlers[params[t].name.substr(0,3)];
			if (h && h.set instanceof Function)
				h.set(params[t].name,params[t].value);
		}
	}
}
}
//}}}
// // }}}}}}
// // closed: won't fix //(leave as core tweaks)//
// // {{block{
/***
!!!637 TiddlyLink tooltip - custom formatting
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/637 - CLOSED: WON'T FIX
This tweak modifies the tooltip format that appears when you mouseover a link to a tiddler.  It adds an option to control the date format, as well as displaying the size of the tiddler (in bytes)

Tiddler link tooltip format:
{{stretch{<<option txtTiddlerLinkTootip>>}}}
^^where: %0=title, %1=username, %2=modification date, %3=size in bytes, %4=description slice^^
Tiddler link tooltip date format:
{{stretch{<<option txtTiddlerLinkTooltipDate>>}}}
***/
//{{{
config.messages.tiddlerLinkTooltip='%0 - %1, %2 (%3 bytes) - %4';
config.messages.tiddlerLinkTooltipDate='DDD, MMM DDth YYYY 0hh12:0mm AM';

config.options.txtTiddlerLinkTootip=
	config.options.txtTiddlerLinkTootip||config.messages.tiddlerLinkTooltip;
config.options.txtTiddlerLinkTooltipDate=
	config.options.txtTiddlerLinkTooltipDate||config.messages.tiddlerLinkTooltipDate;

Tiddler.prototype.getSubtitle = function() {
	var modifier = this.modifier;
	if(!modifier) modifier = config.messages.subtitleUnknown;
	var modified = this.modified;
	if(modified) modified = modified.formatString(config.options.txtTiddlerLinkTooltipDate);
	else modified = config.messages.subtitleUnknown;
	var descr=store.getTiddlerSlice(this.title,'Description')||'';
	return config.options.txtTiddlerLinkTootip.format([this.title,modifier,modified,this.text.length,descr]);
};
//}}}
// // }}}}}}// // {{block{
/***
!!!607 add HREF link on permaview command
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/607 - CLOSED: WON'T FIX
This tweak automatically sets the HREF for the 'permaview' sidebar command link so you can use the 'right click' context menu for faster, easier bookmarking.  Note that this does ''not'' automatically set the permaview in the browser's current location URL... it just sets the HREF on the command link.  You still have to click the link to apply the permaview.
***/
//{{{
config.macros.permaview.handler = function(place)
{
	var btn=createTiddlyButton(place,this.label,this.prompt,this.onClick);
	addEvent(btn,'mouseover',this.setHREF);
	addEvent(btn,'focus',this.setHREF);
};
config.macros.permaview.setHREF = function(event){
	var links = [];
	story.forEachTiddler(function(title,element) {
		links.push(String.encodeTiddlyLink(title));
	});
	var newURL=document.location.href;
	var hashPos=newURL.indexOf('#');
	if (hashPos!=-1) newURL=newURL.substr(0,hashPos);
	this.href=newURL+'#'+encodeURIComponent(links.join(' '));
}
//}}}
// // }}}}}}// // {{block{
/***
!!!458 add permalink-like HREFs on internal TiddlyLinks
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/458 - CLOSED: WON'T FIX
This tweak assigns a permalink-like HREF to internal Tiddler links (which normally do not have any HREF defined).  This permits the link's context menu (right-click) to include 'open link in another window/tab' command.  Based on a request from Dustin Spicuzza.
***/
//{{{
window.coreTweaks_createTiddlyLink=window.createTiddlyLink;
window.createTiddlyLink=function(place,title,includeText,theClass,isStatic,linkedFromTiddler,noToggle)
{
	// create the core button, then add the HREF (to internal links only)
	var link=window.coreTweaks_createTiddlyLink.apply(this,arguments);
	if (!isStatic)
		link.href=document.location.href.split('#')[0]+'#'+encodeURIComponent(String.encodeTiddlyLink(title));
	return link;
}
//}}}
// // }}}}}}
// // open tickets:
// // {{block{
/***
!!!608/609/610 toolbars - toggles, separators and transclusion
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/608 - OPEN (more/less toggle)
http://trac.tiddlywiki.org/ticket/609 - OPEN (separators)
http://trac.tiddlywiki.org/ticket/610 - OPEN (wikify tiddler/slice/section content)

This combination tweak extends the """<<toolbar>>""" macro to add use of '<' to insert a 'less' menu command (the opposite of '>' == 'more'), as well as use of '*' to insert linebreaks and "!" to insert a vertical line separator between toolbar items.  In addition, this tweak add the ability to use references to tiddlernames, slices, or sections and render their content inline within the toolbar, allowing easy creation of new toolbar commands using TW content (such as macros, links, inline scripts, etc.)

To produce a one-line style, with "less" at the end, use
| ViewToolbar| foo bar baz > yabba dabba doo < |
or to use a two-line style with more/less toggle:
| ViewToolbar| foo bar baz > < * yabba dabba doo |
***/
//{{{
merge(config.macros.toolbar,{
	moreLabel: 'more\u25BC',
	morePrompt: 'Show additional commands',
	lessLabel: '\u25C4less',
	lessPrompt: 'Hide additional commands',
	separator: '|'
});
config.macros.toolbar.onClickMore = function(ev) {
	var e = this.nextSibling;
	e.style.display = 'inline'; // show menu
	this.style.display = 'none'; // hide button
	return false;
};
config.macros.toolbar.onClickLess = function(ev) {
	var e = this.parentNode;
	var m = e.previousSibling;
	e.style.display = 'none'; // hide menu
	m.style.display = 'inline'; // show button
	return false;
};
config.macros.toolbar.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
	for(var t=0; t<params.length; t++) {
		var c = params[t];
		switch(c) {
			case '!':  // ELS - SEPARATOR (added)
				createTiddlyText(place,this.separator);
				break;
			case '*':  // ELS - LINEBREAK (added)
				createTiddlyElement(place,'BR');
				break;
			case '<': // ELS - LESS COMMAND (added)
				var btn = createTiddlyButton(place,
					this.lessLabel,this.lessPrompt,config.macros.toolbar.onClickLess,'moreCommand');
				break;
			case '>':
				var btn = createTiddlyButton(place,
					this.moreLabel,this.morePrompt,config.macros.toolbar.onClickMore,'moreCommand');
				var e = createTiddlyElement(place,'span',null,'moreCommand');
				e.style.display = 'none';
				place = e;
				break;
			default:
				var theClass = '';
				switch(c.substr(0,1)) {
					case '+':
						theClass = 'defaultCommand';
						c = c.substr(1);
						break;
					case '-':
						theClass = 'cancelCommand';
						c = c.substr(1);
						break;
				}
				if(c in config.commands)

					this.createCommand(place,c,tiddler,theClass);
				else { // ELS - WIKIFY TIDDLER/SLICE/SECTION (added)
					if (c.substr(0,1)=='~') c=c.substr(1); // ignore leading ~
					var txt=store.getTiddlerText(c);
					if (txt) {
						// trim any leading/trailing newlines
						txt=txt.replace(/^\n*/,'').replace(/\n*$/,'');
						// trim PRE format wrapper if any
						txt=txt.replace(/^\{\{\{\n/,'').replace(/\n\}\}\}$/,'');
						// render content into toolbar
						wikify(txt,createTiddlyElement(place,'span'),null,tiddler);
					}
				} // ELS - end WIKIFY CONTENT
				break;
		}
	}
};
//}}}
// // }}}}}}// // {{block{
/***
!!!529 IE fixup - case-sensitive element lookup of tiddler elements
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/529 - OPEN
This tweak hijacks the standard browser function, document.getElementById(), to work-around the case-INsensitivity error in Internet Explorer (all versions up to and including IE7) //''Note: This tweak is only applied when using IE, and only for lookups of rendered tiddler elements within the containing 'tiddlerDisplay' element.''//
***/
//{{{
if (config.browser.isIE) {
document.coreTweaks_coreGetElementById=document.getElementById;
document.getElementById=function(id) {
	var e=document.coreTweaks_coreGetElementById(id);
	if (!e || !e.parentNode || e.parentNode.id!='tiddlerDisplay') return e;
	for (var i=0; i<e.parentNode.childNodes.length; i++)
		if (id==e.parentNode.childNodes[i].id) return e.parentNode.childNodes[i];
	return null;
};
}
//}}}
// // }}}}}}// // {{block{
/***
!!!890 add conditional test to """<<tiddler>>""" macro
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/890 - OPEN
This tweak extends the {{{<<tiddler>>}}} macro syntax so you can include a javascript-based //test expression// to determine if the tiddler transclusion should be performed:
{{{
<<tiddler TiddlerName if:{{...}} with: param param etc.>>
}}}
If the test is ''true'', then the tiddler is transcluded as usual.  If the test is ''false'', then the transclusion is skipped and //no output is produced//.
***/
//{{{
config.macros.tiddler.if_handler = config.macros.tiddler.handler;
config.macros.tiddler.handler = function(place,macroName,params,wikifier,paramString,tiddler)
{
	params = paramString.parseParams('name',null,true,false,true);
	if (!getParam(params,'if',true)) return;
	this.if_handler.apply(this,arguments);
};
//}}}
// // }}}}}}// // {{block{
/***
!!!831 backslash-quoting for embedding newlines in 'line-mode' formats
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/831 - OPEN
This tweak pre-processes source content to convert 'double-backslash-newline' into {{{<br>}}} before wikify(), so that literal newlines can be embedded in line-mode wiki syntax (e.g., tables, bullets, etc.)
***/
//{{{
window.coreWikify = wikify;
window.wikify = function(source,output,highlightRegExp,tiddler)
{
	if (source) arguments[0]=source.replace(/\\\\\n/mg,'<br>');
	coreWikify.apply(this,arguments);
}
//}}}
// // }}}}}}// // {{block{
/***
!!!683 FireFox3 Import bug: 'browse' button replacement
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/683 - OPEN
The web standard 'type=file' input control that has been used as a local path/file picker for TiddlyWiki no longer works as expected in FireFox3, which has, for security reasons, limited javascript access to this control so that *no* local filesystem path information can be revealed, even when it is intentional and necessary, as it is with TiddlyWiki.  This tweak provides alternative HTML source that patches the backstage import panel.  It replaces the 'type=file' input control with a text+button combination of controls that invokes a system-native secure 'file-chooser' dialog box to provide TiddlyWiki with access to a complete path+filename so that TW functions properly locate user-selected local files.
>Note: ''This tweak also requires http://trac.tiddlywiki.org/ticket/604 - cross-platform askForFilename()''
***/
//{{{
if (window.Components) {
	var fixhtml='<input name="txtBrowse" style="width:30em"><input type="button" value="..."'
		+' onClick="window.browseForFilename(this.previousSibling,true)">';
	var cmi=config.macros.importTiddlers;
	cmi.step1Html=cmi.step1Html.replace(/<input type='file' size=50 name='txtBrowse'>/,fixhtml);
}

merge(config.messages,{selectFile:'Please enter or select a file'}); // ready for I18N translation

window.browseForFilename=function(target,mustExist) { // note: both params are optional
	var msg=config.messages.selectFile;
	if (target && target.title) msg=target.title; // use target field tooltip (if any) as dialog prompt text
	// get local path for current document
	var path=getLocalPath(document.location.href);
	var p=path.lastIndexOf('/'); if (p==-1) p=path.lastIndexOf('\\'); // Unix or Windows
	if (p!=-1) path=path.substr(0,p+1); // remove filename, leave trailing slash
	var file=''
	var result=window.askForFilename(msg,path,file,mustExist); // requires #604
	if (target && result.length) // set target field and trigger handling
		{ target.value=result; target.onchange(); }
	return result; 
}
//}}}
// // }}}}}}// // {{block{
/***
!!!604 cross-platform askForFilename()
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/604 - OPEN
invokes a system-native secure 'file-chooser' dialog box to provide TiddlyWiki with access to a complete path+filename so that TW functions properly locate user-selected local files.
***/
//{{{
window.askForFilename=function(msg,path,file,mustExist) {
	var r = window.mozAskForFilename(msg,path,file,mustExist);
	if(r===null || r===false)
		r = window.ieAskForFilename(msg,path,file,mustExist);
	if(r===null || r===false)
		r = window.javaAskForFilename(msg,path,file,mustExist);
	if(r===null || r===false)
		r = prompt(msg,path+file);
	return r||'';
}

window.mozAskForFilename=function(msg,path,file,mustExist) {
	if(!window.Components) return false;
	try {
		netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
		var nsIFilePicker = window.Components.interfaces.nsIFilePicker;
		var picker = Components.classes['@mozilla.org/filepicker;1'].createInstance(nsIFilePicker);
		picker.init(window, msg, mustExist?nsIFilePicker.modeOpen:nsIFilePicker.modeSave);
		var thispath = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
		thispath.initWithPath(path);
		picker.displayDirectory=thispath;
		picker.defaultExtension='html';
		picker.defaultString=file;
		picker.appendFilters(nsIFilePicker.filterAll|nsIFilePicker.filterText|nsIFilePicker.filterHTML);
		if (picker.show()!=nsIFilePicker.returnCancel)
			var result=picker.file.path;
	}
	catch(ex) { displayMessage(ex.toString()); }
	return result;
}

window.ieAskForFilename=function(msg,path,file,mustExist) {
	if(!config.browser.isIE) return false;
	try {
		var s = new ActiveXObject('UserAccounts.CommonDialog');
		s.Filter='All files|*.*|Text files|*.txt|HTML files|*.htm;*.html|';
		s.FilterIndex=3; // default to HTML files;
		s.InitialDir=path;
		s.FileName=file;
		return s.showOpen()?s.FileName:'';
	}
	catch(ex) { displayMessage(ex.toString()); }
	return result;
}

window.javaAskForFilename=function(msg,path,file,mustExist) {
	if(!document.applets['TiddlySaver']) return false;
	// TBD: implement java-based askFile(...) function
	try { return document.applets['TiddlySaver'].askFile(msg,path,file,mustExist); } 
	catch(ex) { displayMessage(ex.toString()); }
}
//}}}
// // }}}}}}// // {{block{
/***
!!!657 wrap tabs onto multiple lines
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/657 - OPEN
This tweak inserts an extra space element following each tab, allowing them to wrap onto multiple lines if needed.
***/
//{{{
config.macros.tabs.handler = function(place,macroName,params)
{
	var cookie = params[0];
	var numTabs = (params.length-1)/3;
	var wrapper = createTiddlyElement(null,'div',null,'tabsetWrapper ' + cookie);
	var tabset = createTiddlyElement(wrapper,'div',null,'tabset');
	tabset.setAttribute('cookie',cookie);
	var validTab = false;
	for(var t=0; t<numTabs; t++) {
		var label = params[t*3+1];
		var prompt = params[t*3+2];
		var content = params[t*3+3];
		var tab = createTiddlyButton(tabset,label,prompt,this.onClickTab,'tab tabUnselected');
		createTiddlyElement(tab,'span',null,null,' ',{style:'font-size:0pt;line-height:0px'}); // ELS
		tab.setAttribute('tab',label);
		tab.setAttribute('content',content);
		tab.title = prompt;
		if(config.options[cookie] == label)
			validTab = true;
	}
	if(!validTab)
		config.options[cookie] = params[1];
	place.appendChild(wrapper);
	this.switchTab(tabset,config.options[cookie]);
};
//}}}
// // }}}}}}// // {{block{
/***
!!!628 hide 'no such macro' errors
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/628 - OPEN
When invoking a macro that is not defined, this tweak prevents the display of the 'error in macro... no such macro' message.  This is useful when rendering tiddler content or templates that reference macros that are defined by //optional// plugins that have not been installed in the current document.

<<option chkHideMissingMacros>> hide 'no such macro' error messages
***/
//{{{
if (config.options.chkHideMissingMacros===undefined)
	config.options.chkHideMissingMacros=false;

window.coreTweaks_missingMacro_invokeMacro = window.invokeMacro;
window.invokeMacro = function(place,macro,params,wikifier,tiddler) {
	if (!config.macros[macro] || !config.macros[macro].handler)
		if (config.options.chkHideMissingMacros) return;
	window.coreTweaks_missingMacro_invokeMacro.apply(this,arguments);
}
//}}}
// // }}}}}}
// // <<foldHeadings>>
<script>
var out="";
var curso=store.getTiddler("$1");
//return "texto= "+curso.text;
curso=curso.text.split("#");
for(i=1;i<3;i++)
{
var section=curso[i].substring(1);
out+="section{"+section+"}<br>";
var file=""+section+"/index";
//return file;
var tids=getText(file);
//return tids;
tids=tids.split("#");
for(j=1;j<tids.length;j++)
{
var len=tids[j].length-1;
if(tids[j].indexOf("@@")!=-1){out+="subsection{"+tids[j].substring(4)+"}<br>";}

if(tids[j].indexOf("@@")==-1)
{
var url=""+section+"/"+tids[j].substring(2);
var text=getText(url);
text=text.replace(/@frame{/g,"subsubsection{");
text=text.replace(/@note/g,"marginnote");
text=text.replace(/@text{/g,"");
text=text.replace(/@imagemH/g,"includegraphics[width=400px]");
text=text.replace(/@imagemV/g,"includegraphics[height=400px]");
text=text.replace(/@imagemS/g,"includegraphics[width=200px]");
text=text.replace(/@imagem/g,"includegraphics[width=300px]");
text=text.replace(/endImagem/g,"");
text=text.replace(/@end{frame}/g," ");
text=text.replace(/@begin{itemize}/g,"begin{itemize}");
text=text.replace(/@end{itemize}/g,"end{itemize}");
text=text.replace(/@item/g,"item");
text=text.replace(/}#/g,"}");
out+=text;
}
}
}
return out;
</script>

/%
{{threecolumns{<script>
var out="";
var curso=store.getTiddler("$1");
//return "texto= "+curso.text;
curso=curso.text.split("#");
for(i=1;i<curso.length;i++)
{
var section=curso[i].substring(1);
out+="{{bold{{{medium{"+section+"}}} }}}<br>";
var file=""+section+"/index";
//return file;
var tids=getText(file);
//return tids;
tids=tids.split("#");
for(j=1;j<tids.length;j++)
{
var len=tids[j].length-1;
if(tids[j].indexOf("@@")!=-1){out+="<br>__"+tids[j].substring(4)+"__<br>";}

if(tids[j].indexOf("@@")==-1)out+='<script label="'+tids[j].substring(2)+'">localStorage.oneMenu="display";localStorage.sequencia="empty";localStorage.show="empty";localStorage.dinamica="empty";localStorage.url="'+section+'/'+tids[j].substring(2)+'";localStorage.itema="'+section+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';
}
}
return out;
</script>}}}
%/
<script>localStorage.tema="dancas";</script><<tiddler IndexTiddler>>
[[Bem Vindo]]
<script>
localStorage.url="dinamicas/"+localStorage.dinamica;
//return ".."+dinamicaUrl+"..";
</script><<tiddler displayItem>>
<script>
var out="ANNEXO - Dinamicas do Curso<br>";

function toTex(file,nivel)
{
var newTex="";
var tids=getText("dinamicas/"+file);
//return tids;
tids=tids.split("#");

for (i=0;i<tids.length-1;i++)
{
if(tids[i].indexOf("@frame")!=-1){tids[i]=tids[i].replace("@frame","@"+nivel);}

if(tids[i].indexOf("@note")!=-1){tids[i]=tids[i].replace("@note","@marginnote");tids[i]=tids[i].replace(/endNote/g,"");}

if(tids[i].indexOf("@text")!=-1){tids[i]=tids[i].replace("@text{","");tids[i]=tids[i].replace(/endText/g,"");}

if(tids[i].indexOf("@referencias")!=-1){tids[i]=tids[i].replace("@referencias","@vfill(Referencias:");tids[i]=tids[i].replace(/endReferencias/g,")");}

if(tids[i].indexOf("@end{frame}")!=-1){tids[i]=tids[i].replace("@end{frame}","");}

}
tids=tids.join(" ");

tids=tids.replace(/@imagemH/g,"@includegraphics[width=10cm]");
tids=tids.replace(/@imagemV/g,"@includegraphics[height=8cm]");
tids=tids.replace(/@imagemS/g,"@includegraphics[height=4cm]");
tids=tids.replace(/@imagem/g,"@includegraphics[width=10cm]");
tids=tids.replace(/endImagem/g,"");
tids=tids.replace(/@url/g,"@url");
tids=tids.replace(/@begin/g,"@begin");
tids=tids.replace(/@end{itemize}/g,"@end{itemize}");
tids=tids.replace(/@item/g,"@item");
tids=tids.replace(/@widebox/g,"@mdframes");
tids=tids.replace(/endWidebox/g,"");
tids=tids.replace(/@menubox/g,"@mdframes");
tids=tids.replace(/endMenubox/g,"");
tids=tids.replace(/@hrule/g,"@hrule");

if(tids.indexOf("@video{")!=-1)
{
var startVideo=tids.indexOf("@video{");
var endVideo=tids.indexOf("}endVideo");
var videoString=tids.substring(startVideo+7,endVideo);
var comma=videoString.indexOf(",");
var endTiddler=startVideo+7+comma;
var videoTiddler=tids.substring(startVideo+7,endTiddler);
var startSlice=endTiddler+1;
var videoSlice=tids.substring(startSlice,endVideo);
videoCo=store.getTiddlerSlice(videoTiddler,videoSlice)+"})";
tids=tids.replace(videoString,"");
tids=tids.replace(/@video{/g,"(referencia ao video do YouTube - @url{www.youtube.com/watch?v=");
tids=tids.replace(/@videoPlay{/g,"(referencia ao video do YouTube - www.youtube.com/watch?v=");
tids=tids.replace(/}endVideo/g,videoCo);
}
if(tids.indexOf("@videoPlay{")!=-1)
{
//return "found a videoPlay";
var startVideo=tids.indexOf("@videoPlay{");
var endVideo=tids.indexOf("}endVideo");
var videoString=tids.substring(startVideo+11,endVideo);
var comma=videoString.indexOf(",");
var endTiddler=startVideo+11+comma;
var videoTiddler=tids.substring(startVideo+11,endTiddler);
var startSlice=endTiddler+1;
var videoSlice=tids.substring(startSlice,endVideo);
videoCo=store.getTiddlerSlice(videoTiddler,videoSlice)+"})";
tids=tids.replace(videoString,"");
tids=tids.replace(/@video{/g,"(referencia ao video do YouTube - @url{www.youtube.com/watch?v=");
tids=tids.replace(/@videoPlay{/g,"(referencia ao video do YouTube - www.youtube.com/watch?v=");
tids=tids.replace(/}endVideo/g,videoCo);
}

tids=tids.replace(/@/g,"\");

return tids;

}

var fileList=localStorage.dinamica;
fileList=fileList.split("#");
//return fileList[1];
for(k=1;k<fileList.length-1;k++)
{
//out+="\section{"+fileList[k].substring(4)+"}<br>";
var url=fileList[k].substring(4);
//return url;
out+=toTex(url,"section")+"<br>\newpage<br>";
}
var head=getText("PaginaSimples");
return head+"<br><br>"+out+"<br>\end{document}";
</script>
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script> localStorage.tema="dinamicas";</script><<tiddler IndexTiddler>>
<script>localStorage.msg="";localStorage.title="";</script>{{floatright{<<showPopup tiddler:Discuss##lista label:Lista popupClass:sticky width:700px>><<setIcon Logos/comment.png "" notext>>}}}
<script>
localStorage.fonte="novo";
var out="";
var discussURL="discuss/"+localStorage.tema+"_"+localStorage.itema;
//return discussURL;
var lista=getText(discussURL);
lista=lista.split("#\r\n");
for(i=0;i<lista.length-1;i++)
{
var listaItem=lista[i].split(":");
out+='<script label="'+listaItem[0]+'">localStorage.title="'+listaItem[0]+'";localStorage.msg="'+listaItem[3]+'";localStorage.fonte="edit";</scr'+'ipt>  - '+listaItem[1]+' -  ( '+listaItem[2]+' )  '+listaItem[3]+'<br>';
}
return out;
</script>
/%
!!lista
<html><form method=post target=responseframe action="notinhas.php" style="display:inline">
<input type=text name=tema value="">Tema	<input type=text name=item value="">item<br><input type=hidden name=username value="">
        <input type=text name=titulo value="" style="width:50%"> Titulo <br>  <input type=hidden name=when value=""><input type=hidden name=fonte value="">
	<textarea rows=7 cols=50 name=msg style="width:99%" onfocus="this.select()"></textarea><br>
         <input type=text name=url value="" style="width:70%" onfocus="this.select()"> - ref url?<br>
	<div style="text-align:center">
	<input type="submit" value="edita" onclick=''>

</form>
<iframe src="" name="responseframe" id="responseframe" marginheight=0 style="display:block;border:0;padding:0;margin:0;width:100%;height:90px;"></iframe><hide linebreaks>
</html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.item.value=localStorage.itema;
form.msg.value=localStorage.msg;
form.fonte.value=localStorage.fonte;
form.tema.value=localStorage.tema;
form.titulo.value=localStorage.title;
form.username.value=localStorage.username;

var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh-mm");
</script>
!!end
%/
Escreva o texto para 'DisplayPDF'
IntroEcoConstrucao#
IntroPermacultura#
Resiliencia_Complexidade#
HistoriaArquitetura_EcoConstrucao#
ArquiteturaTransformacao#
Biofilia#
Zonas_Setores#
Formas#
DesignPasiva#
Materiais#
Fundaçoes#
Tecnicas#
Tetos#
Acabamentos#
Projetos#
Avaliaçoes#


{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Ecoconstrucao";</script><<tiddler IndexTiddler>>
<script>localStorage.curso="EdificacoesRurais";</script><<tiddler cursoIndex>>
<!--{{{-->
<div class='toolbar' macro='toolbar [[ToolbarCommands::EditToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='editor' macro='edit title'></div>
<div class='editor' macro='edit tags'></div>
<div macro='tiddler QuickEditToolbar with: show'></div>
<div macro='annotations'></div>
<div class='editor' macro='edit text'></div>
<div class='editorFooter'><span macro='message views.editor.tagPrompt'></span></div>
<!--}}}-->
<html><form method=post target=responseframe action="editText.php" style="display:inline">
<input type=text name=item value="" style="width:60%" onfocus="this.select()"><br>
<textarea rows=10 cols=50 name=msg style="width:99%" onfocus="this.select()"></textarea><br>
	<div style="text-align:center">
	<input type="submit" value="edita" onclick=''>

</form>
<iframe src="" name="responseframe" id="responseframe" warginheight=0 style="display:block;border:0;padding:0;margin:0;width:100%;height:20px;"></iframe><hide linebreaks>
</html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.msg.value=localStorage.texto;
form.item.value=localStorage.url;
</script>
apresentações/coleções
{{center{[[EscolasResilientes-Ceara]]}}}
----
<script>
localStorage.url="..";
localStorage.notas="..";
localStorage.texto="..";
story.displayTiddler(null,"DisplayPDF");
var out="";
var tids=store.getTaggedTiddlers("educacao");
for (t=0;t<tids.length;t++)
{
out+='<script label="'+tids[t].title+'">localStorage.url="'+store.getTiddlerSlice(tids[t].title,"url")+'";';
out+='localStorage.search="'+store.getTiddlerSlice(tids[t].title,"tema")+'";';
out+='localStorage.texto="'+store.getTiddlerSlice(tids[t].title,"texto")+' ";';
out+='localStorage.apresenta="'+store.getTiddlerSlice(tids[t].title,"apresenta")+'";';
out+='localStorage.dir="'+store.getTiddlerSlice(localStorage.apresenta,"dir")+'";';
out+='localStorage.story="'+store.getTiddlerSlice(localStorage.apresenta,"story")+'";';
out+='localStorage.notas="'+store.getTiddlerSlice(tids[t].title,"notas")+'";';
out+='story.refreshTiddler("DisplayPDF",DEFAULT_VIEW_TEMPLATE,true);';
out+='config.refreshers.content(document.getElementById("rightSidebar"));';
out+='</sc'+'ript>\n';
}
return out;
</script>
<script>localStorage.tema="Escolas";</script><<tiddler IndexTiddler>>
<script>localStorage.curso="Escolas Resilientes";</script><<tiddler cursoIndex>>
<script>
var here =tiddler.title;
var texto=store.getTiddlerText(here);
var lines=texto.split("\n");
return lines[0]+"("+tiddler.creator+")";
</script>
To get started with this blank [[TiddlyWiki]], you'll need to modify the following tiddlers:
* [[SiteTitle]] & [[SiteSubtitle]]: The title and subtitle of the site, as shown above (after saving, they will also appear in the browser title bar)
* [[MainMenu]]: The menu (usually on the left)
* [[DefaultTiddlers]]: Contains the names of the tiddlers that you want to appear when the TiddlyWiki is opened
You'll also need to enter your username for signing your edits: <<option txtUserName>>
<<tiddler Options>>
<<tiddler SideBarTabs>>
/***
|Name:|HideWhenPlugin|
|Description:|Allows conditional inclusion/exclusion in templates|
|Version:|3.1 ($Rev: 3919 $)|
|Date:|$Date: 2008-03-13 02:03:12 +1000 (Thu, 13 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#HideWhenPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
For use in ViewTemplate and EditTemplate. Example usage:
{{{<div macro="showWhenTagged Task">[[TaskToolbar]]</div>}}}
{{{<div macro="showWhen tiddler.modifier == 'BartSimpson'"><img src="bart.gif"/></div>}}}
***/
//{{{

window.hideWhenLastTest = false;

window.removeElementWhen = function(test,place) {
	window.hideWhenLastTest = test;
	if (test) {
		removeChildren(place);
		place.parentNode.removeChild(place);
	}
};


merge(config.macros,{

	hideWhen: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( eval(paramString), place);
	}},

	showWhen: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( !eval(paramString), place);
	}},

	hideWhenTagged: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( tiddler.tags.containsAll(params), place);
	}},

	showWhenTagged: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( !tiddler.tags.containsAll(params), place);
	}},

	hideWhenTaggedAny: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( tiddler.tags.containsAny(params), place);
	}},

	showWhenTaggedAny: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( !tiddler.tags.containsAny(params), place);
	}},

	hideWhenTaggedAll: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( tiddler.tags.containsAll(params), place);
	}},

	showWhenTaggedAll: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( !tiddler.tags.containsAll(params), place);
	}},

	hideWhenExists: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( store.tiddlerExists(params[0]) || store.isShadowTiddler(params[0]), place);
	}},

	showWhenExists: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( !(store.tiddlerExists(params[0]) || store.isShadowTiddler(params[0])), place);
	}},

	hideWhenTitleIs: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( tiddler.title == params[0], place);
	}},

	showWhenTitleIs: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( tiddler.title != params[0], place);
	}},

	'else': { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		removeElementWhen( !window.hideWhenLastTest, place);
	}}

});

//}}}
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Historia";</script><<tiddler IndexTiddler>>
{{right{<<newTiddler tag:historia tag:slide>><<setIcon Logos/sm_edit.png "" notext>>}}}<<tiddler IndexTiddler with:historia>>
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Hoje";</script><<tiddler IndexTiddler>>
/***
|Name|ImageSizePlugin|
|Source|http://www.TiddlyTools.com/#ImageSizePlugin|
|Version|1.2.3|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|adds support for resizing images|
This plugin adds optional syntax to scale an image to a specified width and height and/or interactively resize the image with the mouse.
!!!!!Usage
<<<
The extended image syntax is:
{{{
[img(w+,h+)[...][...]]
}}}
where ''(w,h)'' indicates the desired width and height (in CSS units, e.g., px, em, cm, in, or %). Use ''auto'' (or a blank value) for either dimension to scale that dimension proportionally (i.e., maintain the aspect ratio). You can also calculate a CSS value 'on-the-fly' by using a //javascript expression// enclosed between """{{""" and """}}""". Appending a plus sign (+) to a dimension enables interactive resizing in that dimension (by dragging the mouse inside the image). Use ~SHIFT-click to show the full-sized (un-scaled) image. Use ~CTRL-click to restore the starting size (either scaled or full-sized).
<<<
!!!!!Examples
<<<
{{{
[img(100px+,75px+)[images/meow2.jpg]]
}}}
[img(100px+,75px+)[images/meow2.jpg]]
{{{
[<img(34%+,+)[images/meow.gif]]
[<img(21% ,+)[images/meow.gif]]
[<img(13%+, )[images/meow.gif]]
[<img( 8%+, )[images/meow.gif]]
[<img( 5% , )[images/meow.gif]]
[<img( 3% , )[images/meow.gif]]
[<img( 2% , )[images/meow.gif]]
[img(  1%+,+)[images/meow.gif]]
}}}
[<img(34%+,+)[images/meow.gif]]
[<img(21% ,+)[images/meow.gif]]
[<img(13%+, )[images/meow.gif]]
[<img( 8%+, )[images/meow.gif]]
[<img( 5% , )[images/meow.gif]]
[<img( 3% , )[images/meow.gif]]
[<img( 2% , )[images/meow.gif]]
[img(  1%+,+)[images/meow.gif]]
{{tagClear{
}}}
<<<
!!!!!Revisions
<<<
2011.09.03 [1.2.3] bypass addStretchHandlers() if no '+' suffix is used (i.e., not resizable)
2010.07.24 [1.2.2] moved tip/dragtip text to config.formatterHelpers.imageSize object to enable customization
2009.02.24 [1.2.1] cleanup width/height regexp, use '+' suffix for resizing
2009.02.22 [1.2.0] added stretchable images
2008.01.19 [1.1.0] added evaluated width/height values
2008.01.18 [1.0.1] regexp for "(width,height)" now passes all CSS values to browser for validation
2008.01.17 [1.0.0] initial release
<<<
!!!!!Code
***/
//{{{
version.extensions.ImageSizePlugin= {major: 1, minor: 2, revision: 3, date: new Date(2011,9,3)};
//}}}
//{{{
var f=config.formatters[config.formatters.findByField("name","image")];
f.match="\\[[<>]?[Ii][Mm][Gg](?:\\([^,]*,[^\\)]*\\))?\\[";
f.lookaheadRegExp=/\[([<]?)(>?)[Ii][Mm][Gg](?:\(([^,]*),([^\)]*)\))?\[(?:([^\|\]]+)\|)?([^\[\]\|]+)\](?:\[([^\]]*)\])?\]/mg;
f.handler=function(w) {
	this.lookaheadRegExp.lastIndex = w.matchStart;
	var lookaheadMatch = this.lookaheadRegExp.exec(w.source)
	if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
		var floatLeft=lookaheadMatch[1];
		var floatRight=lookaheadMatch[2];
		var width=lookaheadMatch[3];
		var height=lookaheadMatch[4];
		var tooltip=lookaheadMatch[5];
		var src=lookaheadMatch[6];
		var link=lookaheadMatch[7];

		// Simple bracketted link
		var e = w.output;
		if(link) { // LINKED IMAGE
			if (config.formatterHelpers.isExternalLink(link)) {
				if (config.macros.attach && config.macros.attach.isAttachment(link)) {
					// see [[AttachFilePluginFormatters]]
					e = createExternalLink(w.output,link);
					e.href=config.macros.attach.getAttachment(link);
					e.title = config.macros.attach.linkTooltip + link;
				} else
					e = createExternalLink(w.output,link);
			} else 
				e = createTiddlyLink(w.output,link,false,null,w.isStatic);
			addClass(e,"imageLink");
		}

		var img = createTiddlyElement(e,"img");
		if(floatLeft) img.align="left"; else if(floatRight) img.align="right";
		if(width||height) {
			var x=width.trim(); var y=height.trim();
			var stretchW=(x.substr(x.length-1,1)=='+'); if (stretchW) x=x.substr(0,x.length-1);
			var stretchH=(y.substr(y.length-1,1)=='+'); if (stretchH) y=y.substr(0,y.length-1);
			if (x.substr(0,2)=="{{")
				{ try{x=eval(x.substr(2,x.length-4))} catch(e){displayMessage(e.description||e.toString())} }
			if (y.substr(0,2)=="{{")
				{ try{y=eval(y.substr(2,y.length-4))} catch(e){displayMessage(e.description||e.toString())} }
			img.style.width=x.trim(); img.style.height=y.trim();
			if (stretchW||stretchH) config.formatterHelpers.addStretchHandlers(img,stretchW,stretchH);
		}
		if(tooltip) img.title = tooltip;

		// GET IMAGE SOURCE
		if (config.macros.attach && config.macros.attach.isAttachment(src))
			src=config.macros.attach.getAttachment(src); // see [[AttachFilePluginFormatters]]
		else if (config.formatterHelpers.resolvePath) { // see [[ImagePathPlugin]]
			if (config.browser.isIE || config.browser.isSafari) {
				img.onerror=(function(){
					this.src=config.formatterHelpers.resolvePath(this.src,false);
					return false;
				});
			} else
				src=config.formatterHelpers.resolvePath(src,true);
		}
		img.src=src;
		w.nextMatch = this.lookaheadRegExp.lastIndex;
	}
}

config.formatterHelpers.imageSize={
	tip: 'SHIFT-CLICK=show full size, CTRL-CLICK=restore initial size',
	dragtip: 'DRAG=stretch/shrink, '
}

config.formatterHelpers.addStretchHandlers=function(e,stretchW,stretchH) {
	e.title=((stretchW||stretchH)?this.imageSize.dragtip:'')+this.imageSize.tip;
	e.statusMsg='width=%0, height=%1';
	e.style.cursor='move';
	e.originalW=e.style.width;
	e.originalH=e.style.height;
	e.minW=Math.max(e.offsetWidth/20,10);
	e.minH=Math.max(e.offsetHeight/20,10);
	e.stretchW=stretchW;
	e.stretchH=stretchH;
	e.onmousedown=function(ev) { var ev=ev||window.event;
		this.sizing=true;
		this.startX=!config.browser.isIE?ev.pageX:(ev.clientX+findScrollX());
		this.startY=!config.browser.isIE?ev.pageY:(ev.clientY+findScrollY());
		this.startW=this.offsetWidth;
		this.startH=this.offsetHeight;
		return false;
	};
	e.onmousemove=function(ev) { var ev=ev||window.event;
		if (this.sizing) {
			var s=this.style;
			var currX=!config.browser.isIE?ev.pageX:(ev.clientX+findScrollX());
			var currY=!config.browser.isIE?ev.pageY:(ev.clientY+findScrollY());
			var newW=(currX-this.offsetLeft)/(this.startX-this.offsetLeft)*this.startW;
			var newH=(currY-this.offsetTop )/(this.startY-this.offsetTop )*this.startH;
			if (this.stretchW) s.width =Math.floor(Math.max(newW,this.minW))+'px';
			if (this.stretchH) s.height=Math.floor(Math.max(newH,this.minH))+'px';
			clearMessage(); displayMessage(this.statusMsg.format([s.width,s.height]));
		}
		return false;
	};
	e.onmouseup=function(ev) { var ev=ev||window.event;
		if (ev.shiftKey) { this.style.width=this.style.height=''; }
		if (ev.ctrlKey)  { this.style.width=this.originalW; this.style.height=this.originalH; }
		this.sizing=false;
		clearMessage();
		return false;
	};
	e.onmouseout=function(ev) { var ev=ev||window.event;
		this.sizing=false;
		clearMessage();
		return false;
	};
}
//}}}
<script>
var out="";
var file=""+localStorage.tema+"/index"
//return "file="+file;
var tids=getText(file);
//return "tids="+tids;
tids=tids.replace(/\r\n|\n|\r/g,"");
tids=tids.split("#");
for(i=1;i<tids.length;i++)
{
if(tids[i].indexOf("@")!=-1){out+="<br>__"+tids[i].substring(1)+"__<br>";}

if(tids[i].indexOf("@")==-1){out+='<script label="'+tids[i]+'">localStorage.oneMenu="display";localStorage.sequencia=" ";localStorage.show=" ";localStorage.referencias=" ";localStorage.dinamica=" ";localStorage.url=""+localStorage.tema+"/'+tids[i]+'";localStorage.itema="'+tids[i]+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';}
}
return out;
</script>
''Painel a Esquerda''
Navegação central nesse sistema. Seleciona tema ou curso, e a dentro a painel que abre..seleciona arquivo/item do interesse...
''Painel Central''
*[img[Logos/EditText.png]] - para editar items individuais....usar com cuidado!
*[img[Logos/cv.png]] - uma lista da discussão simples a respeito o item atualmente aberta.....
**[img[Logos/comment.png]] - para abrir um formulario simples para contribuir a discussao.
*[img[Logos/bibliografia.png]] - para ver as referencias bibliograficos dese item...quando existe!
*[img[Logos/smallLibrary.png]] - accessar arquivos (PDF) relevante esse item.....clicar titulo mpara abrir o arquivo em nova janela seu navegador.
*[img[Logos/pdf.png]] - baixar esse item em pdf....para imprimir!
*[img[Logos/tex.png]] - usado para traduze o item em formato compatavel com laTex.... normalmente nao precisa isso!
*[img[Logos/doc.png]] - uma gerador em laTex do um grupo items seleccinados... normalemente nao precisar isso!
*[img[Logos/info.png]] - AQUI!
''Painel Direito''
*[img[logos/lista.png]] - quando esse icone aparece, isso significa que esse item tem sub-partes....clicar icone para seleciona esses partes
*[img[logos/action.png]] - quando aparece, significa que esse item tem dinamica....clicar icom para ler.....
*[img[logos/PDFtoKeynote.png]] - quando aparece, o item tem apresentacao ligada...clicar e seleciona "Ver Apresentacao".
----
<<showPopup tiddler:Info##TexCodigos label:TexCodigos width:700px popupClass:yellow>>
/%
!!TexCodigos
Os items sao amezanados como arquivos do texto simples em pastas nomeados por as temas principais.
O texto dos items tem codigo que esse sistemaa interpreta para mostrar aqui.....e tambem que ele podem interpretar e gerar codigo laTex para criar esses items em formato PDF (com compiler TexWorks ou semelhante).
Codigos incluida nos texto:
Secões principais sao divididas por #.....cabeca, notas, corpo principal e terminacao ("@end{frame}#")
Divisoes -
* @frame{CABECA}#
* @note{....}endNote#
* @text{..endText#
* @show{PASTA/URL}endShow - accesso to index file com apresentacao
* @sequencia{PASTA/URL}endSequencia - accesso a indexo com lista items conectada esse item
* @dinamica{dinamicas/URL}endDinamica - accesso o texto da dinamica (em pasta "dinamicas")
* @referencias urls endReferencias
* @end{frame}#

A dentro notas e tambem texto sao entendidos esses codigos:-
* @imagemV{URL}local}endImagem - imagem com altura especificada
* @imagemH{URL}endImagem - imagem com largura especificada
* @imagem{URL}endImagem - imagem.... largura pouco menor do que H
* @imagemS{URL}endImagem - imagem pequena
* @video{TIDDLER,SLICENAME}endVideo - abrir video player
* @videoPlay{TIDDLER,SLICENAME}endVideo - abrir videp player e tocar video
* @url(URL}
* @citaText{TEXT}endCitaText ---- a ser colocado em painel largo
* @menubox{TEXT}endMenuBox -- colocado em painel magro
!!end
%/
/***
|Name|InlineJavascriptPlugin|
|Source|http://www.TiddlyTools.com/#InlineJavascriptPlugin|
|Documentation|http://www.TiddlyTools.com/#InlineJavascriptPluginInfo|
|Version|1.9.2|
|Author|Eric Shulman - ELS Design Studios|
|License|http://www.TiddlyTools.com/#LegalStatements <br>and [[Creative Commons Attribution-ShareAlike 2.5 License|http://creativecommons.org/licenses/by-sa/2.5/]]|
|~CoreVersion|2.1|
|Type|plugin|
|Requires||
|Overrides||
|Description|Insert Javascript executable code directly into your tiddler content.|
''Call directly into TW core utility routines, define new functions, calculate values, add dynamically-generated TiddlyWiki-formatted output'' into tiddler content, or perform any other programmatic actions each time the tiddler is rendered.
!!!!!Documentation
>see [[InlineJavascriptPluginInfo]]
!!!!!Revisions
<<<
2008.03.03 [1.9.2] corrected declaration of wikifyPlainText() for 'TW 2.1.x compatibility fallback' (fixes Safari "parse error")
2008.02.23 [1.9.1] in onclick function, use string instead of array for 'bufferedHTML' attribute on link element (fixes IE errors)
2008.02.21 [1.9.0] 'onclick' scripts now allow returned text (or document.write() calls) to be wikified into a span that immediately follows the onclick link.  Also, added default 'return false' handling if no return value provided (prevents HREF from being triggered -- return TRUE to allow HREF to be processed).  Thanks to Xavier Verges for suggestion and preliminary code.
|please see [[InlineJavascriptPluginInfo]] for additional revision details|
2005.11.08 [1.0.0] initial release
<<<
!!!!!Code
***/
//{{{
version.extensions.inlineJavascript= {major: 1, minor: 9, revision: 2, date: new Date(2008,3,3)};

config.formatters.push( {
	name: "inlineJavascript",
	match: "\\<script",
	lookahead: "\\<script(?: src=\\\"((?:.|\\n)*?)\\\")?(?: label=\\\"((?:.|\\n)*?)\\\")?(?: title=\\\"((?:.|\\n)*?)\\\")?(?: key=\\\"((?:.|\\n)*?)\\\")?( show)?\\>((?:.|\\n)*?)\\</script\\>",

	handler: function(w) {
		var lookaheadRegExp = new RegExp(this.lookahead,"mg");
		lookaheadRegExp.lastIndex = w.matchStart;
		var lookaheadMatch = lookaheadRegExp.exec(w.source)
		if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
			var src=lookaheadMatch[1];
			var label=lookaheadMatch[2];
			var tip=lookaheadMatch[3];
			var key=lookaheadMatch[4];
			var show=lookaheadMatch[5];
			var code=lookaheadMatch[6];
			if (src) { // load a script library
				// make script tag, set src, add to body to execute, then remove for cleanup
				var script = document.createElement("script"); script.src = src;
				document.body.appendChild(script); document.body.removeChild(script);
			}
			if (code) { // there is script code
				if (show) // show inline script code in tiddler output
					wikify("{{{\n"+lookaheadMatch[0]+"\n}}}\n",w.output);
				if (label) { // create a link to an 'onclick' script
					// add a link, define click handler, save code in link (pass 'place'), set link attributes
					var link=createTiddlyElement(w.output,"a",null,"tiddlyLinkExisting",wikifyPlainText(label));
					var fixup=code.replace(/document.write\s*\(/gi,'place.bufferedHTML+=(');
					link.code="function _out(place){"+fixup+"\n};_out(this);"
					link.tiddler=w.tiddler;
					link.onclick=function(){
						this.bufferedHTML="";
						try{ var r=eval(this.code);
							if(this.bufferedHTML.length || (typeof(r)==="string")&&r.length)
								var s=this.parentNode.insertBefore(document.createElement("span"),this.nextSibling);
							if(this.bufferedHTML.length)
								s.innerHTML=this.bufferedHTML;
							if((typeof(r)==="string")&&r.length) {
								wikify(r,s,null,this.tiddler);
								return false;
							} else return r!==undefined?r:false;
						} catch(e){alert(e.description||e.toString());return false;}
					};
					link.setAttribute("title",tip||"");
					var URIcode='javascript:void(eval(decodeURIComponent(%22(function(){try{';
					URIcode+=encodeURIComponent(encodeURIComponent(code.replace(/\n/g,' ')));
					URIcode+='}catch(e){alert(e.description||e.toString())}})()%22)))';
					link.setAttribute("href",URIcode);
					link.style.cursor="pointer";
					if (key) link.accessKey=key.substr(0,1); // single character only
				}
				else { // run inline script code
					var fixup=code.replace(/document.write\s*\(/gi,'place.innerHTML+=(');
					var code="function _out(place){"+fixup+"\n};_out(w.output);"
					try { var out=eval(code); } catch(e) { out=e.description?e.description:e.toString(); }
					if (out && out.length) wikify(out,w.output,w.highlightRegExp,w.tiddler);
				}
			}
			w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
		}
	}
} )
//}}}

// // Backward-compatibility for TW2.1.x and earlier
//{{{
if (typeof(wikifyPlainText)=="undefined") window.wikifyPlainText=function(text,limit,tiddler) {
	if(limit > 0) text = text.substr(0,limit);
	var wikifier = new Wikifier(text,formatter,null,tiddler);
	return wikifier.wikifyPlain();
}
//}}}
complexidade/Inovacao
<html><form>
<input type=text name=title style="width:350px">title <input type=text name= tags style="width:320px">etiquetas<br>
<textarea name="comment" rows="15" colums="50" style="width:600px"></textarea><br>
<input type=text name=url style="width:320px" >ref
<input type=button value="salvar" onclick='
var who=localStorage.username;
var when=new Date();
var text=this.form.comment.value;
var tags=this.form.tags.value+" "+localStorage.username+" nota";
var fields="{{}}";
store.saveTiddler (this.form.title.value,this.form.title.value,text,who,when,tags,fields);
autoSaveChanges();
//story.displayTiddler(null,this.form.title.value);
return false;
'>
</form></html>
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="intro";</script><<tiddler IndexTiddler>>
{{center{{{medium{{{bold{<<showPopup tiddler:4Tabs label:Escolas_Resilientes popupClass:sticky width:800px>>}}}}}}}}}{{small{{{right{<<showPopup tiddler:ComoUsar label:Como_Usar popupClass:sticky width:200px>>
<<showPopup tiddler:Padroes label:Padroes_Principais popupClass:sticky width:200px>>}}}{{bold{Cursos}}}
{{right{<<showPopup tiddler:PDC label:PDC popupClass:sticky width:400px>>
<<showPopup tiddler:EscolasResilientes label:EscolasResilientes popupClass:sticky width:400px>>
<<showPopup tiddler:40HorasEletivo label:40HorasEletivo popupClass:sticky width:400px>>
<<showPopup tiddler:EdificacoesRurais label:EdificacoesRurais popupClass:sticky width:400px>>
<<showPopup tiddler:AguaIntegral label:AguaIntegral popupClass:sticky width:400px>>
<<showPopup tiddler:BiofiliaTopofilia label:Biofilia_Topofilia popupClass:sticky width:400px>>}}}{{bold{Temas Principais}}}
{{right{<<showPopup tiddler:Complexidade label:Complexidade popupClass:sticky width:200px>>
<<showPopup tiddler:Resiliencia label:Resiliencia popupClass:sticky width:200px>>
<<showPopup tiddler:Biofilia label:Biofilia popupClass:sticky width:200px>>
<<showPopup tiddler:Sustentabilidade label:Sustentabilidade popupClass:sticky width:200px>>
<<showPopup tiddler:Planejamento label:Planejamento popupClass:sticky width:200px>>
<<showPopup tiddler:Aprendizagem label:Aprendizagem popupClass:sticky width:200px>>
<<showPopup tiddler:Administracao label:Administracao popupClass:sticky width:200px>>}}}{{bold{Temas Tecias}}}
{{right{<<showPopup tiddler:Intro label:Intro popupClass:sticky width:200px>>
<<showPopup tiddler:Permacultura label:Permacultura popupClass:sticky width:200px>>
<<showPopup tiddler:Historia label:Historiia popupClass:sticky width:200px>>
<<showPopup tiddler:Hoje label:Hoje popupClass:sticky width:200px>>
<<showPopup tiddler:eAgora label:e_Agora popupClass:sticky width:200px>>
<<showPopup tiddler:agua label:Agua popupClass:sticky width:200px>>
<<showPopup tiddler:Nutricao label:Nutricao popupClass:sticky width:200px>>
<<showPopup tiddler:Solos label:Solos popupClass:sticky width:200px>>
<<showPopup tiddler:Ecoconstrucao label:ecoConstrucao popupClass:sticky width:200px>>
<<showPopup tiddler:sistemasFinancieros label:sistemasFinancieros popupClass:sticky width:200px>>
<<showPopup tiddler:sistemasSociais label:sistemasSociais popupClass:sticky width:200px>>
<<showPopup tiddler:oMovimento label:O_Movimento popupClass:sticky width:200px>>}}}{{bold{Ferramentas}}}
{{right{<<showPopup tiddler:Dinamicas label:Dinamicas popupClass:sticky width:200px>>
<<showPopup tiddler:Dancando label:Dancas popupClass:sticky width:200px>>}}}{{bold{Administração}}}
{{right{<<showPopup tiddler:Escolas label:Escolas popupClass:sticky width:500px>>
<<showPopup tiddler:Viagems label:Viagems popupClass:sticky width:200px>>}}} }}}
/%
!!notas
{{floatleft{<<showPopup tiddler:InputTexto label:novaNota popupClass:sticky width:600px>>}}}{{center{__Notinhas__}}}
<script>
var out="";
var tids=store.getTaggedTiddlers("nota");
for(i=0;i<tids.length;i++)
{
out+="''"+tids[i].title+"'' ( "+tids[i].modifier+") - "+tids[i].text+"<br>";
}
return out;
</script>
!!end
%/
<<option txtName>><script label="login">
var lista=store.getTiddlerText("chk");
if(lista.indexOf(config.options.txtName)=="-1"){return "\n\nOoops, não tem pessoa por esse nome aqui!";exit;}
if(lista.indexOf(config.options.txtName)!="-1"){localStorage.username=config.options.txtName;config.options.txtUserName=config.options.txtName; config.options.txtUploadUserName="anon";config.options.pasUploadPassword="anon";readOnly=false;chkHttpReadOnly=false;return "\n\nBem Vindo "+localStorage.username+"!!!";exit;}
</script>










<<openStory "Rio Pacoti" abrirProjeto>> / <<collapseAll>> / <<expandAll>> /  <<saveStory "Rio Pacoti" salvarProjeto>>  / {{fine{<<showPopup tiddler:4Tabs label:tabs popupClass:sticky width:700px>> / <<showPopup tiddler:SideBarOptions label:admin popupClass:sticky width:700px>>}}}{{big{  Padroes}}}
<<option txtCurso>><script label="chk">
var out="";
// get course list from index3.txt
var tidLista=getText(config.options.txtCurso+"/index");
//return "lista="+tidLista;
var listItems=tidLista.split("#");
for (y=0;y<listItems.length-1;y++)
{
var tid=listItems[y];
out+="<br>";
// chk if single item, chapter item, ou sequencia, @=item, @@=chapter

if(tid.indexOf("@@")!=-1)
{tid=tid.replace(/@@/g,"");
var indexLista=getText(tid+"/index");
//return indexLista;
var items=indexLista.split("#");
//return "items="+items[0];
out+="newpagesection{"+removeReturns(tid)+"}<br>";
for(m=1;m<items.length-1;m++)
   {//var items[m]=items[m].replace(/@@/g,"");
    var thisItem=removeReturns(items[m]);
     //return "this Item="+thisItem;
     out+=textToLatex(getText(tid+"/"+thisItem),"subsection","");
    }
}else{
///get item and see what it is
var tid=listItems[y];
var tidUrl=tid.replace(/@/g,"");
tidUrl=removeReturns(tidUrl);
//return tidUrl;
tidDirUrl=tidUrl.substring(0,tidUrl.lastIndexOf("/"));
out+=textToLatex(getText(tidUrl),"section",tidDirUrl)+"<br>";
//return out;
var subsectionList=sessionStorage.meusFilhos;
if(sessionStorage.meusFilhos!="")
  {
   var subsectionList=sessionStorage.meusFilhos+",";
   var subUrl=subsectionList.split(",");
   for(j=0;j<subUrl.length-1;j++)
       {out+=textToLatex(getText(tidDirUrl+"/"+subUrl[j]),"subsection");
         out+="<br>dir="+sessionStorage.meusFilhos;
        if(sessionStorage.meusFilhos!="")
             {
              var subsubsectionList=sessionStorage.meusFilhos+",";
              var subsubUrl=subsubsectionList.split(",");
              for(k=0;k<subsubUrl.length-1;k++)
                   {subsubUrl=
                    out+=textToLatex(getText(tidDirUrl+"/"+subsubUrl[k]),"subsubsection",tidDirUrl);
                   }
              }
        }
    }
}
// found all subitems!
}

return out;
</script>




/***
|Name:|NewHerePlugin|
|Description:|Creates the new here and new journal macros|
|Version:|3.0 ($Rev: 3861 $)|
|Date:|$Date: 2008-03-08 10:53:09 +1000 (Sat, 08 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#NewHerePlugin|
|Author:|Simon Baird <simon.baird@gmail.com>, modified by giffmex|
|License|http://mptw.tiddlyspot.com/#TheBSDLicense|

***/
//{{{
merge(config.macros, {
	newHere: {
		handler: function(place,macroName,params,wikifier,paramString,tiddler) {
			wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]] >>",place,null,tiddler);
		}
	},
	newJournalHere: {
		handler: function(place,macroName,params,wikifier,paramString,tiddler) {
			wikify("<<newJournal "+paramString+" tag:[["+tiddler.title+"]]>>",place,null,tiddler);
		}
	}
});

//}}}

  <<wikify {{"<<tiddler NotesMenu##"+localStorage.notesMenu+">"+">"}}>>
/%
!!notes
<script>
var out="";
if(localStorage.show!=" "){out+= '<<showPopup tiddler:Show label:Show width:100px>><<setIcon Logos/PDFtoKeynote.png "" notext>'+'> ';}
if(localStorage.dinamica!=" "){out+= '<<showPopup tiddler:Dinamica label:Dinamica width:600px>><<setIcon Logos/action.png "" notext>'+'> ';}
if(localStorage.sequencia!=" "){out+= '<<showPopup tiddler:Sequencia label:Sequencia width:100px>><<setIcon Logos/lista.png "" notext>'+'> ';}
return out;
</script><<wikify {{localStorage.notes}}>>


!!iniciar
Bem Vindo.
Esse sistema/pagina é por professores e educadores com interesse no conceito das "Escolas Resilientes". Resiliencia sendo a habilidade superar as mudancas fortes que a sistemas do educacao, o Nordeste da Brasil e a humanidade em geral estam enfrentando. Um sistema da Educação deve preparar alunos por o futuro, mas em realidade esta trenando alunos por ocupações do passsado. Um estudo do Instituto da Tecnologia do massechuttets (MIT) mostrou que ate 5 anos depois a graduacao, 83% dos graduados sao trabalhando afora a area do graduacao, ou eles voltaram estudar para re-ciclar sua professao.
Nao sera suficiente só atualizar o conteudo tecnico dos cursos professionizantes. O mundo é ficando mais complexo cada dia, e as carateristicas da complexidade nao sao consideradas ou incorporadas na trenamento dos alunos. Precisamos trenar alunos como lidar com a complexidade de hoje.....e nao os professoes de ontem.
Esse sistema, tem varios temas indexadas na painel a esquerda.... navegar como quiser, e lembra que voce podem contribuir comentarios por qualquer topico.....usando o icone [img(20px,auto)[Logos/cv.png]]   

!!tektex
Ao lado vai aparecer o codgo em Latex por esse item......pode copiar ele e colar em seu editor do laTex..... ou, em caso que nao entendi que isso significa....perto outra botao!!!
!!end
%/
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Nutricao";</script><<tiddler IndexTiddler>>
  <<wikify {{"<<tiddler OneMenu##"+localStorage.oneMenu+">"+">"}}>>
/%

!!display
{{floatleft{<<showPopup tiddler:EditText label:Edit width:800px popupClass:sticky>><<setIcon Logos/EditText.png "" notext>> <<showPopup tiddler:Discuss label:Discuss width:800px popupClass:sticky>><<setIcon Logos/cv.png "" notext>> <<showPopup tiddler:Bibliografia label:bibliografia width:800px popupClass:sticky>><<setIcon Logos/bibliografia.png "" notext>> <<showPopup tiddler:Biblioteca label:Biblioteca width:400px popupClass:sticky>><<setIcon Logos/smallLibrary.png "" notext>> <<showPopup tiddler:PDF label:PDF popupClass:sticky width:680px>><<setIcon Logos/pdf.png "" notext>>  <<showPopup tiddler:Referencias label:Referencias popupClass:palegreen width:500px>><<setIcon Logos/url.png "" notext>> }}}{{floatright{<<showPopup tiddler:Tex label:Tex popupClass:sticky width:400px>><<setIcon Logos/tex.png "" notext>> <<showPopup tiddler:TxtTex label:TextTex width:500px popupClass:sticky>><<setIcon Logos/doc.png "" notext>> <<showPopup tiddler:Info label:Info width:400px popupClass:yellow>><<setIcon Logos/info.png "" notext>> }}}<<tiddler displayItem>>

!!show
{{floatleft{<<showPopup tiddler:EditText label:Edit width:800px popupClass:sticky>><<setIcon Logos/EditText.png "" notext>> <<showPopup tiddler:Discuss label:Discuss width:800px popupClass:sticky>><<setIcon Logos/cv.png "" notext>> <<showPopup tiddler:Bibliografia label:bibliografia width:800px popupClass:sticky>><<setIcon Logos/bibliografia.png "" notext>> <<showPopup tiddler:Biblioteca label:Biblioteca width:400px popupClass:sticky>><<setIcon Logos/smallLibrary.png "" notext>> <<showPopup tiddler:PDF label:PDF popupClass:sticky width:680px>><<setIcon Logos/pdf.png "" notext>>  <<showPopup tiddler:Referencias label:Referencias popupClass:palegreen width:500px>><<setIcon Logos/url.png "" notext>> }}}


{{floatleft{<script label="previa">if(localStorage.count>1){localStorage.count=+localStorage.count - +1;config.refreshers.content(document.getElementById("oneMenu"));}</script>}}}{{floatright{<script label="proxima">localStorage.count=+localStorage.count + +1;config.refreshers.content(document.getElementById("oneMenu"));</script>}}}
<script>
//return localStorage.count;
var lista=localStorage.showItems;
lista=lista.split("#");
var fileName=lista[localStorage.count];
fileName=fileName.substring(1);

localStorage.url=""+localStorage.tema+"/"+fileName;
//return localStorage.count+"mm"+localStorage.url;
return "<<tiddler displayItem>>";
</script>

!!tektex
<<tiddler TxtTex>>

!!iniciar
[img(600px,auto)[Graficos/intro/RESILIENT-SCHOOL.jpg]]
{{center{{{fine{http://www.archdaily.com/502896/mat-ter-designs-storm-resistant-school-for-the-philippines/5361cabac07a80f0d900005d-mat-ter-designs-storm-resistant-school-for-the-philippines-photo}}} }}}
{{open{<<hideWhen localStorage.username>><<tiddler registro>>}}}

!!end
%/
<script>localStorage.curso="PDC";</script><<tiddler cursoIndex>>
#
complexidade#
resiliencia#
historia#
eAgora#
lidandaDesdeFuturo#
permacultura#
agua#
solos#
nutricao#
ecoConstrucao#
sistemasFinancieros#
sistemasSociais#
desenhos#
oMovimento#


<script>
if(localStorage.show!=" "){var fileUrl=localStorage.curso+"/"+localStorage.show+".pdf";}
if(localStorage.show==" "){var fileUrl=localStorage.tema+"/"+localStorage.url+".pdf";}
//return fileUrl;
return '[[clic direita baixar|http://www.unigaia-brasil.org/escolasResilientes/'+fileUrl+']]<br><html><iframe src='+fileUrl+' width=100% height=500px></iframe></ht'+'ml>';
</script>
Nota:depende o tamanho do arquivo, podem demoraaar para aparece aqui!
Create sistem where professores using the system cam make notes, reflexoes, ideias....... they would need to register and the system make a file in the server for them......just simple notes. 

Is it possible to pick up whatsapp messages here....and to write whats up messages from here.....

ESpaco mais tranquilo mais seguada.......

momentos da reflexao.....
<script>localStorage.tema="Vida";</script><<tiddler IndexTiddler>>
<div id='main'>
<div id='iconesMenu' refresh='content' tiddler='IconesMenu'></div>
<div id='leftSidebar' refresh='content' tiddler='LeftSidebar'></div>
<div id='oneMenu' refresh='content' tiddler='OneMenu'></div>
<div id='notesMenu' refresh='content' tiddler='NotesMenu'></div>
<div id='displayArea'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
sistemasSociais/participacao#
niveisParticipacao#
/***
|''Name:''|PasswordOptionPlugin|
|''Description:''|Extends TiddlyWiki options with non encrypted password option.|
|''Version:''|1.0.2|
|''Date:''|Apr 19, 2007|
|''Source:''|http://tiddlywiki.bidix.info/#PasswordOptionPlugin|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''~CoreVersion:''|2.2.0 (Beta 5)|
***/
//{{{
version.extensions.PasswordOptionPlugin = {
	major: 1, minor: 0, revision: 2, 
	date: new Date("Apr 19, 2007"),
	source: 'http://tiddlywiki.bidix.info/#PasswordOptionPlugin',
	author: 'BidiX (BidiX (at) bidix (dot) info',
	license: '[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D]]',
	coreVersion: '2.2.0 (Beta 5)'
};

config.macros.option.passwordCheckboxLabel = "Save this password on this computer";
config.macros.option.passwordInputType = "password"; // password | text
setStylesheet(".pasOptionInput {width: 11em;}\n","passwordInputTypeStyle");

merge(config.macros.option.types, {
	'pas': {
		elementType: "input",
		valueField: "value",
		eventName: "onkeyup",
		className: "pasOptionInput",
		typeValue: config.macros.option.passwordInputType,
		create: function(place,type,opt,className,desc) {
			// password field
			config.macros.option.genericCreate(place,'pas',opt,className,desc);
			// checkbox linked with this password "save this password on this computer"
			config.macros.option.genericCreate(place,'chk','chk'+opt,className,desc);			
			// text savePasswordCheckboxLabel
			place.appendChild(document.createTextNode(config.macros.option.passwordCheckboxLabel));
		},
		onChange: config.macros.option.genericOnChange
	}
});

merge(config.optionHandlers['chk'], {
	get: function(name) {
		// is there an option linked with this chk ?
		var opt = name.substr(3);
		if (config.options[opt]) 
			saveOptionCookie(opt);
		return config.options[name] ? "true" : "false";
	}
});

merge(config.optionHandlers, {
	'pas': {
 		get: function(name) {
			if (config.options["chk"+name]) {
				return encodeCookie(config.options[name].toString());
			} else {
				return "";
			}
		},
		set: function(name,value) {config.options[name] = decodeCookie(value);}
	}
});

// need to reload options to load passwordOptions
loadOptionsCookie();

/*
if (!config.options['pasPassword'])
	config.options['pasPassword'] = '';

merge(config.optionsDesc,{
		pasPassword: "Test password"
	});
*/
//}}}
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Permacultura";</script><<tiddler IndexTiddler>>
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Planejamento";</script><<tiddler IndexTiddler>>
<<plugins>>
/***
|''Name:''|PortugueseTranslationPlugin|
|''Description:''|Translation of TiddlyWiki into European Portuguese|
|''Author:''|Paulo Soares|
|''Source:''|http://www.math.ist.utl.pt/~psoares/addons.html|
|''Version:''|2.6.2|
|''Date:''|Jan 18, 2011|
|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/ ]]|
|''~CoreVersion:''|2.6.0|
***/
/*{{{*/
config.locale = "pt"; // W3C language tag

if (config.options.txtUserName=="YourName")
   merge(config.options,{txtUserName: "OSeuNome"});

merge(config.tasks,{
	save: {text: "guardar", tooltip: "Guarda as alteracoes a este TiddlyWiki", action: saveChanges},
	sync: {text: "sincronizar", tooltip: "Sincroniza alteracoes com outros ficheiros TiddlyWiki ou servidores", content: '<<sync>>'},
	importTask: {text: "importar", tooltip: "Importa tiddlers e plugins de outros ficheiros TiddlyWiki ou servidores", content: '<<importTiddlers>>'},
	tweak: {text: "configurar", tooltip: "Configura a aparencia e o comportamento do TiddlyWiki", content: '<<options>>'},
	upgrade: {text: "actualizar", tooltip: "Actualiza o codigo central do TiddlyWiki", content: '<<upgrade>>'},
	plugins: {text: "plugins", tooltip: "Gerir plugins instalados", content: '<<plugins>>'}
});

// Options that can be set in the options panel and/or cookies
merge(config.optionsDesc,{
	txtUserName: "Nome de utilizador para assinar as edicoes",
	chkRegExpSearch: "Activar expressoes regulares na procura",
	chkCaseSensitiveSearch: "Procura sense&shy;vel a maiusculas",
	chkIncrementalSearch: "Procura incremental caracter-a-caracter",
	chkAnimate: "Activar animacoes",
	chkSaveBackups: "Manter ficheiro de salvaguarda ao guardar alteracoes",
	chkAutoSave: "Guardar alteracoes automaticamente",
	chkGenerateAnRssFeed: "Gerar um ficheiro RSS ao guardar alteracoes",
	chkSaveEmptyTemplate: "Gerar um modelo vazio ao guardar alteracoes",
	chkOpenInNewWindow: "Abrir ligacoes externas em novas janelas",
	chkToggleLinks: "Clicar em ligacoes para tiddlers abertos, fecha-os",
	chkHttpReadOnly: "Esconde funcoes de edicao quando acedido por HTTP",
	chkForceMinorUpdate: "Nao actualizar o nome de utilizador nem a data ao editar tiddlers",
	chkConfirmDelete: "Requerer confirmacao ao eliminar tiddlers",
	chkInsertTabs: "Usar a tecla TAB para inserir caracteres de tabulacao em vez de saltar para o proximo campo",
	txtBackupFolder: "Nome do directorio para os ficheiros de salvaguarda",
	txtMaxEditRows: "Numero maximo de linhas nas caixas de edicao",
	txtTheme: "Nome do tema a usar", 
	txtFileSystemCharSet: "Codigo de caracteres por omissao para guardar alteracoes (apenas em Firefox/Mozilla)"});

merge(config.messages,{
	customConfigError: "Foram encontrados problemas ao carregar plugins. Veja o PluginManager para mais detalhes",
	pluginError: "Erro: %0",
	pluginDisabled: "Nao executado porque foi desactivado pela etiqueta 'systemConfigDisable'",
	pluginForced: "Executado porque foi forcado pela etiqueta 'systemConfigForce'",
	pluginVersionError: "Nao executado porque este plugin requer uma versao mais recente do TiddlyWiki",
	nothingSelected: "Nada esta selecionado. Deve selecionar um ou mais itens primeiro",
	savedSnapshotError: "Parece que este TiddlyWiki foi guardado incorrectamente. Por favor veja http://www.tiddlywiki.com/#Download para mais detalhes",
	subtitleUnknown: "(desconhecido)",
	undefinedTiddlerToolTip: "O tiddler '%0' ainda nao existe",
	shadowedTiddlerToolTip: "O tiddler '%0' ainda nao existe, mas tem um modelo pre-definido",
	tiddlerLinkTooltip: "%0 - %1, %2",
	externalLinkTooltip: "Ligacao externa a %0",
	noTags: "Nao ha tiddlers com etiquetas",
	notFileUrlError: "e‰ necessario guardar este TiddlyWiki num ficheiro antes de poder guardar alteracoes",
	cantSaveError: "Nao e posse&shy;vel guardar alteracoes. Posse&shy;veis razoes incluem:\n- o seu browser nao o permite (funciona sob Firefox, Internet Explorer, Safari ou Opera se estes estiverem configurados adequadamente)\n- o nome do caminho para o seu ficheiro TiddlyWiki contem caracteres ilegais\n- o nome ou a localizacao do ficheiro TiddlyWiki foram alterados",
	invalidFileError: "O ficheiro original '%0' nao parece ser um TiddlyWiki valido",
	backupSaved: "Ficheiro de salvaguarda guardado",
	backupFailed: "Falha ao guardar o ficheiro de salvaguarda",
	rssSaved: "Ficheiro RSS guardado",
	rssFailed: "Falha ao guardar o ficheiro RSS",
	emptySaved: "Modelo vazio guardado",
	emptyFailed: "Falha ao guardar o modelo vazio",
	mainSaved: "Ficheiro principal de TiddlyWiki guardado",
	mainFailed: "Falha ao guardar o ficheiro principal de TiddlyWiki. As suas alteracoes nao foram guardadas",
	macroError: "Erro na macro <<%0>>",
	macroErrorDetails: "Erro ao executar a macro <<%0>>:\n%1",
	missingMacro: "Essa macro nao existe",
	overwriteWarning: "Um tiddler chamado '%0' ja existe. Escolha OK para substitue&shy;-lo",
	unsavedChangesWarning: "ATENCAO! Ha alteracoes no TiddlyWiki que ainda nao foram guardadas\n\nEscolha OK para guardar\nEscolha CANCEL para abandonar as alteracoes",
	confirmExit: "--------------------------------\n\nHa alteracoes no TiddlyWiki que ainda nao foram guardadas. Se continuar ira perder essas alteracoes\n\n--------------------------------",
	saveInstructions: "GuardarAlteracoes",
	unsupportedTWFormat: "Formato TiddlyWiki nao suportado '%0'",
	tiddlerSaveError: "Erro ao guardar tiddler '%0'",
	tiddlerLoadError: "Erro ao carregar tiddler '%0'",
	wrongSaveFormat: "Nao e posse&shy;vel guardar no formato de armazenamento '%0'. Use o formato padrao para guardar.",
	invalidFieldName: "Nome de campo invalido %0",
	loadingMissingTiddler: "Tentando obter o tiddler '%0' do servidor '%1' em:\n\n'%2' no espaco de trabalho '%3'",
	upgradeDone: "A actualizacao para a versao %0 esta completa\n\nClique 'OK' para recarregar o TiddlyWiki actualizado",
	invalidCookie: "Cookie invalida '%0'"});

merge(config.messages.messageClose,{
	text: "fechar",
	tooltip: "fecha esta area de mensagens"});

config.messages.backstage = {
	open: {text: "bastidores", tooltip: "Abre a area de bastidores para executar tarefas de edicao e administracao"},
	close: {text: "fechar", tooltip: "Fecha a area de bastidores"},
	prompt: "bastidores: ",
	decal: {
		edit: {text: "editar", tooltip: "Edita o tiddler '%0'"}
	}
};

config.messages.listView = {
	tiddlerTooltip: "Clique para ver o texto completo deste tiddler",
	previewUnavailable: "(antevisao nao dispone&shy;vel)"
};

config.messages.dates.months = ["Janeiro","Fevereiro","Marco","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"];
config.messages.dates.days = ["Domingo","Segunda","Terca","Quarta","Quinta","Sexta","Sabado"];
config.messages.dates.shortMonths = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"];
config.messages.dates.shortDays = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];

merge(config.messages.tiddlerPopup,{
	});

merge(config.views.wikified.tag,{
	labelNoTags: "sem etiquetas",
	labelTags: "etiquetas: ",
	openTag: "Abrir etiqueta '%0'",
	tooltip: "Abrir tiddlers etiquetados com '%0'",
	openAllText: "Abrir todos",
	openAllTooltip: "Abrir todos estes tiddlers",
	popupNone: "Nao ha outros tiddlers etiquetados com '%0'"});

merge(config.views.wikified,{
	defaultText: "O tiddler '%0' ainda nao existe. Faca duplo-clique para cria-lo",
	defaultModifier: "(em falta)",
	shadowModifier: "(tiddler sombra pre-definido)",
	dateFormat: "DD MMM YYYY",
	createdPrompt: "criado em"});

merge(config.views.editor,{
	tagPrompt: "Escreva as etiquetas separadas por espacos, [[use duplos parenteses rectos]] se necessario, ou atribua existentes",
	defaultText: "Escreva o texto para '%0'"});

merge(config.views.editor.tagChooser,{
	text: "etiquetas",
	tooltip: "Escolha entre as etiquetas existentes para atribuir a este tiddler",
	popupNone: "Nao ha etiquetas definidas",
	tagTooltip: "Atribuir a etiqueta '%0'"});

merge(config.messages,{
	sizeTemplates:
		[
		{unit: 1024*1024*1024, template: "%0\u00a0GB"},
		{unit: 1024*1024, template: "%0\u00a0MB"},
		{unit: 1024, template: "%0\u00a0KB"},
		{unit: 1, template: "%0\u00a0B"}
		]});

merge(config.macros.search,{
	label: "procurar",
	prompt: "Procura neste TiddlyWiki",
	accessKey: "F",
	successMsg: "%0 tiddlers encontrados que contem %1",
	failureMsg: "Nao foi encontrado nenhum tiddler que contenha %0"});

merge(config.macros.tagging,{
	label: "etiquetando:",
	labelNotTag: "nao etiquetando",
	tooltip: "Lista de tiddlers etiquetados com '%0'"});

merge(config.macros.timeline,{
	dateFormat: "DD MMM YYYY"});

merge(config.macros.allTags,{
	tooltip: "Mostra tiddlers com a etiqueta '%0'",
	noTags: "Nao ha tiddlers etiquetados"});

config.macros.list.all.prompt = "Todos os tiddlers em ordem alfabetica";
config.macros.list.missing.prompt = "Tiddlers com ligacoes para eles mas que nao existem";
config.macros.list.orphans.prompt = "Tiddlers sem ligacoes de outros tiddlers";
config.macros.list.shadowed.prompt = "Tiddlers na sombra com conteudo pre-definido";
config.macros.list.touched.prompt = "Tiddlers que foram modificados localmente";

merge(config.macros.closeAll,{
	label: "fechar todos",
	prompt: "Fecha todos os tiddlers abertos (excepto os que estao a ser editados)"});

merge(config.macros.permaview,{
	label: "permavista",
	prompt: "Ligacao a um URL que mostra todos os tiddlers que estao abertos"});

merge(config.macros.saveChanges,{
	label: "guardar alteracoes",
	prompt: "Guarda todas as alteracoes em ficheiro",
	accessKey: "S"});

merge(config.macros.newTiddler,{
	label: "novo tiddler",
	prompt: "Cria um novo tiddler",
	title: "Novo tiddler",
	accessKey: "N"});

merge(config.macros.newJournal,{
	label: "novo diario",
	prompt: "Cria um novo tiddler com a data e hora actuais",
	accessKey: "J"});

merge(config.macros.options,{
	wizardTitle: "Configurar opcoes avancadas",
	step1Title: "Estas opcoes sao guardadas em cookies no seu browser",
	step1Html: "<input type='hidden' name='markList'></input><br><input type='checkbox' checked='false' name='chkUnknown'>Mostra opcoes desconhecidas</input>",
	unknownDescription: "//(desconhecido)//",
	listViewTemplate: {
		columns: [
			{name: 'Option', field: 'option', title: "Opcao", type: 'String'},
			{name: 'Description', field: 'description', title: "Descricao", type: 'WikiText'},
			{name: 'Name', field: 'name', title: "Nome", type: 'String'}
			],
		rowClasses: [
			{className: 'lowlight', field: 'lowlight'} 
			]}
	});

merge(config.macros.plugins,{
	wizardTitle: "Gerir plugins",
	step1Title: "Plugins carregados",
	step1Html: "<input type='hidden' name='markList'></input>", // DO NOT TRANSLATE
	skippedText: "(Este plugin nao foi executado porque foi incluido depois do arranque)",
	noPluginText: "Nao ha plugins instalados",
	confirmDeleteText: "Tem a a certeza que quer eliminar estes plugins:\n\n%0",
	removeLabel: "remover a etiqueta systemConfig",
	removePrompt: "Remove a etiqueta systemConfig",
	deleteLabel: "eliminar",
	deletePrompt: "Elimina estes tiddlers para sempre",
	listViewTemplate: {
		columns: [
			{name: 'Selected', field: 'Selected', rowName: 'title', type: 'Selector'},
			{name: 'Tiddler', field: 'tiddler', title: "Tiddler", type: 'Tiddler'},
			{name: 'Description', field: 'Description', title: "Descricao", type: 'String'},
			{name: 'Version', field: 'Version', title: "Versao", type: 'String'}, 
			{name: 'Size', field: 'size', tiddlerLink: 'size', title: "Tamanho", type: 'Size'},
			{name: 'Forced', field: 'forced', title: "Forcado", tag: 'systemConfigForce', type: 'TagCheckbox'},
			{name: 'Disabled', field: 'disabled', title: "Desactivado", tag: 'systemConfigDisable', type: 'TagCheckbox'},
			{name: 'Executed', field: 'executed', title: "Carregado", type: 'Boolean', trueText: "Sim", falseText: "Nao"},
			{name: 'Startup Time', field: 'startupTime', title: "Tempo de arranque", type: 'String'},
			{name: 'Error', field: 'error', title: "Estado", type: 'Boolean', trueText: "Erro", falseText: "OK"},
			{name: 'Log', field: 'log', title: "Registo", type: 'StringList'}
			],
		rowClasses: [
			{className: 'error', field: 'error'},
			{className: 'warning', field: 'warning'}
            ]}, 
	listViewTemplateReadOnly: { 
		columns: [ 
			{name: 'Tiddler', field: 'tiddler', title: "Tiddler", type: 'Tiddler'}, 
			{name: 'Description', field: 'Description', title: "Descricao", type: 'String'}, 
			{name: 'Version', field: 'Version', title: "Versao", type: 'String'}, 
			{name: 'Size', field: 'size', tiddlerLink: 'size', title: "Tamanho", type: 'Size'}, 
			{name: 'Executed', field: 'executed', title: "Carregado", type: 'Boolean', trueText: "Sim", falseText: "Nao"}, 
			{name: 'Startup Time', field: 'startupTime', title: "Tempo de inicializacao", type: 'String'}, 
			{name: 'Error', field: 'error', title: "Estado", type: 'Boolean', trueText: "Erro", falseText: "OK"}, 
			{name: 'Log', field: 'log', title: "Registo", type: 'StringList'} 
			], 
		rowClasses: [ 
			{className: 'error', field: 'error'}, 
			{className: 'warning', field: 'warning'}
			]}
	});

merge(config.macros.toolbar,{
	moreLabel: "mais",
	morePrompt: "Mostra comandos adicionais",
	lessLabel: "menos",
	lessPrompt: "Esconde comandos adicionais",
	separator: "|"
	});

merge(config.macros.refreshDisplay,{
	label: "refresca",
	prompt: "Refresca a apresentacao de todo o TiddlyWiki"
	});

merge(config.macros.importTiddlers,{
	readOnlyWarning: "Nao pode importar para um ficheiro TiddlyWiki so de leitura. Tente abrir a partir de um URL do tipo file://",
	wizardTitle: "Importar tiddlers de outro ficheiro TiddlyWiki ou servidor",
	step1Title: "Passo 1: Localize o servidor ou o ficheiro TiddlyWiki",
	step1Html: "Especifique o tipo de servidor: <select name='selTypes'><option value=''>Escolha...</option></select><br>Escreva o URL ou o caminho aqui: <input type='text' size=50 name='txtPath'><br>...ou procure um ficheiro: <input type='file' size=50 name='txtBrowse'><br><hr>...ou selecione uma localizacao pre-definida: <select name='selFeeds'><option value=''>Escolha...</option></select>",
	openLabel: "abrir",
	openPrompt: "Abre a ligacao a este ficheiro ou servidor",
	statusOpenHost: "Abrindo o anfitriao",
	statusGetWorkspaceList: "Obtendo a lista de espacos de trabalho dispone&shy;veis",
	step2Title: "Passo 2: Escolha o espaco de trabalho",
	step2Html: "Escreva o nome de um espaco de trabalho: <input type='text' size=50 name='txtWorkspace'><br>...or selecione um espaco de trabalho: <select name='selWorkspace'><option value=''>Escolha...</option></select>",
	cancelLabel: "cancelar",
	cancelPrompt: "Cancela esta importacao",
	statusOpenWorkspace: "Abrindo o espaco de trabalho",
	statusGetTiddlerList: "Obtendo a lista de tiddlers dispone&shy;veis",
	errorGettingTiddlerList: "Erro ao transferir a lista de tiddlers, clique em Cancelar para tentar novamente",
	step3Title: "Passo 3: Escolha os tiddlers para importar",
	step3Html: "<input type='hidden' name='markList'></input><br><input type='checkbox' checked='true' name='chkSync'>Manter estes tiddlers ligados a este servidor para poder sincronizar mudancas subsequentes</input><br><input type='checkbox' name='chkSave'>Guardar os detalhes deste servidor num tiddler 'systemServer' chamado:</input> <input type='text' size=25 name='txtSaveTiddler'>",
	importLabel: "importar",
	importPrompt: "Importa estes tiddlers",
	confirmOverwriteText: "Tem a certeza que quer substituir estes tiddlers:\n\n%0",
	step4Title: "Passo 4: Importando %0 tiddler(s)",
	step4Html: "<input type='hidden' name='markReport'></input>", // DO NOT TRANSLATE
	doneLabel: "fechar",
	donePrompt: "Fecha este assistente",
	statusDoingImport: "Importando tiddlers",
	statusDoneImport: "Todos os tiddlers importados",
	systemServerNamePattern: "%2 de %1",
	systemServerNamePatternNoWorkspace: "%1",
	confirmOverwriteSaveTiddler: "O tiddler '%0' ja existe. Clique 'OK' para o substituir pelos detalhes deste servidor, ou 'Cancel' para manter sem alteracoes",
	serverSaveTemplate: "|''Tipo:''|%0|\n|''URL:''|%1|\n|''Espaco de trabalho:''|%2|\n\nEste tiddler foi criado automaticamente para registar os detalhes deste servidor",
	serverSaveModifier: "(Sistema)",
	listViewTemplate: {
		columns: [
			{name: 'Selected', field: 'Selected', rowName: 'title', type: 'Selector'},
			{name: 'Tiddler', field: 'tiddler', title: "Tiddler", type: 'Tiddler'},
			{name: 'Size', field: 'size', tiddlerLink: 'size', title: "Tamanho", type: 'Size'},
			{name: 'Tags', field: 'tags', title: "Etiquetas", type: 'Tags'}
			],
		rowClasses: [
			]}
	});

merge(config.macros.upgrade,{
	wizardTitle: "Actualizacao do codigo central do TiddlyWiki",
	step1Title: "Actualize ou repare este TiddlyWiki para a versao mais recente",
	step1Html: "Vai proceder com a actualizacao para o codigo central do TiddlyWiki mais recente (a partir de <a href='%0' class='externalLink' target='_blank'>%1</a>). O seu conteudo sera preservado pela actualizacao.<br><br>Note que as actualizacoes do codigo central podem interferir com plugins antigos. Se tiver problemas com o ficheiro actualizado, veja <a href='http://www.tiddlywiki.org/wiki/CoreUpgrades' class='externalLink' target='_blank'>http://www.tiddlywiki.org/wiki/CoreUpgrades</a>",
	errorCantUpgrade: "Nao e posse&shy;vel actualizar este TiddlyWiki.  So sao posse&shy;veis as actualizacoes de ficheiros TiddlyWiki guardados localmente",
	errorNotSaved: "e‰ necessario guardar modificacoes antes de actualizar",
	step2Title: "Confirme os detalhes da actualizacao",
	step2Html_downgrade: "Vai regredir para a versao %0 do TiddlyWiki a partir da versao %1.<br><br>Regredir para uma versao anterior do codigo central nao e recomendado",
	step2Html_restore: "Parece que este TiddlyWiki ja usa a ultima versao do codigo central (%0).<br><br>Pode continuar a actualizacao para garantir que o codigo central nao foi corrompido ou danificado",
	step2Html_upgrade: "Vai actualizar o TiddlyWiki da versao %1 para a versao %0",
	upgradeLabel: "actualizar",
	upgradePrompt: "Prepare-se para o processo de actualizacao",
	statusPreparingBackup: "A preparar copia de seguranca",
	statusSavingBackup: "A guardar copia de seguranca",
	errorSavingBackup: "Ocorreu um problema ao guardar a copia de seguranca",
	statusLoadingCore: "A transferir o codigo central",
	errorLoadingCore: "Erro ao transferir o codigo central",
	errorCoreFormat: "Erro com o novo codigo central",
	statusSavingCore: "A guardar o novo codigo central",
	statusReloadingCore: "A recarregar o novo codigo central",
	startLabel: "iniciar",
	startPrompt: "Inicie a actualizacao",
	cancelLabel: "cancelar",
	cancelPrompt: "Cancele a actualizacao",
	step3Title: "Actualizacao cancelada",
	step3Html: "A actualizacao foi cancelada"
	});

merge(config.macros.sync,{
	listViewTemplate: {
		columns: [
			{name: 'Selected', field: 'selected', rowName: 'title', type: 'Selector'},
			{name: 'Tiddler', field: 'tiddler', title: "Tiddler", type: 'Tiddler'},
			{name: 'Server Type', field: 'serverType', title: "Tipo de servidor", type: 'String'},
			{name: 'Server Host', field: 'serverHost', title: "Anfitriao do servidor", type: 'String'},
			{name: 'Server Workspace', field: 'serverWorkspace', title: "Espaco de trabalho do servidor", type: 'String'},
			{name: 'Status', field: 'status', title: "Estado da sincronizacao", type: 'String'},
			{name: 'Server URL', field: 'serverUrl', title: "URL do servidor", text: "Ver", type: 'Link'}
			],
		rowClasses: [
			],
		buttons: [
			{caption: "Sincroniza este tiddlers", name: 'sync'}
			]},
	wizardTitle: "Sincronizar com ficheiros ou servidores externos",
	step1Title: "Escolha os tiddlers que quer sincronizar",
	step1Html: "<input type='hidden' name='markList'></input>", // DO NOT TRANSLATE
	syncLabel: "sincronizar",
	syncPrompt: "Sincroniza este tiddlers",
	hasChanged: "Alterado enquanto desligado",
	hasNotChanged: "Sem alteracoes enquanto desligado",
	syncStatusList: {
		none: {text: "...", display:'none', className:'notChanged'},
		changedServer: {text: "Alterado no servidor", display:null, className:'changedServer'},
		changedLocally: {text: "Alterado enquanto desligado", display:null, className:'changedLocally'},
		changedBoth: {text: "Alterado enquanto desligado e no servidor",  display:null, className:'changedBoth'},
		notFound: {text: "Nao encontrado no servidor", display:null, className:'notFound'},
		putToServer: {text: "Actualizado no servidor", display:null, className:'putToServer'},
		gotFromServer: {text: "Obtida actualizacao do servidor", display:null, className:'gotFromServer'}
		}
	});

merge(config.macros.annotations,{
	});

merge(config.commands.closeTiddler,{
	text: "fechar",
	tooltip: "Fecha este tiddler"});

merge(config.commands.closeOthers,{
	text: "isolar",
	tooltip: "Fecha todos os outros tiddlers"});

merge(config.commands.editTiddler,{
	text: "editar",
	tooltip: "Edita este tiddler",
	readOnlyText: "ver",
	readOnlyTooltip: "Ver o conteudo deste tiddler"});

merge(config.commands.saveTiddler,{
	text: "guardar",
	tooltip: "Guarda as alteracoes a este tiddler"});

merge(config.commands.cancelTiddler,{
	text: "cancelar",
	tooltip: "Cancela as alteracoes a este tiddler",
	warning: "Tem a certeza que quer cancelar as alteracoes a '%0'?",
	readOnlyText: "voltar",
	readOnlyTooltip: "Ver este tiddler normalmente"});

merge(config.commands.deleteTiddler,{
	text: "eliminar",
	tooltip: "Elimina este tiddler",
	warning: "Tem a certeza que quer eliminar '%0'?"});

merge(config.commands.permalink,{
	text: "permaligacao",
	tooltip: "Permaligacao para este tiddler"});

merge(config.commands.references,{
	text: "referencias",
	tooltip: "Mostra tiddlers que ligam a este",
	popupNone: "Sem referencias"});

merge(config.commands.jump,{
	text: "saltar",
	tooltip: "Salta para outro tiddler aberto"});

merge(config.commands.syncing,{
	text: "sinc",
	tooltip: "Controla sincronizacao deste tiddler com um servidor ou ficheiro externo",
	currentlySyncing: "<div>Sincronizando via <span class='popupHighlight'>'%0'</span> para:</"+"div><div>anfitriao: <span class='popupHighlight'>%1</span></"+"div><div>espaco de trabalho: <span class='popupHighlight'>%2</span></"+"div>", // Note escaping of closing <div> tag
	notCurrentlySyncing: "Sem sincronizacao",
	captionUnSync: "Parar sincronizacao deste tiddler",
	chooseServer: "Sincronizar este tiddler com outro servidor:",
	currServerMarker: "\u25cf ",
	notCurrServerMarker: "  "});

merge(config.commands.fields,{
	text: "campos",
	tooltip: "Mostra os campos estendidos deste tiddler",
	emptyText: "Este tiddler nao tem campos estendidos",
	listViewTemplate: {
		columns: [
			{name: 'Field', field: 'field', title: "Campo", type: 'String'},
			{name: 'Value', field: 'value', title: "Valor", type: 'String'}
			],
		rowClasses: [
			],
		buttons: [
			]}});

merge(config.shadowTiddlers,{
	DefaultTiddlers: "[[ComoIniciar]]",
	MainMenu: "[[ComoIniciar]]",
	ComoIniciar: "Para comecar a usar este TiddlyWiki vazio tera de modificar os seguintes tiddlers:\n* SiteTitle & SiteSubtitle: O te&shy;tulo e o subte&shy;tulo do site, como pode ver acima (depois de guardar as alteracoes, eles aparecerao tambem na barra de te&shy;tulo do browser)\n* MainMenu: O menu (usualmente e&nbsp; esquerda)\n* DefaultTiddlers: Contem o nome dos tiddlers que pretende que aparecam quando o TiddlyWiki e aberto\nSera tambem necessario inserir o nome de utilizador que servira para assinar as edicoes: <<option txtUserName>>",
	SiteTitle: "O meu TiddlyWiki",
	SiteSubtitle: "um bloco de notas reutilizavel e nao-linear na web",
	SiteUrl: "",
	SideBarOptions: '<<search>><<closeAll>><<permaview>><<newTiddler>><<newJournal "DD MMM YYYY">><<saveChanges>><<slider chkSliderOptionsPanel OptionsPanel "opcoes \u00bb" "Muda as opcoes avancadas do TiddlyWiki">>',
	OptionsPanel: "Estas opcoes de personalizacao do TiddlyWiki ficam guardadas no seu browser\n\nO seu nome de utilizador para assinar os textos. Use uma PalavraWiki (eg, JoseSilva)\n\n<<option txtUserName>>\n<<option chkSaveBackups>> GuardarSalvaguardas\n<<option chkAutoSave>> AutoGuardar\n<<option chkRegExpSearch>> ProcuraExpReg\n<<option chkCaseSensitiveSearch>> ProcuraSense&shy;vMaiusc\n<<option chkAnimate>> ActivarAnimacoes\n\n----\nVeja as [[OpcoesAvancadas|AdvancedOptions]]",
	SideBarTabs: '<<tabs txtMainTab "Data" "Tiddlers por ordem cronologica" TabTimeline "Te&shy;tulo" "Tiddlers por ordem alfabetica" TabAll "Etiquetas" "Todas as etiquetas" TabTags "Mais" "Mais listas" TabMore>>',
	TabMore: '<<tabs txtMoreTab "Em falta" "Tiddlers em falta" TabMoreMissing "e“rfaos" "Tiddlers sem ligacoes de outros tiddlers" TabMoreOrphans "Sombra" "Tiddlers na sombra" TabMoreShadowed>>',
	ToolbarCommands: "|~ViewToolbar|closeTiddler closeOthers +editTiddler > fields syncing permalink references jump|\n|~EditToolbar|+saveTiddler -cancelTiddler deleteTiddler|"});

merge(config.annotations,{
	AdvancedOptions: "Este tiddler sombra da acesso a varias opcoes avancadas",
	ColorPalette: "Estes valores neste tiddler sombra determinam o esquema de cores do interface de utilizador do ~TiddlyWiki",
	DefaultTiddlers: "Os tiddlers listados neste tiddler sombra serao automaticamente abertos no arranque do ~TiddlyWiki",
	EditTemplate: "O modelo em HTML neste tiddler sombra determina o aspecto dos tiddlers enquanto sao editados",
	ComoIniciar: "Este tiddler sombra fornece algumas instrucoes basicas de utilizacao",
	ImportTiddlers: "Este tiddler sombra da acesso e&nbsp; importacao de tiddlers",
	MainMenu: "Este tiddler sombra e usado como conteudo do menu principal na coluna da esquerda do ecran",
	MarkupPreHead: "Este tiddler e inserido no topo da seccao <head> do ficheiro TiddlyWiki",
	MarkupPostHead: "Este tiddler e inserido no fundo da seccao <head> do ficheiro TiddlyWiki",
	MarkupPreBody: "Este tiddler e inserido no topo da seccao <body> do ficheiro TiddlyWiki",
	MarkupPostBody: "Este tiddler e inserido no fim da seccao <head> do ficheiro TiddlyWiki immediatamente apos o bloco <script>",
	OptionsPanel: "Este tiddler sombra e usado como conteudo do painel deslizante de opcoes na barra lateral da direita",
	PageTemplate: "O modelo em HTML neste tiddler sombra determina o aspecto geral do ~TiddlyWiki",
	PluginManager: "Este tiddler sombra da acesso ao gestor de plugins",
	SideBarOptions: "Este tiddler sombra e usado como conteudo do painel de opcoes na barra lateral da direita",
	SideBarTabs: "Este tiddler sombra e usado como conteudo do painel de abas na barra lateral da direita",
	SiteSubtitle: "Este tiddler sombra e usado como a segunda parte do te&shy;tulo da pagina",
	SiteTitle: "Este tiddler sombra e usado como a primeira parte do te&shy;tulo da pagina",
	SiteUrl: "Este tiddler sombra deve conter o URL completo para publicacao",
	StyleSheetColors: "Este tiddler sombra contem definicoes CSS relacionadas com a cor dos elementos da pagina. ''NeÆ’O EDITE ESTE TIDDLER'', em vez disso faca as suas alteracoes no tiddler sombra StyleSheet",
	StyleSheet: "Este tiddler pode conter definicoes CSS do utilizador",
	StyleSheetLayout: "Este tiddler sombra contem definicoes CSS relacionadas com a disposicao dos elementos da pagina. ''NeÆ’O EDITE ESTE TIDDLER'', em vez disso faca as suas alteracoes no tiddler sombra StyleSheet",
	StyleSheetLocale: "Este tiddler sombra contem definicoes CSS relacionadas com traducoes",
	StyleSheetPrint: "Este tiddler sombra contem definicoes CSS relacionadas com a impressao",
	SystemSettings: "Este tiddler e usado para guardar opcoes de configuracao deste documento ~TiddlyWiki",
	TabAll: "Este tiddler sombra define o conteudo da aba 'Te&shy;tulo' na barra lateral da direita",
	TabMore: "Este tiddler sombra define o conteudo da aba 'Mais' na barra lateral da direita",
	TabMoreMissing: "Este tiddler sombra define o conteudo da aba 'Em falta' na barra lateral da direita",
	TabMoreOrphans: "Este tiddler sombra define o conteudo da aba 'e“rfaos' na barra lateral da direita",
	TabMoreShadowed: "Este tiddler sombra define o conteudo da aba 'Sombra' na barra lateral da direita",
	TabTags: "Este tiddler sombra define o conteudo da aba 'Etiquetas' na barra lateral da direita",
	TabTimeline: "Este tiddler sombra define o conteudo da aba 'Data' na barra lateral da direita",
	ToolbarCommands: "Este tiddler sombra determina quais os comandos que aparecem na barra de ferramentas dos tiddlers",
	ViewTemplate: "O modelo em HTML neste tiddler sombra determina o aspecto dos tiddlers"
	});

delete config.shadowTiddlers.GettingStarted;
/*}}}*/
Imagination is more important than knowledge.Knowledge is limited. Imagination encircles the world. - Albert Einstein
The only thing that interferes with my learning is my education.
If I were not a physicist, I would probably be a musician.
I often think in music.
I live my daydreams in music. I see my life in terms of music.
... I get most joy in life out of music.
Not everything that counts can be counted, and not everything that can be counted counts.
The intuitive mind is a sacred gift and the rational mind is a faithful servant.
We have created a society that honors the servant and has forgotten the gift."
Education is what remains after one has forgotten everything he learned in school."
Only a life lived for others is a life worth while ."
The only reason for time is so that everything doesn't happen at once."
How on earth are you ever going to explain in terms of chemistry and physics so important a biological phenomenon as first love?
My religion consists of a humble admiration of the illimitable superior spirit who reveals
himself in the slight details we are able to perceive with our frail and feeble mind."
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
The prestige of government has undoubtedly been lowered considerably by the prohibition law. For nothing is more destructive of respect for the government & the law of the land than passing laws which cannot be enforced.
In a gentle way, you can shake the world. - Mahatma Gandhi
Peace is not merely a distant goal that we seek, but a means by which we arrive at that goal. Martin Luther King Jr
Make an empty space in any corner of your mind, and creativity will instantly fill it. Dee Hock
The problem is never how to get new, innovative thoughts into your mind, but how to get old ones out.- Dee Hock
Simplicity does not precede complexity, but follows it. - Alan Perlis
For the simplicity this side of complexist, I wouldnt give you a fig. But for the simplicty the oher side of complexity, Id give you anything I have. - Oliver Wendell Holmes
<<wikify {{localStorage.referencias}}>>
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script> localStorage.tema="Resiliencia";</script><<tiddler IndexTiddler>>
<script>
var out="";
localStorage.index=""+localStorage.tema+"/"+localStorage.sequencia;
//return localStorage.index;
var tids=getText(localStorage.index);
tids=tids.split("#");
for(i=1;i<tids.length;i++)
{
out+='<script label="'+tids[i].substring(2)+'">localStorage.oneMenu="display";localStorage.url="'+localStorage.tema+'/'+tids[i].substring(2)+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';
}
return out;
</script>
/***
|Name|SetIconPlugin|
|Source|http://www.TiddlyTools.com/#SetIconPlugin|
|Documentation|http://www.TiddlyTools.com/#SetIconPluginInfo|
|Version|1.9.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.3|
|Type|plugin|
|Description|add an image to a toolbar, macro, or slider link|
!!!!!Documentation
>see [[SetIconPluginInfo]]
!!!!!Configuration
<<<
<<option chkIconsShowImage>> show images on links
<<option chkIconsShowText>> include link text with images
default image style: {{stretch{<<option txtIconsCSS>>}}}
<<<
!!!!!Revisions
<<<
2011.10.02 1.9.1 use plain text instead of innerHTML for link tooltips
2011.10.02 1.9.0 added 'find:...' macro param (for use with tabsets)
| see [[SetIconPluginInfo]] for additional revision details |
2008.05.09 1.0.0 initial release (as inline script)
<<<
!!!!!Code
***/
//{{{
version.extensions.SetIconPlugin= {major: 1, minor: 9, revision: 1, date: new Date(2011,10,2)};

if (config.options.chkIconsShowImage===undefined)
	config.options.chkIconsShowImage=true;
if (config.options.chkIconsShowText===undefined)
	config.options.chkIconsShowText=true;
if (config.options.txtIconsCSS===undefined)
	config.options.txtIconsCSS="vertical-align:middle;width:auto;height:auto";

config.macros.setIcon = {
	handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		if (!config.options.chkIconsShowImage) return; // text-only - do nothing
		var src=params[0]; if (!src) return;  // no image src specified - do nothing
		var p=paramString.parseParams('name',null,true,false,true);
		var label=getParam(p,'find'); if (label) params.shift(); // optional find:"..."
		var css=params[1]; if (!css||!css.length) css=config.options.txtIconsCSS;
		var after=params[2]&&params[2].toUpperCase()=="RIGHT";
		var notext=params[2]&&params[2].toUpperCase()=="NOTEXT";

		// find nearest link element
		var btn=place.lastChild; // look for sibling link
		while (btn && (btn.nodeName!="A" || label&&!btn.innerHTML.startsWith(label)))
			btn=btn.previousSibling;
		if (!btn) { // look for child link
			var links=place.getElementsByTagName("A");
			for (var i=links.length-1; i>=0; i--)
				if (!label || links[i].innerHTML.startsWith(label)) { btn=links[i]; break; }
		}
		if (!btn) { // look for parent link
			var btn=place.parentNode.lastChild;
			while (btn && (btn.nodeName!="A" || label&&!btn.innerHTML.startsWith(label)))
				btn=btn.previousSibling;
		}
		if (!btn) { // look for cousin link (e.g. TABS in TABSETS)
			var links=place.parentNode.getElementsByTagName("A");
			for (var i=links.length-1; i>=0; i--)
				if (!label || links[i].innerHTML.startsWith(label)) { btn=links[i]; alert('found'); break; }
		}
		if (!btn) return; // can't find a link - do nothing

		// set icon and command text/tip
		var txt=btn.innerHTML; var tip=getPlainText(btn);
		if (config.macros.attach && config.macros.attach.isAttachment(src))
			src=config.macros.attach.getAttachment(src); // retrieve attachment (if any)
		btn.innerHTML="<img src='"+src+"' style='"+css+"'>";
		if (config.options.chkIconsShowText && !notext)
			btn.innerHTML=after?txt+btn.innerHTML:btn.innerHTML+txt;
		else
			btn.title=tip+" - "+btn.title; // add text to tooltip

		// adjust nested slider button text/tip
		if (btn.getAttribute("closedtext")!=null) {
			btn.setAttribute("closedtext",btn.innerHTML);
			btn.setAttribute("openedtext",btn.innerHTML);
			if (!config.options.chkIconsShowText || notext) {
				btn.setAttribute("closedtip",txt.toUpperCase()+": "+btn.getAttribute("closedtip"));
				btn.setAttribute("openedtip",txt.toUpperCase()+": "+btn.getAttribute("openedtip"));
			}
		}
	}
};
//}}}
<script>
localStorage.oneMenu="show";
localStorage.count="1";
//return localStorage.show;
localStorage.showItems=getText(localStorage.show);
config.refreshers.content(document.getElementById("oneMenu"));
</script>
/***
|Name|[[ShowPopupPlugin]]|
|Source|http://www.TiddlyTools.com/#ShowPopupPlugin|
|Version|2.1.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|display tiddler content in a TiddlyWiki popup panel|
!!!!!Documenatation
>see [[ShowPopupPluginInfo]]
!!!!!Revisions
<<<
2011.03.13 2.1.1 in click(), removed check for popup already shown (prevents nested popups!)
| Please see [[ShowPopupPluginInfo]] for previous revision details |
2006.09.09 1.0.0 initial release (transclusion)
<<<
!!!!!Code
***/
//{{{
version.extensions.ShowPopupPlugin=
	{ major:2, minor:1, revision:1, date:new Date(2011,3,13) };
config.macros.showPopup = {
	tip: 'display "%0" in a popup',
	init: function() {
		config.shadowTiddlers.ShowPopup =
			'<<showPopup tiddler:[[$1]] label:"$2" tip:"$3" buttonClass:"button $4" width:"$5" popupClass:"$6" "$7">>';
		config.annotations.ShowPopup =
			'created by ShowPopupPlugin';
	},
	handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		var p=paramString.parseParams('name',null,true,false,true);
		var tid=getParam(p,'tiddler','TiddlerName');
		var label=getParam(p,'label',tid);
		var tip=getParam(p,'tip',this.tip.format([tid]));
		var buttonClass=getParam(p,'buttonClass','');
		var width=getParam(p,'width','auto');
		var popupClass=getParam(p,'popupClass','');
		var above=params.contains('above');
		var mouseover=params.contains('mouseover');
		var b=createTiddlyButton(place, label, tip, this.click, buttonClass, null, null,
			{ tid:tid, popupClass:popupClass, width:width, above:above });
		b.innerHTML=label; // render HTML for entities, images, etc
		if (mouseover) b.onmouseover=b.onclick;  // option: mouseover triggers click
	},
	click: function(ev) { var ev=ev||window.event;
		// DISABLED if (Popup.find(this)!=-1)return false; // popup already shown!
		var p=Popup.create(this); if(!p)return false; // popup not created!
		addClass(p,this.getAttribute('popupClass'));
		var d=createTiddlyElement(p,'div');
		var s=d.style; s.whiteSpace='normal'; s.width=this.getAttribute('width'); s.padding='2px';
		wikify(store.getTiddlerText(this.getAttribute('tid'),''),d);
		if (this.getAttribute('above')!='true') Popup.show();
		else Popup.show('top','left',{x:0,y:-jQuery(d).outerHeight()});
		ev.cancelBubble=true; if(ev.stopPropagation)ev.stopPropagation(); return false;
	}
}
//}}}
<script>
//// usando localStorage.show (gerado when @show appears in displayItem) 

var out="";
var showIndex=localStorage.tema+"/"+localStorage.show;
//return showIndex;
var showLista=getText(showIndex);
//return showLista;
showLista=showLista.replace(/\r\n|\n|\r/g,"");
//return showLista;
var fileList=showLista.split("#");


for(k=1;k<fileList.length;k++)
{
var url=localStorage.tema+"/"+fileList[k];
//return url;
out+=toTex(url,"frame");
}

var header=getText("simpleBeamer");
//return out;
return header+"<br>"+out+"<br>end{document}";


function toTex(file,nivel)
{
var newTex="";
var tids=getText(file);
tids=tids.replace(/\r\n|\n|\r/g,"");
tids=tids.split("#");


for (i=0;i<tids.length-1;i++)
{
if(tids[i].indexOf("@frame")!=-1){tids[i]=tids[i].replace("@frame{","<br>@begin{frame}<br>@frametitle{");}

if(tids[i].indexOf("@note")!=-1){tids[i]=" ";}

if(tids[i].indexOf("@text")!=-1){tids[i]=tids[i].replace("@text{","");tids[i]=tids[i].replace(/}endText/g,"");}

if(tids[i].indexOf("@referencias")!=-1){tids[i]=tids[i].replace("@referencias","@vfill(Referencias:");tids[i]=tids[i].replace(/endReferencias/g,")");}

if(tids[i].indexOf("@tag{")!=-1)
{
tids[i]=tids[i].replace("@tag{","");
tids[i]=tids[i].replace("{endTag","");
localStorage.tag=tids[i];
tids[i]="";
}
}


tids=tids.join(" ");



tids=tids.replace(/@imagemH/g,"@begin{figure}<br>@includegraphics[width=13cm]");
tids=tids.replace(/@imagemV/g,"@begin{figure}<br>@includegraphics[height=7cm]");
tids=tids.replace(/@imagemS/g,"@includegraphics[width=2cm]");
tids=tids.replace(/@imagem/g,"@includegraphics[width=4cm]");
tids=tids.replace(/endImagem/g,"");
tids=tids.replace(/@url/g,"@url");
tids=tids.replace(/@begin/g,"@begin");
tids=tids.replace(/@end{itemize}/g,"@end{itemize}");
tids=tids.replace(/@item/g,"@item");
tids=tids.replace(/@widebox/g,"@mdframes");
tids=tids.replace(/endWidebox/g,"");
tids=tids.replace(/@menubox/g,"@mdframes");
tids=tids.replace(/endMenubox/g,"");
tids=tids.replace(/@hrule/g,"@hrule");
tids=tids.replace(/endCaption/g,"<br>@end{figure}");
tids=tids.replace(/videoPlay{/g,"(referencia ao video do YouTube - @href{www.youtube.com/watch?v=");

tids=tids.replace(/video{/g,"(referencia ao video do YouTube - @href{www.youtube.com/watch?v=");
tids=tids.replace(/endVideo/g,"})");




//return tids;

tids=tids.replace(/@/g,"\");

return tids;

}

</script>
/***
|Name|SimpleMessagePlugin|
|Version|0.1|
|Author|Michael Mahemoff, Osmosoft|
|''License:''|[[BSD open source license]]|
|~CoreVersion|2.2|
***/

/*{{{*/
(function() {
if(!version.extensions.SimpleMessagePlugin) {

  version.extensions.SimpleMessagePlugin = {installed:true};
  version.extensions.SimpleMessagePlugin.delay = 2000;
  
  var timer;

  var _displayMessage = displayMessage;
  displayMessage = function() {
    if (timer) {
      timer=null;
      clearTimeout(timer);
    }
    timer = setTimeout(clearMessage, version.extensions.SimpleMessagePlugin.delay);
    _displayMessage.apply(this, arguments);
  }

  var _clearMessage = clearMessage;
  clearMessage = function() {
    clearTimeout(timer);
    return _clearMessage.apply(this, arguments);
  }

} // end of 'install only once'
})();
/*}}}*/
/***
|Name|SinglePageModePlugin|
|Source|http://www.TiddlyTools.com/#SinglePageModePlugin|
|Documentation|http://www.TiddlyTools.com/#SinglePageModePluginInfo|
|Version|2.9.7|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|Show tiddlers one at a time with automatic permalink, or always open tiddlers at top/bottom of page.|
This plugin allows you to configure TiddlyWiki to navigate more like a traditional multipage web site with only one tiddler displayed at a time.
!!!!!Documentation
>see [[SinglePageModePluginInfo]]
!!!!!Configuration
<<<
<<option chkSinglePageMode>> Display one tiddler at a time
><<option chkSinglePagePermalink>> Automatically permalink current tiddler
><<option chkSinglePageKeepFoldedTiddlers>> Don't close tiddlers that are folded
><<option chkSinglePageKeepEditedTiddlers>> Don't close tiddlers that are being edited
<<option chkTopOfPageMode>> Open tiddlers at the top of the page
<<option chkBottomOfPageMode>> Open tiddlers at the bottom of the page
<<option chkSinglePageAutoScroll>> Automatically scroll tiddler into view (if needed)

Notes:
* The "display one tiddler at a time" option can also be //temporarily// set/reset by including a 'paramifier' in the document URL: {{{#SPM:true}}} or {{{#SPM:false}}}.
* If more than one display mode is selected, 'one at a time' display takes precedence over both 'top' and 'bottom' settings, and if 'one at a time' setting is not used, 'top of page' takes precedence over 'bottom of page'.
* When using Apple's Safari browser, automatically setting the permalink causes an error and is disabled.
<<<
!!!!!Revisions
<<<
2010.11.30 2.9.7 use story.getTiddler()
2008.10.17 2.9.6 changed chkSinglePageAutoScroll default to false
| Please see [[SinglePageModePluginInfo]] for previous revision details |
2005.08.15 1.0.0 Initial Release.  Support for BACK/FORWARD buttons adapted from code developed by Clint Checketts.
<<<
!!!!!Code
***/
//{{{
version.extensions.SinglePageModePlugin= {major: 2, minor: 9, revision: 7, date: new Date(2010,11,30)};
//}}}
//{{{
config.paramifiers.SPM = { onstart: function(v) {
	config.options.chkSinglePageMode=eval(v);
	if (config.options.chkSinglePageMode && config.options.chkSinglePagePermalink && !config.browser.isSafari) {
		config.lastURL = window.location.hash;
		if (!config.SPMTimer) config.SPMTimer=window.setInterval(function() {checkLastURL();},1000);
	}
} };
//}}}
//{{{
if (config.options.chkSinglePageMode==undefined)
	config.options.chkSinglePageMode=false;
if (config.options.chkSinglePagePermalink==undefined)
	config.options.chkSinglePagePermalink=true;
if (config.options.chkSinglePageKeepFoldedTiddlers==undefined)
	config.options.chkSinglePageKeepFoldedTiddlers=false;
if (config.options.chkSinglePageKeepEditedTiddlers==undefined)
	config.options.chkSinglePageKeepEditedTiddlers=false;
if (config.options.chkTopOfPageMode==undefined)
	config.options.chkTopOfPageMode=false;
if (config.options.chkBottomOfPageMode==undefined)
	config.options.chkBottomOfPageMode=false;
if (config.options.chkSinglePageAutoScroll==undefined)
	config.options.chkSinglePageAutoScroll=false;
//}}}
//{{{
config.SPMTimer = 0;
config.lastURL = window.location.hash;
function checkLastURL()
{
	if (!config.options.chkSinglePageMode)
		{ window.clearInterval(config.SPMTimer); config.SPMTimer=0; return; }
	if (config.lastURL == window.location.hash) return; // no change in hash
	var tids=decodeURIComponent(window.location.hash.substr(1)).readBracketedList();
	if (tids.length==1) // permalink (single tiddler in URL)
		story.displayTiddler(null,tids[0]);
	else { // restore permaview or default view
		config.lastURL = window.location.hash;
		if (!tids.length) tids=store.getTiddlerText("DefaultTiddlers").readBracketedList();
		story.closeAllTiddlers();
		story.displayTiddlers(null,tids);
	}
}


if (Story.prototype.SPM_coreDisplayTiddler==undefined)
	Story.prototype.SPM_coreDisplayTiddler=Story.prototype.displayTiddler;
Story.prototype.displayTiddler = function(srcElement,tiddler,template,animate,slowly)
{
	var title=(tiddler instanceof Tiddler)?tiddler.title:tiddler;
	var tiddlerElem=story.getTiddler(title); // ==null unless tiddler is already displayed
	var opt=config.options;
	var single=opt.chkSinglePageMode && !startingUp;
	var top=opt.chkTopOfPageMode && !startingUp;
	var bottom=opt.chkBottomOfPageMode && !startingUp;
	if (single) {
		story.forEachTiddler(function(tid,elem) {
			// skip current tiddler and, optionally, tiddlers that are folded.
			if (	tid==title
				|| (opt.chkSinglePageKeepFoldedTiddlers && elem.getAttribute("folded")=="true"))
				return;
			// if a tiddler is being edited, ask before closing
			if (elem.getAttribute("dirty")=="true") {
				if (opt.chkSinglePageKeepEditedTiddlers) return;
				// if tiddler to be displayed is already shown, then leave active tiddler editor as is
				// (occurs when switching between view and edit modes)
				if (tiddlerElem) return;
				// otherwise, ask for permission
				var msg="'"+tid+"' is currently being edited.\n\n";
				msg+="Press OK to save and close this tiddler\nor press Cancel to leave it opened";
				if (!confirm(msg)) return; else story.saveTiddler(tid);
			}
			story.closeTiddler(tid);
		});
	}
	else if (top)
		arguments[0]=null;
	else if (bottom)
		arguments[0]="bottom";
	if (single && opt.chkSinglePagePermalink && !config.browser.isSafari) {
		window.location.hash = encodeURIComponent(String.encodeTiddlyLink(title));
		config.lastURL = window.location.hash;
		document.title = wikifyPlain("SiteTitle") + " - " + title;
		if (!config.SPMTimer) config.SPMTimer=window.setInterval(function() {checkLastURL();},1000);
	}
	if (tiddlerElem && tiddlerElem.getAttribute("dirty")=="true") { // editing... move tiddler without re-rendering
		var isTopTiddler=(tiddlerElem.previousSibling==null);
		if (!isTopTiddler && (single || top))
			tiddlerElem.parentNode.insertBefore(tiddlerElem,tiddlerElem.parentNode.firstChild);
		else if (bottom)
			tiddlerElem.parentNode.insertBefore(tiddlerElem,null);
		else this.SPM_coreDisplayTiddler.apply(this,arguments); // let CORE render tiddler
	} else
		this.SPM_coreDisplayTiddler.apply(this,arguments); // let CORE render tiddler
	var tiddlerElem=story.getTiddler(title);
	if (tiddlerElem&&opt.chkSinglePageAutoScroll) {
		// scroll to top of page or top of tiddler
		var isTopTiddler=(tiddlerElem.previousSibling==null);
		var yPos=isTopTiddler?0:ensureVisible(tiddlerElem);
		// if animating, defer scroll until after animation completes
		var delay=opt.chkAnimate?config.animDuration+10:0;
		setTimeout("window.scrollTo(0,"+yPos+")",delay); 
	}
}

if (Story.prototype.SPM_coreDisplayTiddlers==undefined)
	Story.prototype.SPM_coreDisplayTiddlers=Story.prototype.displayTiddlers;
Story.prototype.displayTiddlers = function() {
	// suspend single/top/bottom modes when showing multiple tiddlers
	var opt=config.options;
	var saveSPM=opt.chkSinglePageMode; opt.chkSinglePageMode=false;
	var saveTPM=opt.chkTopOfPageMode; opt.chkTopOfPageMode=false;
	var saveBPM=opt.chkBottomOfPageMode; opt.chkBottomOfPageMode=false;
	this.SPM_coreDisplayTiddlers.apply(this,arguments);
	opt.chkBottomOfPageMode=saveBPM;
	opt.chkTopOfPageMode=saveTPM;
	opt.chkSinglePageMode=saveSPM;
}
//}}}
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Solos";</script><<tiddler IndexTiddler>>
/***
|Name|StickyPopupPlugin|
|Source|http://www.TiddlyTools.com/#StickyPopupPlugin|
|Version|1.0.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|allow mouse interactions inside popups without automatically closing them|
Usually, when a TW popup is displayed, it is automatically closed whenever a click occurs //anywhere// in the document, either //inside// or //outside// the popup itself.  This plugin makes popups persistent (a.k.a, "sticky"), allowing you to perform multiple mouse interactions on content //inside// the popup (e.g., entering form fields, opening links, selecting text, etc.), remaining visible until you click //outside// the popup or perform an action that opens another popup (only one popup can be displayed at any given time).
!!!!!Configuration
<<<
You can cause popups to behave in a persistent ("sticky") manner simply by selecting the option checkbox below.  The selected popup display behavior will be applied to ALL popups in the document automatically.
><<option chkStickyPopups>> make all popups "sticky"
>{{{usage: <<option chkStickyPopups>>}}}
<<<
!!!!!Usage
<<<
If you are developing your own plugins or inline scripts that create popups programmatically using the core function:
{{{
Popup.create(this)
}}}
you can provide additional parameters that specify the desired CSS classname(s) to assign to the popup DOM element.  The default class when none is specified is simply "popup".  To create a //sticky// popup, simply enter a custom class combination like this:
{{{
Popup.create(this,null,"sticky popup")
}}}
<<<
!!!!!Revisions
<<<
2008.05.16 [1.0.1] added try..catch around addEvent/removeEvent calls to avoid error in Opera
2007.11.25 [1.0.0] initial release - moved from [[CoreTweaks]]
<<<
!!!!!Code
***/
//{{{
version.extensions.StickyPopupPlugin= {major: 1, minor: 0, revision: 1, date: new Date(2008,5,16)};

if (config.options.chkStickyPopups==undefined) config.options.chkStickyPopups=false;

Popup.stickyPopup_onDocumentClick = function(ev)
{
	// if click is in a sticky popup, ignore it so popup will remain visible
	var e = ev ? ev : window.event; var target = resolveTarget(e);
	var p=target; while (p) {
		if (hasClass(p,"popup") && (hasClass(p,"sticky")||config.options.chkStickyPopups)) break;
		else p=p.parentNode;
	}
	if (!p) // not in sticky popup (or sticky popups disabled)... use normal click handling
		Popup.onDocumentClick(ev);
	return true;
};
try{removeEvent(document,"click",Popup.onDocumentClick);}catch(e){};
try{addEvent(document,"click",Popup.stickyPopup_onDocumentClick);}catch(e){};
//}}}
/***
|Name|[[StoryViewerPlugin]]|
|Source|http://www.TiddlyTools.com/#StoryViewerPlugin|
|Documentation|http://www.TiddlyTools.com/#StoryViewerPluginInfo|
|Version|1.4.0|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|view a set of tiddlers using a droplist, "first/previous/next/last" links, or timed slideshow|
The {{{<<storyViewer>>}}} macro allows you to quickly ''display //and// navigate between a set of tiddlers'', using a droplist of titles and/or individual "first/previous/next/last" buttons/text links.  It also provides a "slideshow" feature that permits you to ''present one tiddler at a time with a countdown timer to automatically advance to the next tiddler'' after a specified number of seconds.
!!!!!Documentation
> see [[StoryViewerPluginInfo]]
!!!!!Revisions
<<<
2011.03.11 1.4.0 added 'sort:fieldname' parameter
2011.01.24 1.3.4 in droplist onchange handler, don't clear slideshow 'started' flag (allows slideshow to continue after manual navigation)
|please see [[StoryViewerPluginInfo]] for additional revision details|
2007.10.23 1.0.0 Initial release, split {{{<<storyViewer>>}}} macro definition from [[StorySaverPlugin]] to allow separate installation of story saving vs. story viewing features.
<<<
!!!!!Code
***/
//{{{
version.extensions.StoryViewerPlugin= {major: 1, minor: 4, revision: 0, date: new Date(2011,3,11)};

config.macros.storyViewer = {
	tag:			"story",
	storynotfoundmsg:	"'%0' is an empty/unrecognized story",
	firstcmd:		"inicio",
	firstbutton:		"<<",
	firstmsg:		"inicio: '%0'",
	nextcmd:		"proximo",
	nextbutton:		">",
	nextmsg:		"proximo: '%0'",
	previouscmd:		"previo",
	previousbutton:		"<",
	prevmsg:		"previo: '%0'",
	lastcmd:		"ultimo",
	lastbutton:		">>",
	lastmsg:		"ultimo: '%0'",
	refreshmsg:		"redisplay '%0'",
	refreshmsg:		"",
	autostart:		false,
	handler: function(place,macroName,params,wikifier,paramString,tiddler) {

		var parsed=paramString.parseParams('anon',null,true,false,false);
		var here=story.findContainingTiddler(place);
		if (here) var tid=here.getAttribute("tiddler");
		var storyname="";
		var p=params.shift();
		var keywords=['inicio','previo','aqui','proximo','ultimo','lista','links','timer','sort'];
		if (!p || keywords.indexOf(p.split(':')[0])!=-1) {
			// find story from current tiddler name
			if (!tid) return; // not in a tiddler... do nothing!
			var stories=store.getTaggedTiddlers(this.tag);
			if (!stories) return;
			for (var s=0; s<stories.length; s++) {
				if (!stories[s].linksUpdated) stories[s].changed();
				var tids=stories[s].links.slice(0);
				if (tids.contains(tid)) { storyname=stories[s].title; break; }
			}
			if (!storyname.length) return; // current tiddler is not part of a saved story
		}
		else { storyname=p; p=params.shift(); } // user-specified story name

		var sortby=getParam(parsed,'sort','title');
		var tids=this.getStory(storyname,sortby); // get tiddler list

		var target=null;
		switch (p?p.split(':')[0]:'') {
			case 'inicio':
				target=tids[0];
				break;
			case 'previo':
				var i=tids.indexOf(tid);
				if (i!=-1) var target=tids[Math.max(i-1,0)];
				break;
			case 'aqui':
				if (tid) target=tid;
				break;
			case 'proximo':
				var i=tids.indexOf(tid);
				if (i!=-1) var target=tids[Math.min(i+1,tids.length-1)];
				break;
			case 'ultimo':
				target=tids[tids.length-1];
				break;
			case 'links':
				this.renderAllLinks(place,storyname);
				break;
			case 'timer':
				var delay=parseInt(getParam(parsed,'timer',15))*1000; // msecs between slides
				var autostart=params[0]=='autostart'; if (autostart) params.shift();
				var action=params[0]; // null/close/fold
				this.renderTimer(place,tids,tid,delay,autostart,action);
				break;
			case 'lista':
			default:
				var prompt=getParam(parsed,'prompt',storyname+'...');
				var nobuttons=params.contains("nobuttons");
				var allbuttons=params.contains("allbuttons");
				var onlybuttons=params.contains("onlybuttons");
				this.renderList(place,tids,tid,storyname,prompt,nobuttons,allbuttons,onlybuttons);
				break;
		}
		var label=getParam(parsed,'label',params[0]||target);
		if (target) this.renderLink(place,tid,target,label);
	},
	getStory: function(storyname,sortby) { // READ TIDDLER LIST
		var tids=[];
		var fn=store.getMatchingTiddlers||store.getTaggedTiddlers;
		var tagged=store.sortTiddlers(fn.apply(store,[storyname]),sortby||'title');
		if (tagged.length) // if storyname is a tag, get tagged tiddlers rather than links
			for (var t=0; t<tagged.length; t++) tids.push(tagged[t].title);
		else {
			var t=store.getTiddler(storyname);
			if (t && !t.linksUpdated) t.changed();
			var tids=t?t.links.slice(0):[];
		}
		return tids;
	},
	renderLink: function(place,tid,target,label) {
		// override default labelling with specified text (if any)
		if (tid==target) { // self-referential links turn into 'refresh links'
			var btn=createTiddlyButton(place,null,this.refreshmsg.format([tid]), function() {
				var here=story.findContainingTiddler(place).getAttribute("tiddler");
				story.refreshTiddler(here,null,true);
			});
			wikify(label,btn); 
		}
		else // create link
			wikify(label,createTiddlyLink(place,target,false));
	},
	renderAllLinks: function(place,storyname) {
		var out="{{floatleft{";
		out+="<<storyViewer [["+storyname+"]] inicio inicio>> &nbsp;";
		out+="<<storyViewer [["+storyname+"]] previo previo>> &nbsp;";
		out+="}}}";
		out+="{{floatright{";
		out+="&nbsp; <<storyViewer [["+storyname+"]] proximo proximo>>";
		out+="&nbsp; <<storyViewer [["+storyname+"]] ultimo ultimo>>";
		out+="}}}";
		out+="{{center{<<storyViewer [["+storyname+"]] aqui>>}}}";
		wikify(out,place);
	},
	renderList: function(place,tids,tid,storyname,prompt,nobuttons,allbuttons,onlybuttons) {
		var h="";
		h+='<form style="display:inline">';
		if ((!nobuttons||onlybuttons) && allbuttons) {
			h+='<input type="button" value="'+this.firstbutton+'" ';
			h+='	style="padding:0" title="'+(tids[0]?this.firstmsg.format([tids[0]]):'')+'"';
			h+=' onclick="if (this.form.list.length<2) return; ';
			h+='	this.form.list.selectedIndex=1; this.form.list.onchange();">';
		}
		if (!nobuttons||onlybuttons) {
			h+='<input type="button" value="'+this.previousbutton+'" style="padding:0 0.3em"';
			h+=' onclick="if (this.form.list.length<2) return; ';
			h+=' 	var i=this.form.list.selectedIndex-1; if (i<1) i=1; ';
			h+='	this.form.list.selectedIndex=i; this.form.list.onchange();"';
			h+=' onmouseover="if (this.form.list.length<2) return; ';
			h+=' 	var i=this.form.list.selectedIndex-1; if (i<1) i=1; ';
			h+='	var v=this.form.list.options[i].value; if (!v.length) return; ';
			h+='	this.title=config.macros.storyViewer.prevmsg.format([v]);">';
		}
		h+='<select size="1" name="list"';
		if (onlybuttons) h+=' style="display:none;"';
		h+=' onchange="if (this.value) story.displayTiddler(this,this.value);">';
		h+='<option value="">'+prompt+'</option>';
		for (i=0; i<tids.length; i++) {
			h+='<option '+
				(tids[i]==tid?'selected ':'')+
				'value="'+tids[i]+'">\xa0\xa0'+tids[i]+'</option>';
		}
		h+='</select>';
		if (!nobuttons||onlybuttons) {
			h+='<input type="button" value="'+this.nextbutton+'" style="padding:0 0.3em"';
			h+=' onclick="var i=this.form.list.selectedIndex+1; ';
			h+='	if (i>this.form.list.options.length-1) i=this.form.list.options.length-1; ';
			h+='	this.form.list.selectedIndex=i; this.form.list.onchange();"';
			h+=' onmouseover="var i=this.form.list.selectedIndex+1; ';
			h+='	if (i>this.form.list.options.length-1) i=this.form.list.options.length-1; ';
			h+='	var v=this.form.list.options[i].value; if (!v.length) return;';
			h+='	this.title=config.macros.storyViewer.nextmsg.format([v]);">';
		}
		if ((!nobuttons||onlybuttons) && allbuttons) {
			h+='<input type="button" value="'+this.lastbutton+'" ';
			h+='	style="padding:0" title="'+(tids[tids.length-1]?this.lastmsg.format([tids[tids.length-1]]):'')+'"';
			h+=' onclick="this.form.list.selectedIndex=this.form.list.options.length-1; this.form.list.onchange();">';
		}
		h+='</form>';
		createTiddlyElement(place,"span").innerHTML=h;
	},
	renderTimer: function(place,tids,tid,delay,autostart,action) {
		var now=new Date().getTime(); // msec
		var target=createTiddlyElement(null,'input',now+Math.random()); // unique ID
		target.setAttribute('type','button'); target.style.padding='0';
		place.appendChild(target);
		target.tid		=tids[Math.min(tids.indexOf(tid)+1,tids.length-1)]||''; // next tiddler
		target.action		=action;
		target.formatTimer	=this.formatTimer;
		target.start		=this.startTimer;
		target.stop		=this.stopTimer;
		target.onmouseover	=this.pauseTimer;
		target.onmouseout	=this.resumeTimer;
		target.tick		=this.timerTick;
		target.onclick		=this.timerClick;
		target.next		=this.timerNext;
		target.start(delay,autostart);
	},
	formatTimer: function(t) {
		return '0:'+String.zeroPad(Math.floor(t/1000),2);
	},
	startTimer: function(delay,start) {
		var co=config.options; // abbrev
		start=config.macros.storyViewer.started=start||config.macros.storyViewer.started;
		var now=new Date().getTime(); // msec
		this.started=start;
		this.delay=delay;
		this.paused=start?0:delay;
		this.stopTime=now+delay; // msec
		this.title='CLICK='+(start?'reset':'start')+" slideshow timer... next: '"+this.tid+"'";
		this.style.cursor='pointer';
		this.value=this.formatTimer(delay);
		if (start) {
			var code="var e=document.getElementById('"+this.id+"'); if(e)e.tick()";
			this.timer=setTimeout(code,500);
		}
		return false;
	},
	stopTimer: function() {
		this.timer=clearTimeout(this.timer);
		this.started=config.macros.storyViewer.started=false;
		this.paused=0;
		this.title="CLICK=start slideshow timer... next: '"+this.tid+"'";
		this.value=this.formatTimer(this.delay);
		return false;
	},
	pauseTimer: function() {
		if (!this.started) return;
		var now=new Date().getTime(); // msec
		this.paused=Math.max(this.stopTime-now,0);
		this.stopTime=now+this.paused;
		return false;
	},
	resumeTimer: function() {
		if (!this.started || !this.paused) return;
		var now=new Date().getTime(); // msec
		this.stopTime=now+this.paused;
		this.paused=0;
		return false;
	},
	timerTick: function() {
		var now=new Date().getTime(); // msec
		if (!this.started)
			this.stopTime=now+this.delay;
		else if (this.paused) {
			this.stopTime=now+this.paused;
			this.title="[PAUSED] MOUSEOUT=resume, CLICK=reset... next: '"+this.tid+"'";
		}
		var remaining=this.stopTime-now;
		if (remaining>0) {
			if (this.started && !this.paused) this.value=this.formatTimer(remaining);
			var code="var e=document.getElementById('"+this.id+"'); if(e)e.tick()";
			this.timer=setTimeout(code,500);
		} else {
			this.stop();
			this.next();
		}
		return false;
	},
	timerClick: function() {
		return this.started?this.stop():this.start(this.delay,true);
	},
	timerNext: function() { // OPEN NEXT TIDDLER
		var here=story.findContainingTiddler(this);
		config.macros.storyViewer.started=true; // next slide autostarts to continue slideshow
		if (this.tid) story.displayTiddler(here,this.tid);
		config.macros.storyViewer.started=false;
		if (!here) return false;
		var t=here.getAttribute('tiddler');
		if (this.action=='close') story.closeTiddler(t);
		if (this.action=='fold' && config.commands.collapseTiddler) // see CollapseTiddlerPlugin
			config.commands.collapseTiddler.handler(null,here,t);
		return false;
	}
}
//}}}
//{{{
config.paramifiers.story = {
	onstart: function(v) {
		var t=store.getTiddler(v); if (t) t.changed();
		var list=t?t.links:store.getTiddlerText(v,"").parseParams("open",null,false);
		story.displayTiddlers(null,list);
	}
};
//}}}
body { backgroun:-moz-linear-gradient(top,  beige,  orange);background-image:url("Graficos/background.jpg");background-repeat:norepeat;font-family: Helvetica;color:#996633;}

#contentWrapper a:link, a:visited, a:active {text-decoration: bold; color:#a29421; background-color: transparent; }
#contentWrapper a:hover {text-decoration: none; color: [[ColorT1]]; background-color: [[ColorB1]]; }
#contentWrapper .button {background-color: transparent; border-color: [[ColorS2]]; border-width: 0px;}
#contentWrapper .button:hover {background-color: [[ColorB1]]; border-width: 0px;}
#contentWrapper {border:0; margin:0 auto;background:-moz-linear-gradient(top,  beige,  orange); width:1200px;background-image:url("back3.png");background-position:260px 50px;background-repeat:no-repeat;}

#displayArea {position:relative; background-color:beige;top:-1140px; left:80px;width:930px;z-index:10;opacity:0.1;}
.header { background-color: #edead5;  height: 50px;left:150px; top:-50px; }
.tiddlyLinkExisting .tiddlyLink {color:red;}
.externalLink {color:red;} 
#leftSidebar{ background-color:#EAE5C2;position:relative; top:05px; left:22px; width:170px; height:560px;overflow:auto;opacity:0.4;}
#oneMenu {position:relative; top:-558px; left:198px;width:600px;z-index:20;background-color:#EAE5C2;height:560px;overflow:auto;opacity:.90;}
#notesMenu {position:relative; top:-1122px; left:805px;width:380px;z-index:20;background-color:#EAE5C2;height:540px;overflow:auto;}

#leftSidebar, #oneMenu, #notesMenu {border-style:solid;border-color:#996633;border-width:1px 3px 3px 1px;border-radius: 1em;}
#leftSidebar:hover{opacity:0.95;}
#displayArea:hover{z-index:30;opacity:0.9;}

.viewer {text-align: left; width: 95%; padding: 0.5em 10px 0em .5em;z-index:10;}

/*.viewer h1, h2, h3, h4 {color: [[ColorT1]]; background-color: transparent; font-weight: bold; font-style: italic; padding: 0em 0em 0em 0em; margin: 0em 0em 0em 0em; display: block;}
/*.viewer h1 {font-sytle: normal; font-variant: small-caps; background-color: [[ColorB1]];}
/*.viewer img {width: 95%; margin: 0em 20px 0em 20px;}
/*.title {font-weight: normal; color: [[ColorT3]]; display: inline; padding: 0.2em 1em 1em 0.25em; border-style: solid; border-width: 1px 0px 0px 1px; border-padding: 0em 0em 0em 0em; border-color: [[ColorT3]]; }*/
/*.subtitle {display: none; padding: 0em 0em 0em 3em; }*/
.editor {padding: 0.75em 0em 0em 2em; height: 550% ; line-height: 100%; }
.editor textarea {height: 40em; }

.title {font-size:10pt;font-weight:bold;}

.popup {background-color:#E8E0AE; color:brown; width:auto; height:auto;border-style:solid;border-radius:1em;padding:5px 5px 5px 5px;}
.popup a:link {color:brown;fonte-weight:bold;border-width:0px;}
.popupInfo {background-color:beige; color:brown; width:auto; height:auto;border-style:solid;border-radius:1em;padding:5px 5px 5px 5px;}
.yellow {background-color:yellow; color:brown; width:auto; height:auto;}
.palegreen {background-color:palegreen; color:deepgreen; width:auto; height:auto;border-style:solid;border-radius:0.1em;padding:1px 5px 5px 1px;}
.sandybrown {background-color:sandybrown; color:beige; width:auto; height:auto;border-style:solid;border-radius:1em;padding:1px 5px 5px 1px;}

/* IE fix */
body {position:static;}
.tagClear{margin-top:1em;clear:both;}

#messageArea {background-color: [[ColorB1]]; position: absolute; top: 0; right: 0; }

.foto1{position:relative;top:0px;left:0px;width:600px;height:400px;border-width:1px 3px 3px 1px;border-radius: .1em;z-index:30;}
.foto2{position:relative;top:-450px;left:0px;width:600px;height:400px;border-width:1px 3px 3px 1px;border-radius: .1em;z-index:31;opacity:0.8;}
.foto3{position:relative;top:-900px;left:0px;width:600px;height:400px;border-width:1px 3px 3px 1px;border-radius: .1em;z-index:32;opacity:0.8;}

[[StyleSheetShortcuts]]

/***
|Name|StyleSheetShortcuts|
|Source|http://www.TiddlyTools.com/#StyleSheetShortcuts|
|Version||
|Author|Eric Shulman - ELS Design Studios|
|License|http://www.TiddlyTools.com/#LegalStatements <br>and [[Creative Commons Attribution-ShareAlike 2.5 License|http://creativecommons.org/licenses/by-sa/2.5/]]|
|~CoreVersion|2.1|
|Type|CSS|
|Requires||
|Overrides||
|Description|'convenience' classes for common formatting, alignment, boxes, tables, etc.|

These 'style tweaks' can be easily included in other stylesheet tiddler so they can share a baseline look-and-feel that can then be customized to create a wide variety of 'flavors'.
***/
/*{{{*/

/* text alignments */
.left
	{ display:block;text-align:left; }
.center
	{ display:block;text-align:center; }
.right	
	{ display:block;text-align:right; }
.justify
	{ display:block;text-align:justify; }
.indent
	{ display:block;margin:0;padding:0;border:0;margin-left:2em; }
.floatleft
	{ float:left; }
.floatright
	{ float:right; }
.valignTop, .valignTop table, .valignTop tbody, .valignTop th, .valignTop tr, .valignTop td
	{ vertical-align:top; }
.valignBottom, .valignBottom table, .valignBottom tbody, .valignBottom th, .valignBottom tr, .valignBottom td
	{ vertical-align:bottom; }
.clear
	{ clear:both; }
.wrap
	{ white-space:normal; }
.nowrap
	{ white-space:nowrap; }
.hidden
	{ display:none; }
.show
	{ display:inline !important; }
.span
	{ display:span; }
.block
	{ display:block; }
.relative
	{ position:relative; }
.absolute
	{ position:absolute; }
.vertical {-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);	-o-transform: rotate(270deg);}

/* font sizes */
.big
	{ font-size:14pt;line-height:120% }
.medium
	{ font-size:12pt;line-height:120% }
.normal
	{ font-size:9pt;line-height:120% }
.small
	{ font-size:8pt;line-height:120% }
.fine
	{ font-size:7pt;line-height:120% }
.tiny
	{ font-size:6pt;line-height:120% }
.larger
	{ font-size:120%; }
.smaller
	{ font-size:80%; }

/* font styles */
.bold
	{ font-weight:bold; }
.italic
	{ font-style:italic; }
.underline
	{ text-decoration:underline; }

/* plain list items (no bullets or indent) */
.nobullets li { list-style-type: none; margin-left:-2em; }

/* multi-column tiddler content (not supported in Internet Explorer) */
.twocolumns { display:block;
	-moz-column-count:2; -moz-column-gap:1em; -moz-column-width:50%; /* FireFox */
	-webkit-column-count:2; -webkit-column-gap:1em; -webkit-column-width:50%; /* Safari */
	column-count:2; column-gap:1em; column-width:50%; /* Opera */
}
.threecolumns { display:block;
	-moz-column-count:3; -moz-column-gap:1em; -moz-column-width:33%; /* FireFox */
	-webkit-column-count:3; -webkit-column-gap:1em; -webkit-column-width:33%; /* Safari */
	column-count:3; column-gap:1em; column-width:33%; /* Opera */
}
.fourcolumns { display:block;
	-moz-column-count:4; -moz-column-gap:1em; -moz-column-width:25%; /* FireFox */
	-webkit-column-count:4; -webkit-column-gap:1em; -webkit-column-width:25%; /* Safari */
	column-count:4; column-gap:1em; column-width:25%; /* Opera */
}

/* show/hide browser-specific content for InternetExplorer vs. non-IE ("moz") browsers */
*[class="ieOnly"]
	{ display:none; } /* hide in moz (uses CSS selector) */
* html .mozOnly, *:first-child+html .mozOnly
	{ display: none; } /* hide in IE (uses IE6/IE7 CSS hacks) */

/* borderless tables */
.borderless, .borderless table, .borderless td, .borderless tr, .borderless th, .borderless tbody
	{ border:0 !important; margin:0 !important; padding:0 !important; }
.widetable, .widetable table
	{ width:100%; }

/* thumbnail images (fixed-sized scaled images) */
.thumbnail img { height:5em !important; }

/* stretchable images (auto-size to fit tiddler) */
.stretch img { width:95%; }

/* grouped content */
.outline
	{ display:block; padding:5px; border:1px solid; background-color:beige; }
.outlineDiscuss
	{ display:block; padding:5px; -moz-border-radius:1em;-webkit-border-radius:1em; border:1px solid; background-color:beige; }
.menubox
	{ display:block; padding:1em; -moz-border-radius:1em;-webkit-border-radius:1em; border:1px solid; background:#fff; color:#000; width:400px; }
.widebox
	{ display:block; padding:1em; -moz-border-radius:1em;-webkit-border-radius:1em; border:1px solid; background:#fff; color:#000; }
.menubox .button, .menubox .tiddlyLinkExisting, .menubox .tiddlyLinkNonExisting
	{ color:#009 !important; }
.groupbox
	{ display:block; padding:2px; border-style:solid;border-color:#996633;border-width:1px 3px 1px 3px;border-radius: 1em; background: -webkit-gradient(linear, left top, left bottom, from([[DashBoard::top]]), to([[DashBoard::button]])); background: -moz-linear-gradient(top,  [[DashBoard::top]],  [[DashBoard::button]]);color:#000;width:600px; }
.bookmarklet{padding:.2px 1px .2px 1px; background-color:khaki; }

.groupbox a, .groupbox .button, .groupbox .tiddlyLinkExisting, .groupbox .tiddlyLinkNonExisting
	{ color:#009 !important; }
.groupbox code
	{ color:#333 !important; }
.borderleft
	{ margin:0;padding:0;border:0;margin-left:1em; border-left:1px dotted; padding-left:.5em; }
.borderright
	{ margin:0;padding:0;border:0;margin-right:1em; border-right:1px dotted; padding-right:.5em; }
.borderbottom
	{ margin:0;padding:1px 0;border:0;border-bottom:1px dotted; margin-bottom:1px; padding-bottom:1px; }
.bordertop
	{ margin:0;padding:0;border:0;border-top:1px dotted; margin-top:1px; padding-top:1px; }



/* compact form */
.smallform
	{ white-space:nowrap; }
.smallform input, .smallform textarea, .smallform button, .smallform checkbox, .smallform radio, .smallform select
	{ font-size:8pt; }

/* stretchable edit fields and textareas (auto-size to fit tiddler) */
.stretch input { width:99%; }
.stretch textarea { width:99%; }

/* compact input fields (limited to a few characters for entering percentages and other small values) */
.onechar input { width:1em; }
.twochar input { width:2em; }
.threechar input { width:3em; }
.fourchar input { width:4em; }
.fivechar input { width:5em; }

/* text colors */
.green { color:#0c0 !important }
.red { color:#f66 !important }
.blue { color:#99f !important }
.gray { color:#999 !important }

/* rollover highlighting */
.mouseover 
	{color:[[ColorPalette::TertiaryLight]] !important;}
.mouseover a
	{color:[[ColorPalette::TertiaryLight]] !important;}
.selected .mouseover
	{color:[[ColorPalette::Foreground]] !important;}
.selected .mouseover .button, .selected .mouseover a
	{color:[[ColorPalette::PrimaryDark]] !important;}

/* rollover zoom text */
.zoomover
	{ font-size:80% !important; }
.selected .zoomover
	{ font-size:100% !important; }

/*}}}*/
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Sustentabilidade";</script><<tiddler IndexTiddler>>
/***
|Name|TaggedTemplateTweak|
|Source|http://www.TiddlyTools.com/#TaggedTemplateTweak|
|Documentation|http://www.TiddlyTools.com/#TaggedTemplateTweakInfo|
|Version|1.6.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|use alternative ViewTemplate/EditTemplate for specific tiddlers|
This plugin extends the core function, story.chooseTemplateForTiddler(), so that any given tiddler can be viewed and/or edited using alternatives to the standard tiddler templates.
!!!!!Documentation
>see [[TaggedTemplateTweakInfo]]
!!!!!Revisions
<<<
2009.09.02 [1.6.1] apply field-based template (if any) *before* tag-based template
| please see [[TaggedTemplateTweakInfo]] for previous revision details |
2007.06.11 [1.0.0] initial release
<<<
!!!!!Code
***/
//{{{
version.extensions.TaggedTemplateTweak= {major: 1, minor: 6, revision: 1, date: new Date(2009,9,2)};

if (!config.options.txtTemplateTweakFieldname)	
	config.options.txtTemplateTweakFieldname='template';

Story.prototype.taggedTemplate_chooseTemplateForTiddler = Story.prototype.chooseTemplateForTiddler
Story.prototype.chooseTemplateForTiddler = function(title,template)
{
	// get core template and split into theme and template name
	var coreTemplate=this.taggedTemplate_chooseTemplateForTiddler.apply(this,arguments);
	var theme=""; var template=coreTemplate;
	var parts=template.split(config.textPrimitives.sectionSeparator);
	if (parts[1]) { theme=parts[0]; template=parts[1]; }
	else theme=config.options.txtTheme||""; // if theme is not specified
	theme+=config.textPrimitives.sectionSeparator;

	// look for template using title as prefix
	if (!store.getTaggedTiddlers(title).length) { // if tiddler is not a tag
		if (store.getTiddlerText(theme+title+template))
			{ return theme+title+template; } // theme##TitleTemplate
		if (store.getTiddlerText(title+template))
			{ return title+template; }	 // TitleTemplate
	}

	// look for templates using custom field value as prefix
	var v=store.getValue(title,config.options.txtTemplateTweakFieldname);
	if (store.getTiddlerText(theme+v+template))
		{ return theme+v+template; }	// theme##valueTemplate
	if (store.getTiddlerText(v+template))
		{ return v+template; }		// valueTemplate

	// look for template using tags as prefix
	var tiddler=store.getTiddler(title);
	if (!tiddler) return coreTemplate; // tiddler doesn't exist... use core result
	for (i=0; i<tiddler.tags.length; i++) {
		var t=tiddler.tags[i]+template; // add tag prefix to template
		var c=t.substr(0,1).toUpperCase()+t.substr(1); // capitalized for WikiWord title
		if (store.getTiddlerText(theme+t))	{ return theme+t; } // theme##tagTemplate
		if (store.getTiddlerText(theme+c))	{ return theme+c; } // theme##TagTemplate
		if (store.getTiddlerText(t)) 		{ return t; }	    // tagTemplate
		if (store.getTiddlerText(c))		{ return c; }	    // TagTemplate
	}
	
	// no match... use core result
	return coreTemplate;
}
//}}}
<script>
var out="";
var tids=store.getTaggedTiddlers("$1");
for(i=0;i<tids.length;i++)
{
var lastBarra=tids[i].text.lastIndexOf("/");

if(tids[i].tags.indexOf("slide")!=-1){out+='<script label="'+tids[i].title+'">localStorage.tema="$1";localStorage.oneMenu="display";localStorage.seq="";localStorage.url="'+tids[i].text+'";localStorage.item="'+tids[i].text.substring(lastBarra+1)+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';}

if(tids[i].tags.indexOf("sequencia")!=-1){
var lista=tids[i].text;
lista=lista.split("#");
var dir=lista[0].substring(0,lastBarra);
var seq="";
for(j=1;j<lista.length-1;j++)
{
seq+='<script label="'+lista[j].substring(1)+'">localStorage.url="'+dir+'/'+lista[j].substring(1)+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';
}

localStorage.seq=seq;
out+='<script label="'+tids[i].title+'">localStorage.title="'+tids[i].title+'";localStorage.tema="$1";localStorage.item="'+lista[0]+'";localStorage.oneMenu="display";localStorage.url="'+lista[0]+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';
}

if(tids[i].tags.indexOf("show")!=-1)
{
localStorage.seq=tids[i].text;
var lista=tids[i].text.split("#");
out+='<script label="'+tids[i].title+'">localStorage.title="'+tids[i].title+'";localStorage.tema="$1";localStorage.count="0";localStorage.oneMenu="show";localStorage.url="'+lista[0]+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';
}
}
return out;
</script>
<script>
var out="";
function toTex(tids,nivel)
{
var newTex="";
var tids=getText(tids);
//return tids;
tids=tids.split("#");
//return tids[0];

for (i=0;i<tids.length-1;i++)
{
if(tids[i].indexOf("@frame")!=-1){tids[i]=tids[i].replace("@frame",""+nivel);}

if(tids[i].indexOf("@note")!=-1){tids[i]=tids[i].replace("@note","marginnote");}

if(tids[i].indexOf("@text")!=-1){tids[i]=tids[i].replace("@text","");}

if(tids[i].indexOf("@referencias")!=-1){tids[i]=tids[i].replace("@referencias","vfill{Referencias:}");}

if(tids[i].indexOf("@end{frame}")!=-1){tids[i]=tids[i].replace("@end{frame}","");}

if(tids[i].indexOf("@tag{")!=-1){
tids[i]=tids[i].replace("@tag{","");
tids[i]=tids[i].replace("{endTag","");
localStorage.tag=tids[i];
tids[i]="";}
}
tids=tids.join(" ");

tids=tids.replace(/@imagemH/g,"includegraphics[width=10cm]");
tids=tids.replace(/@imagemV/g,"includegraphics[height=8cm]");
tids=tids.replace(/@imagemS/g,"includegraphics[height=4cm]");
tids=tids.replace(/@imagem/g,"includegraphics[width=10cm]");
tids=tids.replace(/endImagem/g,"");
tids=tids.replace(/@url/g,"url");
tids=tids.replace(/@begin/g,"begin");
tids=tids.replace(/@end{itemize}/g,"end{itemize}");
tids=tids.replace(/@item/g,"item");
tids=tids.replace(/@widebox/g,"mkframes");
tids=tids.replace(/endWidebox/g,"");
tids=tids.replace(/@hrule/g,"hrule");
return tids;

}

//return localStorage.url;
out= toTex(localStorage.url,"subsection");

return getText("PaginaSimples")+out+"<br>end{document}";

</script>


if(out.indexOf("@sequencia{")!=-1)
{
var startDin=out.indexOf("@sequencia{");
var endDin=out.indexOf("}endSequencia");
var dinEndereco=out.substring(startDin+11,endDin);
dinUrl=""+localStorage.tema+"/"+dinEndereco;
var seq=getText(dinUrl);
var sequencia="newpagesubsection{"+dinEndereco+"}";
seq=seq.split("#");
for(j=1;j<seq.length;j++)
{
var itemUrl=""+localStorage.tema+"/"+seq[j];
sequencia+="newpage"+toTex(itemUrl,"subsubsection");
//return seq;
}
out=out.replace("@sequencia{","");
out=out.replace("}endSequencia","");
out=out.replace(dinUrl,"");
out+=sequencia;

}



if(out.indexOf("@dinamica{")!=-1)
{
var startDin=out.indexOf("@dinamica{");
var endDin=out.indexOf("}endDinamica");
var dinUrl=out.substring(startDin+11,endDin);
dinUrl=""+localStorage.tema+"/"+dinUrl;
var din=toTex(dinUrl,"subsubsection");
//return seq;
out=out.replace("@dinamica{","");
out=out.replace("}endDinamica","");
out=out.replace(dinUrl,"");
out+=din;
}
/%
!info
|Name|ThumbThing|
|Source|http://www.TiddlyTools.com/#ThumbThing|
|Version|1.2.0|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|transclusion|
|Description|display a scaled 'thumbnail' image with popup for full-sized image|

Usage:
<<<
{{{
<<tiddler ThumbThing with: image thumbWidth thumbHeight fullWidth fullHeight>>
}}}
*{{{image}}} is one of:
**a local path/file
**a remote URL reference
**the title of a tiddler containing an attached image (see [[AttachFilePlugin]])
*{{{thumbWidth, thumbHeight, fullWidth, fullHeight}}} are CSS measurements.  Use 'auto' (or omit values) for default (full-sized) image height and/or width. For proportional scaling, specify a fixed-width OR fixed-height and use 'auto' for the other dimension.
<<<
Example:
<<<
{{{
<<tiddler ThumbThing with: images/meow2.jpg 100px>>
}}}
<<tiddler ThumbThing with: images/meow2.jpg 100px>>
<<<
See also:
>[[AllThumbs]]
!end

!show
<html><hide linebreaks>
<img src="$1" style="border=0;width:$2;height:$3;" title="$1" onclick="
	var p=Popup.create(this); if (!p) return; var s=p.style; s.border=s.padding='0'; s.background='none';
	p.innerHTML='<img src=\x22$1\x22 style=\x22border:1px solid #999;background:#eee;width:$4;height:$5\x22>';
	Popup.show(); event.cancelBubble=true; if(event.stopPropagation)event.stopPropagation(); return(false);
"></html>
!end
%/<<tiddler {{'ThumbThing##'+('$1'=='$'+'1'?'info':'show')}} with:
	{{var cma=config.macros.attach; (cma&&cma.isAttachment('$1'))?cma.getAttachment('$1'):'$1';}}
	[[$2]] [[$3]] [[$4]] [[$5]]>>
|~ViewToolbar|collapseTiddler closeTiddler closeOthers +editTiddler > fields syncing permalink references jump|
|~EditToolbar|+saveTiddler -cancelTiddler toggleQuickEdit deleteTiddler|
<script>
var out="";
var refs="";
//return "to latex"+localStorage.tektex;
var fileList=getText(localStorage.tektex);
//return fileList;
fileList=stripEnds(fileList);
//return fileList[1];
for(k=1;k<fileList.length;k++)
{
/////////      index item not a chapter
   if(fileList[k].indexOf("@")==-1)
   {
   var url=""+localStorage.curso+"/"+fileList[k];
//return url;
   out+=toTex(url,"subsection");
   }

/////////      index item is reference to item in other folder
   if(fileList[k].indexOf("&")!=-1)
   {
   var url=fileList[k].substring(1);
//return url;
   out+=toTex(url,"section");
   }

if(fileList[k].indexOf("@")!=-1)
   {
///////////// index item has @...is a new chapter
 
//alert("found a section: "+fileList[k].substring(1));
  out+="@newpage@chapter{"+fileList[k].substring(1)+"}<br>";
   url=""+fileList[k].substring(1)+"/index";
//return "url="+url;
   var section=getText(url);
//return section;
section=stripEnds(section);
//   return "section="+section[3];

  for(j=1;j<section.length;j++)
     {
//      return "section="+section[j];
      if(section[j].indexOf("@")==-1)
        {

///// chapter item is not a section.......item from chapter

         var url=""+fileList[k].substring(1)+"/"+section[j];
//     return "url="+url;
//alert("found subsection: "+section[j]);
         out+=toTex(url,"subsection");
        
 if(localStorage.show)
              {//alert("found a show:"+localStorage.show);
               var showUrl=fileList[k].substring(1)+"/"+localStorage.show.substring(1);
               out+="@newpage@subsection{"+localStorage.show.substring(1)+"}<br>"+showUrl+"<br>";
               var para=getText(showUrl);
               para=stripEnds(para);

               for(h=1;h<para.length;h++)
               {var suburl=fileList[k].substring(1)+"/"+para[h];
               // alert("show item: "+para[h]);
                out+=toTex(suburl,"subsubsection");
               }
               }
        
         }
     if(section[j].indexOf("@")!=-1)
        {
////// is heading for new section.........
//alert("found a section: "+section[j]);
          out+="@newpage@section{"+section[j]+"}<br>";
         }
     }

   }
}
var paginaSimples=localStorage.curso+"/paginaSimples";
//return paginaSimples;
var start=getText(paginaSimples);
//return "start="+start;
return start+"<br>"+out+"Referencias:"+refs+"end{document}<br>";

/////////////////////

function stripEnds(text)
{
text=text.replace(/nr|n|r/g,"");
text=text.split("#");
return text;
}


////////////toTex

function toTex(file,nivel)
{
var newTex="";
localStorage.show="";
localStorage.dinamica="";
localStorage.sequencia="";
//return "file="+file;
var tids=getText(file);
//return tids;
tids=tids.split("#");

for (i=0;i<tids.length-1;i++)
{
if(tids[i].indexOf("@frame")!=-1){tids[i]=tids[i].replace("@frame","@"+nivel);}

if(tids[i].indexOf("@note")!=-1){tids[i]=tids[i].replace("@note","@marginnote");tids[i]=tids[i].replace(/endNote/g,"[-2cm]");}

if(tids[i].indexOf("@text")!=-1){tids[i]=tids[i].replace("@text{","");tids[i]=tids[i].replace(/}endText/g,"");}

if(tids[i].indexOf("@referencias")!=-1)
{tids[i]=tids[i].replace(/@referencias{/g,"");
tids[i]=tids[i].replace(/}endReferencias/g,"");
refs+=tids[i]+"<br>";
tids[i]="";
}

if(tids[i].indexOf("@end{frame}")!=-1){tids[i]=tids[i].replace("@end{frame}","");}

if(tids[i].indexOf("@tag{")!=-1)
{
tids[i]=tids[i].replace("@tag{","");
tids[i]=tids[i].replace("{endTag","");
localStorage.tag=tids[i];
tids[i]="";
}

if(tids[i].indexOf("tiddlylink")!=-1){tids[i]=tids[i].replace(/@tiddlylink{/g,"");tids[i]=tids[i].replace(/}tiddlyLink/g,"");}

if(tids[i].indexOf("dinamica")!=-1){tids[i]=tids[i].replace(/@dinamica{/g," - referencia to dinamica:");tids[i]=tids[i].replace(/}endDinamica/g,"");}

if(tids[i].indexOf("@show")!=-1)
{
var show=tids[i].replace(/@show{/g,"");
localStorage.show=show.replace(/}endShow/g,"");
tids[i]="";
}


}
tids=tids.join(" ");

tids=tids.replace(/@imagemH/g,"@begin{figure}[H]@includegraphics[width=15cm]");
tids=tids.replace(/@imagemV/g,"@begin{figure}[H]@includegraphics[width=15cm]");
tids=tids.replace(/@imagemS/g,"@includegraphics[height=4cm]");
tids=tids.replace(/@imagem/g,"@includegraphics[width=8cm]");
tids=tids.replace(/endCaption/g,"@end{figure}");
tids=tids.replace(/endImagem/g,"");
tids=tids.replace(/@url/g,"@url");
//tids=tids.replace(/@begin/g,"@begin");
tids=tids.replace(/@end{itemize}/g,"@end{itemize}");
//tids=tids.replace(/@item/g,"@item");
tids=tids.replace(/@widebox{/g,"@begin{mdframed}[style=yellowbox]");
tids=tids.replace(/}endWidebox/g,"@end{mdframed}");
tids=tids.replace(/@menubox{/g,"@begin{mdframed}[style=defaultbox]");
tids=tids.replace(/}endMenubox/g,"@end{mdframed}");
tids=tids.replace(/@hrule/g,"@hrule");
tids=tids.replace(/@video{/g,"(referencia ao video do YouTube - @href{www.youtube.com/watch?v=");
tids=tids.replace(/@videoPlay{/g,"(referencia ao video do YouTube - www.youtube.com/watch?v=");
tids=tids.replace(/}endVideo/g,"}{YouTube})");



tids=tids.replace(/@/g,"\");

return tids;

}

</script>






function txtTex(source)
{
var tids=source.split("#");
for(i=0;i<tids.length;i++)
{

///                               header
if(tid[i].indexOf("@frame")!=-1){var head=tid[i].replace("@frame{","subsection{"); }

///        process Notes
if(tid[i].indexOf("@note")!=-1)
{
//return tid[i];
var notes=tid[i].replace("@note{","marginnote{");

notes=notes.substring(1,notes.length);
//return notes;
notes=notes.replace("@imagem{","begin{centerincludegraphics[width=1200px](");
notes=notes.replace("@imagemS","includegraphics[width=100px](");
notes=notes.replace("@tiny","tiny");
localStorage.notes="";
localStorage.notesMenu="notes";
config.refreshers.content(document.getElementById("notesMenu"));

}

//                   format text
if(tid[i].indexOf("@text")!=-1)
{
var texto=tid[i].replace("@text","");
texto=texto.substring(1,texto.length);

texto=texto.replace("@imagem{","includegraphics[width=13cm]{");
texto=texto.replace("@imagemV{","includegraphics[width=13cm]{");
texto=texto.replace("@imagemH{","includegraphics[width=13cm]{");

}
return head+'<br>'+notes+'<br>'+texto;
}
};
| !date | !user | !location | !storeUrl | !uploadDir | !toFilename | !backupdir | !origin |
| 26/02/2017 15:25:49 | OSeuNome | [[index.html|http://www.unigaia-brasil.org/escolasResilientes/escolasResilientes/index.html#EscolasResilientes]] | [[store.php|http://www.unigaia-brasil.org/escolasResilientes/escolasResilientes/store.php]] | . | [[index.html | http://www.unigaia-brasil.org/escolasResilientes/escolasResilientes/index.html]] |  |
| 26/02/2017 15:28:33 | OSeuNome | [[index.html|http://www.unigaia-brasil.org/escolasResilientes/escolasResilientes/index.html#UploadLog]] | [[store.php|http://www.unigaia-brasil.org/escolasResilientes/escolasResilientes/store.php]] | . | [[index.html | http://www.unigaia-brasil.org/escolasResilientes/escolasResilientes/index.html]] |  |
| 26/02/2017 15:31:16 | OSeuNome | [[index.html|http://www.unigaia-brasil.org/escolasResilientes/escolasResilientes/index.html#UploadLog]] | [[store.php|http://www.unigaia-brasil.org/escolasResilientes/escolasResilientes/store.php]] | . | [[index.html | http://www.unigaia-brasil.org/escolasResilientes/escolasResilientes/index.html]] |  |
/***
|''Name:''|UploadPlugin|
|''Description:''|Save to web a TiddlyWiki|
|''Version:''|4.1.4|
|''Date:''|2008-08-11|
|''Source:''|http://tiddlywiki.bidix.info/#UploadPlugin|
|''Documentation:''|http://tiddlywiki.bidix.info/#UploadPluginDoc|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''~CoreVersion:''|2.2.0|
|''Requires:''|PasswordOptionPlugin|
***/
//{{{
version.extensions.UploadPlugin = {
	major: 4, minor: 1, revision: 4,
	date: new Date("2008-08-11"),
	source: 'http://tiddlywiki.bidix.info/#UploadPlugin',
	author: 'BidiX (BidiX (at) bidix (dot) info',
	coreVersion: '2.2.0'
};

//
// Environment
//

if (!window.bidix) window.bidix = {}; // bidix namespace
bidix.debugMode = false;	// true to activate both in Plugin and UploadService
	
//
// Upload Macro
//

config.macros.upload = {
// default values
	defaultBackupDir: '',	//no backup
	defaultStoreScript: "store.php",
	defaultToFilename: "index.html",
	defaultUploadDir: ".",
	authenticateUser: true	// UploadService Authenticate User
};
	
config.macros.upload.label = {
	promptOption: "Save and Upload this TiddlyWiki with UploadOptions",
	promptParamMacro: "Save and Upload this TiddlyWiki in %0",
	saveLabel: "save to web", 
	saveToDisk: "save to disk",
	uploadLabel: "upload"	
};

config.macros.upload.messages = {
	noStoreUrl: "No store URL in parmeters or options",
	usernameOrPasswordMissing: "Username or password missing"
};

config.macros.upload.handler = function(place,macroName,params) {
	if (readOnly)
		return;
	var label;
	if (document.location.toString().substr(0,4) == "http") 
		label = this.label.saveLabel;
	else
		label = this.label.uploadLabel;
	var prompt;
	if (params[0]) {
		prompt = this.label.promptParamMacro.toString().format([this.destFile(params[0], 
			(params[1] ? params[1]:bidix.basename(window.location.toString())), params[3])]);
	} else {
		prompt = this.label.promptOption;
	}
	createTiddlyButton(place, label, prompt, function() {config.macros.upload.action(params);}, null, null, this.accessKey);
};

config.macros.upload.action = function(params)
{
		// for missing macro parameter set value from options
		if (!params) params = {};
		var storeUrl = params[0] ? params[0] : config.options.txtUploadStoreUrl;
		var toFilename = params[1] ? params[1] : config.options.txtUploadFilename;
		var backupDir = params[2] ? params[2] : config.options.txtUploadBackupDir;
		var uploadDir = params[3] ? params[3] : config.options.txtUploadDir;
		var username = params[4] ? params[4] : config.options.txtUploadUserName;
		var password = config.options.pasUploadPassword; // for security reason no password as macro parameter	
		// for still missing parameter set default value
		if ((!storeUrl) && (document.location.toString().substr(0,4) == "http")) 
			storeUrl = bidix.dirname(document.location.toString())+'/'+config.macros.upload.defaultStoreScript;
		if (storeUrl.substr(0,4) != "http")
			storeUrl = bidix.dirname(document.location.toString()) +'/'+ storeUrl;
		if (!toFilename)
			toFilename = bidix.basename(window.location.toString());
		if (!toFilename)
			toFilename = config.macros.upload.defaultToFilename;
		if (!uploadDir)
			uploadDir = config.macros.upload.defaultUploadDir;
		if (!backupDir)
			backupDir = config.macros.upload.defaultBackupDir;
		// report error if still missing
		if (!storeUrl) {
			alert(config.macros.upload.messages.noStoreUrl);
			clearMessage();
			return false;
		}
		if (config.macros.upload.authenticateUser && (!username || !password)) {
			alert(config.macros.upload.messages.usernameOrPasswordMissing);
			clearMessage();
			return false;
		}
		bidix.upload.uploadChanges(false,null,storeUrl, toFilename, uploadDir, backupDir, username, password); 
		return false; 
};

config.macros.upload.destFile = function(storeUrl, toFilename, uploadDir) 
{
	if (!storeUrl)
		return null;
		var dest = bidix.dirname(storeUrl);
		if (uploadDir && uploadDir != '.')
			dest = dest + '/' + uploadDir;
		dest = dest + '/' + toFilename;
	return dest;
};

//
// uploadOptions Macro
//

config.macros.uploadOptions = {
	handler: function(place,macroName,params) {
		var wizard = new Wizard();
		wizard.createWizard(place,this.wizardTitle);
		wizard.addStep(this.step1Title,this.step1Html);
		var markList = wizard.getElement("markList");
		var listWrapper = document.createElement("div");
		markList.parentNode.insertBefore(listWrapper,markList);
		wizard.setValue("listWrapper",listWrapper);
		this.refreshOptions(listWrapper,false);
		var uploadCaption;
		if (document.location.toString().substr(0,4) == "http") 
			uploadCaption = config.macros.upload.label.saveLabel;
		else
			uploadCaption = config.macros.upload.label.uploadLabel;
		
		wizard.setButtons([
				{caption: uploadCaption, tooltip: config.macros.upload.label.promptOption, 
					onClick: config.macros.upload.action},
				{caption: this.cancelButton, tooltip: this.cancelButtonPrompt, onClick: this.onCancel}
				
			]);
	},
	options: [
		"txtUploadUserName",
		"pasUploadPassword",
		"txtUploadStoreUrl",
		"txtUploadDir",
		"txtUploadFilename",
		"txtUploadBackupDir",
		"chkUploadLog",
		"txtUploadLogMaxLine"		
	],
	refreshOptions: function(listWrapper) {
		var opts = [];
		for(i=0; i<this.options.length; i++) {
			var opt = {};
			opts.push();
			opt.option = "";
			n = this.options[i];
			opt.name = n;
			opt.lowlight = !config.optionsDesc[n];
			opt.description = opt.lowlight ? this.unknownDescription : config.optionsDesc[n];
			opts.push(opt);
		}
		var listview = ListView.create(listWrapper,opts,this.listViewTemplate);
		for(n=0; n<opts.length; n++) {
			var type = opts[n].name.substr(0,3);
			var h = config.macros.option.types[type];
			if (h && h.create) {
				h.create(opts[n].colElements['option'],type,opts[n].name,opts[n].name,"no");
			}
		}
		
	},
	onCancel: function(e)
	{
		backstage.switchTab(null);
		return false;
	},
	
	wizardTitle: "Upload with options",
	step1Title: "These options are saved in cookies in your browser",
	step1Html: "<input type='hidden' name='markList'></input><br>",
	cancelButton: "Cancel",
	cancelButtonPrompt: "Cancel prompt",
	listViewTemplate: {
		columns: [
			{name: 'Description', field: 'description', title: "Description", type: 'WikiText'},
			{name: 'Option', field: 'option', title: "Option", type: 'String'},
			{name: 'Name', field: 'name', title: "Name", type: 'String'}
			],
		rowClasses: [
			{className: 'lowlight', field: 'lowlight'} 
			]}
};

//
// upload functions
//

if (!bidix.upload) bidix.upload = {};

if (!bidix.upload.messages) bidix.upload.messages = {
	//from saving
	invalidFileError: "The original file '%0' does not appear to be a valid TiddlyWiki",
	backupSaved: "Backup saved",
	backupFailed: "Failed to upload backup file",
	rssSaved: "RSS feed uploaded",
	rssFailed: "Failed to upload RSS feed file",
	emptySaved: "Empty template uploaded",
	emptyFailed: "Failed to upload empty template file",
	mainSaved: "Main TiddlyWiki file uploaded",
	mainFailed: "Failed to upload main TiddlyWiki file. Your changes have not been saved",
	//specific upload
	loadOriginalHttpPostError: "Can't get original file",
	aboutToSaveOnHttpPost: 'About to upload on %0 ...',
	storePhpNotFound: "The store script '%0' was not found."
};

bidix.upload.uploadChanges = function(onlyIfDirty,tiddlers,storeUrl,toFilename,uploadDir,backupDir,username,password)
{
	var callback = function(status,uploadParams,original,url,xhr) {
		if (!status) {
			displayMessage(bidix.upload.messages.loadOriginalHttpPostError);
			return;
		}
		if (bidix.debugMode) 
			alert(original.substr(0,500)+"\n...");
		// Locate the storeArea div's 
		var posDiv = locateStoreArea(original);
		if((posDiv[0] == -1) || (posDiv[1] == -1)) {
			alert(config.messages.invalidFileError.format([localPath]));
			return;
		}
		bidix.upload.uploadRss(uploadParams,original,posDiv);
	};
	
	if(onlyIfDirty && !store.isDirty())
		return;
	clearMessage();
	// save on localdisk ?
	if (document.location.toString().substr(0,4) == "file") {
		var path = document.location.toString();
		var localPath = getLocalPath(path);
		saveChanges();
	}
	// get original
	var uploadParams = new Array(storeUrl,toFilename,uploadDir,backupDir,username,password);
	var originalPath = document.location.toString();
	// If url is a directory : add index.html
	if (originalPath.charAt(originalPath.length-1) == "/")
		originalPath = originalPath + "index.html";
	var dest = config.macros.upload.destFile(storeUrl,toFilename,uploadDir);
	var log = new bidix.UploadLog();
	log.startUpload(storeUrl, dest, uploadDir,  backupDir);
	displayMessage(bidix.upload.messages.aboutToSaveOnHttpPost.format([dest]));
	if (bidix.debugMode) 
		alert("about to execute Http - GET on "+originalPath);
	var r = doHttp("GET",originalPath,null,null,username,password,callback,uploadParams,null);
	if (typeof r == "string")
		displayMessage(r);
	return r;
};

bidix.upload.uploadRss = function(uploadParams,original,posDiv) 
{
	var callback = function(status,params,responseText,url,xhr) {
		if(status) {
			var destfile = responseText.substring(responseText.indexOf("destfile:")+9,responseText.indexOf("\n", responseText.indexOf("destfile:")));
			displayMessage(bidix.upload.messages.rssSaved,bidix.dirname(url)+'/'+destfile);
			bidix.upload.uploadMain(params[0],params[1],params[2]);
		} else {
			displayMessage(bidix.upload.messages.rssFailed);			
		}
	};
	// do uploadRss
	if(config.options.chkGenerateAnRssFeed) {
		var rssPath = uploadParams[1].substr(0,uploadParams[1].lastIndexOf(".")) + ".xml";
		var rssUploadParams = new Array(uploadParams[0],rssPath,uploadParams[2],'',uploadParams[4],uploadParams[5]);
		var rssString = generateRss();
		// no UnicodeToUTF8 conversion needed when location is "file" !!!
		if (document.location.toString().substr(0,4) != "file")
			rssString = convertUnicodeToUTF8(rssString);	
		bidix.upload.httpUpload(rssUploadParams,rssString,callback,Array(uploadParams,original,posDiv));
	} else {
		bidix.upload.uploadMain(uploadParams,original,posDiv);
	}
};

bidix.upload.uploadMain = function(uploadParams,original,posDiv) 
{
	var callback = function(status,params,responseText,url,xhr) {
		var log = new bidix.UploadLog();
		if(status) {
			// if backupDir specified
			if ((params[3]) && (responseText.indexOf("backupfile:") > -1))  {
				var backupfile = responseText.substring(responseText.indexOf("backupfile:")+11,responseText.indexOf("\n", responseText.indexOf("backupfile:")));
				displayMessage(bidix.upload.messages.backupSaved,bidix.dirname(url)+'/'+backupfile);
			}
			var destfile = responseText.substring(responseText.indexOf("destfile:")+9,responseText.indexOf("\n", responseText.indexOf("destfile:")));
			displayMessage(bidix.upload.messages.mainSaved,bidix.dirname(url)+'/'+destfile);
			store.setDirty(false);
			log.endUpload("ok");
		} else {
			alert(bidix.upload.messages.mainFailed);
			displayMessage(bidix.upload.messages.mainFailed);
			log.endUpload("failed");			
		}
	};
	// do uploadMain
	var revised = bidix.upload.updateOriginal(original,posDiv);
	bidix.upload.httpUpload(uploadParams,revised,callback,uploadParams);
};

bidix.upload.httpUpload = function(uploadParams,data,callback,params)
{
	var localCallback = function(status,params,responseText,url,xhr) {
		url = (url.indexOf("nocache=") < 0 ? url : url.substring(0,url.indexOf("nocache=")-1));
		if (xhr.status == 404)
			alert(bidix.upload.messages.storePhpNotFound.format([url]));
		if ((bidix.debugMode) || (responseText.indexOf("Debug mode") >= 0 )) {
			alert(responseText);
			if (responseText.indexOf("Debug mode") >= 0 )
				responseText = responseText.substring(responseText.indexOf("\n\n")+2);
		} else if (responseText.charAt(0) != '0') 
			alert(responseText);
		if (responseText.charAt(0) != '0')
			status = null;
		callback(status,params,responseText,url,xhr);
	};
	// do httpUpload
	var boundary = "---------------------------"+"AaB03x";	
	var uploadFormName = "UploadPlugin";
	// compose headers data
	var sheader = "";
	sheader += "--" + boundary + "\r\nContent-disposition: form-data; name=\"";
	sheader += uploadFormName +"\"\r\n\r\n";
	sheader += "backupDir="+uploadParams[3] +
				";user=" + uploadParams[4] +
				";password=" + uploadParams[5] +
				";uploaddir=" + uploadParams[2];
	if (bidix.debugMode)
		sheader += ";debug=1";
	sheader += ";;\r\n"; 
	sheader += "\r\n" + "--" + boundary + "\r\n";
	sheader += "Content-disposition: form-data; name=\"userfile\"; filename=\""+uploadParams[1]+"\"\r\n";
	sheader += "Content-Type: text/html;charset=UTF-8" + "\r\n";
	sheader += "Content-Length: " + data.length + "\r\n\r\n";
	// compose trailer data
	var strailer = new String();
	strailer = "\r\n--" + boundary + "--\r\n";
	data = sheader + data + strailer;
	if (bidix.debugMode) alert("about to execute Http - POST on "+uploadParams[0]+"\n with \n"+data.substr(0,500)+ " ... ");
	var r = doHttp("POST",uploadParams[0],data,"multipart/form-data; ;charset=UTF-8; boundary="+boundary,uploadParams[4],uploadParams[5],localCallback,params,null);
	if (typeof r == "string")
		displayMessage(r);
	return r;
};

// same as Saving's updateOriginal but without convertUnicodeToUTF8 calls
bidix.upload.updateOriginal = function(original, posDiv)
{
	if (!posDiv)
		posDiv = locateStoreArea(original);
	if((posDiv[0] == -1) || (posDiv[1] == -1)) {
		alert(config.messages.invalidFileError.format([localPath]));
		return;
	}
	var revised = original.substr(0,posDiv[0] + startSaveArea.length) + "\n" +
				store.allTiddlersAsHtml() + "\n" +
				original.substr(posDiv[1]);
	var newSiteTitle = getPageTitle().htmlEncode();
	revised = revised.replaceChunk("<title"+">","</title"+">"," " + newSiteTitle + " ");
	revised = updateMarkupBlock(revised,"PRE-HEAD","MarkupPreHead");
	revised = updateMarkupBlock(revised,"POST-HEAD","MarkupPostHead");
	revised = updateMarkupBlock(revised,"PRE-BODY","MarkupPreBody");
	revised = updateMarkupBlock(revised,"POST-SCRIPT","MarkupPostBody");
	return revised;
};

//
// UploadLog
// 
// config.options.chkUploadLog :
//		false : no logging
//		true : logging
// config.options.txtUploadLogMaxLine :
//		-1 : no limit
//      0 :  no Log lines but UploadLog is still in place
//		n :  the last n lines are only kept
//		NaN : no limit (-1)

bidix.UploadLog = function() {
	if (!config.options.chkUploadLog) 
		return; // this.tiddler = null
	this.tiddler = store.getTiddler("UploadLog");
	if (!this.tiddler) {
		this.tiddler = new Tiddler();
		this.tiddler.title = "UploadLog";
		this.tiddler.text = "| !date | !user | !location | !storeUrl | !uploadDir | !toFilename | !backupdir | !origin |";
		this.tiddler.created = new Date();
		this.tiddler.modifier = config.options.txtUserName;
		this.tiddler.modified = new Date();
		store.addTiddler(this.tiddler);
	}
	return this;
};

bidix.UploadLog.prototype.addText = function(text) {
	if (!this.tiddler)
		return;
	// retrieve maxLine when we need it
	var maxLine = parseInt(config.options.txtUploadLogMaxLine,10);
	if (isNaN(maxLine))
		maxLine = -1;
	// add text
	if (maxLine != 0) 
		this.tiddler.text = this.tiddler.text + text;
	// Trunck to maxLine
	if (maxLine >= 0) {
		var textArray = this.tiddler.text.split('\n');
		if (textArray.length > maxLine + 1)
			textArray.splice(1,textArray.length-1-maxLine);
			this.tiddler.text = textArray.join('\n');		
	}
	// update tiddler fields
	this.tiddler.modifier = config.options.txtUserName;
	this.tiddler.modified = new Date();
	store.addTiddler(this.tiddler);
	// refresh and notifiy for immediate update
	story.refreshTiddler(this.tiddler.title);
	store.notify(this.tiddler.title, true);
};

bidix.UploadLog.prototype.startUpload = function(storeUrl, toFilename, uploadDir,  backupDir) {
	if (!this.tiddler)
		return;
	var now = new Date();
	var text = "\n| ";
	var filename = bidix.basename(document.location.toString());
	if (!filename) filename = '/';
	text += now.formatString("0DD/0MM/YYYY 0hh:0mm:0ss") +" | ";
	text += config.options.txtUserName + " | ";
	text += "[["+filename+"|"+location + "]] |";
	text += " [[" + bidix.basename(storeUrl) + "|" + storeUrl + "]] | ";
	text += uploadDir + " | ";
	text += "[[" + bidix.basename(toFilename) + " | " +toFilename + "]] | ";
	text += backupDir + " |";
	this.addText(text);
};

bidix.UploadLog.prototype.endUpload = function(status) {
	if (!this.tiddler)
		return;
	this.addText(" "+status+" |");
};

//
// Utilities
// 

bidix.checkPlugin = function(plugin, major, minor, revision) {
	var ext = version.extensions[plugin];
	if (!
		(ext  && 
			((ext.major > major) || 
			((ext.major == major) && (ext.minor > minor))  ||
			((ext.major == major) && (ext.minor == minor) && (ext.revision >= revision))))) {
			// write error in PluginManager
			if (pluginInfo)
				pluginInfo.log.push("Requires " + plugin + " " + major + "." + minor + "." + revision);
			eval(plugin); // generate an error : "Error: ReferenceError: xxxx is not defined"
	}
};

bidix.dirname = function(filePath) {
	if (!filePath) 
		return;
	var lastpos;
	if ((lastpos = filePath.lastIndexOf("/")) != -1) {
		return filePath.substring(0, lastpos);
	} else {
		return filePath.substring(0, filePath.lastIndexOf("\\"));
	}
};

bidix.basename = function(filePath) {
	if (!filePath) 
		return;
	var lastpos;
	if ((lastpos = filePath.lastIndexOf("#")) != -1) 
		filePath = filePath.substring(0, lastpos);
	if ((lastpos = filePath.lastIndexOf("/")) != -1) {
		return filePath.substring(lastpos + 1);
	} else
		return filePath.substring(filePath.lastIndexOf("\\")+1);
};

bidix.initOption = function(name,value) {
	if (!config.options[name])
		config.options[name] = value;
};

//
// Initializations
//

// require PasswordOptionPlugin 1.0.1 or better
bidix.checkPlugin("PasswordOptionPlugin", 1, 0, 1);

// styleSheet
setStylesheet('.txtUploadStoreUrl, .txtUploadBackupDir, .txtUploadDir {width: 22em;}',"uploadPluginStyles");

//optionsDesc
merge(config.optionsDesc,{
	txtUploadStoreUrl: "Url of the UploadService script (default: store.php)",
	txtUploadFilename: "Filename of the uploaded file (default: in index.html)",
	txtUploadDir: "Relative Directory where to store the file (default: . (downloadService directory))",
	txtUploadBackupDir: "Relative Directory where to backup the file. If empty no backup. (default: ''(empty))",
	txtUploadUserName: "Upload Username",
	pasUploadPassword: "Upload Password",
	chkUploadLog: "do Logging in UploadLog (default: true)",
	txtUploadLogMaxLine: "Maximum of lines in UploadLog (default: 10)"
});

// Options Initializations
bidix.initOption('txtUploadStoreUrl','');
bidix.initOption('txtUploadFilename','');
bidix.initOption('txtUploadDir','');
bidix.initOption('txtUploadBackupDir','');
bidix.initOption('txtUploadUserName','');
bidix.initOption('pasUploadPassword','');
bidix.initOption('chkUploadLog',true);
bidix.initOption('txtUploadLogMaxLine','10');


// Backstage
merge(config.tasks,{
	uploadOptions: {text: "upload", tooltip: "Change UploadOptions and Upload", content: '<<uploadOptions>>'}
});
config.backstageTasks.push("uploadOptions");


//}}}
/***
|''Name:''|UploadTiddlerMacro|
|''Description:''|Define a macro to upload a tiddler using UploadTiddlerPlugin (see UploadTiddlerPlugin for details).|
|''Version:''|1.0.0|
|''Date:''|2008-09-30|
|''Source:''|http://tiddlywiki.bidix.info/#UploadTiddlerMacro|
|''Usage:''|{{{<<uploadTiddler [tiddlerTitle]>>}}}<br>{{{tiddlerTitle: if omitted the title of the current tiddler}}}|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''CoreVersion:''|2.2.0|
|''Requires:''|UploadTiddlerPlugin|
***/
//{{{
version.extensions.UploadTiddlerMacro = {
	major: 1, minor: 0, revision: 0, 
	date: new Date("2008-09-30"),
	source: 'http://tiddlywiki.bidix.info/#UploadTiddlerMacro',
	author: 'BidiX (BidiX (at) bidix (dot) info',
	coreVersion: '2.2.0'
};

config.macros.uploadTiddler = {
	label: "uploadTiddler",
	prompt: "upload tiddler '%0' using UploadTiddlerOptions ",
	warning: "Are you sure you want to upload '%0'?",
	messages: {
		fileUploaded: "tiddler '%0' uploaded to file '%1'",
		fileNotUploaded: "tiddler '%0' NOT uploaded"
	},

	handler: function(place, macroName, params, wikifier,paramString, tiddler) {
		var tiddlerTitle = params[0];
		if (!tiddlerTitle) { 
			tiddlerTitle = tiddler.title;
		} else {
			tiddler = store.getTiddler(tiddlerTitle);
		}
		createTiddlyButton(place, this.label, this.prompt.format([tiddlerTitle]), 
			function () {
				config.macros.uploadTiddler.upload(tiddlerTitle, tiddler); 
				return false;}, 
			null, null, null);
	},

	upload:  function(tiddlerTitle, tiddler) {
		var saved_chkUploadTiddler = config.options.chkUploadTiddler;
		config.options.chkUploadTiddler = true; 
		bidix.uploadTiddler.upload(tiddlerTitle, tiddler,tiddlerTitle);
		config.options.chkUploadTiddler = saved_chkUploadTiddler;
	}
};

//
// Utilities
// 
if (!window.bidix) window.bidix = {}; // bidix namespace

bidix.checkPlugin = function(plugin, major, minor, revision) {
	var ext = version.extensions[plugin];
	if (!
		(ext  && 
			((ext.major > major) || 
			((ext.major == major) && (ext.minor > minor))  ||
			((ext.major == major) && (ext.minor == minor) && (ext.revision >= revision))))) {
			// write error in PluginManager
			if (pluginInfo)
				pluginInfo.log.push("Requires " + plugin + " " + major + "." + minor + "." + revision);
			eval(plugin); // generate an error : "Error: ReferenceError: xxxx is not defined"
	}
};

//
// Initializations
//

// require UploadTiddlerPlugin 1.2.2 or better
bidix.checkPlugin("UploadTiddlerPlugin", 1, 2, 2);


//}}}
/***
|''Name:''|UploadTiddlerPlugin|
|''Description:''|Upload a tiddler and Update a remote TiddlyWiki |
|''Version:''|1.2.2|
|''Date:''|2008-09-13|
|''Source:''|http://tiddlywiki.bidix.info/#UploadTiddlerPlugin|
|''Usage:''|Uses {{{<<uploadOptions>>}}}<br>with those UploadTiddler Options : <br>chkUploadTiddler: <<option chkUploadTiddler>><br>txtUploadTiddlerStoreUrl: <<option txtUploadTiddlerStoreUrl>><br>chkUploadTiddlerFromFile: <<option chkUploadTiddlerFromFile>>|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''[[License]]:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''CoreVersion:''|2.3.0|
***/
//{{{
version.extensions.UploadTiddlerPlugin = {
	major: 1, minor: 2, revision: 2, 
	date: new Date("2008-09-13"),
	source: 'http://tiddlywiki.bidix.info/#UploadTiddlerPlugin',
	author: 'BidiX (BidiX (at) bidix (dot) info',
	coreVersion: '2.3.0'
};

if (!window.bidix) window.bidix = {}; // bidix namespace
bidix.debugMode = false;
bidix.uploadTiddler = {
	messages: {
		aboutToSaveTiddler: "About to update tiddler '%0'...",
		aboutToRemotelySaveTiddler: "About to REMOTELY update tiddler '%0'...",
		storeTiddlerNotFound: "Script store tiddler '%0' not found",
		tiddlerSaved: "Tiddler '%0' updated in '%1' using '%2' "
	},
	upload: function(title,tiddler,oldTitle) {
		var callback = function(status,params,responseText,url,xhr) {
			if (xhr.status == 404) {
				alert(bidix.uploadTiddler.messages.storeTiddlerNotFound.format([url]));
				return;
			}
			if ((bidix.debugMode) || (responseText.indexOf("Debug mode") >= 0 )) {
				alert(responseText);
				if (responseText.indexOf("Debug mode") >= 0 )
					responseText = responseText.substring(responseText.indexOf("\n\n")+2);
			} else if (responseText.charAt(0) != '0') 
				alert(responseText);
			else 
				displayMessage(bidix.uploadTiddler.messages.tiddlerSaved.format([params[0], params[1], params[2]]));
				store.setDirty(false);
			}

		if ((config.options['chkUploadTiddler']) && 
				((document.location.toString().substr(0,4) == "http") || config.options['chkUploadTiddlerFromFile'])) {
			clearMessage();
			if (document.location.toString().substr(0,4) != "http")
				displayMessage(bidix.uploadTiddler.messages.aboutToRemotelySaveTiddler.format([title]));
			else
				displayMessage(bidix.uploadTiddler.messages.aboutToSaveTiddler.format([title]));
			var ExtTiddler = null;
			var html = null;
			if (tiddler) {
				ExtTiddler = store.getSaver().externalizeTiddler(store,tiddler);
				html = wikifyStatic(tiddler.text,null,tiddler).htmlEncode();
			}
			var form = "title="+encodeURIComponent(title);
			form = form + "&tiddler="+(ExtTiddler?encodeURIComponent(ExtTiddler):'');
			form = form + "&html="+(html?encodeURIComponent(html):'');
			var filename = (config.options['txtUploadFilename']?config.options['txtUploadFilename']:'index.html');
			form = form +"&oldTitle="+encodeURIComponent(oldTitle);
			form = form +"&fileName="+encodeURIComponent(filename);
			form = form +"&backupDir="+encodeURIComponent(config.options['txtUploadBackupDir']);
			form = form +"&user="+encodeURIComponent(config.options['txtUploadUserName']);
			form = form +"&password="+encodeURIComponent(config.options['pasUploadPassword']);
			form = form +"&uploadir="+encodeURIComponent(config.options['txtUploadDir']);
			form = form +"&debug="+encodeURIComponent(0);
			var storeScript = (config.options.txtUploadTiddlerStoreUrl 
								? config.options.txtUploadTiddlerStoreUrl : 'storeTiddler.php');
			var r = doHttp("POST",storeScript,form+"\n",'application/x-www-form-urlencoded',
				config.options['txtUploadUserName'],config.options['pasUploadPassword'],callback,Array(title,filename, storeScript),null);
		}
	}
}
TiddlyWiki.prototype.saveTiddler_bidix = TiddlyWiki.prototype.saveTiddler;
TiddlyWiki.prototype.saveTiddler = function(oldTitle,newTitle,newBody,modifier,modified,tags,fields,clearChangeCount,created) {
	var tiddler = TiddlyWiki.prototype.saveTiddler_bidix.apply(this,arguments);
	var title = (newTitle?newTitle:oldTitle);
	if (oldTitle == title)
		oldTitle = '';
	bidix.uploadTiddler.upload(title, tiddler, oldTitle);
}
TiddlyWiki.prototype.removeTiddler_bidix =TiddlyWiki.prototype.removeTiddler;
TiddlyWiki.prototype.removeTiddler = function(title) {
	TiddlyWiki.prototype.removeTiddler_bidix.apply(this,arguments);
	bidix.uploadTiddler.upload(title, null);
}

//
// Initializations
//

bidix.initOption = function(name,value) {
	if (!config.options[name])
		config.options[name] = value;
};

// styleSheet
setStylesheet('.txtUploadTiddlerStoreUrl {width: 22em;}',"uploadTiddlerPluginStyles");

//optionsDesc
merge(config.optionsDesc,{
	txtUploadTiddlerStoreUrl: "Url of the UploadTiddlerService script (default: storeTiddler.php)",
	chkUploadTiddler: "Do per Tiddler upload using txtUploadTiddlerStoreUrl (default: false)",
	chkUploadTiddlerFromFile: "Upload tiddler even if TiddlyWiki is located on local file (default: false)"
});

// Options Initializations
bidix.initOption('txtUploadTiddlerStoreUrl','');
bidix.initOption('chkUploadTiddler','');
bidix.initOption('chkUploadTiddlerFromFile','');


// add options in backstage UploadOptions
if (config.macros.uploadOptions) {
	if (config.macros.uploadOptions.options) {
		config.macros.uploadOptions.options.push("txtUploadTiddlerStoreUrl","chkUploadTiddler", "chkUploadTiddlerFromFile");
	}
}

//}}}
<script> localStorage.tema="viagems";</script><<tiddler IndexTiddler>>
!!Musical
|GraciasVida|w67-hlaUSIs|
|FlowersForest|xRzVrpgLpUs|
|AmazingEarth|2DuMjZFPDoU|
|SongSurvival|NVsoWi5VurM|
|LachoDrum|AUz9NgtgneM|
|oQueoQue|wI_t9hMmftQ|
|Silencia|t2FA0BDS_4Y|
|TocandoEmFrente|sIGHYV62Olo|
|Guabtanamera|blUSVALW_Z4|
|PataPata|lNeP3hrm__k|
|Malaika|Q1UID0vEeqI|
|UnderAfricanSkies|85rr5SqrCZI|
|Imagine|bKoDGucPOWM|
|REdemption|wTyqU0AaUkY|
|OneLove|4xjPODksI08|



<!--{{{-->
<div class='toolbar' role='navigation' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div>

<div class='viewer' macro='view text wikified'></div>
<div class='tagClear'></div>
<!--}}}-->
/***
|Name|WikifyPlugin|
|Source|http://www.TiddlyTools.com/#WikifyPlugin|
|Documentation|http://www.TiddlyTools.com/#WikifyPluginInfo|
|Version|1.2.0|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|insert sections, slices, fields, literals, or computed values into a wiki-format output|
!!!!!Documentation
> see [[WikifyPluginInfo]]
!!!!!Revisions
<<<
2011.03.07 1.2.0 added handling in getFieldReference() for retrieving section values
|please see [[WikifyPluginInfo]] for additional revision details|
2007.06.22 1.0.0 initial release
<<<
!!!!!Code
***/
//{{{
version.extensions.WikifyPlugin= {major: 1, minor: 2, revision: 0, date: new Date(2011,3,7)};

config.macros.wikify={
	handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		var fmt=params.shift();
		var values=[];
		var out="";
		if (!fmt.match(/\%[0-9]/g) && params.length) // format has no markers, just join all params with spaces
			out=fmt+" "+params.join(" ");
		else { // format param has markers, get values and perform substitution
			while (p=params.shift()) values.push(this.getFieldReference(place,p));
			out=fmt.format(values);
		}
		if (macroName=="wikiCalc") out=eval(out).toString();
		wikify(out.unescapeLineBreaks(),place,null,tiddler);
	},
	getFieldReference: function(place,p) {
		if (typeof p != "string") return p; // literal non-string value... just return it...

		var val=undefined;
		var here=story.findContainingTiddler(place);
		var current=here?here.getAttribute('tiddler'):'';

		// SLICES: "::slicename" OR "here::slicename" OR "tiddlername::slicename"
		var parts=p.split(config.textPrimitives.sliceSeparator);
		var tid=parts[0]; var slice=parts[1];
		if (slice) { // slice reference
			if (!tid || !tid.length || tid=="here") tid=current;
			var val=store.getTiddlerSlice(tid,slice);
		}

		// SECTIONS: "##sectionname" OR "here##sectionname" OR "tiddlername##sectionname"
		if (!slice) {
			var parts=p.split(config.textPrimitives.sectionSeparator);
			var tid=parts[0]; var section=parts[1];
			if (section) {
				if (!tid || !tid.length || tid=="here") tid=current;
				var val=store.getTiddlerText(tid+config.textPrimitives.sectionSeparator+section);
			}
		}

		// FIELDS: "fieldname" OR "fieldname@tiddlername"
		if (!slice && !section) {
			var parts=p.split("@");
		 	var field=parts[0]; var tid=parts[1];
			if (!tid || !tid.length || tid=="here") tid=current;
			var val=store.getValue(tid,field);
		}

		// not a slice, section or field, or value not found... return value unchanged
		return val===undefined?p:val;
	}
}
//}}}
//{{{
// define alternative macroName for triggering pre-rendering call to eval()
config.macros.wikiCalc=config.macros.wikify;
//}}}
EscolasResilientes
<html><form method=post target=responseframe action="novoItem.php" style="display:inline" enctype="multipart/form-data">
        <input type=text name=titulo value="" style="width:30%"> Titulo <br> 
       <input type=text name=section value="" style="width:30%">Tema<br>
	<input type=hidden name=when value=""><input type=hidden name=username value="">
	<textarea rows=7 cols=50 name=note style="width:70%" onfocus="this.select()"></textarea>Notas<br>
	<textarea rows=9 cols=50 name=msg style="width:70%" onfocus="this.select()"></textarea>Text<br>
         <input type=text name=url value="" style="width:60%" onfocus="this.select()"> - ref url?<br>
         <input type=text name=youtube value="" style="width:40%" onfocus="this.select()"> - youtube video (codigo)?<br>
         <input type=file name=imagemText>upload foto for text<br>
	<textarea rows=1 cols=50 name=capcao style="width:70%" onfocus="this.select()"></textarea>Capçao<br>
	<input type="submit" value="mandar" onclick=''>

</form>
<iframe src="" name="responseframe" id="responseframe" marginheight=0 style="display:block;border:0;padding:0;margin:0;width:100%;height:30px;"></iframe><hide linebreaks>
</html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.username.value=localStorage.username;
form.section.value=localStorage.tema;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
{{small{Nota:Aqui voce podem criar uma novo item por a tema atual. Cada item tem titulo, notas (que aparecera no painel direita) e um corpo do texto.  Adentro o corpodo text voce podem 
* incluir um imagem (que voce vai escolhar e o sistem vem upload seu foto por o servidor do sistema), 
* uma capcao por o foto (isso aparecera na lista dos imagems...entao nao faz esse parte muita comprida),
* uma referencia por um video em Youtube (so especifica o codigo do video),
* uma referencia (url) por seu item...fonte de informação ....
Depois digitando e selecionando todo......clicar "mandar" e espera a mensagem que o item foi criado.
Por raisones tecnicas, e em parte as configurações seu navegador, seu item nao aparece nas listas...pode ser por algumas horas.}}}
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="Agua";</script><<tiddler IndexTiddler>>
|RiosVoadores1|34Y93Ar4tCA|
|RiosVoadores2|s6ecEoBhCRQ|
|RiosAcima|01jYiXbpnoE|
Skye,Ivone,Nancy, LuciaHelena, Oriel, Priscila, Mauricio, Sandra,Rosinha,Major,Sanca,Heliane
|ArvoresMaes|dRSPy3ZwpBk|
|AlanSavoury|vpTHi7O66pI|
|SingleStory|qDovHZVdyVQ|
|OriginComplexity|dIbUg9C9Gn4|
__Ementa__ - <<showPopup tiddler:cursoIndex##ementa label:lista width:800px popupClass:sticky>><<setIcon Logos/cv.png "" notext>> <script label="Ementa">localStorage.tektex=localStorage.curso+"/ementa";localStorage.oneMenu="tektex";localStorage.notesMenu="tektex";config.refreshers.content(document.getElementById("oneMenu"));config.refreshers.content(document.getElementById("notesMenu"));</script><<setIcon Logos/tex.png "" notext>> <<tiddler ChkPDF with:"ementa">>

__Manual__ - <<showPopup tiddler:cursoIndex##manual label:lista width:800px popupClass:sticky>><<setIcon Logos/cv.png "" notext>> <script label="Manual">localStorage.tektex=localStorage.curso+"/index";localStorage.oneMenu="tektex";localStorage.notesMenu="tektex";config.refreshers.content(document.getElementById("oneMenu"));config.refreshers.content(document.getElementById("notesMenu"));</script><<setIcon Logos/tex.png "" notext>> <<tiddler ChkPDF with:"manual">>

{{small{Notas Ementa dá informação sumarizando o curso. Manual é curso completo como atualizado.
[img(16px,auto)[Logos/cv.png]]= a lista dos items na ementa ou curso
[img(16px,auto)[Logos/tex.png]] = codigo Latex por ementa ou curso
[img(16px,auto)[Logos/pdf.png]] = pdf of ementa ou curso, quando existe}}}

/%
!!ementa
__{{threecolumns{
<script>
var out="";
var file=""+localStorage.curso+"/ementa"
var tids=getText(file);
//return "{{{"+tids+"}}}";
tids=tids.replace(/rn|n|r/g,"");
tids=tids.split("#");
for(i=1;i<tids.length;i++)
{
if(tids[i].indexOf("&")==-1)
{
out+='<script label="'+tids[i]+'">localStorage.oneMenu="display";localStorage.sequencia=" ";localStorage.show=" ";localStorage.referencias=" ";localStorage.dinamica=" ";localStorage.url="'+localStorage.curso+'/'+tids[i]+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';
}
if(tids[i].indexOf("&")!=-1)
{
out+='<script label="'+tids[i].substring(1)+'">localStorage.oneMenu="display";localStorage.sequencia=" ";localStorage.show=" ";localStorage.referencias=" ";localStorage.dinamica=" ";localStorage.url="'+tids[i].substring(1)+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';
}
}
return out;
</script>}}}

!!manual
{{fourcolumns{
<script>
var out="";
var file=""+localStorage.curso+"/index"
var tids=getText(file);
//return "{{{"+tids+"}}}";
tids=tids.replace(/rn|n|r/g,"");
tids=tids.split("#");
for(i=1;i<tids.length;i++)
{
if(tids[i].indexOf("@")!=-1) // get data from whole tema index
{
out+="__"+tids[i].substring(1)+"__<br>";
var temaURL=""+tids[i].substring(1)+"/index";
localStorage.tema=tids[i].substring(1);
//return "..."+temaURL+"...";
var temaTids=getText(temaURL);
//return "tids="+temaTids;
temaTids=temaTids.replace(/rn|n|r/g,"");
temaTids=temaTids.split("#");
for(j=1;j<temaTids.length;j++)
{
if(temaTids[j].indexOf("@")==-1){out+='<script label="'+temaTids[j]+'">localStorage.oneMenu="display";localStorage.sequencia=" ";localStorage.show=" ";localStorage.referencias=" ";localStorage.dinamica=" ";localStorage.url="'+tids[i].substring(1)+'/'+temaTids[j]+'";localStorage.itema="'+temaTids[j].substring(1)+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';}
}
}

if(tids[i].indexOf("&")!=-1)  ///      get individual file in other tema folder (not course folder)
{var temaHere=tids[i].indexOf("/");
var tema=tids[i].substring(1,temaHere);
var item=tids[i].substring(temaHere+1);
out+='<script label="'+tids[i].substring(1)+'">localStorage.oneMenu="display";localStorage.sequencia=" ";localStorage.show=" ";localStorage.referencias=" ";localStorage.dinamica=" ";localStorage.url="'+tids[i].substring(1)+'";localStorage.itema="'+item+'";localStorage.tema="'+tema+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';
}

if((tids[i].indexOf("@")==-1) && (tids[i].indexOf("&")==-1)) ///      get individual file (in course folder
{out+='<br><script label="'+tids[i]+'">localStorage.oneMenu="display";localStorage.sequencia=" ";localStorage.show=" ";localStorage.referencias=" ";localStorage.dinamica=" ";localStorage.url="'+localStorage.curso+'/'+tids[i]+'";localStorage.itema="'+tids[i]+'";localStorage.tema=localStorage.curso;config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';}
}
return out;
</script>}}}
!!end
%/
|Agradacer a abracar|UknvRFPA1P8|
|MadreTiera|WK_lyFwRmoU|
|Zorba|wSY_FPhY9C4|
|Tzadik Katamar|F0HDKA3IaKs|
!Zorba2|Mfk7ozi42xw|
|Ascent Money 5|BUywXLdNi1o|
<script>
var out="";
var links="";
var url=localStorage.url;
//return url;
var tids=getText(url);
//return tids;
localStorage.texto=tids;
tid=tids.split("#");
for(i=0;i<tid.length;i++)
{

if(tid[i].indexOf("@frame")!=-1){var head=tid[i].replace("@frame{","{{bold{"); head =head.replace("}","}}}");}

if(tid[i].indexOf("@note")!=-1)
{
tid[i]=tid[i].replace("@note{","");
tid[i]=tid[i].replace(/}endNote/g,"");
tid[i]=tid[i].replace(/@imagemS{/g,"{{center{[img(120px,auto)[");
tid[i]=tid[i].replace(/@imagem{/g,"{{center{[img(260px,auto)[");
tid[i]=tid[i].replace(/}endImagem/g,"]]}}}");
tid[i]=tid[i].replace("@tiny","");
tid[i]=tid[i].replace("@box{","<br><br>");
tid[i]=tid[i].replace("@begin{itemize}","");
tid[i]=tid[i].replace(/@item/g,"* ");
tid[i]=tid[i].replace("@end{itemize}","");
tid[i]=tid[i].replace(/@citacao{/g,"{{bookmarklet{<<showPopup tiddler:Citacao width:600px popupClass:yellow label:");
tid[i]=tid[i].replace(/}endCitacao/g,">>}}}");
tid[i]=tid[i].replace(/@newline/g,"<br>");
tid[i]=tid[i].split('../').join('');
tid[i]=tid[i].replace(/\n/g,"<br><br>");

localStorage.notesMenu="notes";
localStorage.notes=tid[i];
}

if(tid[i].indexOf("@text")!=-1)
{
tid[i]=tid[i].split('../').join('');
tid[i]=tid[i].replace("@text{","");
tid[i]=tid[i].replace(/}endText/g,"");
tid[i]=tid[i].replace(/@imagemV{/g,"{{center{[img(580px,auto)[");
tid[i]=tid[i].replace(/@imagemH{/g,"{{center{[img(auto,400px)[");
tid[i]=tid[i].replace(/@imagem{/g,"{{center{[img(400px,auto)[");
tid[i]=tid[i].replace(/}endImagem/g,"]]}}}");
tid[i]=tid[i].replace("@begin{itemize}","");
tid[i]=tid[i].replace(/@item/g,"* ");
tid[i]=tid[i].replace("@end{itemize}","");
tid[i]=tid[i].replace(/@videoPlay{/g,"<<tiddler videoPlay with:");
tid[i]=tid[i].replace(/@video{/g,"<<tiddler videoPlayer with:");
tid[i]=tid[i].replace(/}endVideo/g,">>");
tid[i]=tid[i].replace(/@musica{/g,"<<tiddler musicPlayer with:");
tid[i]=tid[i].replace(/}endMusica/g,">>");
tid[i]=tid[i].replace(/@menubox/g,"{{menubox");
tid[i]=tid[i].replace(/endMenubox/g,"}}");
tid[i]=tid[i].replace(/@widebox/g,"{{widebox");
tid[i]=tid[i].replace(/endWidebox/g,"}}");
tid[i]=tid[i].replace(/@italic{/g,"//");
tid[i]=tid[i].replace(/}endItalic/g,"//");
tid[i]=tid[i].replace(/@hrule/g,"----");
tid[i]=tid[i].replace(/@url{/g,"");
tid[i]=tid[i].replace(/@href{/g,"[[");
////captions/////////////////////
tid[i]=tid[i].replace(/@caption{/g,"{{small{{{center{");
tid[i]=tid[i].replace(/}endCaption/g,"}}}}}}");
//tid[i]=tid[i].replace{/@textit{/g,'//'};
//tid[i]=tid[i].replace{/}endTextit/g,"//"};
tid[i]=tid[i].replace(/@link{/g,"[");
tid[i]=tid[i].replace(/}endLink/g,"]]");
tid[i]=tid[i].replace(/@pdf{/g,'<html><iframe src="');
tid[i]=tid[i].replace(/}endPdf/g,'" width=99% height=400px></iframe></html>');



texto=tid[i];
}

if(tid[i].indexOf("@sequencia")!=-1)
{
tid[i]=tid[i].replace("@sequencia{","");
tid[i]=tid[i].substring(2);
tid[i]=tid[i].replace("}endSequencia","");
localStorage.sequencia=tid[i];
}

if(tid[i].indexOf("@show")!=-1)
{
tid[i]=tid[i].replace("@show{","");
tid[i]=tid[i].replace("}endShow","");
localStorage.show=localStorage.tema+"/"+tid[i].substring(1);
}

if(tid[i].indexOf("@dinamica")!=-1)
{
tid[i]=tid[i].replace("@dinamica{","");
tid[i]=tid[i].substring(1);
tid[i]=tid[i].replace("}endDinamica","");
localStorage.dinamica=tid[i];
}

if(tid[i].indexOf("@referencias")!=-1)
{
tid[i]=tid[i].replace("@referencias{","{{fine{");
tid[i]=tid[i].substring(2);
tid[i]=tid[i].replace("}endReferencias","}}}");
tid[i]=tid[i].replace(/@url{/g,"");
localStorage.referencias=tid[i];
}

if(tid[i].indexOf("@citaTex")!=-1)
{
tid[i]=tid[i].replace("@citaText{","{{italic{");
tid[i]=tid[i].substring(2);
tid[i]=tid[i].replace("}endCitaText","}}}");
tid[i]=tid[i].replace(/@videoPlay{/g,"<<tiddler videoPlay with:");
tid[i]=tid[i].replace(/@video{/g,"<<tiddler videoPlayer with:");
tid[i]=tid[i].replace(/}endVideo/g,">>");
localStorage.citacao=tid[i];
}

if(tid[i].indexOf("@tag")!=-1)
{
tid[i]=tid[i].replace(/@tag{/g,"");
tid[i]=tid[i].replace(/}endTag/g,"");
localStorage.tag=tid[i];
tid[i]="";
}

if(tid[i].indexOf("@tiddlylink")!=-1)
{var startTiddlylink=tid[i].indexOf("@tiddlylink{");
var endTiddlylink=tid[i].indexOf("}endTiddlylink");
var link=tid[i].substring(startTiddlylink+12,endTiddlylink);
var linksub='<scri'+'pt label="'+link+'">localStorage.oneMenu="display";localStorage.notesMenu="";localStorage.url="'+link+'";config.refreshers.content(document.getElementById("oneMenu"));</scr'+'ipt><br>';
tid[i]="";
links+=linksub;
}


}
localStorage.return=head+"<br>"+texto+"<br>"+links;
config.refreshers.content(document.getElementById("notesMenu"));
return "{{center{"+head+"}}}"+texto+"<br>"+links;
</script>
<sc{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}ript>localStorage.tema="eAgora";</script><<tiddler IndexTiddler>>
function getTex(source)
{
var lista="";
    var xmlHttp = null;
    xmlHttp = new XMLHttpRequest();
    var discFile=source+".tex";
    xmlHttp.open( "GET",discFile, false);
    xmlHttp.send( null );
    var indexLista=xmlHttp.responseText;
if(xmlHttp.status!=200){indexLista="";}

return indexLista;
};
function getText(source)
{
var lista="";
    var xmlHttp = null;
    xmlHttp = new XMLHttpRequest();
    var discFile=source+".txt";
    xmlHttp.open( "GET",discFile, false);
    xmlHttp.send( null );
    var indexLista=xmlHttp.responseText;
if(xmlHttp.status!=200){indexLista="";}

return indexLista;
};
|OlhaParaAcima|ho7nNgrCfdY|
<script>
var music=store.getTiddlerSlice("musicaTeca","$1");
var music='<html><audio autoplay="autoplay" controls="controls"> <source src="musicas/'+music+'" type="audio/mpeg"></audio></html>' ;
return music;
</script>
|CoracaoAmigo|CoracaoAmigo.mp3|
|Homen|O Homen.mp3|
|NossaSenhora|Nossa Senhora.mp3|
|ManeiraSimples|Maneira simples.MP3|
|OQueEOQueE|O que e o que e.mp3|
<html><form method=post target=responseframe action="notinhas.php" style="display:inline">
<input type=text name=packet value="">Packet<br>
	<input type=text name=section value="">section<input type=text name=subsection value="">subsection <input type=text name=subsubsection value="">subsubsecction<br>
        <input type=text name=titulo value="" style="width:50%"> Titulo <br>  
	<input type=hidden name=when value=""><input type=hidden name=tag value=""><input type=text name=fonte value="">fonte
	<textarea rows=7 cols=50 name=msg style="width:99%" onfocus="this.select()"></textarea><br>
         <input type=text name=url value="" style="width:70%" onfocus="this.select()"> - ref url?<br>
	<div style="text-align:center">
	<input type="submit" value="edita" onclick=''>

</form>
<iframe src="" name="responseframe" id="responseframe" warginheight=0 style="display:block;border:0;padding:0;margin:0;width:100%;height:20px;"></iframe><hide linebreaks>
</html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.fonte.value=localStorage.fonte;
form.tag.value=localStorage.tag;
form.msg.value=localStorage.getText;
form.packet.value=localStorage.tag;
form.titulo.value=localStorage.title;
form.section.value=localStorage.section;
form.subsection.value=localStorage.subsection;
form.subsubsection.value=localStorage.subsubsection;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
var target="Notas/"+localStorage.title;
form.msg.value=getTex(target);
</script>
<!--{{{-->
<div class='toolbar' role='navigation' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div>
<div class='viewer' macro='view text wikified'></div>
<div class='tagClear'></div>
<!--}}}-->
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="oMovimento";</script><<tiddler IndexTiddler>>
{{right{<<newTiddler tag:permacultura tag:slide>><<setIcon Logos/sm_edit.png "" notext>>}}}<<tiddler TemaTiddler with:permacultura>>
|Andre Soares|VvleJrOkfGI|
|GraveDnagerFallingFood|JrtJbk8_GY8|
<script>
var out="";
var lista=store.getTiddlerText("PDCLista");
//return lista;
lista=lista.split("#");
for(i=1;i<lista.length;i++)
{
//

//return ".."+lista[i]+"..";
var items=store.getTaggedTiddlers(lista[i].substring(1));
for(j=0;j<items.length;j++)
{
if(items[j].tags.indexOf("slide")!=-1)
{
var itemText=store.getTiddlerText(items[j].title);
out+=getText(itemText)+"<br>";
}
}
}
return out;
</script>
{{widebox{{{small{Bem Vindo, aparece isso será sua primeira visita aqui....entao porfavor indicar seu nome, escola e posição (professor, aluno...funcionario...) nesta forma..... sera bom saber quem esta vistando e usando esta pagina.
Grato
Skye
<html><form method=post target=responseframe action="registro.php" style="display:inline"><br>
<input type=text name=username value="" style="width:60%" onfocus="this.select()">Nome<br>
<input type=text name=escola value="" style="width:60%" onfocus="this.select()">Escola<br>
<input type=text name=posicao value="" style="width:60%" onfocus="this.select()">responsibilidade<br>
<input type="submit" value="registra" onclick=' 
localStorage.username=this.form.username.value;
localStorage.escola=this.form.escola.value;
localStorage.posicao=this.form.responsibilidade.value;'>
</form>
<iframe src="" name="responseframe" id="responseframe" warginheight=0 style="display:block;border:0;padding:0;margin:0;width:100%;height:30px;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.username.value=localStorage.username;
form.escola.value=localStorage.escola
form.posicao.value=localStorage.posicao
</script>}}}
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="SistemasFinanceiros";</script><<tiddler IndexTiddler>>
{{right{<<showPopup tiddler:addItem Label:ItemNoco popupClass:sticky width:700px>><<setIcon Logos/edit.png "" notext>>}}}<script>localStorage.tema="SistemasSociais";</script><<tiddler IndexTiddler>>
|Planejamento||
|JohnCroft|sh4hMnWkBWw|
|DragonDreaming|Q8SeRuvoAXs|
|TeoriaU||
|OttoRodaConversa|sXILjZNPu50|
|aristaConferencia|xquilMXkPdE|
|CidadesCriativas|S_R5D3QRA9o|
|LearningFromFuture|GMJefS7s3lc|
<script>localStorage.curso="test";</script><<tiddler cursoIndex>>
<html><iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Faprendizageminterativa%2Fvideos%2F810752145733556%2F&show_text=0&width=680" width="680" height="800" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe></iframe></html>
<script>
vids='<html><iframe id="player" type="text/html" width="570" height="300" src="http://www.youtube.com/embed/$1?enablejsapi=1&rel=0&autoplay=1"  frameborder="0"></iframe></html>';
return vids;
</script>
<script>
vids='<html><iframe id="player" type="text/html" width="570" height="300" src="http://www.youtube.com/embed/$1?enablejsapi=1"  frameborder="0"></iframe></html>';
return vids;
</script>
config.options.txtUploadUserName="anon"
config.options.txtUploadFilename="index.html"
config.options.pasUploadPassword="anon"
config.options.txtUploadStoreUrl="store.php"
config.options.txtUploadTiddlerStoreUrl="storeTiddler.php"
config.options.chkUploadTiddler=true
readOnly=false
config.options.txtHttpReadOnly=false
config.options.chkSinglePageMode=true
chkSinglePagePermalink=false