From 05280f09d79a5b8eff6e6fc6d70f3d05d701b0bf Mon Sep 17 00:00:00 2001 From: TheDiveO Date: Tue, 30 Sep 2014 23:01:32 +0200 Subject: [PATCH 001/117] Added new filter operator for adding prefixes and suffixes to titles; these new filter operators are useful in contexts where only a filter expression is allowed and where macro processing isn't allowed. The filters complement the existing remove suffix and prefix filter operators. (So much for the "filter" in filter operator.) --- core/modules/filters/addprefix.js | 28 ++++++++++++++++++++++++++++ core/modules/filters/addsuffix.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 core/modules/filters/addprefix.js create mode 100644 core/modules/filters/addsuffix.js diff --git a/core/modules/filters/addprefix.js b/core/modules/filters/addprefix.js new file mode 100644 index 000000000..d1f0a822b --- /dev/null +++ b/core/modules/filters/addprefix.js @@ -0,0 +1,28 @@ +/*\ +title: $:/core/modules/filters/addprefix.js +type: application/javascript +module-type: filteroperator + +Filter operator for adding a prefix to each title in the list. This is +especially useful in contexts where only a filter expression is allowed +and macro substitution isn't available. + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +/* +Export our filter function +*/ +exports.addprefix = function(source,operator,options) { + var results = []; + source(function(tiddler,title) { + results.push(operator.operand + title); + }); + return results; +}; + +})(); diff --git a/core/modules/filters/addsuffix.js b/core/modules/filters/addsuffix.js new file mode 100644 index 000000000..fb80c2573 --- /dev/null +++ b/core/modules/filters/addsuffix.js @@ -0,0 +1,28 @@ +/*\ +title: $:/core/modules/filters/addsuffix.js +type: application/javascript +module-type: filteroperator + +Filter operator for adding a suffix to each title in the list. This is +especially useful in contexts where only a filter expression is allowed +and macro substitution isn't available. + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +/* +Export our filter function +*/ +exports.addsuffix = function(source,operator,options) { + var results = []; + source(function(tiddler,title) { + results.push(title + operator.operand); + }); + return results; +}; + +})(); From 5dd6ebff05a3380db2901294b2cfc89c1a0e71bf Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 6 Oct 2014 09:18:29 +0100 Subject: [PATCH 002/117] Fix problem with zoomin storyview and hidden sidebar Fixes #933 --- core/modules/storyviews/zoomin.js | 15 ++++++--------- themes/tiddlywiki/vanilla/base.tid | 11 +++++++++++ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/core/modules/storyviews/zoomin.js b/core/modules/storyviews/zoomin.js index 0ae8e8f46..0588d58f7 100644 --- a/core/modules/storyviews/zoomin.js +++ b/core/modules/storyviews/zoomin.js @@ -35,7 +35,7 @@ var ZoominListView = function(listWidget) { } else { self.currentTiddlerDomNode = domNode; } - domNode.style.position = "absolute"; + $tw.utils.addClass(domNode,"tc-storyview-zoomin-tiddler"); }); }; @@ -52,9 +52,8 @@ ZoominListView.prototype.navigateTo = function(historyInfo) { return; } // Make the new tiddler be position absolute and visible so that we can measure it + $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(targetElement,[ - {position: "absolute"}, - {display: "block"}, {transformOrigin: "0 0"}, {transform: "translateX(0px) translateY(0px) scale(1)"}, {transition: "none"}, @@ -134,9 +133,9 @@ ZoominListView.prototype.insert = function(widget) { return; } // Make the newly inserted node position absolute and hidden + $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(targetElement,[ - {display: "none"}, - {position: "absolute"} + {display: "none"} ]); }; @@ -152,9 +151,8 @@ ZoominListView.prototype.remove = function(widget) { return; } // Set up the tiddler that is being closed + $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(targetElement,[ - {position: "absolute"}, - {display: "block"}, {transformOrigin: "50% 50%"}, {transform: "translateX(0px) translateY(0px) scale(1)"}, {transition: "none"}, @@ -168,9 +166,8 @@ ZoominListView.prototype.remove = function(widget) { var toWidgetDomNode = toWidget && toWidget.findFirstDomNode(); // Set up the tiddler we're moving back in if(toWidgetDomNode) { + $tw.utils.addClass(toWidgetDomNode,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(toWidgetDomNode,[ - {position: "absolute"}, - {display: "block"}, {transformOrigin: "50% 50%"}, {transform: "translateX(0px) translateY(0px) scale(10)"}, {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing}, diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 31c1da4da..54ea117df 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -850,6 +850,17 @@ canvas.tc-edit-bitmapeditor { width: 10%; } +/* +** Storyview Classes +*/ + +.tc-storyview-zoomin-tiddler { + position: absolute; + display: block; + width: 100%; + width: calc(100% - 84px); +} + /* ** Dropdowns */ From 61acea7e8d8eae8fb8860b41ccab476f73852e81 Mon Sep 17 00:00:00 2001 From: fghhfg Date: Mon, 6 Oct 2014 16:32:23 +0800 Subject: [PATCH 003/117] make simpler --- editions/tw5.com/tiddlers/howtos/Upgrading.tid | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/editions/tw5.com/tiddlers/howtos/Upgrading.tid b/editions/tw5.com/tiddlers/howtos/Upgrading.tid index db04fd0b2..8d0117687 100644 --- a/editions/tw5.com/tiddlers/howtos/Upgrading.tid +++ b/editions/tw5.com/tiddlers/howtos/Upgrading.tid @@ -13,18 +13,16 @@ The process described here is for upgrading standalone TiddlyWiki files. There i <<< When upgrading, please remember the [[The First Rule of Using TiddlyWiki]]: -//You are responsible for looking after your own data; take care to make backups, especially when upgrading the ~TiddlyWiki core// +//Backup your data!// <<< ! Online upgrading This process will work on most desktop browsers. Note that none of your personal data leaves your browser with this process. -# Locate your TiddlyWiki file in the file system (ie using Windows Explorer, the Finder on Mac OS X, or your file manager on Linux) -# Visit http://tiddlywiki.com/upgrade.html in your browser +# Visit the new version tiddywiki in http://tiddlywiki.com/upgrade.html in your browser # Drag your old TiddlyWiki HTML file into the browser window #* If the file is encrypted you will be prompted for the password -# Review the list of tiddlers that will be upgraded # Click ''Upgrade'' # Save changes to save the new version From 67db9d57a28f065845f1beaa6c99915dd5d46d2c Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 6 Oct 2014 10:02:20 +0100 Subject: [PATCH 004/117] Boot prefix should preserve $tw in the browser This change allows raw markup tiddlers to preload configuration values into the `$tw` global --- boot/bootprefix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/bootprefix.js b/boot/bootprefix.js index d22620858..bff9a2aa2 100644 --- a/boot/bootprefix.js +++ b/boot/bootprefix.js @@ -99,7 +99,7 @@ return $tw if(typeof(exports) === "undefined") { // Set up $tw global for the browser - window.$tw = _bootprefix(); + window.$tw = _bootprefix(window.$tw); } else { // Export functionality as a module exports.bootprefix = _bootprefix; From 0c8e5380778303cdd3308bed4a15290214841f8b Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 6 Oct 2014 10:02:34 +0100 Subject: [PATCH 005/117] Add support for custom password prompts --- boot/boot.js | 8 +++-- .../How to customise the password prompt.tid | 15 +++++++++ .../tiddlers/system/PatchEncryptionPrompt.tid | 33 +++++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 editions/dev/tiddlers/from tw5.com/How to customise the password prompt.tid create mode 100644 editions/dev/tiddlers/system/PatchEncryptionPrompt.tid diff --git a/boot/boot.js b/boot/boot.js index 9d838a0d6..02307f600 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1244,10 +1244,14 @@ Decrypt any tiddlers stored within the element with the ID "encryptedArea". The $tw.boot.decryptEncryptedTiddlers = function(callback) { var encryptedArea = document.getElementById("encryptedStoreArea"); if(encryptedArea) { - var encryptedText = encryptedArea.innerHTML; + var encryptedText = encryptedArea.innerHTML, + prompt = "Enter a password to decrypt this TiddlyWiki"; // Prompt for the password + if($tw.utils.hop($tw.boot,"encryptionPrompts")) { + prompt = $tw.boot.encryptionPrompts.decrypt; + } $tw.passwordPrompt.createPrompt({ - serviceName: "Enter a password to decrypt this TiddlyWiki", + serviceName: prompt, noUserName: true, submitText: "Decrypt", callback: function(data) { diff --git a/editions/dev/tiddlers/from tw5.com/How to customise the password prompt.tid b/editions/dev/tiddlers/from tw5.com/How to customise the password prompt.tid new file mode 100644 index 000000000..53eb35433 --- /dev/null +++ b/editions/dev/tiddlers/from tw5.com/How to customise the password prompt.tid @@ -0,0 +1,15 @@ +title: How to customise the password prompt +tags: howto +created: 20141006085526118 +modified: 20141006085526118 + +You can customise the text and appearance of the password prompt that is displayed when encrypted TiddlyWiki files are first opened. + +To do so, create a tiddler tagged {{$:/core/wiki/rawmarkup|$:/core/ui/TagTemplate}} containing: + +# A JavaScript ` + From b7bbcfa05659808c1e51a4f2f5f1d6afbc2ed3a1 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 6 Oct 2014 10:22:09 +0100 Subject: [PATCH 006/117] Prompt twice when setting password Fixes #364 --- boot/boot.js | 33 +++++++++++++++++++++----------- core/modules/startup/password.js | 1 + 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index 02307f600..2ac978d72 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -477,6 +477,7 @@ submitText: text to use for submit button (defaults to "Login") serviceName: text of the human readable service name noUserName: set true to disable username prompt canCancel: set true to enable a cancel button (callback called with null) +repeatPassword: set true to prompt for the password twice callback: function to be called on submission with parameter of object {username:,password:}. Callback must return `true` to remove the password prompt */ $tw.utils.PasswordPrompt.prototype.createPrompt = function(options) { @@ -493,6 +494,11 @@ $tw.utils.PasswordPrompt.prototype.createPrompt = function(options) { children.push(dm("input",{ attributes: {type: "password", name: "password", placeholder: "Password"} })); + if(options.repeatPassword) { + children.push(dm("input",{ + attributes: {type: "password", name: "password2", placeholder: "Repeat password"} + })); + } if(options.canCancel) { children.push(dm("button",{ text: "Cancel", @@ -527,18 +533,23 @@ $tw.utils.PasswordPrompt.prototype.createPrompt = function(options) { data[element.name] = element.value; } }); - // Call the callback - if(options.callback(data)) { - // Remove the prompt if the callback returned true - self.removePrompt(promptInfo); + // Check that the passwords match + if(options.repeatPassword && data.password !== data.password2) { + alert("Passwords do not match"); } else { - // Clear the password if the callback returned false - $tw.utils.each(form.elements,function(element) { - if(element.name === "password") { - element.value = ""; - } - }); - } + // Call the callback + if(options.callback(data)) { + // Remove the prompt if the callback returned true + self.removePrompt(promptInfo); + } else { + // Clear the password if the callback returned false + $tw.utils.each(form.elements,function(element) { + if(element.name === "password" || element.name === "password2") { + element.value = ""; + } + }); + } + } event.preventDefault(); return false; },true); diff --git a/core/modules/startup/password.js b/core/modules/startup/password.js index 41902e9e9..8913d0833 100644 --- a/core/modules/startup/password.js +++ b/core/modules/startup/password.js @@ -25,6 +25,7 @@ exports.startup = function() { noUserName: true, submitText: "Set password", canCancel: true, + repeatPassword: true, callback: function(data) { if(data) { $tw.crypto.setPassword(data.password); From e6d59ece6f99b9bfe49fa2d2fae6f3b9025c8954 Mon Sep 17 00:00:00 2001 From: fghhfg Date: Mon, 6 Oct 2014 22:36:02 +0800 Subject: [PATCH 007/117] add how to install plugin --- editions/tw5.com/tiddlers/plugins/Plugins.tid | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/editions/tw5.com/tiddlers/plugins/Plugins.tid b/editions/tw5.com/tiddlers/plugins/Plugins.tid index 00b6ae653..5f223e968 100644 --- a/editions/tw5.com/tiddlers/plugins/Plugins.tid +++ b/editions/tw5.com/tiddlers/plugins/Plugins.tid @@ -19,3 +19,13 @@ The tiddlers within a plugin appear as ShadowTiddlers. Plugins can contain JavaScript modules, style sheets, and templates to extend the functionality of TiddlyWiki itself. Plugins can also be used to distribute ordinary text, images or other content. Plugins can be updated from their source as a unit. See the PluginMechanism discussion for more details about how plugins are implemented internally. + +''How to Install a TW5 plugin?'' + +# Create a backup of your current TiddlyWiki 5 installation (just for case) +# Open your TiddlyWiki 5 in browser +# Find a plugin, e.g. [[$:/plugins/xxx/ooo]] (this link just a example, you need to find a real plugin) +# Move this link: [[$:/plugins/xxx/ooo]] to browser window where is opened your TiddlyWiki +# Save your TiddlyWiki +# Refresh the window +# Now, you can use it From a2ddf6c4a0fef01dff60272fb6ba7662c9e3b968 Mon Sep 17 00:00:00 2001 From: fghhfg Date: Mon, 6 Oct 2014 23:19:16 +0800 Subject: [PATCH 008/117] i'm not sure what i'm doing... --- licenses/cla-individual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index 6c3ab1f26..aaa073497 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -174,3 +174,5 @@ Ton Gerner, @gernert, 2014/09/19 Julie Bertrand, @Evolena, 2014/09/22 Andrey Yankin, @andrey013, 2014/09/30 + +David john, @fghhfg, 2014/10/06 From 0d7209ff2fe2a5b85ec601bef160a6fde47fed06 Mon Sep 17 00:00:00 2001 From: fghhfg Date: Mon, 6 Oct 2014 23:38:48 +0800 Subject: [PATCH 009/117] more clear "How to sign the CLA" --- editions/tw5.com/tiddlers/community/Contributing.tid | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editions/tw5.com/tiddlers/community/Contributing.tid b/editions/tw5.com/tiddlers/community/Contributing.tid index bca4442f0..8baebe86c 100644 --- a/editions/tw5.com/tiddlers/community/Contributing.tid +++ b/editions/tw5.com/tiddlers/community/Contributing.tid @@ -24,6 +24,12 @@ Like other OpenSource projects, TiddlyWiki5 needs a signed contributor license a Create a GitHub pull request to add your name to `cla-individual.md` or `cla-entity.md`, with the date in the format (YYYY/MM/DD). +''step by step'' + +# click [[licenses/CLA-individual|https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md]] or [[licenses/CLA-entity|https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md]] +# in `cla-individual.md` or `cla-entity.md` click icon on the top-right corner (clicking this button will fork the project so you can edit the file) +# add you name under the bottom + eg: `Jeremy Ruston, @Jermolene, 2011/11/22` --- From f2e97eeb25268ab03f2145e7d93567fba53ff24e Mon Sep 17 00:00:00 2001 From: fghhfg Date: Tue, 7 Oct 2014 00:38:12 +0800 Subject: [PATCH 010/117] add a example --- editions/tw5.com/tiddlers/widgets/BrowseWidget.tid | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/editions/tw5.com/tiddlers/widgets/BrowseWidget.tid b/editions/tw5.com/tiddlers/widgets/BrowseWidget.tid index cc997f8df..e29a556e4 100644 --- a/editions/tw5.com/tiddlers/widgets/BrowseWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/BrowseWidget.tid @@ -16,3 +16,13 @@ The content of the `<$browse>` widget is ignored. |multiple |Set to "multiple" to select multiple file upload | On iPhone/iPad choosing the multiple option will remove the ability to take photographs/videos directly into TiddlyWiki. + +''e.g.'' + +``` +<$browse> +``` + +renders as: + +<$browse> From 651ed60987cd3d2060bad389def8d681c6c7f741 Mon Sep 17 00:00:00 2001 From: fghhfg Date: Tue, 7 Oct 2014 02:28:40 +0800 Subject: [PATCH 011/117] add some way to invoke macro --- .../tiddlers/wikitext/Macros in WikiText.tid | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/editions/tw5.com/tiddlers/wikitext/Macros in WikiText.tid b/editions/tw5.com/tiddlers/wikitext/Macros in WikiText.tid index aa242e4c1..0872f26b8 100644 --- a/editions/tw5.com/tiddlers/wikitext/Macros in WikiText.tid +++ b/editions/tw5.com/tiddlers/wikitext/Macros in WikiText.tid @@ -71,3 +71,20 @@ By using triple-double quotes you can specify parameter values that include sing Rodentville, Ratland.""">> ``` + +! Invoked + +There are many different ways to invoke macro.A macro called `italicise` that takes a single parameter called `text` can be invoked in any of these ways: + +``` +<> +<> +<$macrocall $name="italicise" text="Text to be made into italics"/> +<$macrocall $name="italicise" text={{Title of tiddler containing text to be italicised}}/> +<$macrocall $name="italicise" text=<>/> +``` + +''also see'' + +* [[Macros]] +* [[MacroCallWidget]] From f6f9c74fe97ac3f17cc4bfa4fd555b6c7075dd49 Mon Sep 17 00:00:00 2001 From: TheDiveO Date: Mon, 6 Oct 2014 21:49:54 +0200 Subject: [PATCH 012/117] added documentation tiddlers for addprefix and addsuffix; updated documentation tiddlers for prefix, suffix, removeprefix, removesuffix to reference the new addprefix and addsuffix filter operators. --- .../tiddlers/filters/FilterOperator addprefix.tid | 15 +++++++++++++++ .../tiddlers/filters/FilterOperator addsuffix.tid | 15 +++++++++++++++ .../tiddlers/filters/FilterOperator prefix.tid | 2 +- .../filters/FilterOperator removeprefix.tid | 2 +- .../filters/FilterOperator removesuffix.tid | 2 +- .../tiddlers/filters/FilterOperator suffix.tid | 2 +- 6 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 editions/tw5.com/tiddlers/filters/FilterOperator addprefix.tid create mode 100644 editions/tw5.com/tiddlers/filters/FilterOperator addsuffix.tid diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator addprefix.tid b/editions/tw5.com/tiddlers/filters/FilterOperator addprefix.tid new file mode 100644 index 000000000..48ac8129d --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/FilterOperator addprefix.tid @@ -0,0 +1,15 @@ +created: 20140410103123179 +modified: 20140410103123179 +tags: Filters +caption: addprefix +title: FilterOperator: addprefix +type: text/vnd.tiddlywiki + +The ''addprefix'' filter operator add a prefix to all titles in the current list. + +For example: + +|!Filter String |!Description | +|`one two three +[addprefix[tid-]]` |Returns `tid-one`, `tid-two`, `tid-three` | + +See also [[FilterOperator: prefix]], [[FilterOperator: suffix]], [[FilterOperator: addsuffix]], [[FilterOperator: removeprefix]] and [[FilterOperator: removesuffix]]. diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator addsuffix.tid b/editions/tw5.com/tiddlers/filters/FilterOperator addsuffix.tid new file mode 100644 index 000000000..ecd3748b7 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/FilterOperator addsuffix.tid @@ -0,0 +1,15 @@ +created: 20140828133830424 +modified: 20140902145613329 +tags: Filters +caption: addsuffix +title: FilterOperator: addsuffix +type: text/vnd.tiddlywiki + +The ''addsuffix'' filter operator adds a suffix to all titles in the current list. + +For example: + +|!Filter String |!Description | +|`one two three +[addsuffix[-tid]]` |Returns `one-tid`, `two-tid`, `three-tid` | + +See also [[FilterOperator: suffix]], [[FilterOperator: prefix]], [[FilterOperator: addprefix]], [[FilterOperator: removesuffix]], and [[FilterOperator: removeprefix]]. diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator prefix.tid b/editions/tw5.com/tiddlers/filters/FilterOperator prefix.tid index 41139bbb4..af965c7c6 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperator prefix.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperator prefix.tid @@ -13,4 +13,4 @@ For example: |`[tag[task]!prefix[hidden]]` |Returns tiddlers tagged `task` whose titles do not start with `hidden` | |`[prefix[$:/]]` |Equivalent to `[is[system]]` | -See also [[FilterOperator: removeprefix]], [[FilterOperator: removesuffix]] and [[FilterOperator: removesuffix]]. +See also [[FilterOperator: removeprefix]], [[FilterOperator: removesuffix]], [[FilterOperator: removesuffix]], [[FilterOperator: addprefix]], and [[FilterOperator: addsuffix]]. diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator removeprefix.tid b/editions/tw5.com/tiddlers/filters/FilterOperator removeprefix.tid index a3aebd3bd..c9ab7b69a 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperator removeprefix.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperator removeprefix.tid @@ -12,4 +12,4 @@ For example: |!Filter String |!Description | |`tid-one tid-two three +[removeprefix[tid-]]` |Returns `one`, `two` | -See also [[FilterOperator: prefix]], [[FilterOperator: suffix]] and [[FilterOperator: removesuffix]]. +See also [[FilterOperator: prefix]], [[FilterOperator: suffix]], [[FilterOperator: removesuffix]], [[FilterOperator: addprefix]], and [[FilterOperator: addsuffix]]. diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator removesuffix.tid b/editions/tw5.com/tiddlers/filters/FilterOperator removesuffix.tid index b07a4e3d2..9b55a9383 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperator removesuffix.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperator removesuffix.tid @@ -12,4 +12,4 @@ For example: |!Filter String |!Description | |`one-tid two-tid three +[removesuffix[-tid]]` |Returns `one`, `two` | -See also [[FilterOperator: suffix]], [[FilterOperator: prefix]] and [[FilterOperator: removeprefix]]. +See also [[FilterOperator: suffix]], [[FilterOperator: prefix]], [[FilterOperator: removeprefix]], [[FilterOperator: addprefix]], and [[FilterOperator: addsuffix]]. diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator suffix.tid b/editions/tw5.com/tiddlers/filters/FilterOperator suffix.tid index a82c9fca5..0c12a01a2 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperator suffix.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperator suffix.tid @@ -13,4 +13,4 @@ For example: |`[tag[task]!suffix[hidden]]` |Returns tiddlers tagged `task` whose titles do not end with `hidden` | |`[suffix[.jpg]]` |Returns tiddlers whose titles end with `.jpg` | -See also [[FilterOperator: removesuffix]], [[FilterOperator: prefix]] and [[FilterOperator: removeprefix]]. +See also [[FilterOperator: removesuffix]], [[FilterOperator: prefix]], [[FilterOperator: removeprefix]], [[FilterOperator: addprefix]], and [[FilterOperator: addsuffix]]. From cbe2a53d6a8bbd22f53d88a3b8e7fde2f3f05630 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 6 Oct 2014 21:10:35 +0100 Subject: [PATCH 013/117] Extend fakedom for KaTeX on Node.js To make KaTeX work on the server we need to add support for the style attribute and for setting the textContent of an element. --- core/modules/utils/fakedom.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/modules/utils/fakedom.js b/core/modules/utils/fakedom.js index dd36369a2..d7cb633b7 100755 --- a/core/modules/utils/fakedom.js +++ b/core/modules/utils/fakedom.js @@ -39,6 +39,7 @@ var TW_Element = function(tag,namespace) { this.attributes = {}; this.isRaw = false; this.children = []; + this.style = {}; this.namespaceURI = namespace || "http://www.w3.org/1999/xhtml"; }; @@ -137,6 +138,13 @@ Object.defineProperty(TW_Element.prototype, "outerHTML", { } } } + if(this.style) { + var style = []; + for(var s in this.style) { + style.push(s + ":" + this.style[s] + ";"); + } + output.push(" style='",style.join(""),"'") + } output.push(">"); if($tw.config.htmlVoidElements.indexOf(this.tag) === -1) { output.push(this.innerHTML); @@ -179,6 +187,9 @@ Object.defineProperty(TW_Element.prototype, "textContent", { }); return b.join(""); } + }, + set: function(value) { + this.children = [new TW_TextNode(value)]; } }); From 63c174d7ed56284e80ad6cd6ae966b81f9181cc9 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 6 Oct 2014 21:20:19 +0100 Subject: [PATCH 014/117] Update KaTeX wrapper to support operation under Node.js Now we can generate static HTML containing mathematical typesetting --- core/modules/utils/fakedom.js | 4 +++- editions/katexdemo/tiddlers/HelloThere.tid | 4 +--- editions/katexdemo/tiddlywiki.info | 7 ++++++- plugins/tiddlywiki/katex/files/tiddlywiki.files | 4 +++- plugins/tiddlywiki/katex/wrapper.js | 6 +++++- 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/core/modules/utils/fakedom.js b/core/modules/utils/fakedom.js index d7cb633b7..1c4bf2755 100755 --- a/core/modules/utils/fakedom.js +++ b/core/modules/utils/fakedom.js @@ -143,7 +143,9 @@ Object.defineProperty(TW_Element.prototype, "outerHTML", { for(var s in this.style) { style.push(s + ":" + this.style[s] + ";"); } - output.push(" style='",style.join(""),"'") + if(style.length > 0) { + output.push(" style='",style.join(""),"'") + } } output.push(">"); if($tw.config.htmlVoidElements.indexOf(this.tag) === -1) { diff --git a/editions/katexdemo/tiddlers/HelloThere.tid b/editions/katexdemo/tiddlers/HelloThere.tid index 719121c1e..c3ecef5bb 100644 --- a/editions/katexdemo/tiddlers/HelloThere.tid +++ b/editions/katexdemo/tiddlers/HelloThere.tid @@ -2,9 +2,7 @@ title: HelloThere This is a TiddlyWiki plugin for mathematical typesetting based on KaTeX from Khan Academy. -It is completely self-contained, and doesn't need an Internet connection in order to work. - -//This first version of the plugin cannot be used to generate static content under Node.js, but that capability will come in a future update. (Note that you can still use it when running the client-server configuration under Node.js).// +It is completely self-contained, and doesn't need an Internet connection in order to work. It works both in the browser and under Node.js. ! Installation diff --git a/editions/katexdemo/tiddlywiki.info b/editions/katexdemo/tiddlywiki.info index 8f24a036e..b45c7b950 100644 --- a/editions/katexdemo/tiddlywiki.info +++ b/editions/katexdemo/tiddlywiki.info @@ -10,6 +10,11 @@ ], "build": { "index": [ - "--rendertiddler","$:/core/save/all","katexdemo.html","text/plain"] + "--rendertiddler","$:/core/save/all","katexdemo.html","text/plain"], + "static": [ + "--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain", + "--rendertiddler","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain", + "--rendertiddlers","[!is[system]]","$:/core/templates/static.tiddler.html","static","text/plain", + "--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"] } } diff --git a/plugins/tiddlywiki/katex/files/tiddlywiki.files b/plugins/tiddlywiki/katex/files/tiddlywiki.files index 1c290da42..522f9e7fe 100644 --- a/plugins/tiddlywiki/katex/files/tiddlywiki.files +++ b/plugins/tiddlywiki/katex/files/tiddlywiki.files @@ -78,7 +78,9 @@ "type": "application/javascript", "title": "$:/plugins/tiddlywiki/katex/katex.min.js", "module-type": "library" - } + }, + "prefix": "(function(document) {\n", + "suffix": "\n})($tw.node ? $tw.fakeDocument : window.document)\n" } ] } diff --git a/plugins/tiddlywiki/katex/wrapper.js b/plugins/tiddlywiki/katex/wrapper.js index 517ff5950..1e91d5223 100644 --- a/plugins/tiddlywiki/katex/wrapper.js +++ b/plugins/tiddlywiki/katex/wrapper.js @@ -37,7 +37,11 @@ KaTeXWidget.prototype.render = function(parent,nextSibling) { // Render it into a span var span = this.document.createElement("span"); try { - katex.render(text,span); + if($tw.browser) { + katex.render(text,span); + } else { + span.innerHTML = katex.renderToString(text); + } } catch(ex) { span.className = "tc-error"; span.textContent = ex; From 548776e828534a216e5d8f400a4dd043a2bd9052 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 6 Oct 2014 21:20:28 +0100 Subject: [PATCH 015/117] Add KaTeX static build --- bin/fullbld.sh | 1 + readme.md | 58 ++++++++++++++++++++++++++++++++++---------------- 2 files changed, 41 insertions(+), 18 deletions(-) diff --git a/bin/fullbld.sh b/bin/fullbld.sh index c54ef8a9f..736ace45b 100755 --- a/bin/fullbld.sh +++ b/bin/fullbld.sh @@ -106,6 +106,7 @@ node ./tiddlywiki.js \ --output $TW5_BUILD_OUTPUT \ --rendertiddler $:/core/save/all plugins/tiddlywiki/katex/index.html text/plain \ --rendertiddler $:/core/save/empty plugins/tiddlywiki/katex/empty.html text/plain \ + --rendertiddler $:/core/templates/static.template.html plugins/tiddlywiki/katex/static.html text/plain \ || exit 1 # /plugins/tiddlywiki/tahoelafs/index.html Demo wiki with Tahoe-LAFS plugin diff --git a/readme.md b/readme.md index 7cceed996..be28003ce 100644 --- a/readme.md +++ b/readme.md @@ -1,167 +1,189 @@

Welcome to TiddlyWiki, a non-linear personal web notebook that anyone can use and keep forever, independently of any corporation.

TiddlyWiki is a complete interactive wiki in JavaScript. It can be used as a single HTML file in the browser or as a powerful Node.js application. It is highly customisable: the entire user interface is itself implemented in hackable WikiText.

Learn more and see it in action at http://tiddlywiki.com/

Developer documentation is in progress at http://tiddlywiki.com/dev/

Installing TiddlyWiki on Node.js

  1. Install Node.js from http://nodejs.org
  2. Open a command line terminal and type:

    npm install -g tiddlywiki

    If it fails with an error you may need to re-run the command as an administrator:

    npm install -g tiddlywiki (Windows)

    sudo npm install -g tiddlywiki (Mac/Linux)

  3. Check TiddlyWiki is installed by typing:

    tiddlywiki --version

  4. In response, you should see TiddlyWiki report its current version (eg 5.0.8-beta; you may also see other debugging information reported)
  5. Try it out:
    1. tiddlywiki mynewwiki --init server to create a folder for a new wiki that includes server-related components
    2. tiddlywiki mynewwiki --server to start TiddlyWiki
    3. Visit http://127.0.0.1:8080/ in your browser
    4. Try editing and creating tiddlers

The -g flag causes TiddlyWiki to be installed globally. Without it, TiddlyWiki will only be available in the directory where you installed it. -

Using TiddlyWiki on Node.js

TiddlyWiki5 can be used on the command line to perform an extensive set of operations based on TiddlyWikiFolders, TiddlerFiles and TiddlyWikiFiles.

For example, the following command loads the tiddlers from a TiddlyWiki HTML file and then saves one of them in static HTML:

tiddlywiki --verbose --load mywiki.html --rendertiddler ReadMe ./readme.html

Running tiddlywiki from the command line boots the TiddlyWiki kernel, loads the core plugins and establishes an empty wiki store. It then sequentially processes the command line arguments from left to right. The arguments are separated with spaces.

The first argument is the optional path to the TiddlyWikiFolder to be loaded. If not present, then the current directory is used.

The commands and their individual arguments follow, each command being identified by the prefix --.

tiddlywiki [<wikipath>] [--<command> [<arg>[,<arg>]]]

The available commands are:

    +

    Using TiddlyWiki on Node.js

    TiddlyWiki5 can be used on the command line to perform an extensive set of operations based on TiddlyWikiFolders, TiddlerFiles and TiddlyWikiFiles.

    For example, the following command loads the tiddlers from a TiddlyWiki HTML file and then saves one of them in static HTML:

    tiddlywiki --verbose --load mywiki.html --rendertiddler ReadMe ./readme.html

    Running tiddlywiki from the command line boots the TiddlyWiki kernel, loads the core plugins and establishes an empty wiki store. It then sequentially processes the command line arguments from left to right. The arguments are separated with spaces.

    The first argument is the optional path to the TiddlyWikiFolder to be loaded. If not present, then the current directory is used.

    The commands and their individual arguments follow, each command being identified by the prefix --.

    tiddlywiki [<wikipath>] [--<command> [<arg>[,<arg>]]]

    The available commands are:

    Upgrading TiddlyWiki on Node.js

    If you've installed TiddlyWiki on Node.js on the usual way, when a new version is released you can upgrade it with this command:

    npm update -g tiddlywiki

    On Mac or Linux you'll need to add sudo like this:

    sudo npm update -g tiddlywiki

    Also see

      +

    Upgrading TiddlyWiki on Node.js

    If you've installed TiddlyWiki on Node.js on the usual way, when a new version is released you can upgrade it with this command:

    npm update -g tiddlywiki

    On Mac or Linux you'll need to add sudo like this:

    sudo npm update -g tiddlywiki

    Also see

    • + TiddlyWikiFolders +
    • + MultiTiddlerFiles +
    • + TiddlerFiles +
    • + Generating Static Sites with TiddlyWiki +
    • + How to build a TiddlyWiki5 from individual tiddlers +
    • + Using TiddlyWiki for GitHub Pages project documentation +
    • + Using a custom path prefix with the client-server edition +
    • + Building TiddlyWikiClassic +
    • + Environment Variables on Node.js +
    • + Scripts for TiddlyWiki on Node.js +
    • + Working with the TiddlyWiki5 repository +
    • From 811e92c0eb80d85f21ceb6d2cf3f8b4090a66e25 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 7 Oct 2014 13:02:43 +0100 Subject: [PATCH 016/117] Docs update --- editions/tw5.com/tiddlers/community/Contributing.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/community/Contributing.tid b/editions/tw5.com/tiddlers/community/Contributing.tid index 8baebe86c..e07553141 100644 --- a/editions/tw5.com/tiddlers/community/Contributing.tid +++ b/editions/tw5.com/tiddlers/community/Contributing.tid @@ -28,7 +28,7 @@ Create a GitHub pull request to add your name to `cla-individual.md` or `cla-ent # click [[licenses/CLA-individual|https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md]] or [[licenses/CLA-entity|https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md]] # in `cla-individual.md` or `cla-entity.md` click icon on the top-right corner (clicking this button will fork the project so you can edit the file) -# add you name under the bottom +# add your name at the bottom eg: `Jeremy Ruston, @Jermolene, 2011/11/22` From cda495d692ecdb56e43f931c47528b402e4b7479 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 7 Oct 2014 13:16:04 +0100 Subject: [PATCH 017/117] Doc tweaks --- editions/tw5.com/tiddlers/plugins/Plugins.tid | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/editions/tw5.com/tiddlers/plugins/Plugins.tid b/editions/tw5.com/tiddlers/plugins/Plugins.tid index 5f223e968..5cf0eb025 100644 --- a/editions/tw5.com/tiddlers/plugins/Plugins.tid +++ b/editions/tw5.com/tiddlers/plugins/Plugins.tid @@ -20,12 +20,12 @@ Plugins can contain JavaScript modules, style sheets, and templates to extend th See the PluginMechanism discussion for more details about how plugins are implemented internally. -''How to Install a TW5 plugin?'' +! How to install a plugin -# Create a backup of your current TiddlyWiki 5 installation (just for case) -# Open your TiddlyWiki 5 in browser -# Find a plugin, e.g. [[$:/plugins/xxx/ooo]] (this link just a example, you need to find a real plugin) -# Move this link: [[$:/plugins/xxx/ooo]] to browser window where is opened your TiddlyWiki +# Create a backup of your current TiddlyWiki HTML file ([[just in case|The First Rule of Using TiddlyWiki]]) +# Open your TiddlyWiki in a browser +# Find a link to a plugin, e.g. [[$:/plugins/tiddlywiki/example]] (this link is just a example, you need to find a real plugin) +# Move the link [[$:/plugins/tiddlywiki/example]] to the browser window containing your TiddlyWiki # Save your TiddlyWiki # Refresh the window -# Now, you can use it +# The plugin should now be available for use From dd829d9140d2cc933c11aaaa518149b152216081 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 7 Oct 2014 13:16:24 +0100 Subject: [PATCH 018/117] Docs tweaks --- editions/tw5.com/tiddlers/plugins/Plugins.tid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/plugins/Plugins.tid b/editions/tw5.com/tiddlers/plugins/Plugins.tid index 5cf0eb025..702070bfa 100644 --- a/editions/tw5.com/tiddlers/plugins/Plugins.tid +++ b/editions/tw5.com/tiddlers/plugins/Plugins.tid @@ -24,8 +24,8 @@ See the PluginMechanism discussion for more details about how plugins are implem # Create a backup of your current TiddlyWiki HTML file ([[just in case|The First Rule of Using TiddlyWiki]]) # Open your TiddlyWiki in a browser -# Find a link to a plugin, e.g. [[$:/plugins/tiddlywiki/example]] (this link is just a example, you need to find a real plugin) -# Move the link [[$:/plugins/tiddlywiki/example]] to the browser window containing your TiddlyWiki +# In another browser window, find a link to the plugin, e.g. [[$:/plugins/tiddlywiki/example]]. You will typically find links to plugins on the home page of the plugin (for example, http://tiddlywiki.com/plugins/tiddlywiki/katex/) +# Drag the link [[$:/plugins/tiddlywiki/example]] to the browser window containing your TiddlyWiki # Save your TiddlyWiki # Refresh the window # The plugin should now be available for use From 09b6540998fec6bf1fb14842be8e8c53dbd5c46a Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 7 Oct 2014 14:07:41 +0100 Subject: [PATCH 019/117] Update history for tm-home message --- core/modules/startup/story.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/startup/story.js b/core/modules/startup/story.js index 6c7258485..460e48ba3 100644 --- a/core/modules/startup/story.js +++ b/core/modules/startup/story.js @@ -59,6 +59,9 @@ exports.startup = function() { var storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE), storyList = $tw.wiki.filterTiddlers(storyFilter); $tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: "", list: storyList},$tw.wiki.getModificationFields()); + if(storyList[0]) { + $tw.wiki.addToHistory(storyList[0]); + } }); // Listen for the tm-permalink message $tw.rootWidget.addEventListener("tm-permalink",function(event) { From a0460c391b0971df7ffebeec1b65603de37b8221 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 7 Oct 2014 14:07:55 +0100 Subject: [PATCH 020/117] Fix problem with recent zoomin changes --- core/modules/storyviews/zoomin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/storyviews/zoomin.js b/core/modules/storyviews/zoomin.js index 0588d58f7..1a66bdf33 100644 --- a/core/modules/storyviews/zoomin.js +++ b/core/modules/storyviews/zoomin.js @@ -54,6 +54,7 @@ ZoominListView.prototype.navigateTo = function(historyInfo) { // Make the new tiddler be position absolute and visible so that we can measure it $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(targetElement,[ + {display: "block"}, {transformOrigin: "0 0"}, {transform: "translateX(0px) translateY(0px) scale(1)"}, {transition: "none"}, @@ -153,6 +154,7 @@ ZoominListView.prototype.remove = function(widget) { // Set up the tiddler that is being closed $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(targetElement,[ + {display: "block"}, {transformOrigin: "50% 50%"}, {transform: "translateX(0px) translateY(0px) scale(1)"}, {transition: "none"}, @@ -168,6 +170,7 @@ ZoominListView.prototype.remove = function(widget) { if(toWidgetDomNode) { $tw.utils.addClass(toWidgetDomNode,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(toWidgetDomNode,[ + {display: "block"}, {transformOrigin: "50% 50%"}, {transform: "translateX(0px) translateY(0px) scale(10)"}, {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing}, From ef1d5310918dae088ce9361c1682ce0f99cf568a Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 7 Oct 2014 14:35:42 +0100 Subject: [PATCH 021/117] Add confirmation for clearing password Fixes #925 --- core/language/en-GB/Misc.multids | 2 ++ core/modules/startup/password.js | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/language/en-GB/Misc.multids b/core/language/en-GB/Misc.multids index 0e9b91d2c..991fe28f9 100644 --- a/core/language/en-GB/Misc.multids +++ b/core/language/en-GB/Misc.multids @@ -9,6 +9,8 @@ ConfirmDeleteTiddler: Do you wish to delete the tiddler "<$text text=<>/> ConfirmOverwriteTiddler: Do you wish to overwrite the tiddler "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit "<$text text=<<title>>/>"? DropMessage: Drop here (or click escape to cancel) +Encryption/ConfirmClearPassword: Do you wish to clear the password? This will remove the encryption applied when saving this wiki +Encryption/PromptSetPassword: Set a new password for this TiddlyWiki InvalidFieldName: Illegal characters in field name "<$text text=<<fieldName>>/>". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`) MissingTiddler/Hint: Missing tiddler "<$text text=<<currentTiddler>>/>" - click {{$:/core/images/edit-button}} to create RecentChanges/DateFormat: DDth MMM YYYY diff --git a/core/modules/startup/password.js b/core/modules/startup/password.js index 8913d0833..6205b3e7d 100644 --- a/core/modules/startup/password.js +++ b/core/modules/startup/password.js @@ -21,7 +21,7 @@ exports.synchronous = true; exports.startup = function() { $tw.rootWidget.addEventListener("tm-set-password",function(event) { $tw.passwordPrompt.createPrompt({ - serviceName: "Set a new password for this TiddlyWiki", + serviceName: $tw.language.getString("Encryption/PromptSetPassword"), noUserName: true, submitText: "Set password", canCancel: true, @@ -35,6 +35,11 @@ exports.startup = function() { }); }); $tw.rootWidget.addEventListener("tm-clear-password",function(event) { + if($tw.browser) { + if(!confirm($tw.language.getString("Encryption/ConfirmClearPassword"))) { + return; + } + } $tw.crypto.setPassword(null); }); // Ensure that $:/isEncrypted is maintained properly From 70c8659948ad817b7256fd5f216961dab0440cc5 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Tue, 7 Oct 2014 15:50:46 +0100 Subject: [PATCH 022/117] Update release note --- .../tiddlers/releasenotes/Release 5.1.3.tid | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid index 0edc92ab3..20834ce95 100644 --- a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid +++ b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid @@ -10,18 +10,32 @@ type: text/vnd.tiddlywiki !! Usability Improvements -* +* [[Added|https://github.com/Jermolene/TiddlyWiki5/tree/master/languages/ru-RU]] Russian translation +* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/ef1d5310918dae088ce9361c1682ce0f99cf568a]] confirmation when clearing password +* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/b7bbcfa05659808c1e51a4f2f5f1d6afbc2ed3a1]] additional prompt when setting password +* [[Extended|https://github.com/Jermolene/TiddlyWiki5/commit/63c174d7ed56284e80ad6cd6ae966b81f9181cc9]] ~KaTeX plugin to be able to work under Node.js to generate static HTML !! Hackability Improvements -* +* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/65504d5d41e45326ab1b1b6c0c21eea4c9772797]] new [[FilterOperator: addprefix]] and [[FilterOperator: addsuffix]] +* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/0c8e5380778303cdd3308bed4a15290214841f8b]] support for custom password prompts +* [[Extended|https://github.com/Jermolene/TiddlyWiki5/commit/c26bd4c5a872f56c47e9f5cfc3fada468c53ddde]] the ListMacro to display ''caption'' field if present !! Bug Fixes -* +* [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/cc576b052e2b05fd93fcb4f3eb8d9ee5278abf3e]] [[FilterOperator: each]] to work with missing tiddlers +* [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/5dd6ebff05a3380db2901294b2cfc89c1a0e71bf]] problem with tiddler width in zoomin storyview with the sidebar hidden +* [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/09b6540998fec6bf1fb14842be8e8c53dbd5c46a]] bug whereby the `tm-home` message wasn't navigating to a tiddler, causing problems in zoomin storyview +* [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/3ca8d7b6cca46ffa424bcf9bdc134da464fc84f4]] problem with jumping toolbar icons under Firefox +* [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/f85b07e70b71d0622a9459e4b04e2027540abda8]] problem with untagged label being incorrectly coloured !! Contributors [[@Jermolene|https://github.com/Jermolene]] would like to thank the contributors to this release who have generously given their time to help improve TiddlyWiki: +* [[@andrey013|https://github.com/andrey013]] +* [[@Eucaly|https://github.com/Eucaly]] +* [[@fghhfg|https://github.com/fghhfg]] * [[@pmario|https://github.com/pmario]] +* [[@TheDiveO|https://github.com/TheDiveO]] + From b3dcd7d625ec83701ef3a77f3fb8101af57c154f Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Tue, 7 Oct 2014 20:41:22 +0100 Subject: [PATCH 023/117] Fix tiddler title background colour for sticky titles --- themes/tiddlywiki/stickytitles/styles.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/tiddlywiki/stickytitles/styles.tid b/themes/tiddlywiki/stickytitles/styles.tid index 3276d5cfe..179a7084d 100644 --- a/themes/tiddlywiki/stickytitles/styles.tid +++ b/themes/tiddlywiki/stickytitles/styles.tid @@ -10,5 +10,5 @@ tags: [[$:/tags/Stylesheet]] position: -ms-sticky; position: sticky; top: 0px; - background: #fff; + background: <<colour tiddler-background>>; } From b3c3442024bc3231c71d26af46159a28d456a11e Mon Sep 17 00:00:00 2001 From: fghhfg <fghhfg@users.noreply.github.com> Date: Wed, 8 Oct 2014 04:21:13 +0800 Subject: [PATCH 024/117] Update Learning.tid --- editions/tw5.com/tiddlers/learning/Learning.tid | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editions/tw5.com/tiddlers/learning/Learning.tid b/editions/tw5.com/tiddlers/learning/Learning.tid index 0318a2f3b..14a18a1b7 100644 --- a/editions/tw5.com/tiddlers/learning/Learning.tid +++ b/editions/tw5.com/tiddlers/learning/Learning.tid @@ -10,3 +10,7 @@ Learn more about using TiddlyWiki: <<list-links "[tag[Learning]]">> +--- + +* [[WikiText]] - advanced TiddlyWiki syntax +* [[Reference]] - there is everything about TiddlyWiki, including macros, widgets messages, filters etc... From ff23a84d2832859391744d600245b53845bd6824 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Tue, 7 Oct 2014 21:44:54 +0100 Subject: [PATCH 025/117] Docs tweaks --- editions/tw5.com/tiddlers/learning/Learning.tid | 5 +---- editions/tw5.com/tiddlers/reference/Reference.tid | 6 +++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/editions/tw5.com/tiddlers/learning/Learning.tid b/editions/tw5.com/tiddlers/learning/Learning.tid index 14a18a1b7..07f4a2b64 100644 --- a/editions/tw5.com/tiddlers/learning/Learning.tid +++ b/editions/tw5.com/tiddlers/learning/Learning.tid @@ -10,7 +10,4 @@ Learn more about using TiddlyWiki: <<list-links "[tag[Learning]]">> ---- - -* [[WikiText]] - advanced TiddlyWiki syntax -* [[Reference]] - there is everything about TiddlyWiki, including macros, widgets messages, filters etc... +Also see the complete [[Reference]], including advanced WikiText, macros, widgets, filters etc. diff --git a/editions/tw5.com/tiddlers/reference/Reference.tid b/editions/tw5.com/tiddlers/reference/Reference.tid index 2ead9fc0a..e51738e76 100644 --- a/editions/tw5.com/tiddlers/reference/Reference.tid +++ b/editions/tw5.com/tiddlers/reference/Reference.tid @@ -7,4 +7,8 @@ list: Concepts Definitions WikiText Macros Widgets Filters Messages Commands Mec The following topics provide the canonical reference documentation for TiddlyWiki: -<<list-links "[tag[Reference]]">> +<div class="tc-table-of-contents"> + +<<toc-selective-expandable 'Reference'>> + +</div> \ No newline at end of file From dc9981322aeb508d5ebac0b691b0d703f8c1995e Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Tue, 7 Oct 2014 22:11:43 +0100 Subject: [PATCH 026/117] Increase size of search cancel button --- themes/tiddlywiki/vanilla/base.tid | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 54ea117df..19ae05ec0 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -403,7 +403,9 @@ button.tc-untagged-label { } .tc-search a svg { - height: 0.75em; + width: 1.2em; + height: 1.2em; + vertical-align: middle; } .tc-search-results { From a604afe8712a4c2d3059fca9fe2b6b3f60f5b960 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Tue, 7 Oct 2014 22:33:06 +0100 Subject: [PATCH 027/117] Fix list in "Filters" tiddler Mentioned by @Evolena in #922 --- editions/tw5.com/tiddlers/filters/FilterOperators.tid | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/editions/tw5.com/tiddlers/filters/FilterOperators.tid b/editions/tw5.com/tiddlers/filters/FilterOperators.tid index 23d5be995..478f33888 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperators.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperators.tid @@ -1,14 +1,11 @@ created: 20140410103123179 -modified: 20140410103123179 +modified: 20141007213204936 tags: Concepts title: FilterOperators type: text/vnd.tiddlywiki -\define bulletList(filter) -<ul><$list filter="$filter$"><li><$link to={{!!title}}><$view field="title"/></$link></li></$list></ul> -\end Filter operators are the individual elements of [[filters|Filters]]. See [[Introduction to Filters]] for details. The full list of available filter operators is: -<<bulletList "[tag[Filters]]">> +<<list-links "[tag[Filters]]">> From 96d1981dcc36e55c522b9d2b989e20991a489f5e Mon Sep 17 00:00:00 2001 From: Bram Chen <bram.chen@gmail.com> Date: Wed, 8 Oct 2014 09:21:54 +0800 Subject: [PATCH 028/117] Update chinese translations * Add confirmation for clearing password --- languages/zh-Hans/Misc.multids | 2 ++ languages/zh-Hant/Misc.multids | 2 ++ 2 files changed, 4 insertions(+) diff --git a/languages/zh-Hans/Misc.multids b/languages/zh-Hans/Misc.multids index 326e00522..f5251fcc3 100644 --- a/languages/zh-Hans/Misc.multids +++ b/languages/zh-Hans/Misc.multids @@ -9,6 +9,8 @@ ConfirmDeleteTiddler: 您确定要删除条目 "<$text text=<<title>>/>"? ConfirmOverwriteTiddler: 您确定要覆写条目 "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: 您即将要编辑默认条目,任何更改将会覆盖默认的系统,使未来的升级不寻常。您确定要编辑 "<$text text=<<title>>/>"? DropMessage: 拖放到此处 (或按 ESC 键取消) +Encryption/ConfirmClearPassword: 您要清除密码?这将移除保存此维基时套用的加密 +Encryption/PromptSetPassword: 为此 TiddlyWiki 设置一个新密码 InvalidFieldName: 栏位名称 "<$text text=<<fieldName>>/>" 包含无效字符,栏位名称只能包含小写字母、数字、底线 (`_`)、 连字号 (`-`) 和小数点 (`.`) MissingTiddler/Hint: 佚失条目 "<$text text=<<currentTiddler>>/>" - 点击 {{$:/core/images/edit-button}} 可创建此条目 RecentChanges/DateFormat: YYYY年0MM月0DD日 diff --git a/languages/zh-Hant/Misc.multids b/languages/zh-Hant/Misc.multids index e39a20c77..f37a88703 100644 --- a/languages/zh-Hant/Misc.multids +++ b/languages/zh-Hant/Misc.multids @@ -9,6 +9,8 @@ ConfirmDeleteTiddler: 您確定要刪除條目 "<$text text=<<title>>/>"? ConfirmOverwriteTiddler: 您確定要覆寫條目 "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: 您即將要編輯預設條目,任何更改將會覆蓋預設的系統,使未來的升級不尋常。您確定要編輯 "<$text text=<<title>>/>"? DropMessage: 拖放到此處 (或按 ESC 鍵取消) +Encryption/ConfirmClearPassword: 您要清除密碼?這將移除儲存此維基時套用的加密 +Encryption/PromptSetPassword: 為此 TiddlyWiki 設置一個新密碼 InvalidFieldName: 欄位名稱 "<$text text=<<fieldName>>/>" 包含無效字元,欄位名稱只能包含小寫字母、數字、底線 (`_`)、 連接號 (`-`) 和小數點 (`.`) MissingTiddler/Hint: 佚失條目 "<$text text=<<currentTiddler>>/>" - 點擊 {{$:/core/images/edit-button}} 可建立此條目 RecentChanges/DateFormat: YYYY年0MM月0DD日 From a361ab0608a8634ea5dbfa28735c4856bde15655 Mon Sep 17 00:00:00 2001 From: fghhfg <fghhfg@users.noreply.github.com> Date: Wed, 8 Oct 2014 16:21:09 +0800 Subject: [PATCH 029/117] Update Searching.tid --- editions/tw5.com/tiddlers/features/Searching.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/features/Searching.tid b/editions/tw5.com/tiddlers/features/Searching.tid index ff85bec79..1d01b9481 100644 --- a/editions/tw5.com/tiddlers/features/Searching.tid +++ b/editions/tw5.com/tiddlers/features/Searching.tid @@ -22,4 +22,4 @@ To the right of the search box, when there are no search results displayed below * The ''shadows'' tab allows you to limit your search to shadow tiddlers. -* The ''filter'' tab is not a search box, per se, but a way to obtain a list of all tiddlers that meet the specific criteria described by that filter, for example, "All tags except system tags". +* The ''filter'' tab is not a search box, per se, but a way to obtain a list of all tiddlers that meet the specific criteria described by that filter, for example, "All tags except system tags". More information in [[Introduction to Filters]]. From 3b69b7b6e84252857e21477f8e92036c610935fc Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 8 Oct 2014 14:07:48 +0100 Subject: [PATCH 030/117] Coding style tweak --- core/modules/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index 0ed21f88c..2afcd136c 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -167,7 +167,7 @@ exports.slowInSlowOut = function(t) { return (1 - ((Math.cos(t * Math.PI) + 1) / 2)); }; -exports.formatDateString = function (date,template) { +exports.formatDateString = function(date,template) { var t = template.replace(/0hh12/g,$tw.utils.pad($tw.utils.getHours12(date))); t = t.replace(/hh12/g,$tw.utils.getHours12(date)); t = t.replace(/0hh/g,$tw.utils.pad(date.getHours())); From 0dcf54c3b59ed04645928f0ec4ced647e5a0da7f Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 8 Oct 2014 17:45:26 +0100 Subject: [PATCH 031/117] Add support for action widgets This is part of the groundwork for fixing #336 --- core/language/en-GB/Misc.multids | 1 + core/modules/widgets/action-navigate.js | 79 ++++++++++++++++++ core/modules/widgets/action-sendmessage.js | 82 +++++++++++++++++++ core/modules/widgets/button.js | 9 +- core/modules/widgets/navigator.js | 16 +++- core/modules/widgets/widget.js | 14 ++++ .../tw5.com/tiddlers/ActionNavigateWidget.tid | 36 ++++++++ .../tiddlers/ActionSendMessageWidget.tid | 31 +++++++ editions/tw5.com/tiddlers/ActionWidgets.tid | 23 ++++++ .../WidgetMessage_ tm-new-tiddler.tid | 8 +- .../tw5.com/tiddlers/widgets/ButtonWidget.tid | 21 +++-- 11 files changed, 303 insertions(+), 17 deletions(-) create mode 100644 core/modules/widgets/action-navigate.js create mode 100644 core/modules/widgets/action-sendmessage.js create mode 100644 editions/tw5.com/tiddlers/ActionNavigateWidget.tid create mode 100644 editions/tw5.com/tiddlers/ActionSendMessageWidget.tid create mode 100644 editions/tw5.com/tiddlers/ActionWidgets.tid diff --git a/core/language/en-GB/Misc.multids b/core/language/en-GB/Misc.multids index 991fe28f9..8d91730cb 100644 --- a/core/language/en-GB/Misc.multids +++ b/core/language/en-GB/Misc.multids @@ -8,6 +8,7 @@ ConfirmCancelTiddler: Do you wish to discard changes to the tiddler "<$text text ConfirmDeleteTiddler: Do you wish to delete the tiddler "<$text text=<<title>>/>"? ConfirmOverwriteTiddler: Do you wish to overwrite the tiddler "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit "<$text text=<<title>>/>"? +DefaultNewTiddlerTitle: New Tiddler DropMessage: Drop here (or click escape to cancel) Encryption/ConfirmClearPassword: Do you wish to clear the password? This will remove the encryption applied when saving this wiki Encryption/PromptSetPassword: Set a new password for this TiddlyWiki diff --git a/core/modules/widgets/action-navigate.js b/core/modules/widgets/action-navigate.js new file mode 100644 index 000000000..b6688df08 --- /dev/null +++ b/core/modules/widgets/action-navigate.js @@ -0,0 +1,79 @@ +/*\ +title: $:/core/modules/widgets/action-navigate.js +type: application/javascript +module-type: widget + +Action widget to navigate to a tiddler + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +var Widget = require("$:/core/modules/widgets/widget.js").widget; + +var NavigateWidget = function(parseTreeNode,options) { + this.initialise(parseTreeNode,options); +}; + +/* +Inherit from the base widget class +*/ +NavigateWidget.prototype = new Widget(); + +/* +Render this widget into the DOM +*/ +NavigateWidget.prototype.render = function(parent,nextSibling) { + this.computeAttributes(); + this.execute(); +}; + +/* +Compute the internal state of the widget +*/ +NavigateWidget.prototype.execute = function() { + this.actionTo = this.getAttribute("$to"); + this.actionScroll = this.getAttribute("$scroll"); +}; + +/* +Refresh the widget by ensuring our attributes are up to date +*/ +NavigateWidget.prototype.refresh = function(changedTiddlers) { + var changedAttributes = this.computeAttributes(); + if(changedAttributes["$to"] || changedAttributes["$scroll"]) { + this.refreshSelf(); + return true; + } + return this.refreshChildren(changedTiddlers); +}; + +/* +Invoke the action associated with this widget +*/ +NavigateWidget.prototype.invokeAction = function(triggeringWidget,event) { + var bounds = triggeringWidget && triggeringWidget.getBoundingClientRect && triggeringWidget.getBoundingClientRect(), + suppressNavigation = event.metaKey || event.ctrlKey || (event.button === 1); + if(this.actionScroll === "yes") { + suppressNavigation = false; + } else if(this.actionScroll === "no") { + suppressNavigation = true; + } + this.dispatchEvent({ + type: "tm-navigate", + navigateTo: this.actionTo === undefined ? this.getVariable("currentTiddler") : this.actionTo, + navigateFromTitle: this.getVariable("storyTiddler"), + navigateFromNode: triggeringWidget, + navigateFromClientRect: bounds && { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height + }, + navigateSuppressNavigation: suppressNavigation + }); + return true; // Action was invoked +}; + +exports["action-navigate"] = NavigateWidget; + +})(); diff --git a/core/modules/widgets/action-sendmessage.js b/core/modules/widgets/action-sendmessage.js new file mode 100644 index 000000000..fa788240a --- /dev/null +++ b/core/modules/widgets/action-sendmessage.js @@ -0,0 +1,82 @@ +/*\ +title: $:/core/modules/widgets/action-sendmessage.js +type: application/javascript +module-type: widget + +Action widget to send a message + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +var Widget = require("$:/core/modules/widgets/widget.js").widget; + +var SendMessageWidget = function(parseTreeNode,options) { + this.initialise(parseTreeNode,options); +}; + +/* +Inherit from the base widget class +*/ +SendMessageWidget.prototype = new Widget(); + +/* +Render this widget into the DOM +*/ +SendMessageWidget.prototype.render = function(parent,nextSibling) { + this.computeAttributes(); + this.execute(); +}; + +/* +Compute the internal state of the widget +*/ +SendMessageWidget.prototype.execute = function() { + this.actionMessage = this.getAttribute("$message"); + this.actionParam = this.getAttribute("$param"); +}; + +/* +Refresh the widget by ensuring our attributes are up to date +*/ +SendMessageWidget.prototype.refresh = function(changedTiddlers) { + var changedAttributes = this.computeAttributes(); + if(changedAttributes["$message"] || changedAttributes["$param"]) { + this.refreshSelf(); + return true; + } + return this.refreshChildren(changedTiddlers); +}; + +/* +Invoke the action associated with this widget +*/ +SendMessageWidget.prototype.invokeAction = function(triggeringWidget,event) { + // Get the parameter + var param = this.actionParam; + // If the parameter is missing then we'll assemble the attributes as a hashmap + if(!param) { + param = Object.create(null); + var count = 0; + $tw.utils.each(this.attributes,function(attribute,name) { + if(name.charAt(0) !== "$") { + param[name] = attribute; + count++; + } + }); + // Revert to an empty parameter if no values were found + if(!count) { + param = undefined; + } + } + // Dispatch the message + this.dispatchEvent({type: this.actionMessage, param: param, tiddlerTitle: this.getVariable("currentTiddler")}); + return true; // Action was invoked +}; + +exports["action-sendmessage"] = SendMessageWidget; + +})(); diff --git a/core/modules/widgets/button.js b/core/modules/widgets/button.js index 21268d7a5..142c13ada 100644 --- a/core/modules/widgets/button.js +++ b/core/modules/widgets/button.js @@ -59,6 +59,9 @@ ButtonWidget.prototype.render = function(parent,nextSibling) { // Add a click event handler domNode.addEventListener("click",function (event) { var handled = false; + if(self.invokeActions(event)) { + handled = true; + } if(self.to) { self.navigateTo(event); handled = true; @@ -87,6 +90,10 @@ ButtonWidget.prototype.render = function(parent,nextSibling) { this.domNodes.push(domNode); }; +ButtonWidget.prototype.getBoundingClientRect = function() { + return this.domNodes[0].getBoundingClientRect(); +} + ButtonWidget.prototype.isSelected = function() { var tiddler = this.wiki.getTiddler(this.set); return tiddler ? tiddler.fields.text === this.setTo : this.defaultSetValue === this.setTo; @@ -99,7 +106,7 @@ ButtonWidget.prototype.isPoppedUp = function() { }; ButtonWidget.prototype.navigateTo = function(event) { - var bounds = this.domNodes[0].getBoundingClientRect(); + var bounds = this.getBoundingClientRect(); this.dispatchEvent({ type: "tm-navigate", navigateTo: this.to, diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 2241180e4..4c554a70e 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -374,11 +374,19 @@ NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) { // Create a new draft tiddler NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) { // Get the story details - var storyList = this.getStoryList(); - // Get the template tiddler if there is one - var templateTiddler = this.wiki.getTiddler(event.param); + var storyList = this.getStoryList(), + templateTiddler,originalTitle; + // Get the template + if(typeof event.param === "object") { + templateTiddler = event.param; + originalTitle = templateTiddler.title; + } else { + templateTiddler = this.wiki.getTiddler(event.param); + originalTitle = templateTiddler && templateTiddler.fields.title; + } + originalTitle = originalTitle || $tw.language.getString("DefaultNewTiddlerTitle"); // Title the new tiddler - var title = this.wiki.generateNewTitle((templateTiddler && templateTiddler.fields.title) || "New Tiddler"); + var title = this.wiki.generateNewTitle(originalTitle); // Create the draft tiddler var draftTitle = this.generateDraftTitle(title), draftTiddler = new $tw.Tiddler({ diff --git a/core/modules/widgets/widget.js b/core/modules/widgets/widget.js index df434973c..a4942a86f 100755 --- a/core/modules/widgets/widget.js +++ b/core/modules/widgets/widget.js @@ -475,6 +475,20 @@ Widget.prototype.removeChildDomNodes = function() { } }; +/* +Invoke any action widgets that are immediate children of this widget +*/ +Widget.prototype.invokeActions = function(event) { + var handled = false; + for(var t=0; t<this.children.length; t++) { + var child = this.children[t]; + if(child.invokeAction && child.invokeAction(this,event)) { + handled = true; + } + } + return handled; +}; + exports.widget = Widget; })(); diff --git a/editions/tw5.com/tiddlers/ActionNavigateWidget.tid b/editions/tw5.com/tiddlers/ActionNavigateWidget.tid new file mode 100644 index 000000000..a27809412 --- /dev/null +++ b/editions/tw5.com/tiddlers/ActionNavigateWidget.tid @@ -0,0 +1,36 @@ +caption: action-navigate +created: 20141008163514491 +modified: 20141008164303144 +tags: Widgets ActionWidgets +title: ActionNavigateWidget +type: text/vnd.tiddlywiki + +! Introduction + +The ''action-navigate'' widget is an [[action widget|ActionWidgets]] that sends a [[tm-navigate|WidgetMessage: tm-navigate]] message back up the widget tree. ActionWidgets are used within triggering widgets such as the ButtonWidget. + +! Content and Attributes + +The ''action-navigate'' widget is invisible. Any content within it is ignored. + +|!Attribute |!Description | +|$to |The title of the target tiddler for the navigation (if not provided defaults to the [[WidgetVariable: currentTiddler]] | +|$scroll |Optional parameter determining whether the navigation will also cause a scroll to the target tiddler (see below) | + +!! Scroll handling + +The optional `$scroll` attribute can be set to "yes" to force scrolling to occur to bring the target tiddler into view. If set to "no" then scrolling does not occur. If the `$scroll` attribute is omitted then scrolling occurs unless either: + +* the control key is pressed +* the action was initiated with the middle mouse button (if available) + +! Examples + +Here is an example of button that navigates to two different tiddlers at once: + +<$macrocall $name='wikitext-example-without-html' +src='<$button> +<$action-navigate $to="ButtonWidget" $scroll="no"/> +<$action-navigate $to="ActionWidgets"/> +Click me! +</$button>'/> diff --git a/editions/tw5.com/tiddlers/ActionSendMessageWidget.tid b/editions/tw5.com/tiddlers/ActionSendMessageWidget.tid new file mode 100644 index 000000000..6b621df67 --- /dev/null +++ b/editions/tw5.com/tiddlers/ActionSendMessageWidget.tid @@ -0,0 +1,31 @@ +caption: action-sendmessage +created: 20141008134309742 +modified: 20141008162952455 +tags: Widgets ActionWidgets +title: ActionSendMessageWidget +type: text/vnd.tiddlywiki + +! Introduction + +The ''action-sendmessage'' widget is an [[action widget|ActionWidgets]] that sends a [[message|WidgetMessages]] back up the widget tree. ActionWidgets are used within triggering widgets such as the ButtonWidget. + +! Content and Attributes + +The ''action-sendmessage'' widget is invisible. Any content within it is ignored. + +|!Attribute |!Description | +|$message |The message to send (eg, [[WidgetMessage: tm-new-tiddler]]) | +|$param |Optional parameter string whose meaning is dependent on the message being sent | +|//{any attributes not starting with $}// |Multiple parameters that are attached to the message if the `$param$` attribute is not provided | + +! Examples + +Here is an example of button that displays both a notification and a wizard, and creates a new tiddler with tags and text: + +<$macrocall $name='wikitext-example-without-html' +src='<$button> +<$action-sendmessage $message="tm-modal" $param="SampleWizard"/> +<$action-sendmessage $message="tm-notify" $param="SampleNotification"/> +<$action-sendmessage $message="tm-new-tiddler" title="This is newly created tiddler" tags="OneTag [[Another Tag]]" text=<<now "Today is DDth, MMM YYYY">>/> +Click me! +</$button>'/> diff --git a/editions/tw5.com/tiddlers/ActionWidgets.tid b/editions/tw5.com/tiddlers/ActionWidgets.tid new file mode 100644 index 000000000..f1f9de2ca --- /dev/null +++ b/editions/tw5.com/tiddlers/ActionWidgets.tid @@ -0,0 +1,23 @@ +created: 20141008134425548 +modified: 20141008144957192 +tags: Widgets +title: ActionWidgets +type: text/vnd.tiddlywiki + +Action widgets are a special type of widget that perform an action such as sending a message, navigating to a tiddler, or changing the value of a tiddler. They are used in association with other widgets that trigger those actions (for example, the ButtonWidget). + +Action widgets are invisible. They must be the immediate children of their parent triggering widget. The actions are performed in sequence. For example, here is a button that triggers two actions of sending different messages: + +``` +<$button> +<$action-sendmessage $message="tm-home"/> +<$action-sendmessage $message="tm-full-screen"/> +Click me! +</$button> +``` + +Take care not to accidentally introduce an extra line break after the opening tag of the button widget. Doing so will trigger the WikiText parser to wrap the action widgets in a paragraph element. This means that the action widgets will not be triggered as they are no longer immediate children of the triggering widget. + +The following action widgets are provided: + +<<list-links "[tag[ActionWidgets]]">> diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid index 6cad0c4ae..9085c9a8a 100644 --- a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid +++ b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid @@ -1,17 +1,17 @@ +caption: tm-new-tiddler created: 20140226194405353 -modified: 20140724194729158 +modified: 20141008142952355 tags: Messages navigator-message title: WidgetMessage: tm-new-tiddler type: text/vnd.tiddlywiki -caption: tm-new-tiddler The new tiddler message creates a new draft tiddler and adds it to the current story. It requires the following properties on the `event` object: |!Name |!Description | -|param |Optional title of a tiddler to use as a template for the new tiddler | +|param |Either the title of a tiddler to use as a template for the new tiddler or a hashmap of tiddler fields | |navigateFromTitle |Title of the tiddler from which the navigation to the new tiddler was initiated | -The new tiddler message is usually generated with the LinkWidget or the ButtonWidget and is handled by the NavigatorWidget. +The new tiddler message is usually generated with the LinkWidget, ButtonWidget or ActionSendMessageWidget and is handled by the NavigatorWidget. ! Example diff --git a/editions/tw5.com/tiddlers/widgets/ButtonWidget.tid b/editions/tw5.com/tiddlers/widgets/ButtonWidget.tid index cd96a91cf..f3f52412a 100644 --- a/editions/tw5.com/tiddlers/widgets/ButtonWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/ButtonWidget.tid @@ -1,17 +1,22 @@ -title: ButtonWidget -created: 201310241419 -modified: 201406170837 -tags: Widgets caption: button +created: 20131024141900000 +modified: 20141008145311298 +tags: Widgets +title: ButtonWidget +type: text/vnd.tiddlywiki ! Introduction The button widget displays an HTML `<button>` element that can perform a combination of optional actions when clicked: -* Navigate to a specified tiddler -* Dispatch a user defined [[widget message|Messages]] -* Trigger a user defined [[popup|PopupMechanism]] -* Assign new text to a specified tiddler +* Executing any ActionWidgets that are immediate children of the button widget +* Execute any integrated actions: +** Navigate to a specified tiddler +** Dispatch a user defined [[widget message|Messages]] +** Trigger a user defined [[popup|PopupMechanism]] +** Assign new text to a specified tiddler + +The integrated actions are provided as a shortcut for invoking common actions. The same functionality is available via ActionWidgets, with the exception of the support for highlighting selected popups. ! Content and Attributes From e872f17842809e33eae177980e9ea0650b6a4c03 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 8 Oct 2014 17:46:34 +0100 Subject: [PATCH 032/117] Add a new journal page toolbar button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Spot the easter egg with the toolbar button… Fixes #336 --- core/images/new-journal-button.tid | 11 +++++++ core/language/en-GB/Buttons.multids | 2 ++ core/modules/macros/now.js | 32 +++++++++++++++++++++ core/ui/PageControls/new-journal.tid | 14 +++++++++ core/wiki/config/PageControlButtons.multids | 1 + core/wiki/tags/PageControls.tid | 2 +- editions/tw5.com/tiddlers/NowMacro.tid | 28 ++++++++++++++++++ 7 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 core/images/new-journal-button.tid create mode 100644 core/modules/macros/now.js create mode 100644 core/ui/PageControls/new-journal.tid create mode 100644 editions/tw5.com/tiddlers/NowMacro.tid diff --git a/core/images/new-journal-button.tid b/core/images/new-journal-button.tid new file mode 100644 index 000000000..080a2f651 --- /dev/null +++ b/core/images/new-journal-button.tid @@ -0,0 +1,11 @@ +title: $:/core/images/new-journal-button +tags: $:/tags/Image + +<svg class="tc-image-new-journal-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128"> + <g fill-rule="evenodd"> + <path d="M94.0292969,15.8677686 L79.7519531,15.8677686 C79.7519531,19.0628043 82.3534236,21.6528926 85.5625,21.6528926 L88.21875,21.6528926 L88.21875,24.2975207 L88.21875,31.7355372 L88.21875,34.3801653 L85.5625,34.3801653 C75.2934554,34.3801653 66.96875,26.091883 66.96875,15.8677686 L66.96875,15.8677686 L66.4375,15.8677686 L66.4375,15.8677686 C66.4375,7.10424199 59.3020382,0 50.5,0 C41.6979618,0 34.5625,7.10424199 34.5625,15.8677686 C34.5625,24.6312952 41.6979618,31.7355372 50.5,31.7355372 L50.5,24.2975207 C45.8239172,24.2975207 42.0332031,20.5233921 42.0332031,15.8677686 C42.0332031,11.2121451 45.8239172,7.43801653 50.5,7.43801653 C55.1760828,7.43801653 58.9667969,11.2121451 58.9667969,15.8677686 L44.6894531,15.8677686 L44.6894531,15.8677686 C44.6894531,19.0628043 47.2909236,21.6528926 50.5,21.6528926 L53.15625,21.6528926 L53.15625,24.2975207 L53.15625,31.7355372 L53.15625,34.3801653 L50.5,34.3801653 C40.2309554,34.3801653 31.90625,26.091883 31.90625,15.8677686 L25,15.8677686 L25,128 L110,128 L110,15.8677686 L101.5,15.8677686 C101.5,7.10424199 94.3645382,0 85.5625,0 C76.7604618,0 69.625,7.10424199 69.625,15.8677686 C69.625,24.6312952 76.7604618,31.7355372 85.5625,31.7355372 L85.5625,24.2975207 C80.8864172,24.2975207 77.0957031,20.5233921 77.0957031,15.8677686 C77.0957031,11.2121451 80.8864172,7.43801653 85.5625,7.43801653 C90.2385828,7.43801653 94.0292969,11.2121451 94.0292969,15.8677686 Z M62.1789039,108.449078 L62.1789039,119.245226 C62.1789039,120.437733 63.1300595,121.404456 64.3033627,121.404456 L69.6145099,121.404456 C70.7878132,121.404456 71.7389688,120.437733 71.7389688,119.245226 L71.7389688,108.449078 L82.3612632,108.449078 C83.5345664,108.449078 84.485722,107.482391 84.485722,106.289848 L84.485722,100.891774 C84.485722,99.6992319 83.5345664,98.7325448 82.3612632,98.7325448 L71.7389688,98.7325448 L71.7389688,87.9363966 C71.7389688,86.7438541 70.7878132,85.777167 69.6145099,85.777167 L64.3033627,85.777167 C63.1300595,85.777167 62.1789039,86.7438541 62.1789039,87.9363966 L62.1789039,98.7325448 L51.5566095,98.7325448 C50.3833034,98.7325448 49.4321506,99.6992319 49.4321506,100.891774 L49.4321506,106.289848 C49.4321506,107.482391 50.3833034,108.449078 51.5566095,108.449078 L62.1789039,108.449078 Z"></path> + <text font-family="Helvetica" font-size="48" font-weight="bold" fill="#FFFFFF"> + <tspan x="68" y="77.4847912" text-anchor="middle"><<now "DD">></tspan> + </text> + </g> +</svg> \ No newline at end of file diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index dac85e315..04ef57b0a 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -34,6 +34,8 @@ Home/Caption: home Home/Hint: Open the default tiddlers Language/Caption: language Language/Hint: Choose the user interface language +NewJournal/Caption: new journal +NewJournal/Hint: Create a new journal tiddler NewTiddler/Caption: new tiddler NewTiddler/Hint: Create a new tiddler More/Caption: more diff --git a/core/modules/macros/now.js b/core/modules/macros/now.js new file mode 100644 index 000000000..d0a15dce2 --- /dev/null +++ b/core/modules/macros/now.js @@ -0,0 +1,32 @@ +/*\ +title: $:/core/modules/macros/now.js +type: application/javascript +module-type: macro + +Macro to return a formatted version of the current time + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +/* +Information about this macro +*/ + +exports.name = "now"; + +exports.params = [ + {name: "format"} +]; + +/* +Run the macro +*/ +exports.run = function(format) { + return $tw.utils.formatDateString(new Date(),format || "0hh:0mm, DDth MMM YYYY"); +}; + +})(); diff --git a/core/ui/PageControls/new-journal.tid b/core/ui/PageControls/new-journal.tid new file mode 100644 index 000000000..4b8ce5001 --- /dev/null +++ b/core/ui/PageControls/new-journal.tid @@ -0,0 +1,14 @@ +title: $:/core/ui/Buttons/new-journal +tags: $:/tags/PageControls +caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}} +description: {{$:/language/Buttons/NewJournal/Hint}} + +<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>>> +<$action-sendmessage $message="tm-new-tiddler" title=<<now "DDth MMM YYYY">> tags="Journal"/> +<$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> +{{$:/core/images/new-journal-button}} +</$list> +<$list filter="[<tv-config-toolbar-text>prefix[yes]]"> +<$text text={{$:/language/Buttons/NewJournal/Caption}}/> +</$list> +</$button> diff --git a/core/wiki/config/PageControlButtons.multids b/core/wiki/config/PageControlButtons.multids index 164c454e3..5029bc1ca 100644 --- a/core/wiki/config/PageControlButtons.multids +++ b/core/wiki/config/PageControlButtons.multids @@ -9,6 +9,7 @@ core/ui/Buttons/import: hide core/ui/Buttons/language: hide core/ui/Buttons/tag-manager: hide core/ui/Buttons/more-page-actions: hide +core/ui/Buttons/new-journal: hide core/ui/Buttons/permaview: hide core/ui/Buttons/storyview: hide core/ui/Buttons/theme: hide diff --git a/core/wiki/tags/PageControls.tid b/core/wiki/tags/PageControls.tid index 233ef5443..81d1e46a7 100644 --- a/core/wiki/tags/PageControls.tid +++ b/core/wiki/tags/PageControls.tid @@ -1,2 +1,2 @@ title: $:/tags/PageControls -list: [[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/more-page-actions]] +list: [[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/more-page-actions]] diff --git a/editions/tw5.com/tiddlers/NowMacro.tid b/editions/tw5.com/tiddlers/NowMacro.tid new file mode 100644 index 000000000..1d58d72f8 --- /dev/null +++ b/editions/tw5.com/tiddlers/NowMacro.tid @@ -0,0 +1,28 @@ +caption: qualify +created: 20141008141616791 +modified: 20141008142012309 +tags: Macros +title: NowMacro +type: text/vnd.tiddlywiki + +The 'now' macro returns the current date and time, formatted with an optional format string. + +! Parameters + +|!Position |!Name |!Description |!Default | +|1st |format |DateFormat string specifying the format for the date/time |`0hh:0mm, DDth MMM YYYY` | + +! Examples + +For example: + +``` +* <<now>> +* <<now "DDth MMM YYYY">> +``` + +Returns: + +* <<now>> +* <<now "DDth MMM YYYY">> + From d778a90eb0c0d9375d93b8b912af63df5a271eff Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 8 Oct 2014 18:35:25 +0100 Subject: [PATCH 033/117] Make new journal title and tags be configurable --- core/language/en-GB/ControlPanel.multids | 2 ++ core/ui/ControlPanel/Basics.tid | 2 ++ core/ui/PageControls/new-journal.tid | 7 ++++++- core/wiki/config/NewJournal.multids | 4 ++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 core/wiki/config/NewJournal.multids diff --git a/core/language/en-GB/ControlPanel.multids b/core/language/en-GB/ControlPanel.multids index 7bb60a790..a9a9ab822 100644 --- a/core/language/en-GB/ControlPanel.multids +++ b/core/language/en-GB/ControlPanel.multids @@ -10,6 +10,8 @@ Basics/DefaultTiddlers/BottomHint: Use [[double square brackets]] Basics/DefaultTiddlers/Prompt: Default tiddlers: Basics/DefaultTiddlers/TopHint: Choose which tiddlers are displayed at startup: Basics/Language/Prompt: Hello! Current language: +Basics/NewJournal/Title/Prompt: Title of new journal tiddlers +Basics/NewJournal/Tags/Prompt: Tags for new journal tiddlers Basics/OverriddenShadowTiddlers/Prompt: Number of overridden shadow tiddlers: Basics/ShadowTiddlers/Prompt: Number of shadow tiddlers: Basics/Subtitle/Prompt: Subtitle: diff --git a/core/ui/ControlPanel/Basics.tid b/core/ui/ControlPanel/Basics.tid index 81cbaa76e..604326cdd 100644 --- a/core/ui/ControlPanel/Basics.tid +++ b/core/ui/ControlPanel/Basics.tid @@ -9,6 +9,8 @@ caption: {{$:/language/ControlPanel/Basics/Caption}} |<$link to="$:/status/UserName"><<lingo Username/Prompt>></$link> |<$edit-text tiddler="$:/status/UserName" default="" tag="input"/> | |<$link to="$:/config/AnimationDuration"><<lingo AnimDuration/Prompt>></$link> |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input"/> | |<$link to="$:/DefaultTiddlers"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit-text tag="textarea" tiddler="$:/DefaultTiddlers"/><br>//<<lingo DefaultTiddlers/BottomHint>>// | +|<$link to="$:/config/NewJournal/Title"><<lingo NewJournal/Title/Prompt>></$link> |<$edit-text tiddler="$:/config/NewJournal/Title" default="" tag="input"/> | +|<$link to="$:/config/NewJournal/Tags"><<lingo NewJournal/Tags/Prompt>></$link> |<$edit-text tiddler="$:/config/NewJournal/Tags" default="" tag="input"/> | |<<lingo Language/Prompt>> |{{$:/snippets/minilanguageswitcher}} | |<<lingo Tiddlers/Prompt>> |''<$count filter="[!is[system]]"/>'' | |<<lingo Tags/Prompt>> |''<$count filter="[tags[]]"/>'' | diff --git a/core/ui/PageControls/new-journal.tid b/core/ui/PageControls/new-journal.tid index 4b8ce5001..cfb90bd29 100644 --- a/core/ui/PageControls/new-journal.tid +++ b/core/ui/PageControls/new-journal.tid @@ -3,8 +3,9 @@ tags: $:/tags/PageControls caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}} description: {{$:/language/Buttons/NewJournal/Hint}} +\define journalButton() <$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-new-tiddler" title=<<now "DDth MMM YYYY">> tags="Journal"/> +<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags={{$:/config/NewJournal/Tags}}/> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> {{$:/core/images/new-journal-button}} </$list> @@ -12,3 +13,7 @@ description: {{$:/language/Buttons/NewJournal/Hint}} <$text text={{$:/language/Buttons/NewJournal/Caption}}/> </$list> </$button> +\end +<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}> +<<journalButton>> +</$set> diff --git a/core/wiki/config/NewJournal.multids b/core/wiki/config/NewJournal.multids new file mode 100644 index 000000000..ff566fabe --- /dev/null +++ b/core/wiki/config/NewJournal.multids @@ -0,0 +1,4 @@ +title: $:/config/NewJournal/ + +Title: DDth MMM YYYY +Tags: Journal From b53074a0cc24bfd72167c89d76ac28f4161e4897 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 8 Oct 2014 19:02:54 +0100 Subject: [PATCH 034/117] Update "Introduction to Filters" docs --- .../tiddlers/filters/Introduction to Filters.tid | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/filters/Introduction to Filters.tid b/editions/tw5.com/tiddlers/filters/Introduction to Filters.tid index 257cb7a5e..71116ea91 100644 --- a/editions/tw5.com/tiddlers/filters/Introduction to Filters.tid +++ b/editions/tw5.com/tiddlers/filters/Introduction to Filters.tid @@ -1,12 +1,24 @@ created: 20140410101941871 -modified: 20140919160749349 +modified: 20141008180223576 tags: Learning title: Introduction to Filters type: text/vnd.tiddlywiki A step by step introduction to how [[Filters]] are used. -You can experiment with tiddler filters by typing them into the "Filter" tab of the [[advanced search panel|$:/AdvancedSearch]]. +! Using Filters + +Filters are a special language within WikiText for expressing lists of tiddlers. + +Filters are used in the ListMacro, TabsMacro, ListWidget, CountWidget, and many other areas of TiddlyWiki. + +For example, this is how the ListMacro would be used to display the first example below: + +``` +<<list-links "HelloThere Introduction [[Title with Spaces]]">> +``` + +The easiest way to experiment with tiddler filters is by typing them into the "Filter" tab of the [[advanced search panel|$:/AdvancedSearch]]. ! Simple Filters From c322dc82c3b348738e8f0b02f5597d8d24b2303a Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 8 Oct 2014 20:11:54 +0100 Subject: [PATCH 035/117] Simplify new journal button --- core/images/new-journal-button.tid | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/core/images/new-journal-button.tid b/core/images/new-journal-button.tid index 080a2f651..7aaaca045 100644 --- a/core/images/new-journal-button.tid +++ b/core/images/new-journal-button.tid @@ -3,9 +3,14 @@ tags: $:/tags/Image <svg class="tc-image-new-journal-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128"> <g fill-rule="evenodd"> - <path d="M94.0292969,15.8677686 L79.7519531,15.8677686 C79.7519531,19.0628043 82.3534236,21.6528926 85.5625,21.6528926 L88.21875,21.6528926 L88.21875,24.2975207 L88.21875,31.7355372 L88.21875,34.3801653 L85.5625,34.3801653 C75.2934554,34.3801653 66.96875,26.091883 66.96875,15.8677686 L66.96875,15.8677686 L66.4375,15.8677686 L66.4375,15.8677686 C66.4375,7.10424199 59.3020382,0 50.5,0 C41.6979618,0 34.5625,7.10424199 34.5625,15.8677686 C34.5625,24.6312952 41.6979618,31.7355372 50.5,31.7355372 L50.5,24.2975207 C45.8239172,24.2975207 42.0332031,20.5233921 42.0332031,15.8677686 C42.0332031,11.2121451 45.8239172,7.43801653 50.5,7.43801653 C55.1760828,7.43801653 58.9667969,11.2121451 58.9667969,15.8677686 L44.6894531,15.8677686 L44.6894531,15.8677686 C44.6894531,19.0628043 47.2909236,21.6528926 50.5,21.6528926 L53.15625,21.6528926 L53.15625,24.2975207 L53.15625,31.7355372 L53.15625,34.3801653 L50.5,34.3801653 C40.2309554,34.3801653 31.90625,26.091883 31.90625,15.8677686 L25,15.8677686 L25,128 L110,128 L110,15.8677686 L101.5,15.8677686 C101.5,7.10424199 94.3645382,0 85.5625,0 C76.7604618,0 69.625,7.10424199 69.625,15.8677686 C69.625,24.6312952 76.7604618,31.7355372 85.5625,31.7355372 L85.5625,24.2975207 C80.8864172,24.2975207 77.0957031,20.5233921 77.0957031,15.8677686 C77.0957031,11.2121451 80.8864172,7.43801653 85.5625,7.43801653 C90.2385828,7.43801653 94.0292969,11.2121451 94.0292969,15.8677686 Z M62.1789039,108.449078 L62.1789039,119.245226 C62.1789039,120.437733 63.1300595,121.404456 64.3033627,121.404456 L69.6145099,121.404456 C70.7878132,121.404456 71.7389688,120.437733 71.7389688,119.245226 L71.7389688,108.449078 L82.3612632,108.449078 C83.5345664,108.449078 84.485722,107.482391 84.485722,106.289848 L84.485722,100.891774 C84.485722,99.6992319 83.5345664,98.7325448 82.3612632,98.7325448 L71.7389688,98.7325448 L71.7389688,87.9363966 C71.7389688,86.7438541 70.7878132,85.777167 69.6145099,85.777167 L64.3033627,85.777167 C63.1300595,85.777167 62.1789039,86.7438541 62.1789039,87.9363966 L62.1789039,98.7325448 L51.5566095,98.7325448 C50.3833034,98.7325448 49.4321506,99.6992319 49.4321506,100.891774 L49.4321506,106.289848 C49.4321506,107.482391 50.3833034,108.449078 51.5566095,108.449078 L62.1789039,108.449078 Z"></path> - <text font-family="Helvetica" font-size="48" font-weight="bold" fill="#FFFFFF"> - <tspan x="68" y="77.4847912" text-anchor="middle"><<now "DD">></tspan> - </text> + <path d="M102.545455,112.818182 L102.545455,124.636364 L102.545455,124.636364 L102.545455,124.636364 C102.545455,125.941761 103.630828,127 104.969697,127 L111.030303,127 C112.369172,127 113.454545,125.941761 113.454545,124.636364 L113.454545,112.818182 L125.575758,112.818182 C126.914626,112.818182 128,111.759982 128,110.454545 L128,104.545455 C128,103.240018 126.914626,102.181818 125.575758,102.181818 L113.454545,102.181818 L113.454545,90.3636364 C113.454545,89.0582 112.369172,88 111.030303,88 L104.969697,88 L104.969697,88 C103.630828,88 102.545455,89.0582 102.545455,90.3636364 L102.545455,102.181818 L90.4242424,102.181818 L90.4242424,102.181818 C89.0853705,102.181818 88,103.240018 88,104.545455 L88,110.454545 L88,110.454545 L88,110.454545 C88,111.759982 89.0853705,112.818182 90.4242424,112.818182 L102.545455,112.818182 Z"></path> + <g transform="translate(59.816987, 64.316987) rotate(30.000000) translate(-59.816987, -64.316987) translate(20.316987, 12.816987)"> + <g transform="translate(0.000000, 0.000000)"> + <path d="M9.99631148,0 C4.4755011,0 -2.27373675e-13,4.48070044 -2.27373675e-13,9.99759461 L-2.27373675e-13,91.6128884 C-2.27373675e-13,97.1344074 4.46966773,101.610483 9.99631148,101.610483 L68.9318917,101.610483 C74.4527021,101.610483 78.9282032,97.1297826 78.9282032,91.6128884 L78.9282032,9.99759461 C78.9282032,4.47607557 74.4585355,0 68.9318917,0 L9.99631148,0 Z M20.8885263,26 C24.2022348,26 26.8885263,23.3137085 26.8885263,20 C26.8885263,16.6862915 24.2022348,14 20.8885263,14 C17.5748178,14 14.8885263,16.6862915 14.8885263,20 C14.8885263,23.3137085 17.5748178,26 20.8885263,26 Z M57.3033321,25.6783342 C60.6170406,25.6783342 63.3033321,22.9920427 63.3033321,19.6783342 C63.3033321,16.3646258 60.6170406,13.6783342 57.3033321,13.6783342 C53.9896236,13.6783342 51.3033321,16.3646258 51.3033321,19.6783342 C51.3033321,22.9920427 53.9896236,25.6783342 57.3033321,25.6783342 Z"></path> + <text font-family="Helvetica" font-size="47.1724138" font-weight="bold" fill="#FFFFFF"> + <tspan x="42" y="77.4847912" text-anchor="middle"><<now "DD">></tspan> + </text> + </g> + </g> </g> -</svg> \ No newline at end of file +</svg> From 70984aa39f8a4061162d4e404bfd158e515c7e6e Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 8 Oct 2014 22:02:32 +0100 Subject: [PATCH 036/117] Add "new here" button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a basic “new here” tiddler toolbar button that just creates a new tiddler tagged with the title of the current tiddler. @pmario is there anything else required? --- core/images/new-here-button.tid | 9 +++++++++ core/language/en-GB/Buttons.multids | 6 ++++-- core/ui/ViewToolbar/new-here.tid | 14 ++++++++++++++ core/wiki/config/ViewToolbarButtons.multids | 1 + core/wiki/tags/ViewToolbar.tid | 2 +- 5 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 core/images/new-here-button.tid create mode 100644 core/ui/ViewToolbar/new-here.tid diff --git a/core/images/new-here-button.tid b/core/images/new-here-button.tid new file mode 100644 index 000000000..165635010 --- /dev/null +++ b/core/images/new-here-button.tid @@ -0,0 +1,9 @@ +title: $:/core/images/new-here-button +tags: $:/tags/Image + +<svg class="tc-image-new-here-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128"> + <g fill-rule="evenodd"> + <path d="M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,118 C93.8233765,118 118,93.8233765 118,64 C118,34.1766235 93.8233765,10 64,10 C34.1766235,10 10,34.1766235 10,64 C10,93.8233765 34.1766235,118 64,118 Z M64,108 C88.300529,108 108,88.300529 108,64 C108,39.699471 88.300529,20 64,20 C39.699471,20 20,39.699471 20,64 C20,88.300529 39.699471,108 64,108 Z M64,98 C82.7776815,98 98,82.7776815 98,64 C98,45.2223185 82.7776815,30 64,30 C45.2223185,30 30,45.2223185 30,64 C30,82.7776815 45.2223185,98 64,98 Z"></path> + <path d="M56.9090909,72.4545455 L56.9090909,87.9090909 L56.9090909,87.9090909 L56.9090909,87.9090909 C56.9090909,89.6161485 58.3200768,91 60.0606061,91 L67.9393939,91 C69.6799232,91 71.0909091,89.6161485 71.0909091,87.9090909 L71.0909091,72.4545455 L86.8484848,72.4545455 C88.5890141,72.4545455 90,71.0707455 90,69.3636364 L90,61.6363636 C90,59.9292545 88.5890141,58.5454545 86.8484848,58.5454545 L71.0909091,58.5454545 L71.0909091,43.0909091 C71.0909091,41.3838 69.6799232,40 67.9393939,40 L60.0606061,40 L60.0606061,40 C58.3200768,40 56.9090909,41.3838 56.9090909,43.0909091 L56.9090909,58.5454545 L41.1515152,58.5454545 L41.1515152,58.5454545 C39.4109817,58.5454545 38,59.9292545 38,61.6363636 L38,69.3636364 L38,69.3636364 L38,69.3636364 C38,71.0707455 39.4109817,72.4545455 41.1515152,72.4545455 L56.9090909,72.4545455 Z"></path> + </g> +</svg> diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index 04ef57b0a..72373af46 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -34,12 +34,14 @@ Home/Caption: home Home/Hint: Open the default tiddlers Language/Caption: language Language/Hint: Choose the user interface language +More/Caption: more +More/Hint: More actions +NewHere/Caption: new here +NewHere/Hint: Create a new tiddler tagged with "<$text text=<<currentTiddler>>" NewJournal/Caption: new journal NewJournal/Hint: Create a new journal tiddler NewTiddler/Caption: new tiddler NewTiddler/Hint: Create a new tiddler -More/Caption: more -More/Hint: More actions Permalink/Caption: permalink Permalink/Hint: Set browser address bar to a direct link to this tiddler Permaview/Caption: permaview diff --git a/core/ui/ViewToolbar/new-here.tid b/core/ui/ViewToolbar/new-here.tid new file mode 100644 index 000000000..df0e86690 --- /dev/null +++ b/core/ui/ViewToolbar/new-here.tid @@ -0,0 +1,14 @@ +title: $:/core/ui/Buttons/new-here +tags: $:/tags/ViewToolbar +caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}} +description: {{$:/language/Buttons/NewHere/Hint}} + +<$button tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>> +<$action-sendmessage $message="tm-new-tiddler" tags=<<currentTiddler>>/> +<$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> +{{$:/core/images/new-here-button}} +</$list> +<$list filter="[<tv-config-toolbar-text>prefix[yes]]"> +<$text text={{$:/language/Buttons/NewHere/Caption}}/> +</$list> +</$button> diff --git a/core/wiki/config/ViewToolbarButtons.multids b/core/wiki/config/ViewToolbarButtons.multids index 998e49032..15d55bd41 100644 --- a/core/wiki/config/ViewToolbarButtons.multids +++ b/core/wiki/config/ViewToolbarButtons.multids @@ -3,5 +3,6 @@ title: $:/config/ViewToolbarButtons/Visibility/$:/ core/ui/Buttons/clone: hide core/ui/Buttons/close-others: hide core/ui/Buttons/more-tiddler-actions: hide +core/ui/Buttons/new-here: hide core/ui/Buttons/permalink: hide core/ui/Buttons/permaview: hide diff --git a/core/wiki/tags/ViewToolbar.tid b/core/wiki/tags/ViewToolbar.tid index 230a2d680..4b21eefe7 100644 --- a/core/wiki/tags/ViewToolbar.tid +++ b/core/wiki/tags/ViewToolbar.tid @@ -1,2 +1,2 @@ title: $:/tags/ViewToolbar -list: [[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] +list: [[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] From e5f20d1a9ca9981ad654adb630c7861a448a86e8 Mon Sep 17 00:00:00 2001 From: Bram Chen <bram.chen@gmail.com> Date: Thu, 9 Oct 2014 13:54:47 +0800 Subject: [PATCH 037/117] Update chinese translations * Add "new here" button * Add "new journal" button * Add default title of new tiddler --- languages/zh-Hans/Buttons.multids | 6 +++++- languages/zh-Hans/ControlPanel.multids | 2 ++ languages/zh-Hans/Misc.multids | 1 + languages/zh-Hant/Buttons.multids | 6 +++++- languages/zh-Hant/ControlPanel.multids | 2 ++ languages/zh-Hant/Misc.multids | 1 + 6 files changed, 16 insertions(+), 2 deletions(-) diff --git a/languages/zh-Hans/Buttons.multids b/languages/zh-Hans/Buttons.multids index 68d2a750f..085e482e0 100644 --- a/languages/zh-Hans/Buttons.multids +++ b/languages/zh-Hans/Buttons.multids @@ -36,8 +36,12 @@ Language/Caption: 语言 Language/Hint: 选择用户介面语言 More/Caption: 更多 More/Hint: 更多动作 +NewHere/Caption: 添加子條目 +NewHere/Hint: 创建一個標籤為 "<$text text=<<currentTiddler>> />" 的新條目 +NewJournal/Caption: 添加日誌 +NewJournal/Hint: 创建一個新的日誌條目 NewTiddler/Caption: 添加条目 -NewTiddler/Hint: 创建一新条目 +NewTiddler/Hint: 创建一個新的条目 Permalink/Caption: 引用连结 Permalink/Hint: 设置浏览器网址栏为直接连结到此条目 Permaview/Caption: 永久连结 diff --git a/languages/zh-Hans/ControlPanel.multids b/languages/zh-Hans/ControlPanel.multids index eb8575bcb..6bb58317c 100644 --- a/languages/zh-Hans/ControlPanel.multids +++ b/languages/zh-Hans/ControlPanel.multids @@ -10,6 +10,8 @@ Basics/DefaultTiddlers/BottomHint: 标题含空白时请使用 [[双中 Basics/DefaultTiddlers/Prompt: 首页: Basics/DefaultTiddlers/TopHint: 默认开启的条目: Basics/Language/Prompt: 您好!当前的语言: +Basics/NewJournal/Title/Prompt: 新日志条目的名称 +Basics/NewJournal/Tags/Prompt: 新日志条目的标签 Basics/OverriddenShadowTiddlers/Prompt: 被覆写的默认条目数量: Basics/ShadowTiddlers/Prompt: 默认条目数量: Basics/Subtitle/Prompt: 副标题: diff --git a/languages/zh-Hans/Misc.multids b/languages/zh-Hans/Misc.multids index f5251fcc3..8c973f4a8 100644 --- a/languages/zh-Hans/Misc.multids +++ b/languages/zh-Hans/Misc.multids @@ -8,6 +8,7 @@ ConfirmCancelTiddler: 您确定要放弃对条目 "<$text text=<<title>>/>" 的 ConfirmDeleteTiddler: 您确定要删除条目 "<$text text=<<title>>/>"? ConfirmOverwriteTiddler: 您确定要覆写条目 "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: 您即将要编辑默认条目,任何更改将会覆盖默认的系统,使未来的升级不寻常。您确定要编辑 "<$text text=<<title>>/>"? +DefaultNewTiddlerTitle: 新条目 DropMessage: 拖放到此处 (或按 ESC 键取消) Encryption/ConfirmClearPassword: 您要清除密码?这将移除保存此维基时套用的加密 Encryption/PromptSetPassword: 为此 TiddlyWiki 设置一个新密码 diff --git a/languages/zh-Hant/Buttons.multids b/languages/zh-Hant/Buttons.multids index 471c46ad0..434d8a1fc 100644 --- a/languages/zh-Hant/Buttons.multids +++ b/languages/zh-Hant/Buttons.multids @@ -36,8 +36,12 @@ Language/Caption: 語言 Language/Hint: 選擇使用者介面語言 More/Caption: 更多 More/Hint: 更多動作 +NewHere/Caption: 新增子條目 +NewHere/Hint: 建立一個標籤為 "<$text text=<<currentTiddler>> />" 的新條目 +NewJournal/Caption: 新增日誌 +NewJournal/Hint: 建立一個新的日誌條目 NewTiddler/Caption: 新增條目 -NewTiddler/Hint: 建立一新條目 +NewTiddler/Hint: 建立一個新的條目 Permalink/Caption: 引用連結 Permalink/Hint: 設定瀏覽器網址列為直接連結到此條目 Permaview/Caption: 固定連結 diff --git a/languages/zh-Hant/ControlPanel.multids b/languages/zh-Hant/ControlPanel.multids index e10dca7e8..83f47d4dc 100644 --- a/languages/zh-Hant/ControlPanel.multids +++ b/languages/zh-Hant/ControlPanel.multids @@ -10,6 +10,8 @@ Basics/DefaultTiddlers/BottomHint: 標題含空白時請使用 [[雙中 Basics/DefaultTiddlers/Prompt: 首頁: Basics/DefaultTiddlers/TopHint: 預設開啟的條目: Basics/Language/Prompt: 您好!當前的語言: +Basics/NewJournal/Title/Prompt: 新日誌條目的名稱 +Basics/NewJournal/Tags/Prompt: 新日誌條目的標籤 Basics/OverriddenShadowTiddlers/Prompt: 被覆寫的預設條目數量: Basics/ShadowTiddlers/Prompt: 預設條目數量: Basics/Subtitle/Prompt: 副標題: diff --git a/languages/zh-Hant/Misc.multids b/languages/zh-Hant/Misc.multids index f37a88703..1b242167d 100644 --- a/languages/zh-Hant/Misc.multids +++ b/languages/zh-Hant/Misc.multids @@ -8,6 +8,7 @@ ConfirmCancelTiddler: 您確定要放棄對條目 "<$text text=<<title>>/>" 的 ConfirmDeleteTiddler: 您確定要刪除條目 "<$text text=<<title>>/>"? ConfirmOverwriteTiddler: 您確定要覆寫條目 "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: 您即將要編輯預設條目,任何更改將會覆蓋預設的系統,使未來的升級不尋常。您確定要編輯 "<$text text=<<title>>/>"? +DefaultNewTiddlerTitle: 新條目 DropMessage: 拖放到此處 (或按 ESC 鍵取消) Encryption/ConfirmClearPassword: 您要清除密碼?這將移除儲存此維基時套用的加密 Encryption/PromptSetPassword: 為此 TiddlyWiki 設置一個新密碼 From 18877f923729cfeac052e619d951c93fa9c23c0f Mon Sep 17 00:00:00 2001 From: buggyj <buggyjef@gmail.com> Date: Thu, 9 Oct 2014 08:21:00 +0200 Subject: [PATCH 038/117] add install instruction --- .../tiddlers/Classic Parser Plugin Demo.tid | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editions/classicparserdemo/tiddlers/Classic Parser Plugin Demo.tid b/editions/classicparserdemo/tiddlers/Classic Parser Plugin Demo.tid index a35f261d4..6258f1e9c 100644 --- a/editions/classicparserdemo/tiddlers/Classic Parser Plugin Demo.tid +++ b/editions/classicparserdemo/tiddlers/Classic Parser Plugin Demo.tid @@ -12,3 +12,8 @@ At present there is limited support for Classic macros. See below for examples o !!Status See here for <<slider $:/temp/1 Issues "Issues»" "more" >> !!See also [[Developers Notes]] +! Installation +To add this plugin to your own TiddlyWiki5, just drag this link to your tiddlywiki's browser window: + +[[$:/plugins/tiddlywiki/tw2parser]] + From 90997020e72a22b30de3975283c36759fac1fb8f Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 08:44:23 +0100 Subject: [PATCH 039/117] Revert to simple tooltip for newhere button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit At present we can’t arrange for the hint to be wikified when it’s used as the button tooltip. --- core/language/en-GB/Buttons.multids | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index 72373af46..6cee87661 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -37,7 +37,7 @@ Language/Hint: Choose the user interface language More/Caption: more More/Hint: More actions NewHere/Caption: new here -NewHere/Hint: Create a new tiddler tagged with "<$text text=<<currentTiddler>>" +NewHere/Hint: Create a new tiddler tagged with this one NewJournal/Caption: new journal NewJournal/Hint: Create a new journal tiddler NewTiddler/Caption: new tiddler From e34b4f18e58ce7ee8d55d3f6550302361b5a40de Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 09:31:26 +0100 Subject: [PATCH 040/117] Improve new here button --- core/images/new-here-button.tid | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/images/new-here-button.tid b/core/images/new-here-button.tid index 165635010..e8f7f3e27 100644 --- a/core/images/new-here-button.tid +++ b/core/images/new-here-button.tid @@ -3,7 +3,6 @@ tags: $:/tags/Image <svg class="tc-image-new-here-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128"> <g fill-rule="evenodd"> - <path d="M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,118 C93.8233765,118 118,93.8233765 118,64 C118,34.1766235 93.8233765,10 64,10 C34.1766235,10 10,34.1766235 10,64 C10,93.8233765 34.1766235,118 64,118 Z M64,108 C88.300529,108 108,88.300529 108,64 C108,39.699471 88.300529,20 64,20 C39.699471,20 20,39.699471 20,64 C20,88.300529 39.699471,108 64,108 Z M64,98 C82.7776815,98 98,82.7776815 98,64 C98,45.2223185 82.7776815,30 64,30 C45.2223185,30 30,45.2223185 30,64 C30,82.7776815 45.2223185,98 64,98 Z"></path> - <path d="M56.9090909,72.4545455 L56.9090909,87.9090909 L56.9090909,87.9090909 L56.9090909,87.9090909 C56.9090909,89.6161485 58.3200768,91 60.0606061,91 L67.9393939,91 C69.6799232,91 71.0909091,89.6161485 71.0909091,87.9090909 L71.0909091,72.4545455 L86.8484848,72.4545455 C88.5890141,72.4545455 90,71.0707455 90,69.3636364 L90,61.6363636 C90,59.9292545 88.5890141,58.5454545 86.8484848,58.5454545 L71.0909091,58.5454545 L71.0909091,43.0909091 C71.0909091,41.3838 69.6799232,40 67.9393939,40 L60.0606061,40 L60.0606061,40 C58.3200768,40 56.9090909,41.3838 56.9090909,43.0909091 L56.9090909,58.5454545 L41.1515152,58.5454545 L41.1515152,58.5454545 C39.4109817,58.5454545 38,59.9292545 38,61.6363636 L38,69.3636364 L38,69.3636364 L38,69.3636364 C38,71.0707455 39.4109817,72.4545455 41.1515152,72.4545455 L56.9090909,72.4545455 Z"></path> + <path d="M56.5301831,72 L48.53728,72 C44.1183542,72 40.5301831,68.418278 40.5301831,64 C40.5301831,59.5907123 44.1150825,56 48.53728,56 L56.5301831,56 L56.5301831,48.0070969 C56.5301831,43.5881712 60.1119051,40 64.5301831,40 C68.9394708,40 72.5301831,43.5848994 72.5301831,48.0070969 L72.5301831,56 L80.5230862,56 C84.9420119,56 88.5301831,59.581722 88.5301831,64 C88.5301831,68.4092877 84.9452837,72 80.5230862,72 L72.5301831,72 L72.5301831,79.9929031 C72.5301831,84.4118288 68.9484611,88 64.5301831,88 C60.1208954,88 56.5301831,84.4151006 56.5301831,79.9929031 L56.5301831,72 Z M64.5301831,128 C99.8764071,128 128.530183,99.346224 128.530183,64 C128.530183,28.653776 99.8764071,0 64.5301831,0 C29.1839591,0 0.530183077,28.653776 0.530183077,64 C0.530183077,99.346224 29.1839591,128 64.5301831,128 Z M64.5301831,118 C94.3535596,118 118.530183,93.8233765 118.530183,64 C118.530183,34.1766235 94.3535596,10 64.5301831,10 C34.7068066,10 10.5301831,34.1766235 10.5301831,64 C10.5301831,93.8233765 34.7068066,118 64.5301831,118 Z M64.5301831,108 C88.8307121,108 108.530183,88.300529 108.530183,64 C108.530183,39.699471 88.8307121,20 64.5301831,20 C40.2296541,20 20.5301831,39.699471 20.5301831,64 C20.5301831,88.300529 40.2296541,108 64.5301831,108 Z M64.5301831,98 C83.3078646,98 98.5301831,82.7776815 98.5301831,64 C98.5301831,45.2223185 83.3078646,30 64.5301831,30 C45.7525016,30 30.5301831,45.2223185 30.5301831,64 C30.5301831,82.7776815 45.7525016,98 64.5301831,98 Z"></path> </g> </svg> From 9075495cc843e3751d09b8cb7488ca4f93b5b65c Mon Sep 17 00:00:00 2001 From: Bram Chen <bram.chen@gmail.com> Date: Thu, 9 Oct 2014 16:33:46 +0800 Subject: [PATCH 041/117] Revert to simple tooltip for newhere button for chinese translations --- languages/zh-Hans/Buttons.multids | 10 +++++----- languages/zh-Hant/Buttons.multids | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/languages/zh-Hans/Buttons.multids b/languages/zh-Hans/Buttons.multids index 085e482e0..3b96b0a01 100644 --- a/languages/zh-Hans/Buttons.multids +++ b/languages/zh-Hans/Buttons.multids @@ -36,12 +36,12 @@ Language/Caption: 语言 Language/Hint: 选择用户介面语言 More/Caption: 更多 More/Hint: 更多动作 -NewHere/Caption: 添加子條目 -NewHere/Hint: 创建一個標籤為 "<$text text=<<currentTiddler>> />" 的新條目 -NewJournal/Caption: 添加日誌 -NewJournal/Hint: 创建一個新的日誌條目 +NewHere/Caption: 添加子条目 +NewHere/Hint: 创建一个标签为此条目名称的新条目 +NewJournal/Caption: 添加日志 +NewJournal/Hint: 创建一个新的日志条目 NewTiddler/Caption: 添加条目 -NewTiddler/Hint: 创建一個新的条目 +NewTiddler/Hint: 创建一个新的条目 Permalink/Caption: 引用连结 Permalink/Hint: 设置浏览器网址栏为直接连结到此条目 Permaview/Caption: 永久连结 diff --git a/languages/zh-Hant/Buttons.multids b/languages/zh-Hant/Buttons.multids index 434d8a1fc..ab86749e1 100644 --- a/languages/zh-Hant/Buttons.multids +++ b/languages/zh-Hant/Buttons.multids @@ -37,7 +37,7 @@ Language/Hint: 選擇使用者介面語言 More/Caption: 更多 More/Hint: 更多動作 NewHere/Caption: 新增子條目 -NewHere/Hint: 建立一個標籤為 "<$text text=<<currentTiddler>> />" 的新條目 +NewHere/Hint: 建立一個標籤為此條目名稱的新條目 NewJournal/Caption: 新增日誌 NewJournal/Hint: 建立一個新的日誌條目 NewTiddler/Caption: 新增條目 From 8b1d6d235bec57cf188998e28bd8587e7e8914ee Mon Sep 17 00:00:00 2001 From: Mario Pietsch <pmariojo@gmail.com> Date: Thu, 9 Oct 2014 10:56:27 +0200 Subject: [PATCH 042/117] new UI texts, fixing some more typos --- editions/de-AT/tiddlers/Willkommen.tid | 16 ++++++++-------- .../tiddlers/howto/Speichern auf TiddlySpot.tid | 6 +++--- .../tiddlers/howto/Speichern mit Chrome.tid | 4 ++-- .../tiddlers/howto/Speichern mit Safari.tid | 2 +- .../de-AT/tiddlers/lexikon/Status Tiddler.tid | 2 +- .../tiddlers/wikitext/Makros in WikiText.tid | 2 +- .../tiddlers/wikitext/Tabellen in WikiText.tid | 2 +- .../wikitext/Typisierte Blocke in WikiText.tid | 2 +- editions/de-AT/tiddlers/wikitext/WikiText.tid | 2 +- .../tiddlers/wikitext/Zitate in WikiText.tid | 2 +- languages/de-DE/Buttons.multids | 8 ++++++-- languages/de-DE/ControlPanel.multids | 17 ++++++++++------- languages/de-DE/EditTemplate.multids | 4 ++-- languages/de-DE/GettingStarted.tid | 6 +++--- languages/de-DE/Misc.multids | 15 +++++++++------ languages/de-DE/Modals/Download.tid | 6 +++--- languages/de-DE/Modals/SaveInstructions.tid | 12 ++++++------ languages/de-DE/TiddlerInfo.multids | 2 +- 18 files changed, 60 insertions(+), 50 deletions(-) diff --git a/editions/de-AT/tiddlers/Willkommen.tid b/editions/de-AT/tiddlers/Willkommen.tid index c586614ce..fce990a38 100644 --- a/editions/de-AT/tiddlers/Willkommen.tid +++ b/editions/de-AT/tiddlers/Willkommen.tid @@ -6,22 +6,22 @@ tags: InhaltsVerzeichnis Intro title: Willkommen! type: text/vnd.tiddlywiki -~TiddlyWiki ist eine Web-Applikation, die sie frei herunterladen können. Sie können sie speichern, wo sie wollen: +~TiddlyWiki ist eine Web-Applikation, die Sie frei herunterladen können. Sie können sie speichern, wo Sie wollen: -* Auf ihrem Laufwerk, +* Auf Ihrem Laufwerk, * USB-Wechselspeicher -* oder ihrem "Cloud Speicher" +* oder Ihrem "Cloud Speicher" -Sie sind der Herr über ihre Daten! +Sie sind der Herr über Ihre Daten! -Sie können ~TiddlyWiki verwenden um Ihre Notizen zu erstellen / organisieren / oder mit Freunden zu teilen, in einer Weise, die kein anderes Textverarbeitungsprogramm vermag. ~TiddlyWiki speichert ihre Texte in einer "nicht-linearen" Form, mit Hilfe von [[Tags]], [[Hyperlinks]] und vielen weiteren Möglichkeiten. So können sie Ihre Notizen strukturieren, in einer +Sie können ~TiddlyWiki verwenden um Ihre Notizen zu erstellen / organisieren / oder mit Freunden zu teilen, in einer Weise, die kein anderes Textverarbeitungsprogramm vermag. ~TiddlyWiki speichert Ihre Texte in einer "nicht-linearen" Form, mit Hilfe von [[Tags]], [[Hyperlinks]] und vielen weiteren Möglichkeiten. So können Sie Ihre Notizen strukturieren, in einer Weise, die mehr dem entspricht, "wie wir denken", nicht in einem vom Entwickler vorgegebenen starren Korsett. -Sie können TiddlyWiki als eine einzige Datei speichern, die sie mit dem Web-Browser, online oder offline, verwenden können. Für geübte Benutzer kann ~TiddlyWiki als [[Node.js Applikation|Node.js]] verwendet werden, die jeden [[Tiddler]] als einzelne Datei behandelt und dabei als zentrales Archiv fungiert. +Sie können TiddlyWiki als eine einzige Datei speichern, die Sie mit dem Web-Browser, online oder offline, verwenden können. Für geübte Benutzer kann ~TiddlyWiki als [[Node.js Applikation|Node.js]] verwendet werden, die jeden [[Tiddler]] als einzelne Datei behandelt und dabei als zentrales Archiv fungiert. -!!! Wie können sie ~TiddlyWiki nun für sich nutzen? +!!! Wie können Sie ~TiddlyWiki nun für sich nutzen? -* Im Anschluss sind einige Links aufgeführt, mit denen sie starten sollten, oder sie können jederzeit das InhaltsVerzeichnis verwenden. +* Im Anschluss sind einige Links aufgeführt, mit denen Sie starten sollten, oder Sie können jederzeit das InhaltsVerzeichnis verwenden. * Das ~InhaltsVerzeichnis kann auch über den Reiter "Inhalt" auf der rechten Seite aufgerufen werden. diff --git a/editions/de-AT/tiddlers/howto/Speichern auf TiddlySpot.tid b/editions/de-AT/tiddlers/howto/Speichern auf TiddlySpot.tid index f1bf57ee5..0d220b37a 100644 --- a/editions/de-AT/tiddlers/howto/Speichern auf TiddlySpot.tid +++ b/editions/de-AT/tiddlers/howto/Speichern auf TiddlySpot.tid @@ -11,13 +11,13 @@ TiddlySpot ist ein freier Hosting Service von Simon und Daniel Baird. Er ist bei ~TiddlyWiki5 wird momentan noch nicht als Standard Wiki angeboten, Sie können aber folgende Schritte verwenden um ~TiddlyWiki auf ~TiddlySpot zu speichern. # Erstellen Sie ein Wiki auf http://tiddlyspot.com/ und merken Sie sich den Namen und Ihr Passwort! -# Für Österreich: öffnen Sie http://tiddlywiki.com/languages/de-AT/empty.html in ihrem Browser. +# Für Österreich: öffnen Sie http://tiddlywiki.com/languages/de-AT/empty.html in Ihrem Browser. #* Für Deutschland: http://tiddlywiki.com/languages/de-DE/empty.html # Wählen Sie im [[Control Panel|$:/ControlPanel]], den "Speichern" Tab und tragen Sie im "~TiddlySpot" Bereich, den Wiki Namen und das Passwort ein. # Klicken Sie den "Speichern" Button. Nach einiger Zeit, bekommen Sie rechts oben die Mitteilung "Wiki gespeichert". Das Speichern kann je nach Internetverbindung und Wiki Größe einige Sekunden dauern. #* //Das Erstellen eines neuen Wikis funktioniert nicht mit Firefox, da die Sicherheitseinstellungen diese Vorgehensweise nicht erlauben. Google Chrome kann verwendet werden. Ein späteres Editieren von tiddlyspot.com ist auch mit Firefox möglich!// -# Gehen Sie nun zu ihrem Wiki: ~http://{wikiname}.tiddlyspot.com/ +# Gehen Sie nun zu Ihrem Wiki: ~http://{wikiname}.tiddlyspot.com/ # Beim ersten Besuch müssen Sie eventuell den Wiki-Namen und das Passwort neu eingeben. -# Sie sollten jetzt eine Kopie ihres Wikis sehen. Sie können nun Änderungen vornehmen und mit "Speichern" direkt in "die Cloud" speichern. +# Sie sollten jetzt eine Kopie Ihres Wikis sehen. Sie können nun Änderungen vornehmen und mit "Speichern" direkt in "die Cloud" speichern. # Die ~TiddlySpot Verwaltungs-Seite ist unter: ~http://{wikiname}.tiddlyspot.com/controlpanel zu finden. diff --git a/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid b/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid index ebe0bbd0a..ecfd65918 100644 --- a/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid +++ b/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid @@ -14,7 +14,7 @@ Diese Methode ist etwas umständlich, da man Einstellungen immer wieder manuell #> Je nach Browser folgen Sie den Dialogen! # Suchen Sie die eben geladene Datei im Datei Manager. #* Geben Sie der Datei einen vernünftigen Namen und stellen Sie sicher, dass die Endung `.html` oder `.htm` ist. -# Öffnen Sie die Datei mit ihrem Browser. +# Öffnen Sie die Datei mit Ihrem Browser. # Erstellen Sie einen neuen Tiddler mit dem {{$:/core/images/new-button}} ''plus'' im rechten Menü. # Geben Sie den Text ein und bestätigen die Eingabe mit dem {{$:/core/images/done-button}} ''OK''. # Speichern Sie die Änderungen mit: {{$:/core/images/save-button}} ''speichern'' im rechten Menü @@ -22,4 +22,4 @@ Diese Methode ist etwas umständlich, da man Einstellungen immer wieder manuell # Suchen Sie die eben geladene Datei im Datei Manager. # Überprüfen sie, ob die Änderungen richtig gespeichert wurden. -''Tip'': Die meisten Browser haben eine Einstellung, dass der "Datei Speichern" Dialog immer angezeigt wird. Das ermöglicht ihnen, die bestehende Datei auszuwählen und zu überschreiben. +''Tip'': Die meisten Browser haben eine Einstellung, dass der "Datei Speichern" Dialog immer angezeigt wird. Das ermöglicht Ihnen, die bestehende Datei auszuwählen und zu überschreiben. diff --git a/editions/de-AT/tiddlers/howto/Speichern mit Safari.tid b/editions/de-AT/tiddlers/howto/Speichern mit Safari.tid index 508bd75c2..2b2e77b56 100644 --- a/editions/de-AT/tiddlers/howto/Speichern mit Safari.tid +++ b/editions/de-AT/tiddlers/howto/Speichern mit Safari.tid @@ -13,7 +13,7 @@ Diese Methode ist etwas umständlich, da jeder Schritt manuell gemacht werden mu #> Ihr Browser kann eventuell nachfragen, ob die Datei gespeichert werden soll. # Suchen Sie die eben geladene Datei im Datei Manager. #* Geben Sie der Datei einen vernünftigen Namen und stellen Sie sicher, dass die Endung `.html` oder `.htm` ist. -# Öffnen Sie die Datei mit ihrem Browser. +# Öffnen Sie die Datei mit Ihrem Browser. # Erstellen Sie einen neuen Tiddler mit dem {{$:/core/images/new-button}} ''plus'' im rechten Menü. # Geben Sie den Text ein und bestätigen die Eingabe mit dem {{$:/core/images/done-button}} ''OK''. # Speichern Sie die Änderungen mit: {{$:/core/images/save-button}} ''speichern'' im rechten Menü diff --git a/editions/de-AT/tiddlers/lexikon/Status Tiddler.tid b/editions/de-AT/tiddlers/lexikon/Status Tiddler.tid index 58704f3ac..d40e6d907 100644 --- a/editions/de-AT/tiddlers/lexikon/Status Tiddler.tid +++ b/editions/de-AT/tiddlers/lexikon/Status Tiddler.tid @@ -12,7 +12,7 @@ Diese Status Tiddler werden meist mit einem System Prefix versehen, damit sie in Wenn Sie im rechten Menü den Reiter: "Mehr: System" wählen, dann können Sie Status Tiddler mit den Namen: `$:/state/xxxxxx` sehen. -''Wichtig'': `$:/state/*` Tiddler werden nicht gespeichert. Wenn Sie also den Status ihres `<<tabs>>` Makros speichern wollen, dann verwenden Sie einen anderen Namen. zB: `$:/_state/tabx` +''Wichtig'': `$:/state/*` Tiddler werden nicht gespeichert. Wenn Sie also den Status Ihres `<<tabs>>` Makros speichern wollen, dann verwenden Sie einen anderen Namen. zB: `$:/_state/tabx` Siehe auch: diff --git a/editions/de-AT/tiddlers/wikitext/Makros in WikiText.tid b/editions/de-AT/tiddlers/wikitext/Makros in WikiText.tid index 51f149d68..dd336588e 100644 --- a/editions/de-AT/tiddlers/wikitext/Makros in WikiText.tid +++ b/editions/de-AT/tiddlers/wikitext/Makros in WikiText.tid @@ -112,7 +112,7 @@ Rodentville, Ratland.">> ``` -Wenn sie 3 doppelte Anführungszeichen verwenden, dann können die Parameter einfache Anführungszeichen enthalten: +Wenn Sie 3 doppelte Anführungszeichen verwenden, dann können die Parameter einfache Anführungszeichen enthalten: ``` <<meinErstesMakro "Mickey Mouse" """Mouse House, diff --git a/editions/de-AT/tiddlers/wikitext/Tabellen in WikiText.tid b/editions/de-AT/tiddlers/wikitext/Tabellen in WikiText.tid index dfc060812..d18d4b7c4 100644 --- a/editions/de-AT/tiddlers/wikitext/Tabellen in WikiText.tid +++ b/editions/de-AT/tiddlers/wikitext/Tabellen in WikiText.tid @@ -65,7 +65,7 @@ Dargestellt als (der "Rahmen" ist nötig, um die Ausrichtung mit wenig Text sich | ::<br>:: |,unten links |, unten mitte |, unten rechts| ::<br>:: | | :: | ::::::::::::::::::::::::::: | ::::::::::::::::::::::::::: | ::::::::::::::::::::::::::: | :: | -Wenn sie die Zeichen `^` und `,` als erste Zeichen benötigen, dann können sie "HTML escaping" verwenden. +Wenn Sie die Zeichen `^` und `,` als erste Zeichen benötigen, dann können Sie "HTML escaping" verwenden. | `^` | &#94; | | `,` | &#44; | diff --git a/editions/de-AT/tiddlers/wikitext/Typisierte Blocke in WikiText.tid b/editions/de-AT/tiddlers/wikitext/Typisierte Blocke in WikiText.tid index 0599fe9b5..4e4c6b842 100644 --- a/editions/de-AT/tiddlers/wikitext/Typisierte Blocke in WikiText.tid +++ b/editions/de-AT/tiddlers/wikitext/Typisierte Blocke in WikiText.tid @@ -7,7 +7,7 @@ tags: WikiText title: Typisierte Blöcke in WikiText type: text/vnd.tiddlywiki -WikiText kann Textblöcke direkt darstellen, wenn Ihr Inhalts-Typ ([[MIME-Type]]) bekannt ist: +WikiText kann Textblöcke direkt darstellen, wenn ihr Inhalts-Typ ([[MIME-Type]]) bekannt ist: ``` $$$image/svg+xml diff --git a/editions/de-AT/tiddlers/wikitext/WikiText.tid b/editions/de-AT/tiddlers/wikitext/WikiText.tid index 1796d1d81..8ff026af4 100644 --- a/editions/de-AT/tiddlers/wikitext/WikiText.tid +++ b/editions/de-AT/tiddlers/wikitext/WikiText.tid @@ -7,7 +7,7 @@ tags: Konzept Referenz InhaltsVerzeichnis title: WikiText type: text/vnd.tiddlywiki -~WikiText ist eine Auszeichnungssprache, die es erlaubt, auf einfache Weise Texte und ihre Formatierung in Textform einzugeben. Das erlaubt es ihnen, sich auf das Schreiben zu konzentrieren und nicht auf eine komplexe Oberfläche, die vom Wesentlichen ablenkt. Für Anwender, die bereits MarkDown kennen, sollte es relativ leicht sein, sich in ~WikiText einzuarbeiten. WikiText bietet mehr Möglichkeiten zum Verlinken und zur Erstellung von interaktiven Inhalten. +~WikiText ist eine Auszeichnungssprache, die es erlaubt, auf einfache Weise Texte und ihre Formatierung in Textform einzugeben. Das erlaubt es Ihnen, sich auf das Schreiben zu konzentrieren und nicht auf eine komplexe Oberfläche, die vom Wesentlichen ablenkt. Für Anwender, die bereits MarkDown kennen, sollte es relativ leicht sein, sich in ~WikiText einzuarbeiten. WikiText bietet mehr Möglichkeiten zum Verlinken und zur Erstellung von interaktiven Inhalten. Die folgenden Elemente sind im TW Kern enthalten: diff --git a/editions/de-AT/tiddlers/wikitext/Zitate in WikiText.tid b/editions/de-AT/tiddlers/wikitext/Zitate in WikiText.tid index c0bfcef63..49752d691 100644 --- a/editions/de-AT/tiddlers/wikitext/Zitate in WikiText.tid +++ b/editions/de-AT/tiddlers/wikitext/Zitate in WikiText.tid @@ -23,7 +23,7 @@ Das Ergebnis wird zusammenhängend dargestellt. !! Zitat mit Autor -Wenn sie den Autor anführen möchten, dann schreiben sie wie folgt: +Wenn Sie den Autor anführen möchten, dann schreiben Sie wie folgt: <<wikitext-example src:"<<< Computers are like a bicycle for our minds diff --git a/languages/de-DE/Buttons.multids b/languages/de-DE/Buttons.multids index aa5d8c645..8170a7706 100644 --- a/languages/de-DE/Buttons.multids +++ b/languages/de-DE/Buttons.multids @@ -34,10 +34,14 @@ Home/Caption: home Home/Hint: Öffnen der standard (default) Tiddler Language/Caption: Sprache Language/Hint: Auswahl Dialog für die System Sprache -NewTiddler/Caption: neuer Tiddler -NewTiddler/Hint: Erstelle einen neuen Tiddler More/Caption: mehr More/Hint: Weitere Aktionen +NewHere/Caption: neu hier +NewHere/Hint: Erstelle einen neuen Tiddler der mit diesem getaggt ist +NewJournal/Caption: neues Journal +NewJournal/Hint: Erstelle einen neuen Journal Tiddler +NewTiddler/Caption: neuer Tiddler +NewTiddler/Hint: Erstelle einen neuen Tiddler Permalink/Caption: permalink Permalink/Hint: Die Browser Adressleiste enthält einen Link zu diesem Tiddler Permaview/Caption: permaview diff --git a/languages/de-DE/ControlPanel.multids b/languages/de-DE/ControlPanel.multids index 22d63c535..e7df8776e 100755 --- a/languages/de-DE/ControlPanel.multids +++ b/languages/de-DE/ControlPanel.multids @@ -3,13 +3,15 @@ title: $:/language/ControlPanel/ Advanced/Caption: Erweitert Advanced/Hint: Interne Informationen über dieses ~TiddlyWiki. Appearance/Caption: Design -Appearance/Hint: Möglichkeiten um das Aussehen ihres ~TiddlyWiki's anzupassen. +Appearance/Hint: Möglichkeiten um das Aussehen Ihres ~TiddlyWiki's anzupassen. Basics/AnimDuration/Prompt: Animation Dauer: Basics/Caption: Basis -Basics/DefaultTiddlers/BottomHint: Verwenden sie [[doppelte eckige Klammern]] für Titel mit Leerzeichen oder wählen sie <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">Offene Tiddler beim Laden wiederherstellen.</$button> +Basics/DefaultTiddlers/BottomHint: Verwenden Sie [[doppelte eckige Klammern]] für Titel mit Leerzeichen oder wählen Sie <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">Offene Tiddler beim Laden wiederherstellen.</$button> Basics/DefaultTiddlers/Prompt: Standard Tiddler: Basics/DefaultTiddlers/TopHint: Tiddler, die beim Start geladen werden: Basics/Language/Prompt: Hallo! Aktuelle Sprache: +Basics/NewJournal/Title/Prompt: Titel des neuen Journal Tiddlers +Basics/NewJournal/Tags/Prompt: Tags des neuen Journal Tiddlers Basics/OverriddenShadowTiddlers/Prompt: Anzahl überschriebener Schatten-Tiddler: Basics/ShadowTiddlers/Prompt: Anzahl Schatten-Tiddler: Basics/Subtitle/Prompt: Untertitel: @@ -29,7 +31,7 @@ LoadedModules/Caption: Geladene Module LoadedModules/Hint: Hier werden die geladenen Module und ihre Quelltext Komponenten angezeigt. Mit "italic" hervorgehobene Tiddler wurden während des Boot-Prozesses erstellt. Diese Tiddler haben keinen Quelltext. Palette/Caption: Palette Palette/Editor/Clone/Caption: Palette klonen -Palette/Editor/Clone/Prompt: Es wird empfohlen, dass sie diese Schatten-Palette klonen, bevor sie sie bearbeiten. Der Name der Palette wird im Tiddler Feld "description" eingestellt. +Palette/Editor/Clone/Prompt: Es wird empfohlen, dass Sie diese Schatten-Palette klonen, bevor Sie sie bearbeiten. Der Name der Palette wird im Tiddler Feld "description" eingestellt. Palette/Editor/Prompt/Modified: Diese Schatten-Palette wurde bearbeitet. Palette/Editor/Prompt: Bearbeiten Palette/Editor/Reset/Caption: Palette zurücksetzen @@ -38,11 +40,11 @@ Palette/Prompt: Ausgewählte Farbpalette: Palette/ShowEditor/Caption: Editor zeigen Plugins/Caption: Plugins Plugins/Disable/Caption: deaktivieren -Plugins/Disable/Hint: Deaktivieren sie dieses Plugin beim nächsten Laden der Seite. +Plugins/Disable/Hint: Deaktivieren Sie dieses Plugin beim nächsten Laden der Seite. Plugins/Disabled/Status: (deaktiviert) Plugins/Empty/Hint: keine Plugins/Enable/Caption: aktivieren -Plugins/Enable/Hint: Aktivieren sie dieses Plugin beim nächsten Laden der Seite. +Plugins/Enable/Hint: Aktivieren Sie dieses Plugin beim nächsten Laden der Seite. Plugins/Language/Prompt: Sprachen Plugins/Plugin/Prompt: Plugins Plugins/Theme/Prompt: Themen @@ -51,6 +53,7 @@ Saving/Heading: Speichern Saving/TiddlySpot/Advanced/Heading: Erweiterte Einstellungen Saving/TiddlySpot/BackupDir: "Backup" Verzeichnis Saving/TiddlySpot/Backups: "Backups" +Saving/TiddlySpot/Description: Diese Einstellungen sind nur für http://tiddlyspot.com und kompatible Server aktiv! Saving/TiddlySpot/Filename: "Upload" Dateiname Saving/TiddlySpot/Heading: ~TiddlySpot Saving/TiddlySpot/Hint: //Die standard Server URL ist `http://<wikiname>.tiddlyspot.com/store.cgi` und kann im Feld 'Server URL' verändert werden.// @@ -63,7 +66,7 @@ Settings/AutoSave/Disabled/Description: Änderungen NICHT automatisch speichern Settings/AutoSave/Enabled/Description: Änderungen automatisch speichern Settings/AutoSave/Hint: Änderungen des Wikis automatisch speichern Settings/Caption: Einstellungen -Settings/Hint: Diese erweiterten Einstellungen ermöglichen ihnen, das Verhalten von TiddlyWiki zu ändern. +Settings/Hint: Diese erweiterten Einstellungen ermöglichen Ihnen, das Verhalten von TiddlyWiki zu ändern. Settings/NavigationAddressBar/Caption: Navigation Adresszeile Settings/NavigationAddressBar/Hint: Verhalten der Browser Adresszeile, wenn ein Tiddler geöffnet wird: Settings/NavigationAddressBar/No/Description: Die Browser Adresszeile wird nicht verändert. @@ -82,7 +85,7 @@ StoryView/Prompt: Ausgewählte Anzeige: Theme/Caption: Thema Theme/Prompt: Ausgewähltes Thema: TiddlerFields/Caption: Tiddler Felder -TiddlerFields/Hint: Hier finden sie alle [[Felder|TiddlerFields]], die in diesem Wiki verwendet werden. Inklusive der Felder aus System-, exklusive Schatten-Tiddler. +TiddlerFields/Hint: Hier finden Sie alle [[Felder|TiddlerFields]], die in diesem Wiki verwendet werden. Inklusive der Felder aus System-, exklusive Schatten-Tiddler. Toolbars/Caption: Toolbar Toolbars/EditToolbar/Caption: Edit Toolbar Toolbars/EditToolbar/Hint: Auswählen, welche Buttons im "Edit Modus" angezeigt werden: diff --git a/languages/de-DE/EditTemplate.multids b/languages/de-DE/EditTemplate.multids index b05f1118a..201f3ab0c 100644 --- a/languages/de-DE/EditTemplate.multids +++ b/languages/de-DE/EditTemplate.multids @@ -1,7 +1,7 @@ title: $:/language/EditTemplate/ Body/External/Hint: Diese ist ein externer Tiddler, der nicht im TW file gespeichert ist. Sie können die "Tags" und "Feld" Texte ändern, jedoch nicht den Inhalt des Tiddlers! -Body/Hint: Verwenden sie [[WikiText|http://tiddlywiki.com/static/WikiText.html]] zum Formatieren. +Body/Hint: Verwenden Sie [[WikiText|http://tiddlywiki.com/static/WikiText.html]] zum Formatieren. Body/Placeholder: Geben Sie den Text für diesen Tiddler ein. Body/Preview/Button/Hide: Vorschau aus Body/Preview/Button/Show: Vorschau @@ -10,7 +10,7 @@ Fields/Add/Name/Placeholder: Feld Name Fields/Add/Prompt: Feld einfügen: Fields/Add/Value/Placeholder: Feld Text / Wert Shadow/Warning: Dies ist ein Schatten-Tiddler. Jede Änderung überschreibt die Standardversion. -Shadow/OverriddenWarning: Dies ist ein veränderter Tiddler. Um zur Standardversion zurück zu kehren, löschen sie diesen Tiddler. +Shadow/OverriddenWarning: Dies ist ein veränderter Tiddler. Um zur Standardversion zurück zu kehren, löschen Sie diesen Tiddler. Tags/Add/Button: ok Tags/Add/Placeholder: neuer Tag Type/Placeholder: Tiddler Format diff --git a/languages/de-DE/GettingStarted.tid b/languages/de-DE/GettingStarted.tid index 5e3ebd6db..4a714cc70 100755 --- a/languages/de-DE/GettingStarted.tid +++ b/languages/de-DE/GettingStarted.tid @@ -2,7 +2,7 @@ title: GettingStarted Willkommen bei TiddlyWiki, einem persönlichen nicht-linearen Web-Notizbuch. -Vor dem Start, vergewissern sie sich, dass sie dieses Wiki auch wirklich speichern können. Weitere Informationen finden sie für: +Vor dem Start, vergewissern Sie sich, dass Sie dieses Wiki auch wirklich speichern können. Weitere Informationen finden Sie für: * Österreich: http://tiddlywiki.com/languages/de-AT * Deutschland: http://tiddlywiki.com/languages/de-DE @@ -10,9 +10,9 @@ Vor dem Start, vergewissern sie sich, dass sie dieses Wiki auch wirklich speiche Erste Schritte: -* Erstellen sie einen neuen Tiddler mit dem "Plus-Button" in der rechten Navigationsleiste. +* Erstellen Sie einen neuen Tiddler mit dem "Plus-Button" in der rechten Navigationsleiste. * Einstellungen können im [[Kontrollpanel|$:/ControlPanel]] vorgenommen werden. Siehe: "Zahnrad-Button" -** Das Anzeigen dieses Tiddlers können sie verhindern, indem sie die "~DefaultTiddlers" im ''Basis-Tab'' verändern. +** Das Anzeigen dieses Tiddlers können Sie verhindern, indem Sie die "~DefaultTiddlers" im ''Basis-Tab'' verändern. * Speichern wird mit dem "Speichern-Button" in der Navigationsleiste ausgelöst. * Österreich: [[Weitere Informationen zu WikiText|http://tiddlywiki.com/languages/de-AT/index.html#WikiText]] * Deutschland: [[Weitere Informationen zu WikiText|http://tiddlywiki.com/languages/de-DE/index.html#WikiText]] diff --git a/languages/de-DE/Misc.multids b/languages/de-DE/Misc.multids index 0a369b278..c170f90ab 100644 --- a/languages/de-DE/Misc.multids +++ b/languages/de-DE/Misc.multids @@ -1,16 +1,19 @@ title: $:/language/ BinaryWarning/Prompt: Dieser Tiddler enthält binäre Daten. -ClassicWarning/Hint: Dieser Tiddler wurde im TiddlyWiki Classic Format erstellt. Dieses Format ist nur teilweise kompatibel mit TiddlyWiki Version 5. Mehr Info finden sie unter: http://tiddlywiki.com/static/Upgrading.html +ClassicWarning/Hint: Dieser Tiddler wurde im TiddlyWiki Classic Format erstellt. Dieses Format ist nur teilweise kompatibel mit TiddlyWiki Version 5. Mehr Info finden Sie unter: http://tiddlywiki.com/static/Upgrading.html ClassicWarning/Upgrade/Caption: upgrade CloseAll/Button: alle schließen -ConfirmCancelTiddler: Wollen sie die Änderungen im Tiddler: "<$text text=<<title>>/>" verwerfen? -ConfirmDeleteTiddler: Wollen sie den Tiddler: "<$text text=<<title>>/>" löschen? +ConfirmCancelTiddler: Wollen Sie die Änderungen im Tiddler: "<$text text=<<title>>/>" verwerfen? +ConfirmDeleteTiddler: Wollen Sie den Tiddler: "<$text text=<<title>>/>" löschen? ConfirmOverwriteTiddler: Tiddler: "<$text text=<<title>>/>" existiert! OK überschreibt den tiddler! -ConfirmEditShadowTiddler: Sie sind dabei, einen Schatten-Tiddler zu verändern. Zukünftige, automatische Anpassungen werden dadurch unterdrückt. Sie können ihre Änderungen rückgängig machen, indem sie diesen Tiddler wieder löschen. Wollen sie den Tiddler: "<$text text=<<title>>/>" ändern? +ConfirmEditShadowTiddler: Sie sind dabei, einen Schatten-Tiddler zu verändern. Zukünftige, automatische Anpassungen werden dadurch unterdrückt. Sie können Ihre Änderungen rückgängig machen, indem Sie diesen Tiddler wieder löschen. Wollen Sie den Tiddler: "<$text text=<<title>>/>" ändern? +DefaultNewTiddlerTitle: Neuer Tiddler DropMessage: Hierher ziehen (oder Escape um abzubrechen) +Encryption/ConfirmClearPassword: Wollen Sie das Passwort löschen? Damit wird die Verschlüsselung beim nächsten Speichervorgang abgeschalten! +Encryption/PromptSetPassword: Der TiddlyWiki Inhalt wird mit dem nächsten Speichern verschlüsselt! InvalidFieldName: Das Feld: "<$text text=<<fieldName>>/>" enthält illegale Zeichen. Felder müssen klein geschrieben werden. Erlaubte Sonderzeichen sind: Zahlen, Unterstrich (`_`), Minus (`-`) und Punkt (`.`). -MissingTiddler/Hint: Fehlender Tiddler "<$text text=<<currentTiddler>>/>" - klicken sie {{$:/core/images/edit-button}} um ihn zu erzeugen. +MissingTiddler/Hint: Fehlender Tiddler "<$text text=<<currentTiddler>>/>" - klicken Sie {{$:/core/images/edit-button}} um ihn zu erzeugen. RecentChanges/DateFormat: DDth MMM YYYY RelativeDate/Future/Days: in <<period>> Tagen RelativeDate/Future/Hours: in <<period>> Stunden @@ -30,4 +33,4 @@ SystemTiddler/Tooltip: Das ist ein System-Tiddler TagManager/Colour/Heading: Farbe TagManager/Icon/Heading: Symbol TagManager/Tag/Heading: Tag -UnsavedChangesWarning: TiddlyWiki wurde geändert, aber noch nicht gespeichert! \ No newline at end of file +UnsavedChangesWarning: TiddlyWiki wurde geändert, aber noch nicht gespeichert! diff --git a/languages/de-DE/Modals/Download.tid b/languages/de-DE/Modals/Download.tid index ae7cd7946..4c816d029 100644 --- a/languages/de-DE/Modals/Download.tid +++ b/languages/de-DE/Modals/Download.tid @@ -6,8 +6,8 @@ help: http://tiddlywiki.com/static/DownloadingChanges.html Ihr Browser unterstützt nur manuelles Speichern. -Um das geänderte Wiki zu speichern, machen sie einen "rechts klick" auf den folgenden Link. Wählen sie "Datei herunterladen" oder "Datei speichern" und wählen sie Name und Verzeichnis. +Um das geänderte Wiki zu speichern, machen Sie einen "rechts klick" auf den folgenden Link. Wählen Sie "Datei herunterladen" oder "Datei speichern" und wählen Sie Name und Verzeichnis. -//Sie können den Vorgang etwas beschleunigen, indem sie die "Control-Taste" (Windows) oder die "Options/Alt-Taste" (Max OS X) drücken. Es wird kein "Speichern Dialog" erscheinen. Jedoch wird bei einigen Browsern die Datei einen zufälligen Namen bekommen. Sie müssen die Datei eventuell umbenennen, um sie öffnen zu können.// +//Sie können den Vorgang etwas beschleunigen, indem Sie die "Control-Taste" (Windows) oder die "Options/Alt-Taste" (Max OS X) drücken. Es wird kein "Speichern Dialog" erscheinen. Jedoch wird bei einigen Browsern die Datei einen zufälligen Namen bekommen. Sie müssen die Datei eventuell umbenennen, um sie öffnen zu können.// -Bei "Smartphones", die das Speichern von Dateien nicht erlauben, können sie ein Lesezeichen erstellen, dass mit ihrem PC synchronisiert wird. Dort können sie die Dateien dann wie gewohnt speichern. +Bei "Smartphones", die das Speichern von Dateien nicht erlauben, können Sie ein Lesezeichen erstellen, dass mit Ihrem PC synchronisiert wird. Dort können Sie die Dateien dann wie gewohnt speichern. diff --git a/languages/de-DE/Modals/SaveInstructions.tid b/languages/de-DE/Modals/SaveInstructions.tid index caf65e688..f34cf0f63 100644 --- a/languages/de-DE/Modals/SaveInstructions.tid +++ b/languages/de-DE/Modals/SaveInstructions.tid @@ -8,16 +8,16 @@ Ihre Änderungen sollen als ~TiddlyWiki HTML Datei gespeichert werden. !!! Desktop Browser -# Verwenden sie ''Speichern unter'' aus dem ''Datei'' Menü. -# Wählen sie den Dateinamen und das Verzeichnis. +# Verwenden Sie ''Speichern unter'' aus dem ''Datei'' Menü. +# Wählen Sie den Dateinamen und das Verzeichnis. -#* Bei einigen Browsern müssen sie das Format explizit angeben. Zb: ''Webseite, nur HTML'' oder ähnliches. +#* Bei einigen Browsern müssen Sie das Format explizit angeben. Zb: ''Webseite, nur HTML'' oder ähnliches. # Den Browser-Tab schließen. !!! Smartphone Browser -# Erstellen sie ein "Lesezeichen" -#* Wenn sie "iCloud" oder "Google Sync" verwenden, dann werden ihre Daten automatisch mit dem Desktop PC synchronisiert. Dort können sie wie oben beschrieben fortfahren. +# Erstellen Sie ein "Lesezeichen" +#* Wenn Sie "iCloud" oder "Google Sync" verwenden, dann werden Ihre Daten automatisch mit dem Desktop PC synchronisiert. Dort können Sie wie oben beschrieben fortfahren. # Den Browser-Tab schließen. -//Wenn sie das Lesezeichen mit "Mobile Safari" öffnen, dann wird diese Meldung erneut angezeigt. Klicken sie ''Schließen'' um fort zu fahren.// +//Wenn Sie das Lesezeichen mit "Mobile Safari" öffnen, dann wird diese Meldung erneut angezeigt. Klicken Sie ''Schließen'' um fort zu fahren.// diff --git a/languages/de-DE/TiddlerInfo.multids b/languages/de-DE/TiddlerInfo.multids index 19049a811..122890677 100755 --- a/languages/de-DE/TiddlerInfo.multids +++ b/languages/de-DE/TiddlerInfo.multids @@ -8,7 +8,7 @@ Advanced/ShadowInfo/Heading: Shatten Status Advanced/ShadowInfo/NotShadow/Hint: Der Tiddler: <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> ist kein Schatten-Tiddler. Advanced/ShadowInfo/Shadow/Hint: Der Tiddler: <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> ist ein Schatten-Tiddler. Advanced/ShadowInfo/Shadow/Source: Er ist definiert im Plugin: <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>. -Advanced/ShadowInfo/OverriddenShadow/Hint: Der originale Schatten-Tiddler wurde durch diesen Tiddler überschrieben. Wenn sie diesen Tiddler löschen, wird der originale Schatten-Tiddler wieder aktiv. Vorher eventuell eine Sicherungskopie erstellen! +Advanced/ShadowInfo/OverriddenShadow/Hint: Der originale Schatten-Tiddler wurde durch diesen Tiddler überschrieben. Wenn Sie diesen Tiddler löschen, wird der originale Schatten-Tiddler wieder aktiv. Vorher eventuell eine Sicherungskopie erstellen! Fields/Caption: Felder List/Caption: Liste List/Empty: Dieser Tiddler hat kein "list" Feld. From c6951ee912d1f2717a8c208cbb920e54edf9e5d9 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 10:33:08 +0100 Subject: [PATCH 043/117] Make date format strings be translateable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note for translators: I’m planning to release 5.1.3 later today. Fixes #954 --- core/language/en-GB/Misc.multids | 71 +++++++++++++++++ core/modules/config.js | 14 ---- core/modules/utils/utils.js | 129 ++++++++++++++++++++++--------- 3 files changed, 164 insertions(+), 50 deletions(-) diff --git a/core/language/en-GB/Misc.multids b/core/language/en-GB/Misc.multids index 8d91730cb..cf5d980a1 100644 --- a/core/language/en-GB/Misc.multids +++ b/core/language/en-GB/Misc.multids @@ -8,6 +8,77 @@ ConfirmCancelTiddler: Do you wish to discard changes to the tiddler "<$text text ConfirmDeleteTiddler: Do you wish to delete the tiddler "<$text text=<<title>>/>"? ConfirmOverwriteTiddler: Do you wish to overwrite the tiddler "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit "<$text text=<<title>>/>"? +Date/DaySuffix/1: st +Date/DaySuffix/2: nd +Date/DaySuffix/3: rd +Date/DaySuffix/4: th +Date/DaySuffix/5: th +Date/DaySuffix/6: th +Date/DaySuffix/7: th +Date/DaySuffix/8: th +Date/DaySuffix/9: th +Date/DaySuffix/10: th +Date/DaySuffix/11: th +Date/DaySuffix/12: th +Date/DaySuffix/13: th +Date/DaySuffix/14: th +Date/DaySuffix/15: th +Date/DaySuffix/16: th +Date/DaySuffix/17: th +Date/DaySuffix/18: th +Date/DaySuffix/19: th +Date/DaySuffix/20: th +Date/DaySuffix/21: st +Date/DaySuffix/22: nd +Date/DaySuffix/23: rd +Date/DaySuffix/24: th +Date/DaySuffix/25: th +Date/DaySuffix/26: th +Date/DaySuffix/27: th +Date/DaySuffix/28: th +Date/DaySuffix/29: th +Date/DaySuffix/30: th +Date/DaySuffix/31: st +Date/Long/Day/0: Sunday +Date/Long/Day/1: Monday +Date/Long/Day/2: Tuesday +Date/Long/Day/3: Wednesday +Date/Long/Day/4: Thursday +Date/Long/Day/5: Friday +Date/Long/Day/6: Saturday +Date/Long/Month/1: January +Date/Long/Month/2: February +Date/Long/Month/3: March +Date/Long/Month/4: April +Date/Long/Month/5: May +Date/Long/Month/6: June +Date/Long/Month/7: July +Date/Long/Month/8: August +Date/Long/Month/9: September +Date/Long/Month/10: October +Date/Long/Month/11: November +Date/Long/Month/12: December +Date/Period/am: am +Date/Period/pm: pm +Date/Short/Day/0: Sun +Date/Short/Day/1: Mon +Date/Short/Day/2: Tue +Date/Short/Day/3: Wed +Date/Short/Day/4: Thu +Date/Short/Day/5: Fri +Date/Short/Day/6: Sat +Date/Short/Month/1: Jan +Date/Short/Month/2: Feb +Date/Short/Month/3: Mar +Date/Short/Month/4: Apr +Date/Short/Month/5: May +Date/Short/Month/6: Jun +Date/Short/Month/7: Jul +Date/Short/Month/8: Aug +Date/Short/Month/9: Sep +Date/Short/Month/10: Oct +Date/Short/Month/11: Nov +Date/Short/Month/12: Dec DefaultNewTiddlerTitle: New Tiddler DropMessage: Drop here (or click escape to cancel) Encryption/ConfirmClearPassword: Do you wish to clear the password? This will remove the encryption applied when saving this wiki diff --git a/core/modules/config.js b/core/modules/config.js index a7d90082b..c9996f62c 100644 --- a/core/modules/config.js +++ b/core/modules/config.js @@ -17,20 +17,6 @@ exports.preferences = {}; exports.preferences.notificationDuration = 3 * 1000; exports.preferences.jsonSpaces = 4; -exports.dateFormats = { - months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November","December"], - days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], - shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], - shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], -// suffixes for dates, eg "1st","2nd","3rd"..."30th","31st" - daySuffixes: ["st","nd","rd","th","th","th","th","th","th","th", - "th","th","th","th","th","th","th","th","th","th", - "st","nd","rd","th","th","th","th","th","th","th", - "st"], - am: "am", - pm: "pm" -}; - exports.htmlEntities = {quot:34, amp:38, apos:39, lt:60, gt:62, nbsp:160, iexcl:161, cent:162, pound:163, curren:164, yen:165, brvbar:166, sect:167, uml:168, copy:169, ordf:170, laquo:171, not:172, shy:173, reg:174, macr:175, deg:176, plusmn:177, sup2:178, sup3:179, acute:180, micro:181, para:182, middot:183, cedil:184, sup1:185, ordm:186, raquo:187, frac14:188, frac12:189, frac34:190, iquest:191, Agrave:192, Aacute:193, Acirc:194, Atilde:195, Auml:196, Aring:197, AElig:198, Ccedil:199, Egrave:200, Eacute:201, Ecirc:202, Euml:203, Igrave:204, Iacute:205, Icirc:206, Iuml:207, ETH:208, Ntilde:209, Ograve:210, Oacute:211, Ocirc:212, Otilde:213, Ouml:214, times:215, Oslash:216, Ugrave:217, Uacute:218, Ucirc:219, Uuml:220, Yacute:221, THORN:222, szlig:223, agrave:224, aacute:225, acirc:226, atilde:227, auml:228, aring:229, aelig:230, ccedil:231, egrave:232, eacute:233, ecirc:234, euml:235, igrave:236, iacute:237, icirc:238, iuml:239, eth:240, ntilde:241, ograve:242, oacute:243, ocirc:244, otilde:245, ouml:246, divide:247, oslash:248, ugrave:249, uacute:250, ucirc:251, uuml:252, yacute:253, thorn:254, yuml:255, OElig:338, oelig:339, Scaron:352, scaron:353, Yuml:376, fnof:402, circ:710, tilde:732, Alpha:913, Beta:914, Gamma:915, Delta:916, Epsilon:917, Zeta:918, Eta:919, Theta:920, Iota:921, Kappa:922, Lambda:923, Mu:924, Nu:925, Xi:926, Omicron:927, Pi:928, Rho:929, Sigma:931, Tau:932, Upsilon:933, Phi:934, Chi:935, Psi:936, Omega:937, alpha:945, beta:946, gamma:947, delta:948, epsilon:949, zeta:950, eta:951, theta:952, iota:953, kappa:954, lambda:955, mu:956, nu:957, xi:958, omicron:959, pi:960, rho:961, sigmaf:962, sigma:963, tau:964, upsilon:965, phi:966, chi:967, psi:968, omega:969, thetasym:977, upsih:978, piv:982, ensp:8194, emsp:8195, thinsp:8201, zwnj:8204, zwj:8205, lrm:8206, rlm:8207, ndash:8211, mdash:8212, lsquo:8216, rsquo:8217, sbquo:8218, ldquo:8220, rdquo:8221, bdquo:8222, dagger:8224, Dagger:8225, bull:8226, hellip:8230, permil:8240, prime:8242, Prime:8243, lsaquo:8249, rsaquo:8250, oline:8254, frasl:8260, euro:8364, image:8465, weierp:8472, real:8476, trade:8482, alefsym:8501, larr:8592, uarr:8593, rarr:8594, darr:8595, harr:8596, crarr:8629, lArr:8656, uArr:8657, rArr:8658, dArr:8659, hArr:8660, forall:8704, part:8706, exist:8707, empty:8709, nabla:8711, isin:8712, notin:8713, ni:8715, prod:8719, sum:8721, minus:8722, lowast:8727, radic:8730, prop:8733, infin:8734, ang:8736, and:8743, or:8744, cap:8745, cup:8746, int:8747, there4:8756, sim:8764, cong:8773, asymp:8776, ne:8800, equiv:8801, le:8804, ge:8805, sub:8834, sup:8835, nsub:8836, sube:8838, supe:8839, oplus:8853, otimes:8855, perp:8869, sdot:8901, lceil:8968, rceil:8969, lfloor:8970, rfloor:8971, lang:9001, rang:9002, loz:9674, spades:9824, clubs:9827, hearts:9829, diams:9830 }; exports.htmlVoidElements = "area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr".split(","); diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index 2afcd136c..cc083a958 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -168,60 +168,117 @@ exports.slowInSlowOut = function(t) { }; exports.formatDateString = function(date,template) { - var t = template.replace(/0hh12/g,$tw.utils.pad($tw.utils.getHours12(date))); - t = t.replace(/hh12/g,$tw.utils.getHours12(date)); - t = t.replace(/0hh/g,$tw.utils.pad(date.getHours())); - t = t.replace(/hh/g,date.getHours()); - t = t.replace(/mmm/g,$tw.config.dateFormats.shortMonths[date.getMonth()]); - t = t.replace(/0mm/g,$tw.utils.pad(date.getMinutes())); - t = t.replace(/mm/g,date.getMinutes()); - t = t.replace(/0ss/g,$tw.utils.pad(date.getSeconds())); - t = t.replace(/ss/g,date.getSeconds()); - t = t.replace(/[ap]m/g,$tw.utils.getAmPm(date).toLowerCase()); - t = t.replace(/[AP]M/g,$tw.utils.getAmPm(date).toUpperCase()); - t = t.replace(/wYYYY/g,$tw.utils.getYearForWeekNo(date)); - t = t.replace(/wYY/g,$tw.utils.pad($tw.utils.getYearForWeekNo(date)-2000)); - t = t.replace(/YYYY/g,date.getFullYear()); - t = t.replace(/YY/g,$tw.utils.pad(date.getFullYear()-2000)); - t = t.replace(/MMM/g,$tw.config.dateFormats.months[date.getMonth()]); - t = t.replace(/0MM/g,$tw.utils.pad(date.getMonth()+1)); - t = t.replace(/MM/g,date.getMonth()+1); - t = t.replace(/0WW/g,$tw.utils.pad($tw.utils.getWeek(date))); - t = t.replace(/WW/g,$tw.utils.getWeek(date)); - t = t.replace(/DDD/g,$tw.config.dateFormats.days[date.getDay()]); - t = t.replace(/ddd/g,$tw.config.dateFormats.shortDays[date.getDay()]); - t = t.replace(/0DD/g,$tw.utils.pad(date.getDate())); - t = t.replace(/DDth/g,date.getDate()+$tw.utils.getDaySuffix(date)); - t = t.replace(/DD/g,date.getDate()); - var tz = date.getTimezoneOffset(); - var atz = Math.abs(tz); - t = t.replace(/TZD/g,(tz < 0 ? '+' : '-') + $tw.utils.pad(Math.floor(atz / 60)) + ':' + $tw.utils.pad(atz % 60)); + var t = template; + t = t.replace(/0hh12/g,function() { + return $tw.utils.pad($tw.utils.getHours12(date)); + }); + t = t.replace(/hh12/g,function() { + return $tw.utils.getHours12(date); + }); + t = t.replace(/0hh/g,function() { + return $tw.utils.pad(date.getHours()); + }); + t = t.replace(/hh/g,function() { + return date.getHours(); + }); + t = t.replace(/mmm/g,function() { + return $tw.language.getString("Date/Short/Month/" + (date.getMonth() + 1)); + }); + t = t.replace(/0mm/g,function() { + return $tw.utils.pad(date.getMinutes()); + }); + t = t.replace(/mm/g,function() { + return date.getMinutes(); + }); + t = t.replace(/0ss/g,function() { + return $tw.utils.pad(date.getSeconds()); + }); + t = t.replace(/ss/g,function() { + return date.getSeconds(); + }); + t = t.replace(/[ap]m/g,function() { + return $tw.utils.getAmPm(date).toLowerCase(); + }); + t = t.replace(/[AP]M/g,function() { + return $tw.utils.getAmPm(date).toUpperCase(); + }); + t = t.replace(/wYYYY/g,function() { + return $tw.utils.getYearForWeekNo(date); + }); + t = t.replace(/wYY/g,function() { + return $tw.utils.pad($tw.utils.getYearForWeekNo(date)-2000); + }); + t = t.replace(/YYYY/g,function() { + return date.getFullYear(); + }); + t = t.replace(/YY/g,function() { + return $tw.utils.pad(date.getFullYear()-2000); + }); + t = t.replace(/MMM/g,function() { + return $tw.language.getString("Date/Long/Month/" + (date.getMonth() + 1)); + }); + t = t.replace(/0MM/g,function() { + return $tw.utils.pad(date.getMonth()+1); + }); + t = t.replace(/MM/g,function() { + return date.getMonth() + 1; + }); + t = t.replace(/0WW/g,function() { + return $tw.utils.pad($tw.utils.getWeek(date)); + }); + t = t.replace(/WW/g,function() { + return $tw.utils.getWeek(date); + }); + t = t.replace(/DDD/g,function() { + return $tw.language.getString("Date/Long/Day/" + date.getDay()); + }); + t = t.replace(/ddd/g,function() { + return $tw.language.getString("Date/Short/Day/" + date.getDay()); + }); + t = t.replace(/0DD/g,function() { + return $tw.utils.pad(date.getDate()); + }); + t = t.replace(/DDth/g,function() { + return date.getDate() + $tw.utils.getDaySuffix(date); + }); + t = t.replace(/DD/g,function() { + return date.getDate(); + }); + t = t.replace(/TZD/g,function() { + var tz = date.getTimezoneOffset(), + atz = Math.abs(tz); + return (tz < 0 ? '+' : '-') + $tw.utils.pad(Math.floor(atz / 60)) + ':' + $tw.utils.pad(atz % 60); + }); t = t.replace(/\\(.)/g,"$1"); return t; }; exports.getAmPm = function(date) { - return date.getHours() >= 12 ? $tw.config.dateFormats.pm : $tw.config.dateFormats.am; + return $tw.language.getString("Date/Period/" + (date.getHours() >= 12 ? "pm" : "am")); }; exports.getDaySuffix = function(date) { - return $tw.config.dateFormats.daySuffixes[date.getDate()-1]; + return $tw.language.getString("Date/DaySuffix/" + date.getDate()); }; exports.getWeek = function(date) { var dt = new Date(date.getTime()); var d = dt.getDay(); - if(d === 0) d=7;// JavaScript Sun=0, ISO Sun=7 - dt.setTime(dt.getTime()+(4-d)*86400000);// shift day to Thurs of same week to calculate weekNo - var n = Math.floor((dt.getTime()-new Date(dt.getFullYear(),0,1)+3600000)/86400000); - return Math.floor(n/7)+1; + if(d === 0) { + d = 7; // JavaScript Sun=0, ISO Sun=7 + } + dt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week to calculate weekNo + var n = Math.floor((dt.getTime()-new Date(dt.getFullYear(),0,1) + 3600000) / 86400000); + return Math.floor(n / 7) + 1; }; exports.getYearForWeekNo = function(date) { var dt = new Date(date.getTime()); var d = dt.getDay(); - if(d === 0) d=7;// JavaScript Sun=0, ISO Sun=7 - dt.setTime(dt.getTime()+(4-d)*86400000);// shift day to Thurs of same week + if(d === 0) { + d = 7; // JavaScript Sun=0, ISO Sun=7 + } + dt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week return dt.getFullYear(); }; From 01b515a4f4ff82d9e5164f03333a619b1019c46d Mon Sep 17 00:00:00 2001 From: Bram Chen <bram.chen@gmail.com> Date: Thu, 9 Oct 2014 18:29:14 +0800 Subject: [PATCH 044/117] Add chinese date format strings --- languages/zh-Hans/Misc.multids | 40 ++++++++++++++++++++++++++++++++++ languages/zh-Hant/Misc.multids | 40 ++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/languages/zh-Hans/Misc.multids b/languages/zh-Hans/Misc.multids index 8c973f4a8..55597f4e2 100644 --- a/languages/zh-Hans/Misc.multids +++ b/languages/zh-Hans/Misc.multids @@ -8,6 +8,46 @@ ConfirmCancelTiddler: 您确定要放弃对条目 "<$text text=<<title>>/>" 的 ConfirmDeleteTiddler: 您确定要删除条目 "<$text text=<<title>>/>"? ConfirmOverwriteTiddler: 您确定要覆写条目 "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: 您即将要编辑默认条目,任何更改将会覆盖默认的系统,使未来的升级不寻常。您确定要编辑 "<$text text=<<title>>/>"? +Date/Long/Day/0: 周日 +Date/Long/Day/1: 周一 +Date/Long/Day/2: 周二 +Date/Long/Day/3: 周三 +Date/Long/Day/4: 周四 +Date/Long/Day/5: 周五 +Date/Long/Day/6: 周六 +Date/Long/Month/1: 一月 +Date/Long/Month/2: 二月 +Date/Long/Month/3: 三月 +Date/Long/Month/4: 四月 +Date/Long/Month/5: 五月 +Date/Long/Month/6: 六月 +Date/Long/Month/7: 七月 +Date/Long/Month/8: 八月 +Date/Long/Month/9: 九月 +Date/Long/Month/10: 十月 +Date/Long/Month/11: 十一月 +Date/Long/Month/12: 十二月 +Date/Period/am: 上午 +Date/Period/pm: 下午 +Date/Short/Day/0: 日 +Date/Short/Day/1: 一 +Date/Short/Day/2: 二 +Date/Short/Day/3: 三 +Date/Short/Day/4: 四 +Date/Short/Day/5: 五 +Date/Short/Day/6: 六 +Date/Short/Month/1: 01月 +Date/Short/Month/2: 02月 +Date/Short/Month/3: 03月 +Date/Short/Month/4: 04月 +Date/Short/Month/5: 05月 +Date/Short/Month/6: 06月 +Date/Short/Month/7: 07月 +Date/Short/Month/8: 08月 +Date/Short/Month/9: 09月 +Date/Short/Month/10: 10月 +Date/Short/Month/11: 11月 +Date/Short/Month/12: 12月 DefaultNewTiddlerTitle: 新条目 DropMessage: 拖放到此处 (或按 ESC 键取消) Encryption/ConfirmClearPassword: 您要清除密码?这将移除保存此维基时套用的加密 diff --git a/languages/zh-Hant/Misc.multids b/languages/zh-Hant/Misc.multids index 1b242167d..fbf00eb8f 100644 --- a/languages/zh-Hant/Misc.multids +++ b/languages/zh-Hant/Misc.multids @@ -8,6 +8,46 @@ ConfirmCancelTiddler: 您確定要放棄對條目 "<$text text=<<title>>/>" 的 ConfirmDeleteTiddler: 您確定要刪除條目 "<$text text=<<title>>/>"? ConfirmOverwriteTiddler: 您確定要覆寫條目 "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: 您即將要編輯預設條目,任何更改將會覆蓋預設的系統,使未來的升級不尋常。您確定要編輯 "<$text text=<<title>>/>"? +Date/Long/Day/0: 星期日 +Date/Long/Day/1: 星期一 +Date/Long/Day/2: 星期二 +Date/Long/Day/3: 星期三 +Date/Long/Day/4: 星期四 +Date/Long/Day/5: 星期五 +Date/Long/Day/6: 星期六 +Date/Long/Month/1: 一月 +Date/Long/Month/2: 二月 +Date/Long/Month/3: 三月 +Date/Long/Month/4: 四月 +Date/Long/Month/5: 五月 +Date/Long/Month/6: 六月 +Date/Long/Month/7: 七月 +Date/Long/Month/8: 八月 +Date/Long/Month/9: 九月 +Date/Long/Month/10: 十月 +Date/Long/Month/11: 十一月 +Date/Long/Month/12: 十二月 +Date/Period/am: 上午 +Date/Period/pm: 下午 +Date/Short/Day/0: 日 +Date/Short/Day/1: 一 +Date/Short/Day/2: 二 +Date/Short/Day/3: 三 +Date/Short/Day/4: 四 +Date/Short/Day/5: 五 +Date/Short/Day/6: 六 +Date/Short/Month/1: 01月 +Date/Short/Month/2: 02月 +Date/Short/Month/3: 03月 +Date/Short/Month/4: 04月 +Date/Short/Month/5: 05月 +Date/Short/Month/6: 06月 +Date/Short/Month/7: 07月 +Date/Short/Month/8: 08月 +Date/Short/Month/9: 09月 +Date/Short/Month/10: 10月 +Date/Short/Month/11: 11月 +Date/Short/Month/12: 12月 DefaultNewTiddlerTitle: 新條目 DropMessage: 拖放到此處 (或按 ESC 鍵取消) Encryption/ConfirmClearPassword: 您要清除密碼?這將移除儲存此維基時套用的加密 From 896b7c2585cf28422710ebeda9ed2f10ad5807ea Mon Sep 17 00:00:00 2001 From: Mario Pietsch <pmariojo@gmail.com> Date: Thu, 9 Oct 2014 14:00:45 +0200 Subject: [PATCH 045/117] added date translations. Fix default date formats --- languages/de-AT/Dates.multids | 73 ++++++++++++++++++++++++++++++ languages/de-DE/Dates.multids | 73 ++++++++++++++++++++++++++++++ languages/de-DE/Misc.multids | 2 +- languages/de-DE/NewJournal.multids | 4 ++ 4 files changed, 151 insertions(+), 1 deletion(-) create mode 100644 languages/de-AT/Dates.multids create mode 100644 languages/de-DE/Dates.multids create mode 100644 languages/de-DE/NewJournal.multids diff --git a/languages/de-AT/Dates.multids b/languages/de-AT/Dates.multids new file mode 100644 index 000000000..5f2982141 --- /dev/null +++ b/languages/de-AT/Dates.multids @@ -0,0 +1,73 @@ +title: $:/language/ + +Date/DaySuffix/1: . +Date/DaySuffix/2: . +Date/DaySuffix/3: . +Date/DaySuffix/4: . +Date/DaySuffix/5: . +Date/DaySuffix/6: . +Date/DaySuffix/7: . +Date/DaySuffix/8: . +Date/DaySuffix/9: . +Date/DaySuffix/10: . +Date/DaySuffix/11: . +Date/DaySuffix/12: . +Date/DaySuffix/13: . +Date/DaySuffix/14: . +Date/DaySuffix/15: . +Date/DaySuffix/16: . +Date/DaySuffix/17: . +Date/DaySuffix/18: . +Date/DaySuffix/19: . +Date/DaySuffix/20: . +Date/DaySuffix/21: . +Date/DaySuffix/22: . +Date/DaySuffix/23: . +Date/DaySuffix/24: . +Date/DaySuffix/25: . +Date/DaySuffix/26: . +Date/DaySuffix/27: . +Date/DaySuffix/28: . +Date/DaySuffix/29: . +Date/DaySuffix/30: . +Date/DaySuffix/31: . +Date/Long/Day/0: Sonntag +Date/Long/Day/1: Montag +Date/Long/Day/2: Dienstag +Date/Long/Day/3: Mittwoch +Date/Long/Day/4: Donnerstag +Date/Long/Day/5: Freitag +Date/Long/Day/6: Samstag +Date/Long/Month/1: Jänner +Date/Long/Month/2: Februar +Date/Long/Month/3: März +Date/Long/Month/4: April +Date/Long/Month/5: Mai +Date/Long/Month/6: Juni +Date/Long/Month/7: Juli +Date/Long/Month/8: August +Date/Long/Month/9: September +Date/Long/Month/10: Oktober +Date/Long/Month/11: November +Date/Long/Month/12: Dezember +Date/Period/am: am +Date/Period/pm: pm +Date/Short/Day/0: So +Date/Short/Day/1: Mo +Date/Short/Day/2: Di +Date/Short/Day/3: Mi +Date/Short/Day/4: Do +Date/Short/Day/5: Fr +Date/Short/Day/6: Sa +Date/Short/Month/1: Jän +Date/Short/Month/2: Feb +Date/Short/Month/3: Mär +Date/Short/Month/4: Apr +Date/Short/Month/5: Mai +Date/Short/Month/6: Jun +Date/Short/Month/7: Jul +Date/Short/Month/8: Aug +Date/Short/Month/9: Sep +Date/Short/Month/10: Okt +Date/Short/Month/11: Nov +Date/Short/Month/12: Dez diff --git a/languages/de-DE/Dates.multids b/languages/de-DE/Dates.multids new file mode 100644 index 000000000..1a0a98da2 --- /dev/null +++ b/languages/de-DE/Dates.multids @@ -0,0 +1,73 @@ +title: $:/language/ + +Date/DaySuffix/1: . +Date/DaySuffix/2: . +Date/DaySuffix/3: . +Date/DaySuffix/4: . +Date/DaySuffix/5: . +Date/DaySuffix/6: . +Date/DaySuffix/7: . +Date/DaySuffix/8: . +Date/DaySuffix/9: . +Date/DaySuffix/10: . +Date/DaySuffix/11: . +Date/DaySuffix/12: . +Date/DaySuffix/13: . +Date/DaySuffix/14: . +Date/DaySuffix/15: . +Date/DaySuffix/16: . +Date/DaySuffix/17: . +Date/DaySuffix/18: . +Date/DaySuffix/19: . +Date/DaySuffix/20: . +Date/DaySuffix/21: . +Date/DaySuffix/22: . +Date/DaySuffix/23: . +Date/DaySuffix/24: . +Date/DaySuffix/25: . +Date/DaySuffix/26: . +Date/DaySuffix/27: . +Date/DaySuffix/28: . +Date/DaySuffix/29: . +Date/DaySuffix/30: . +Date/DaySuffix/31: . +Date/Long/Day/0: Sonntag +Date/Long/Day/1: Montag +Date/Long/Day/2: Dienstag +Date/Long/Day/3: Mittwoch +Date/Long/Day/4: Donnerstag +Date/Long/Day/5: Freitag +Date/Long/Day/6: Samstag +Date/Long/Month/1: Januar +Date/Long/Month/2: Februar +Date/Long/Month/3: März +Date/Long/Month/4: April +Date/Long/Month/5: Mai +Date/Long/Month/6: Juni +Date/Long/Month/7: Juli +Date/Long/Month/8: August +Date/Long/Month/9: September +Date/Long/Month/10: Oktober +Date/Long/Month/11: November +Date/Long/Month/12: Dezember +Date/Period/am: am +Date/Period/pm: pm +Date/Short/Day/0: So +Date/Short/Day/1: Mo +Date/Short/Day/2: Di +Date/Short/Day/3: Mi +Date/Short/Day/4: Do +Date/Short/Day/5: Fr +Date/Short/Day/6: Sa +Date/Short/Month/1: Jan +Date/Short/Month/2: Feb +Date/Short/Month/3: Mär +Date/Short/Month/4: Apr +Date/Short/Month/5: Mai +Date/Short/Month/6: Jun +Date/Short/Month/7: Jul +Date/Short/Month/8: Aug +Date/Short/Month/9: Sep +Date/Short/Month/10: Okt +Date/Short/Month/11: Nov +Date/Short/Month/12: Dez diff --git a/languages/de-DE/Misc.multids b/languages/de-DE/Misc.multids index c170f90ab..5b7c80ad5 100644 --- a/languages/de-DE/Misc.multids +++ b/languages/de-DE/Misc.multids @@ -14,7 +14,7 @@ Encryption/ConfirmClearPassword: Wollen Sie das Passwort löschen? Damit wird di Encryption/PromptSetPassword: Der TiddlyWiki Inhalt wird mit dem nächsten Speichern verschlüsselt! InvalidFieldName: Das Feld: "<$text text=<<fieldName>>/>" enthält illegale Zeichen. Felder müssen klein geschrieben werden. Erlaubte Sonderzeichen sind: Zahlen, Unterstrich (`_`), Minus (`-`) und Punkt (`.`). MissingTiddler/Hint: Fehlender Tiddler "<$text text=<<currentTiddler>>/>" - klicken Sie {{$:/core/images/edit-button}} um ihn zu erzeugen. -RecentChanges/DateFormat: DDth MMM YYYY +RecentChanges/DateFormat: YYYY MMM DD RelativeDate/Future/Days: in <<period>> Tagen RelativeDate/Future/Hours: in <<period>> Stunden RelativeDate/Future/Minutes: in <<period>> Minuten diff --git a/languages/de-DE/NewJournal.multids b/languages/de-DE/NewJournal.multids new file mode 100644 index 000000000..0ce46ea58 --- /dev/null +++ b/languages/de-DE/NewJournal.multids @@ -0,0 +1,4 @@ +title: $:/config/NewJournal/ + +Title: YYYY MMM DD +Tags: Journal From 36a43c3f4101227d73ce4c7219827029688f04e3 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 13:08:11 +0100 Subject: [PATCH 046/117] Ensure new-here tag is quoted Fixes problem with new here on tiddlers with spaces in their title. Thanks to @simonbaird Fixes #956 --- core/ui/ViewToolbar/new-here.tid | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/ui/ViewToolbar/new-here.tid b/core/ui/ViewToolbar/new-here.tid index df0e86690..14390dada 100644 --- a/core/ui/ViewToolbar/new-here.tid +++ b/core/ui/ViewToolbar/new-here.tid @@ -3,8 +3,9 @@ tags: $:/tags/ViewToolbar caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}} description: {{$:/language/Buttons/NewHere/Hint}} +\define newHereButton() <$button tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-new-tiddler" tags=<<currentTiddler>>/> +<$action-sendmessage $message="tm-new-tiddler" tags="[[$(currentTiddler)$]]"/> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> {{$:/core/images/new-here-button}} </$list> @@ -12,3 +13,5 @@ description: {{$:/language/Buttons/NewHere/Hint}} <$text text={{$:/language/Buttons/NewHere/Caption}}/> </$list> </$button> +\end +<<newHereButton>> \ No newline at end of file From 3682c2681755839ecf9eded596dffe7993c9dc32 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 13:09:59 +0100 Subject: [PATCH 047/117] Move new journal strings into language directory --- core/{wiki/config => language/en-GB}/NewJournal.multids | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename core/{wiki/config => language/en-GB}/NewJournal.multids (100%) diff --git a/core/wiki/config/NewJournal.multids b/core/language/en-GB/NewJournal.multids similarity index 100% rename from core/wiki/config/NewJournal.multids rename to core/language/en-GB/NewJournal.multids From 4e37a9fb095b5e1b111810216fccb716a94952a2 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 13:28:12 +0100 Subject: [PATCH 048/117] Navigate widget docs update --- editions/tw5.com/tiddlers/ActionNavigateWidget.tid | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/ActionNavigateWidget.tid b/editions/tw5.com/tiddlers/ActionNavigateWidget.tid index a27809412..5160502ff 100644 --- a/editions/tw5.com/tiddlers/ActionNavigateWidget.tid +++ b/editions/tw5.com/tiddlers/ActionNavigateWidget.tid @@ -24,13 +24,15 @@ The optional `$scroll` attribute can be set to "yes" to force scrolling to occur * the control key is pressed * the action was initiated with the middle mouse button (if available) +Note that if navigating to multiple tiddlers at once you should use the same `$scroll` setting for all of them. + ! Examples Here is an example of button that navigates to two different tiddlers at once: <$macrocall $name='wikitext-example-without-html' src='<$button> -<$action-navigate $to="ButtonWidget" $scroll="no"/> +<$action-navigate $to="ButtonWidget"/> <$action-navigate $to="ActionWidgets"/> Click me! </$button>'/> From 804c7de635533aebf8a1fb699d74dedd94fd346e Mon Sep 17 00:00:00 2001 From: Bram Chen <bram.chen@gmail.com> Date: Thu, 9 Oct 2014 20:33:57 +0800 Subject: [PATCH 049/117] Add NewJournal.multids for chinese translations --- languages/zh-Hans/NewJournal.multids | 4 ++++ languages/zh-Hant/NewJournal.multids | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 languages/zh-Hans/NewJournal.multids create mode 100644 languages/zh-Hant/NewJournal.multids diff --git a/languages/zh-Hans/NewJournal.multids b/languages/zh-Hans/NewJournal.multids new file mode 100644 index 000000000..5401f74a8 --- /dev/null +++ b/languages/zh-Hans/NewJournal.multids @@ -0,0 +1,4 @@ +title: $:/config/NewJournal/ + +Title: YYYY年0MM月0DD日 +Tags: 日志 diff --git a/languages/zh-Hant/NewJournal.multids b/languages/zh-Hant/NewJournal.multids new file mode 100644 index 000000000..1e06c7421 --- /dev/null +++ b/languages/zh-Hant/NewJournal.multids @@ -0,0 +1,4 @@ +title: $:/config/NewJournal/ + +Title: YYYY年0MM月0DD日 +Tags: 日誌 From 5010859ed61a9404eb7f05fd5607607b287a85d7 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 14:56:38 +0100 Subject: [PATCH 050/117] =?UTF-8?q?This=20deals=20with=20one=20of=20the=20?= =?UTF-8?q?specific=20issues=20raised=20in=20#922,=20but=20doesn=E2=80=99t?= =?UTF-8?q?=20address=20the=20general=20issue.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editions/tw5.com/tiddlers/community/Examples.tid | 1 - 1 file changed, 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/community/Examples.tid b/editions/tw5.com/tiddlers/community/Examples.tid index 450897730..e4dd64d3e 100644 --- a/editions/tw5.com/tiddlers/community/Examples.tid +++ b/editions/tw5.com/tiddlers/community/Examples.tid @@ -2,7 +2,6 @@ created: 20140320230543190 modified: 20140916121854696 tags: HelloThere Community title: Examples -caption: Examples of ~TiddlyWiki being used in the wild type: text/vnd.tiddlywiki This collection showcases inspiring and interesting examples of TiddlyWiki being used in the wild. From 00cdd04edd49c2bf0e461071c0c7c50f8aab4e42 Mon Sep 17 00:00:00 2001 From: Simon Baird <simon.baird@gmail.com> Date: Fri, 10 Oct 2014 00:35:17 +1000 Subject: [PATCH 051/117] Add a 'new journal here' button The journal tiddler will be tagged with the name of the current tiddler. This is similar to how the new here button works. (Would have liked to reuse the journalButton code which is almost identical between new-journal-here and new-journal, but I'm not sure how to do it.) --- core/language/en-GB/Buttons.multids | 2 ++ core/ui/PageControls/new-journal-here.tid | 21 +++++++++++++++++++++ core/ui/PageControls/new-journal.tid | 5 +++-- core/wiki/config/ViewToolbarButtons.multids | 1 + 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 core/ui/PageControls/new-journal-here.tid diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index 6cee87661..2888f4768 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -40,6 +40,8 @@ NewHere/Caption: new here NewHere/Hint: Create a new tiddler tagged with this one NewJournal/Caption: new journal NewJournal/Hint: Create a new journal tiddler +NewJournalHere/Caption: new journal here +NewJournalHere/Hint: Create a new journal tiddler tagged with this one NewTiddler/Caption: new tiddler NewTiddler/Hint: Create a new tiddler Permalink/Caption: permalink diff --git a/core/ui/PageControls/new-journal-here.tid b/core/ui/PageControls/new-journal-here.tid new file mode 100644 index 000000000..9903b22fe --- /dev/null +++ b/core/ui/PageControls/new-journal-here.tid @@ -0,0 +1,21 @@ +title: $:/core/ui/Buttons/new-journal-here +tags: $:/tags/ViewToolbar +caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}} +description: {{$:/language/Buttons/NewJournalHere/Hint}} + +\define journalButton() +<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>> +<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags="[[$(currentTiddlerTag)$]] $(journalTags)$"/> +<$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> +{{$:/core/images/new-journal-button}} +</$list> +<$list filter="[<tv-config-toolbar-text>prefix[yes]]"> +<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/> +</$list> +</$button> +\end +<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}> +<$set name="journalTags" value={{$:/config/NewJournal/Tags}}> +<$set name="currentTiddlerTag" value=<<currentTiddler>>> +<<journalButton>> +</$set></$set></$set> diff --git a/core/ui/PageControls/new-journal.tid b/core/ui/PageControls/new-journal.tid index cfb90bd29..6177c96a8 100644 --- a/core/ui/PageControls/new-journal.tid +++ b/core/ui/PageControls/new-journal.tid @@ -5,7 +5,7 @@ description: {{$:/language/Buttons/NewJournal/Hint}} \define journalButton() <$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags={{$:/config/NewJournal/Tags}}/> +<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags="$(journalTags)$"/> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> {{$:/core/images/new-journal-button}} </$list> @@ -15,5 +15,6 @@ description: {{$:/language/Buttons/NewJournal/Hint}} </$button> \end <$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}> +<$set name="journalTags" value={{$:/config/NewJournal/Tags}}> <<journalButton>> -</$set> +</$set></$set> diff --git a/core/wiki/config/ViewToolbarButtons.multids b/core/wiki/config/ViewToolbarButtons.multids index 15d55bd41..84d8028e3 100644 --- a/core/wiki/config/ViewToolbarButtons.multids +++ b/core/wiki/config/ViewToolbarButtons.multids @@ -4,5 +4,6 @@ core/ui/Buttons/clone: hide core/ui/Buttons/close-others: hide core/ui/Buttons/more-tiddler-actions: hide core/ui/Buttons/new-here: hide +core/ui/Buttons/new-journal-here: hide core/ui/Buttons/permalink: hide core/ui/Buttons/permaview: hide From 612e05a2475060bd32ea3fdadde53af22cb6343c Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 17:28:39 +0100 Subject: [PATCH 052/117] pushTop should return resulting array --- core/modules/utils/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index cc083a958..b4242e1d0 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -87,6 +87,7 @@ exports.pushTop = function(array,value) { } array.push(value); } + return array; }; /* From 3827f98a43d452c7d69232ceb78c0db3824fa299 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 17:30:53 +0100 Subject: [PATCH 053/117] Improve new tiddler behaviour with existing tiddlers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now repeatedly clicking “new journal” will reuse the existing journal if one exists --- core/modules/widgets/navigator.js | 93 +++++++++++-------- core/modules/wiki.js | 13 +++ .../WidgetMessage_ tm-new-tiddler.tid | 6 ++ 3 files changed, 73 insertions(+), 39 deletions(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 4c554a70e..2dda2b34f 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -177,12 +177,7 @@ NavigatorWidget.prototype.handleCloseOtherTiddlersEvent = function(event) { NavigatorWidget.prototype.handleEditTiddlerEvent = function(event) { var self = this; function isUnmodifiedShadow(title) { - // jshint eqnull:true - var tiddler = self.wiki.getTiddler(title); - return ( - self.wiki.isShadowTiddler(title) && - tiddler.fields.modified == null - ); + return self.wiki.isShadowTiddler(title) && !self.wiki.tiddlerExists(title); } function confirmEditShadow(title) { return confirm($tw.language.getString( @@ -253,19 +248,14 @@ Create/reuse the draft tiddler for a given title */ NavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) { // See if there is already a draft tiddler for this tiddler - var drafts = []; - this.wiki.forEachTiddler({includeSystem: true},function(title,tiddler) { - if(tiddler.fields["draft.title"] && tiddler.fields["draft.of"] === targetTitle) { - drafts.push(tiddler); - } - }); - if(drafts.length > 0) { - return drafts[0]; + var draftTitle = this.wiki.findDraft(targetTitle); + if(draftTitle) { + return draftTitle; } // Get the current value of the tiddler we're editing - var tiddler = this.wiki.getTiddler(targetTitle), - draftTitle = this.generateDraftTitle(targetTitle); + var tiddler = this.wiki.getTiddler(targetTitle); // Save the initial value of the draft tiddler + draftTitle = this.generateDraftTitle(targetTitle); var draftTiddler = new $tw.Tiddler( tiddler, { @@ -372,37 +362,62 @@ NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) { }; // Create a new draft tiddler +// event.param can either be the title of a template tiddler, or a hashmap of fields. +// +// The title of the newly created tiddler follows these rules: +// * If a hashmap was used and a title field was specified, use that title +// * If a hashmap was used without a title field, use a default title, if necessary making it unique with a numeric suffix +// * If a template tiddler was used, use the title of the template, if necessary making it unique with a numeric suffix +// +// If a draft of the target tiddler already exists then it is reused NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) { // Get the story details var storyList = this.getStoryList(), - templateTiddler,originalTitle; + existingTiddler, templateTiddler, + title; // Get the template if(typeof event.param === "object") { + // If we got a hashmap use it as the template templateTiddler = event.param; - originalTitle = templateTiddler.title; + if(templateTiddler.title) { + // Pull in any existing tiddler + existingTiddler = this.wiki.getTiddler(templateTiddler.title); + if(existingTiddler && existingTiddler.fields.tags && templateTiddler.tags) { + // Merge tags + templateTiddler.tags = $tw.utils.pushTop($tw.utils.parseStringArray(templateTiddler.tags),existingTiddler.fields.tags); + } + // Use the provided title + title = templateTiddler.title + } } else { - templateTiddler = this.wiki.getTiddler(event.param); - originalTitle = templateTiddler && templateTiddler.fields.title; + existingTiddler = this.wiki.getTiddler(event.param); + title = this.wiki.generateNewTitle(event.param); + } + title = title || this.wiki.generateNewTitle($tw.language.getString("DefaultNewTiddlerTitle")); + // Try to reuse any existing draft of the tiddler + var draftTitle = this.wiki.findDraft(title); + if(!draftTitle) { + // Otherwise, create a new draft of the tiddler + draftTitle = this.generateDraftTitle(title); + var draftTiddler = new $tw.Tiddler({ + text: "" + },existingTiddler,templateTiddler, + this.wiki.getCreationFields(), + { + title: draftTitle, + "draft.title": title, + "draft.of": title + },this.wiki.getModificationFields()); + this.wiki.addTiddler(draftTiddler); + } + // Update the story to insert the new draft at the top and remove any existing tiddler + if(storyList.indexOf(draftTitle) === -1) { + var slot = storyList.indexOf(event.navigateFromTitle); + storyList.splice(slot + 1,0,draftTitle); + } + if(storyList.indexOf(title) !== -1) { + storyList.splice(storyList.indexOf(title),1); } - originalTitle = originalTitle || $tw.language.getString("DefaultNewTiddlerTitle"); - // Title the new tiddler - var title = this.wiki.generateNewTitle(originalTitle); - // Create the draft tiddler - var draftTitle = this.generateDraftTitle(title), - draftTiddler = new $tw.Tiddler({ - text: "" - },templateTiddler, - this.wiki.getCreationFields(), - { - title: draftTitle, - "draft.title": title, - "draft.of": title - },this.wiki.getModificationFields()); - this.wiki.addTiddler(draftTiddler); - // Update the story to insert the new draft at the top - var slot = storyList.indexOf(event.navigateFromTitle); - storyList.splice(slot + 1,0,draftTitle); - // Save the updated story this.saveStoryList(storyList); // Add a new record to the top of the history stack this.addToHistory(draftTitle); diff --git a/core/modules/wiki.js b/core/modules/wiki.js index e9df6b68c..9cb34601b 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -1132,6 +1132,19 @@ exports.readFile = function(file,callback) { } }; +/* +Find any existing draft of a specified tiddler +*/ +exports.findDraft = function(targetTitle) { + var draftTitle = undefined; + this.forEachTiddler({includeSystem: true},function(title,tiddler) { + if(tiddler.fields["draft.title"] && tiddler.fields["draft.of"] === targetTitle) { + draftTitle = title; + } + }); + return draftTitle; +} + /* Check whether the specified draft tiddler has been modified */ diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid index 9085c9a8a..2c3dfa41f 100644 --- a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid +++ b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid @@ -11,6 +11,12 @@ The new tiddler message creates a new draft tiddler and adds it to the current s |param |Either the title of a tiddler to use as a template for the new tiddler or a hashmap of tiddler fields | |navigateFromTitle |Title of the tiddler from which the navigation to the new tiddler was initiated | +The title for the draft tiddler is chosen according to these rules: + +* If a hashmap was used and a title field was specified, use that title +* If a hashmap was used without a title field, use a default title, if necessary making it unique with a numeric suffix +* If a template tiddler was used, use the title of the template tiddler, if necessary making it unique with a numeric suffix + The new tiddler message is usually generated with the LinkWidget, ButtonWidget or ActionSendMessageWidget and is handled by the NavigatorWidget. ! Example From d6dc4c14d779ab9f6460d529b5b90b5cc4eda20e Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 17:36:33 +0100 Subject: [PATCH 054/117] Add new-journal-here button to viewtoolbar ordering --- core/wiki/tags/ViewToolbar.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wiki/tags/ViewToolbar.tid b/core/wiki/tags/ViewToolbar.tid index 4b21eefe7..aebed7cdd 100644 --- a/core/wiki/tags/ViewToolbar.tid +++ b/core/wiki/tags/ViewToolbar.tid @@ -1,2 +1,2 @@ title: $:/tags/ViewToolbar -list: [[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] +list: [[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] From 25f4ce93ac377400f3ee530fbc998b76f00cc899 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 17:42:18 +0100 Subject: [PATCH 055/117] Fixed truncation of tiddler info panel Caused by the fix to #282 --- core/ui/EditTemplate/controls.tid | 2 +- themes/tiddlywiki/vanilla/base.tid | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ui/EditTemplate/controls.tid b/core/ui/EditTemplate/controls.tid index 4369d34ef..0d7cd7289 100644 --- a/core/ui/EditTemplate/controls.tid +++ b/core/ui/EditTemplate/controls.tid @@ -4,7 +4,7 @@ tags: $:/tags/EditTemplate \define config-title() $:/config/EditToolbarButtons/Visibility/$(listItem)$ \end -<div class="tc-tiddler-title"> +<div class="tc-tiddler-title tc-titlebar"> <$view field="title"/> <span class="tc-tiddler-controls tc-titlebar"><$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list></span> <div style="clear: both;"></div> diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 19ae05ec0..2d6adf2f1 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -708,7 +708,7 @@ canvas.tc-edit-bitmapeditor { line-height: 22px; } -.tc-tiddler-title, .tc-titlebar { +.tc-titlebar { overflow: hidden; /* https://github.com/Jermolene/TiddlyWiki5/issues/282 */ } From 515b556b48cc8a309d6a0d471b20d785cbc58dc4 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 17:51:29 +0100 Subject: [PATCH 056/117] Fix for previous fix Fix for problem introduced in 25f4ce93ac377400f3ee530fbc998b76f00cc899 --- core/ui/EditTemplate/controls.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ui/EditTemplate/controls.tid b/core/ui/EditTemplate/controls.tid index 0d7cd7289..4369d34ef 100644 --- a/core/ui/EditTemplate/controls.tid +++ b/core/ui/EditTemplate/controls.tid @@ -4,7 +4,7 @@ tags: $:/tags/EditTemplate \define config-title() $:/config/EditToolbarButtons/Visibility/$(listItem)$ \end -<div class="tc-tiddler-title tc-titlebar"> +<div class="tc-tiddler-title"> <$view field="title"/> <span class="tc-tiddler-controls tc-titlebar"><$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list></span> <div style="clear: both;"></div> From ea7d9652c51f74feb2a45cb1a30e689cd67eae1b Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 18:00:34 +0100 Subject: [PATCH 057/117] Move new journal here button to the correct directory --- core/ui/{PageControls => ViewToolbar}/new-journal-here.tid | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename core/ui/{PageControls => ViewToolbar}/new-journal-here.tid (100%) diff --git a/core/ui/PageControls/new-journal-here.tid b/core/ui/ViewToolbar/new-journal-here.tid similarity index 100% rename from core/ui/PageControls/new-journal-here.tid rename to core/ui/ViewToolbar/new-journal-here.tid From 5f08f899561e9142619ce0a728ca6a09f6d0dd85 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 18:08:05 +0100 Subject: [PATCH 058/117] Add link to Iannis Zannos hints site --- .../TiddlyWiki5 Squared by Iannis Zannos.tid | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 editions/tw5.com/tiddlers/TiddlyWiki5 Squared by Iannis Zannos.tid diff --git a/editions/tw5.com/tiddlers/TiddlyWiki5 Squared by Iannis Zannos.tid b/editions/tw5.com/tiddlers/TiddlyWiki5 Squared by Iannis Zannos.tid new file mode 100644 index 000000000..0c695547f --- /dev/null +++ b/editions/tw5.com/tiddlers/TiddlyWiki5 Squared by Iannis Zannos.tid @@ -0,0 +1,16 @@ +created: 20141009170239174 +modified: 20141009170711343 +tags: Resources +title: "TiddlyWiki5^2 documenting while learning TiddlyWiki5" by Iannis Zannos +type: text/vnd.tiddlywiki +url: http://larigot.avarts.ionio.gr/users/iani/wikis/tw5square.html + +A wealth of hints, tips and notes about using [[TiddlyWiki on Node.js]]: + +<<< +TiddlyWiki is different from other wikis because of its principle of dynamically customizeable "storyline" based on tiddlers as basic units of information. That is, the user "composes" their own version of the webpage by clicking on tiddler links, which add tiddlers to the page in order to compose a storyline. + +The Node.js implementation in TiddlyWiki5 adds all the advantages of flat-file markup language based type of site. This makes TiddlyWiki an excellent alternative to flat-file based CMS/webpage/blog authoring systems for the web. + +Also very cool is the treatment of tags as menus everywhere. +<<< From 9cd420290bc01e1d7d6cf912bd98953b980c446c Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 20:11:11 +0100 Subject: [PATCH 059/117] Fix for titles including double quotes --- core/ui/ViewToolbar/new-here.tid | 5 ++++- core/ui/ViewToolbar/new-journal-here.tid | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/ui/ViewToolbar/new-here.tid b/core/ui/ViewToolbar/new-here.tid index 14390dada..6ab831f64 100644 --- a/core/ui/ViewToolbar/new-here.tid +++ b/core/ui/ViewToolbar/new-here.tid @@ -3,9 +3,12 @@ tags: $:/tags/ViewToolbar caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}} description: {{$:/language/Buttons/NewHere/Hint}} +\define newHereButtonTags() +[[$(currentTiddler)$]] +\end \define newHereButton() <$button tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-new-tiddler" tags="[[$(currentTiddler)$]]"/> +<$action-sendmessage $message="tm-new-tiddler" tags=<<newHereButtonTags>>/> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> {{$:/core/images/new-here-button}} </$list> diff --git a/core/ui/ViewToolbar/new-journal-here.tid b/core/ui/ViewToolbar/new-journal-here.tid index 9903b22fe..9aeffb602 100644 --- a/core/ui/ViewToolbar/new-journal-here.tid +++ b/core/ui/ViewToolbar/new-journal-here.tid @@ -3,9 +3,12 @@ tags: $:/tags/ViewToolbar caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}} description: {{$:/language/Buttons/NewJournalHere/Hint}} +\define journalButtonTags() +[[$(currentTiddlerTag)$]] $(journalTags)$ +\end \define journalButton() <$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags="[[$(currentTiddlerTag)$]] $(journalTags)$"/> +<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags=<<journalButtonTags>>/> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> {{$:/core/images/new-journal-button}} </$list> From a7c9112c400981ef84e303a4c49c7accf4e97cb5 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 9 Oct 2014 20:51:58 +0100 Subject: [PATCH 060/117] Add new filter example --- .../tw5.com/tiddlers/filters/Introduction to Filters.tid | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/filters/Introduction to Filters.tid b/editions/tw5.com/tiddlers/filters/Introduction to Filters.tid index 71116ea91..2b42e738a 100644 --- a/editions/tw5.com/tiddlers/filters/Introduction to Filters.tid +++ b/editions/tw5.com/tiddlers/filters/Introduction to Filters.tid @@ -1,5 +1,5 @@ created: 20140410101941871 -modified: 20141008180223576 +modified: 20141009180223576 tags: Learning title: Introduction to Filters type: text/vnd.tiddlywiki @@ -99,6 +99,12 @@ You can use multiple filter operations at once. This example selects all tiddler Each separate operator is processed in turn, accumulating the tiddlers that they select. +Here's an example that returns tiddlers tagged ''alpha'' or ''beta'' that are also tagged ''task'' and not tagged ''done'': + +``` +[tag[alpha]] [tag[beta]] +[tag[task]!tag[done]] +``` + ! ANDing Multiple Filter Operators A sequence of operators can be logically ANDed together by bashing them together and merging the outer square brackets. This is called a "run" of operations. For example, here we select tiddlers that are tagged "introduction" and also tagged "demo": From 1460b6ec129ab9d83f1056351006e011b6b58efe Mon Sep 17 00:00:00 2001 From: Bram Chen <bram.chen@gmail.com> Date: Fri, 10 Oct 2014 09:10:50 +0800 Subject: [PATCH 061/117] Add chinese translations of new journal here button --- languages/zh-Hans/Buttons.multids | 2 ++ languages/zh-Hant/Buttons.multids | 2 ++ 2 files changed, 4 insertions(+) diff --git a/languages/zh-Hans/Buttons.multids b/languages/zh-Hans/Buttons.multids index 3b96b0a01..add90e9b2 100644 --- a/languages/zh-Hans/Buttons.multids +++ b/languages/zh-Hans/Buttons.multids @@ -40,6 +40,8 @@ NewHere/Caption: 添加子条目 NewHere/Hint: 创建一个标签为此条目名称的新条目 NewJournal/Caption: 添加日志 NewJournal/Hint: 创建一个新的日志条目 +NewJournalHere/Caption: 添加子日志 +NewJournalHere/Hint: 创建一个标签含此条目名称的新日志条目 NewTiddler/Caption: 添加条目 NewTiddler/Hint: 创建一个新的条目 Permalink/Caption: 引用连结 diff --git a/languages/zh-Hant/Buttons.multids b/languages/zh-Hant/Buttons.multids index ab86749e1..7591526de 100644 --- a/languages/zh-Hant/Buttons.multids +++ b/languages/zh-Hant/Buttons.multids @@ -40,6 +40,8 @@ NewHere/Caption: 新增子條目 NewHere/Hint: 建立一個標籤為此條目名稱的新條目 NewJournal/Caption: 新增日誌 NewJournal/Hint: 建立一個新的日誌條目 +NewJournalHere/Caption: 新增子日誌 +NewJournalHere/Hint: 建立一個標籤含此條目名稱的新日誌條目 NewTiddler/Caption: 新增條目 NewTiddler/Hint: 建立一個新的條目 Permalink/Caption: 引用連結 From 1e02a9f0db432745e5eaf7c8c05c23a41d369df8 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 09:03:35 +0100 Subject: [PATCH 062/117] Correct return value for makeDraftTiddler --- core/modules/widgets/navigator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 2dda2b34f..5a6c2fa6a 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -250,7 +250,7 @@ NavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) { // See if there is already a draft tiddler for this tiddler var draftTitle = this.wiki.findDraft(targetTitle); if(draftTitle) { - return draftTitle; + return this.wiki.getTiddler(draftTitle); } // Get the current value of the tiddler we're editing var tiddler = this.wiki.getTiddler(targetTitle); From a8d83096d33db34bd31086999244ff5f2b2f5691 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 09:52:19 +0100 Subject: [PATCH 063/117] Fix behaviour of new tiddler message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves some inconsistencies over the behaviour of the new tiddler message under various circumstances. “new journal here” when a journal for today already exists now brings up the existing journal for editing, and adds the required tag. I’d be very grateful for any testing of the behaviour here: try using new tiddler, clone tiddler, new here, new journal here, and new journal in various combinations (eg with the draft not existing, already existing, open or closed etc), and let me know of any peculiarities. --- core/modules/widgets/navigator.js | 66 +++++++++++++++++++------------ 1 file changed, 40 insertions(+), 26 deletions(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 5a6c2fa6a..72cf5dee2 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -373,43 +373,57 @@ NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) { NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) { // Get the story details var storyList = this.getStoryList(), - existingTiddler, templateTiddler, - title; - // Get the template + templateTiddler, title, draftTitle, existingTiddler, mergedTags; + // Work out the title of the target tiddler if(typeof event.param === "object") { // If we got a hashmap use it as the template templateTiddler = event.param; if(templateTiddler.title) { - // Pull in any existing tiddler - existingTiddler = this.wiki.getTiddler(templateTiddler.title); - if(existingTiddler && existingTiddler.fields.tags && templateTiddler.tags) { - // Merge tags - templateTiddler.tags = $tw.utils.pushTop($tw.utils.parseStringArray(templateTiddler.tags),existingTiddler.fields.tags); - } // Use the provided title title = templateTiddler.title + } else { + // Generate a new unique title + title = this.wiki.generateNewTitle($tw.language.getString("DefaultNewTiddlerTitle")); } } else { - existingTiddler = this.wiki.getTiddler(event.param); - title = this.wiki.generateNewTitle(event.param); + // If we got a string, use it as the template and generate a new title + templateTiddler = this.wiki.getTiddler(event.param); + title = this.wiki.generateNewTitle(event.param || $tw.language.getString("DefaultNewTiddlerTitle")); } - title = title || this.wiki.generateNewTitle($tw.language.getString("DefaultNewTiddlerTitle")); - // Try to reuse any existing draft of the tiddler - var draftTitle = this.wiki.findDraft(title); - if(!draftTitle) { - // Otherwise, create a new draft of the tiddler + // Find any existing draft for this tiddler + draftTitle = this.wiki.findDraft(title); + // Pull in any existing tiddler + if(draftTitle) { + existingTiddler = this.wiki.getTiddler(draftTitle); + } else { draftTitle = this.generateDraftTitle(title); - var draftTiddler = new $tw.Tiddler({ - text: "" - },existingTiddler,templateTiddler, - this.wiki.getCreationFields(), - { - title: draftTitle, - "draft.title": title, - "draft.of": title - },this.wiki.getModificationFields()); - this.wiki.addTiddler(draftTiddler); + existingTiddler = this.wiki.getTiddler(title); } + // Merge the tags + if(existingTiddler && existingTiddler.fields.tags && templateTiddler && templateTiddler.tags) { + // Merge tags + mergedTags = $tw.utils.pushTop($tw.utils.parseStringArray(templateTiddler.tags),existingTiddler.fields.tags); + } else if(existingTiddler && existingTiddler.fields.tags) { + mergedTags = existingTiddler.fields.tags; + } else if(templateTiddler.tags) { + mergedTags = templateTiddler.tags; + } else if(templateTiddler.fields.tags) { + mergedTags = templateTiddler.fields.tags; + } + // Save the draft tiddler + var draftTiddler = new $tw.Tiddler({ + text: "" + }, + templateTiddler, + existingTiddler, + this.wiki.getCreationFields(), + { + title: draftTitle, + "draft.title": title, + "draft.of": title, + tags: mergedTags + },this.wiki.getModificationFields()); + this.wiki.addTiddler(draftTiddler); // Update the story to insert the new draft at the top and remove any existing tiddler if(storyList.indexOf(draftTitle) === -1) { var slot = storyList.indexOf(event.navigateFromTitle); From 353f641bcc39bda06f93a53097aa676f1b63b89a Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 10:12:40 +0100 Subject: [PATCH 064/117] Move date-related translateable strings into their own file --- .../en-GB/{Misc.multids => Dates.multids} | 22 +------- languages/fr-FR/Dates.multids | 16 ++++++ languages/fr-FR/Misc.multids | 14 ----- languages/ja-JP/Dates.multids | 16 ++++++ languages/ja-JP/Misc.multids | 14 ----- languages/ru-RU/Dates.multids | 16 ++++++ languages/ru-RU/Misc.multids | 14 ----- .../zh-Hans/{Misc.multids => Dates.multids} | 20 ------- languages/zh-Hant/Dates.multids | 56 +++++++++++++++++++ languages/zh-Hant/Misc.multids | 54 ------------------ 10 files changed, 105 insertions(+), 137 deletions(-) rename core/language/en-GB/{Misc.multids => Dates.multids} (58%) create mode 100644 languages/fr-FR/Dates.multids create mode 100644 languages/ja-JP/Dates.multids create mode 100644 languages/ru-RU/Dates.multids rename languages/zh-Hans/{Misc.multids => Dates.multids} (51%) create mode 100644 languages/zh-Hant/Dates.multids diff --git a/core/language/en-GB/Misc.multids b/core/language/en-GB/Dates.multids similarity index 58% rename from core/language/en-GB/Misc.multids rename to core/language/en-GB/Dates.multids index cf5d980a1..c300192f9 100644 --- a/core/language/en-GB/Misc.multids +++ b/core/language/en-GB/Dates.multids @@ -1,13 +1,5 @@ -title: $:/language/ +title: $:/language -BinaryWarning/Prompt: This tiddler contains binary data -ClassicWarning/Hint: This tiddler is written in TiddlyWiki Classic wiki text format, which is not fully compatible with TiddlyWiki version 5. See http://tiddlywiki.com/static/Upgrading.html for more details. -ClassicWarning/Upgrade/Caption: upgrade -CloseAll/Button: close all -ConfirmCancelTiddler: Do you wish to discard changes to the tiddler "<$text text=<<title>>/>"? -ConfirmDeleteTiddler: Do you wish to delete the tiddler "<$text text=<<title>>/>"? -ConfirmOverwriteTiddler: Do you wish to overwrite the tiddler "<$text text=<<title>>/>"? -ConfirmEditShadowTiddler: You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit "<$text text=<<title>>/>"? Date/DaySuffix/1: st Date/DaySuffix/2: nd Date/DaySuffix/3: rd @@ -79,13 +71,6 @@ Date/Short/Month/9: Sep Date/Short/Month/10: Oct Date/Short/Month/11: Nov Date/Short/Month/12: Dec -DefaultNewTiddlerTitle: New Tiddler -DropMessage: Drop here (or click escape to cancel) -Encryption/ConfirmClearPassword: Do you wish to clear the password? This will remove the encryption applied when saving this wiki -Encryption/PromptSetPassword: Set a new password for this TiddlyWiki -InvalidFieldName: Illegal characters in field name "<$text text=<<fieldName>>/>". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`) -MissingTiddler/Hint: Missing tiddler "<$text text=<<currentTiddler>>/>" - click {{$:/core/images/edit-button}} to create -RecentChanges/DateFormat: DDth MMM YYYY RelativeDate/Future/Days: <<period>> days from now RelativeDate/Future/Hours: <<period>> hours from now RelativeDate/Future/Minutes: <<period>> minutes from now @@ -100,8 +85,3 @@ RelativeDate/Past/Months: <<period>> months ago RelativeDate/Past/Second: 1 second ago RelativeDate/Past/Seconds: <<period>> seconds ago RelativeDate/Past/Years: <<period>> years ago -SystemTiddler/Tooltip: This is a system tiddler -TagManager/Colour/Heading: Colour -TagManager/Icon/Heading: Icon -TagManager/Tag/Heading: Tag -UnsavedChangesWarning: You have unsaved changes in TiddlyWiki diff --git a/languages/fr-FR/Dates.multids b/languages/fr-FR/Dates.multids new file mode 100644 index 000000000..26b44aa1e --- /dev/null +++ b/languages/fr-FR/Dates.multids @@ -0,0 +1,16 @@ +title: $:/language + +RelativeDate/Future/Days: dans <<period>> jours +RelativeDate/Future/Hours: dans <<period>> heures +RelativeDate/Future/Minutes: dans <<period>> minutes +RelativeDate/Future/Months: dans <<period>> mois +RelativeDate/Future/Second: dans 1 seconde +RelativeDate/Future/Seconds: dans <<period>> secondes +RelativeDate/Future/Years: dans <<period>> ans +RelativeDate/Past/Days: il y a <<period>> jours +RelativeDate/Past/Hours: il y a <<period>> heures +RelativeDate/Past/Minutes: il y a <<period>> minutes +RelativeDate/Past/Months: il y a <<period>> mois +RelativeDate/Past/Second: il y a 1 seconde +RelativeDate/Past/Seconds: il y a <<period>> secondes +RelativeDate/Past/Years: il y a <<period>> ans diff --git a/languages/fr-FR/Misc.multids b/languages/fr-FR/Misc.multids index 952405799..43e8b65d5 100644 --- a/languages/fr-FR/Misc.multids +++ b/languages/fr-FR/Misc.multids @@ -12,20 +12,6 @@ DropMessage: Lâcher ici (ou appuyer sur « escape » pour annuler) InvalidFieldName: Caractères illicites dans le nom du champ « <$text text=<<fieldName>>/> ». Les champs ne peuvent contenir que des lettres minuscules non accentuées et les caractères souligné (`_`), tiret (`-`) et point (`.`) MissingTiddler/Hint: Le tiddler « <$text text=<<currentTiddler>>/> » est manquant - cliquez sur {{$:/core/images/edit-button}} pour le créer RecentChanges/DateFormat: DD MMM YYYY -RelativeDate/Future/Days: dans <<period>> jours -RelativeDate/Future/Hours: dans <<period>> heures -RelativeDate/Future/Minutes: dans <<period>> minutes -RelativeDate/Future/Months: dans <<period>> mois -RelativeDate/Future/Second: dans 1 seconde -RelativeDate/Future/Seconds: dans <<period>> secondes -RelativeDate/Future/Years: dans <<period>> ans -RelativeDate/Past/Days: il y a <<period>> jours -RelativeDate/Past/Hours: il y a <<period>> heures -RelativeDate/Past/Minutes: il y a <<period>> minutes -RelativeDate/Past/Months: il y a <<period>> mois -RelativeDate/Past/Second: il y a 1 seconde -RelativeDate/Past/Seconds: il y a <<period>> secondes -RelativeDate/Past/Years: il y a <<period>> ans SystemTiddler/Tooltip: Ceci est un tiddler système TagManager/Colour/Heading: Couleur TagManager/Icon/Heading: Icone diff --git a/languages/ja-JP/Dates.multids b/languages/ja-JP/Dates.multids new file mode 100644 index 000000000..5accb1d62 --- /dev/null +++ b/languages/ja-JP/Dates.multids @@ -0,0 +1,16 @@ +title: $:/language + +RelativeDate/Future/Days: <<period>> 日後 +RelativeDate/Future/Hours: <<period>> 時間後 +RelativeDate/Future/Minutes: <<period>> 分後 +RelativeDate/Future/Months: <<period>> か月後 +RelativeDate/Future/Second: 1 秒後 +RelativeDate/Future/Seconds: <<period>> 秒後 +RelativeDate/Future/Years: <<period>> 年後 +RelativeDate/Past/Days: <<period>> 日前 +RelativeDate/Past/Hours: <<period>> 時間前 +RelativeDate/Past/Minutes: <<period>> 分前 +RelativeDate/Past/Months: <<period>> か月前 +RelativeDate/Past/Second: 1 秒前 +RelativeDate/Past/Seconds: <<period>> 秒前 +RelativeDate/Past/Years: <<period>> 年前 diff --git a/languages/ja-JP/Misc.multids b/languages/ja-JP/Misc.multids index 4e6fba3cd..f8bbdfc02 100644 --- a/languages/ja-JP/Misc.multids +++ b/languages/ja-JP/Misc.multids @@ -8,20 +8,6 @@ ConfirmOverwriteTiddler: 本当にこの tiddler "<$text text=<<title>>/>" を InvalidFieldName: フィールド名に不正な文字が使われています "<$text text=<<fieldName>>/>". フィールド名に使用できるのは英小文字かアンダースコア(`_`)、ハイフン(`-`)、ピリオド(`.`)のみです。 MissingTiddler/Hint: 未作成の tiddler "<$text text=<<currentTiddler>>/>" - クリック {{$:/core/images/edit-button}} して作成 RecentChanges/DateFormat: YYYY-MM-DD -RelativeDate/Future/Days: <<period>> 日後 -RelativeDate/Future/Hours: <<period>> 時間後 -RelativeDate/Future/Minutes: <<period>> 分後 -RelativeDate/Future/Months: <<period>> か月後 -RelativeDate/Future/Second: 1 秒後 -RelativeDate/Future/Seconds: <<period>> 秒後 -RelativeDate/Future/Years: <<period>> 年後 -RelativeDate/Past/Days: <<period>> 日前 -RelativeDate/Past/Hours: <<period>> 時間前 -RelativeDate/Past/Minutes: <<period>> 分前 -RelativeDate/Past/Months: <<period>> か月前 -RelativeDate/Past/Second: 1 秒前 -RelativeDate/Past/Seconds: <<period>> 秒前 -RelativeDate/Past/Years: <<period>> 年前 SystemTiddler/Tooltip: これはシステム tiddler です TagManager/Colour/Heading: 色 TagManager/Icon/Heading: アイコン diff --git a/languages/ru-RU/Dates.multids b/languages/ru-RU/Dates.multids new file mode 100644 index 000000000..ed1fb207b --- /dev/null +++ b/languages/ru-RU/Dates.multids @@ -0,0 +1,16 @@ +title: $:/language/ + +RelativeDate/Future/Days: через <<period>> дней +RelativeDate/Future/Hours: через <<period>> часов +RelativeDate/Future/Minutes: через <<period>> минут +RelativeDate/Future/Months: через <<period>> месяцев +RelativeDate/Future/Second: через 1 секунду +RelativeDate/Future/Seconds: через <<period>> секунд +RelativeDate/Future/Years: через <<period>> лет +RelativeDate/Past/Days: <<period>> дней назад +RelativeDate/Past/Hours: <<period>> часов назад +RelativeDate/Past/Minutes: <<period>> минут назад +RelativeDate/Past/Months: <<period>> месяцев назад +RelativeDate/Past/Second: 1 секунду назад +RelativeDate/Past/Seconds: <<period>> секунд назад +RelativeDate/Past/Years: <<period>> лет назад diff --git a/languages/ru-RU/Misc.multids b/languages/ru-RU/Misc.multids index eb47864b8..b61fbcf4c 100644 --- a/languages/ru-RU/Misc.multids +++ b/languages/ru-RU/Misc.multids @@ -12,20 +12,6 @@ DropMessage: Перетащите сюда (или нажмите escape для InvalidFieldName: Недопустимые символы в названии поля "<$text text=<<fieldName>>/>". Поля могут содержать только латинские буквы нижнего регистра, цифры и символы: подчеркивание (`_`), дефис (`-`) и точку (`.`) MissingTiddler/Hint: Заметка "<$text text=<<currentTiddler>>/>" отсутствует - нажмите {{$:/core/images/edit-button}} чтобы её создать RecentChanges/DateFormat: DD MMM YYYY -RelativeDate/Future/Days: через <<period>> дней -RelativeDate/Future/Hours: через <<period>> часов -RelativeDate/Future/Minutes: через <<period>> минут -RelativeDate/Future/Months: через <<period>> месяцев -RelativeDate/Future/Second: через 1 секунду -RelativeDate/Future/Seconds: через <<period>> секунд -RelativeDate/Future/Years: через <<period>> лет -RelativeDate/Past/Days: <<period>> дней назад -RelativeDate/Past/Hours: <<period>> часов назад -RelativeDate/Past/Minutes: <<period>> минут назад -RelativeDate/Past/Months: <<period>> месяцев назад -RelativeDate/Past/Second: 1 секунду назад -RelativeDate/Past/Seconds: <<period>> секунд назад -RelativeDate/Past/Years: <<period>> лет назад SystemTiddler/Tooltip: Это системная заметка TagManager/Colour/Heading: Цвет TagManager/Icon/Heading: Значок diff --git a/languages/zh-Hans/Misc.multids b/languages/zh-Hans/Dates.multids similarity index 51% rename from languages/zh-Hans/Misc.multids rename to languages/zh-Hans/Dates.multids index 55597f4e2..1cbf41b53 100644 --- a/languages/zh-Hans/Misc.multids +++ b/languages/zh-Hans/Dates.multids @@ -1,13 +1,5 @@ title: $:/language/ -BinaryWarning/Prompt: 此条目包含二进制数据 -ClassicWarning/Hint: 此条目以经典版 TiddlyWiki 标记格式撰写,不完全兼容新版 TiddlyWiki 的格式,详细信息请参阅:http://tiddlywiki.com/static/Upgrading。 -ClassicWarning/Upgrade/Caption: 升级 -CloseAll/Button: 全部关闭 -ConfirmCancelTiddler: 您确定要放弃对条目 "<$text text=<<title>>/>" 的更改? -ConfirmDeleteTiddler: 您确定要删除条目 "<$text text=<<title>>/>"? -ConfirmOverwriteTiddler: 您确定要覆写条目 "<$text text=<<title>>/>"? -ConfirmEditShadowTiddler: 您即将要编辑默认条目,任何更改将会覆盖默认的系统,使未来的升级不寻常。您确定要编辑 "<$text text=<<title>>/>"? Date/Long/Day/0: 周日 Date/Long/Day/1: 周一 Date/Long/Day/2: 周二 @@ -48,13 +40,6 @@ Date/Short/Month/9: 09月 Date/Short/Month/10: 10月 Date/Short/Month/11: 11月 Date/Short/Month/12: 12月 -DefaultNewTiddlerTitle: 新条目 -DropMessage: 拖放到此处 (或按 ESC 键取消) -Encryption/ConfirmClearPassword: 您要清除密码?这将移除保存此维基时套用的加密 -Encryption/PromptSetPassword: 为此 TiddlyWiki 设置一个新密码 -InvalidFieldName: 栏位名称 "<$text text=<<fieldName>>/>" 包含无效字符,栏位名称只能包含小写字母、数字、底线 (`_`)、 连字号 (`-`) 和小数点 (`.`) -MissingTiddler/Hint: 佚失条目 "<$text text=<<currentTiddler>>/>" - 点击 {{$:/core/images/edit-button}} 可创建此条目 -RecentChanges/DateFormat: YYYY年0MM月0DD日 RelativeDate/Future/Days: <<period>> 天后 RelativeDate/Future/Hours: <<period>> 小时后 RelativeDate/Future/Minutes: <<period>> 分钟后 @@ -69,8 +54,3 @@ RelativeDate/Past/Months: <<period>> 个月前 RelativeDate/Past/Second: 1 秒前 RelativeDate/Past/Seconds: <<period>> 秒前 RelativeDate/Past/Years: <<period>> 年前 -SystemTiddler/Tooltip: 此为系统条目 -TagManager/Colour/Heading: 颜色 -TagManager/Icon/Heading: 图标 -TagManager/Tag/Heading: 标签 -UnsavedChangesWarning: 在此 TiddlyWiki 您有尚未保存的变更 diff --git a/languages/zh-Hant/Dates.multids b/languages/zh-Hant/Dates.multids new file mode 100644 index 000000000..c9442b612 --- /dev/null +++ b/languages/zh-Hant/Dates.multids @@ -0,0 +1,56 @@ +title: $:/language/ + +Date/Long/Day/0: 星期日 +Date/Long/Day/1: 星期一 +Date/Long/Day/2: 星期二 +Date/Long/Day/3: 星期三 +Date/Long/Day/4: 星期四 +Date/Long/Day/5: 星期五 +Date/Long/Day/6: 星期六 +Date/Long/Month/1: 一月 +Date/Long/Month/2: 二月 +Date/Long/Month/3: 三月 +Date/Long/Month/4: 四月 +Date/Long/Month/5: 五月 +Date/Long/Month/6: 六月 +Date/Long/Month/7: 七月 +Date/Long/Month/8: 八月 +Date/Long/Month/9: 九月 +Date/Long/Month/10: 十月 +Date/Long/Month/11: 十一月 +Date/Long/Month/12: 十二月 +Date/Period/am: 上午 +Date/Period/pm: 下午 +Date/Short/Day/0: 日 +Date/Short/Day/1: 一 +Date/Short/Day/2: 二 +Date/Short/Day/3: 三 +Date/Short/Day/4: 四 +Date/Short/Day/5: 五 +Date/Short/Day/6: 六 +Date/Short/Month/1: 01月 +Date/Short/Month/2: 02月 +Date/Short/Month/3: 03月 +Date/Short/Month/4: 04月 +Date/Short/Month/5: 05月 +Date/Short/Month/6: 06月 +Date/Short/Month/7: 07月 +Date/Short/Month/8: 08月 +Date/Short/Month/9: 09月 +Date/Short/Month/10: 10月 +Date/Short/Month/11: 11月 +Date/Short/Month/12: 12月 +RelativeDate/Future/Days: <<period>> 天後 +RelativeDate/Future/Hours: <<period>> 小時後 +RelativeDate/Future/Minutes: <<period>> 分鐘後 +RelativeDate/Future/Months: <<period>> 個月後 +RelativeDate/Future/Second: 1 秒後 +RelativeDate/Future/Seconds: <<period>> 秒後 +RelativeDate/Future/Years: <<period>> 年後 +RelativeDate/Past/Days: <<period>> 天前 +RelativeDate/Past/Hours: <<period>> 小時前 +RelativeDate/Past/Minutes: <<period>> 分鐘前 +RelativeDate/Past/Months: <<period>> 個月前 +RelativeDate/Past/Second: 1 秒前 +RelativeDate/Past/Seconds: <<period>> 秒前 +RelativeDate/Past/Years: <<period>> 年前 diff --git a/languages/zh-Hant/Misc.multids b/languages/zh-Hant/Misc.multids index fbf00eb8f..5f8338ea9 100644 --- a/languages/zh-Hant/Misc.multids +++ b/languages/zh-Hant/Misc.multids @@ -8,46 +8,6 @@ ConfirmCancelTiddler: 您確定要放棄對條目 "<$text text=<<title>>/>" 的 ConfirmDeleteTiddler: 您確定要刪除條目 "<$text text=<<title>>/>"? ConfirmOverwriteTiddler: 您確定要覆寫條目 "<$text text=<<title>>/>"? ConfirmEditShadowTiddler: 您即將要編輯預設條目,任何更改將會覆蓋預設的系統,使未來的升級不尋常。您確定要編輯 "<$text text=<<title>>/>"? -Date/Long/Day/0: 星期日 -Date/Long/Day/1: 星期一 -Date/Long/Day/2: 星期二 -Date/Long/Day/3: 星期三 -Date/Long/Day/4: 星期四 -Date/Long/Day/5: 星期五 -Date/Long/Day/6: 星期六 -Date/Long/Month/1: 一月 -Date/Long/Month/2: 二月 -Date/Long/Month/3: 三月 -Date/Long/Month/4: 四月 -Date/Long/Month/5: 五月 -Date/Long/Month/6: 六月 -Date/Long/Month/7: 七月 -Date/Long/Month/8: 八月 -Date/Long/Month/9: 九月 -Date/Long/Month/10: 十月 -Date/Long/Month/11: 十一月 -Date/Long/Month/12: 十二月 -Date/Period/am: 上午 -Date/Period/pm: 下午 -Date/Short/Day/0: 日 -Date/Short/Day/1: 一 -Date/Short/Day/2: 二 -Date/Short/Day/3: 三 -Date/Short/Day/4: 四 -Date/Short/Day/5: 五 -Date/Short/Day/6: 六 -Date/Short/Month/1: 01月 -Date/Short/Month/2: 02月 -Date/Short/Month/3: 03月 -Date/Short/Month/4: 04月 -Date/Short/Month/5: 05月 -Date/Short/Month/6: 06月 -Date/Short/Month/7: 07月 -Date/Short/Month/8: 08月 -Date/Short/Month/9: 09月 -Date/Short/Month/10: 10月 -Date/Short/Month/11: 11月 -Date/Short/Month/12: 12月 DefaultNewTiddlerTitle: 新條目 DropMessage: 拖放到此處 (或按 ESC 鍵取消) Encryption/ConfirmClearPassword: 您要清除密碼?這將移除儲存此維基時套用的加密 @@ -55,20 +15,6 @@ Encryption/PromptSetPassword: 為此 TiddlyWiki 設置一個新密碼 InvalidFieldName: 欄位名稱 "<$text text=<<fieldName>>/>" 包含無效字元,欄位名稱只能包含小寫字母、數字、底線 (`_`)、 連接號 (`-`) 和小數點 (`.`) MissingTiddler/Hint: 佚失條目 "<$text text=<<currentTiddler>>/>" - 點擊 {{$:/core/images/edit-button}} 可建立此條目 RecentChanges/DateFormat: YYYY年0MM月0DD日 -RelativeDate/Future/Days: <<period>> 天後 -RelativeDate/Future/Hours: <<period>> 小時後 -RelativeDate/Future/Minutes: <<period>> 分鐘後 -RelativeDate/Future/Months: <<period>> 個月後 -RelativeDate/Future/Second: 1 秒後 -RelativeDate/Future/Seconds: <<period>> 秒後 -RelativeDate/Future/Years: <<period>> 年後 -RelativeDate/Past/Days: <<period>> 天前 -RelativeDate/Past/Hours: <<period>> 小時前 -RelativeDate/Past/Minutes: <<period>> 分鐘前 -RelativeDate/Past/Months: <<period>> 個月前 -RelativeDate/Past/Second: 1 秒前 -RelativeDate/Past/Seconds: <<period>> 秒前 -RelativeDate/Past/Years: <<period>> 年前 SystemTiddler/Tooltip: 此為系統條目 TagManager/Colour/Heading: 顏色 TagManager/Icon/Heading: 圖示 From e90e58862155efc323aeab2405970b2b709a30a7 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 10:13:02 +0100 Subject: [PATCH 065/117] Missed from last commit --- core/language/en-GB/Misc.multids | 22 ++++++++++++++++++++++ languages/zh-Hans/Misc.multids | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 core/language/en-GB/Misc.multids create mode 100644 languages/zh-Hans/Misc.multids diff --git a/core/language/en-GB/Misc.multids b/core/language/en-GB/Misc.multids new file mode 100644 index 000000000..c1f46473a --- /dev/null +++ b/core/language/en-GB/Misc.multids @@ -0,0 +1,22 @@ +title: $:/language/ + +BinaryWarning/Prompt: This tiddler contains binary data +ClassicWarning/Hint: This tiddler is written in TiddlyWiki Classic wiki text format, which is not fully compatible with TiddlyWiki version 5. See http://tiddlywiki.com/static/Upgrading.html for more details. +ClassicWarning/Upgrade/Caption: upgrade +CloseAll/Button: close all +ConfirmCancelTiddler: Do you wish to discard changes to the tiddler "<$text text=<<title>>/>"? +ConfirmDeleteTiddler: Do you wish to delete the tiddler "<$text text=<<title>>/>"? +ConfirmOverwriteTiddler: Do you wish to overwrite the tiddler "<$text text=<<title>>/>"? +ConfirmEditShadowTiddler: You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit "<$text text=<<title>>/>"? +DefaultNewTiddlerTitle: New Tiddler +DropMessage: Drop here (or click escape to cancel) +Encryption/ConfirmClearPassword: Do you wish to clear the password? This will remove the encryption applied when saving this wiki +Encryption/PromptSetPassword: Set a new password for this TiddlyWiki +InvalidFieldName: Illegal characters in field name "<$text text=<<fieldName>>/>". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`) +MissingTiddler/Hint: Missing tiddler "<$text text=<<currentTiddler>>/>" - click {{$:/core/images/edit-button}} to create +RecentChanges/DateFormat: DDth MMM YYYY +SystemTiddler/Tooltip: This is a system tiddler +TagManager/Colour/Heading: Colour +TagManager/Icon/Heading: Icon +TagManager/Tag/Heading: Tag +UnsavedChangesWarning: You have unsaved changes in TiddlyWiki diff --git a/languages/zh-Hans/Misc.multids b/languages/zh-Hans/Misc.multids new file mode 100644 index 000000000..85b6e50e3 --- /dev/null +++ b/languages/zh-Hans/Misc.multids @@ -0,0 +1,22 @@ +title: $:/language/ + +BinaryWarning/Prompt: 此条目包含二进制数据 +ClassicWarning/Hint: 此条目以经典版 TiddlyWiki 标记格式撰写,不完全兼容新版 TiddlyWiki 的格式,详细信息请参阅:http://tiddlywiki.com/static/Upgrading。 +ClassicWarning/Upgrade/Caption: 升级 +CloseAll/Button: 全部关闭 +ConfirmCancelTiddler: 您确定要放弃对条目 "<$text text=<<title>>/>" 的更改? +ConfirmDeleteTiddler: 您确定要删除条目 "<$text text=<<title>>/>"? +ConfirmOverwriteTiddler: 您确定要覆写条目 "<$text text=<<title>>/>"? +ConfirmEditShadowTiddler: 您即将要编辑默认条目,任何更改将会覆盖默认的系统,使未来的升级不寻常。您确定要编辑 "<$text text=<<title>>/>"? +DefaultNewTiddlerTitle: 新条目 +DropMessage: 拖放到此处 (或按 ESC 键取消) +Encryption/ConfirmClearPassword: 您要清除密码?这将移除保存此维基时套用的加密 +Encryption/PromptSetPassword: 为此 TiddlyWiki 设置一个新密码 +InvalidFieldName: 栏位名称 "<$text text=<<fieldName>>/>" 包含无效字符,栏位名称只能包含小写字母、数字、底线 (`_`)、 连字号 (`-`) 和小数点 (`.`) +MissingTiddler/Hint: 佚失条目 "<$text text=<<currentTiddler>>/>" - 点击 {{$:/core/images/edit-button}} 可创建此条目 +RecentChanges/DateFormat: YYYY年0MM月0DD日 +SystemTiddler/Tooltip: 此为系统条目 +TagManager/Colour/Heading: 颜色 +TagManager/Icon/Heading: 图标 +TagManager/Tag/Heading: 标签 +UnsavedChangesWarning: 在此 TiddlyWiki 您有尚未保存的变更 From f37a7101a7f3bf6cff1a5f7051329a9bfee9a7ce Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 10:17:42 +0100 Subject: [PATCH 066/117] Fix problem with new tiddler button --- core/modules/widgets/navigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 72cf5dee2..256829256 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -405,9 +405,9 @@ NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) { mergedTags = $tw.utils.pushTop($tw.utils.parseStringArray(templateTiddler.tags),existingTiddler.fields.tags); } else if(existingTiddler && existingTiddler.fields.tags) { mergedTags = existingTiddler.fields.tags; - } else if(templateTiddler.tags) { + } else if(templateTiddler && templateTiddler.tags) { mergedTags = templateTiddler.tags; - } else if(templateTiddler.fields.tags) { + } else if(templateTiddler && templateTiddler.fields && templateTiddler.fields.tags) { mergedTags = templateTiddler.fields.tags; } // Save the draft tiddler From 087a0aec58b4bb5911cb7c290e058d280b3656f2 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 10:31:10 +0100 Subject: [PATCH 067/117] Fixed typo in language files --- core/language/en-GB/Dates.multids | 2 +- languages/fr-FR/Dates.multids | 2 +- languages/ja-JP/Dates.multids | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/language/en-GB/Dates.multids b/core/language/en-GB/Dates.multids index c300192f9..6859c0324 100644 --- a/core/language/en-GB/Dates.multids +++ b/core/language/en-GB/Dates.multids @@ -1,4 +1,4 @@ -title: $:/language +title: $:/language/ Date/DaySuffix/1: st Date/DaySuffix/2: nd diff --git a/languages/fr-FR/Dates.multids b/languages/fr-FR/Dates.multids index 26b44aa1e..897fe3370 100644 --- a/languages/fr-FR/Dates.multids +++ b/languages/fr-FR/Dates.multids @@ -1,4 +1,4 @@ -title: $:/language +title: $:/language/ RelativeDate/Future/Days: dans <<period>> jours RelativeDate/Future/Hours: dans <<period>> heures diff --git a/languages/ja-JP/Dates.multids b/languages/ja-JP/Dates.multids index 5accb1d62..3ca817b8a 100644 --- a/languages/ja-JP/Dates.multids +++ b/languages/ja-JP/Dates.multids @@ -1,4 +1,4 @@ -title: $:/language +title: $:/language/ RelativeDate/Future/Days: <<period>> 日後 RelativeDate/Future/Hours: <<period>> 時間後 From 39b7771f87cd62a5777d0cbf309f17033f15bcc2 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 10:31:17 +0100 Subject: [PATCH 068/117] Update release notes --- .../tw5.com/tiddlers/releasenotes/BetaReleases.tid | 4 ++-- .../tw5.com/tiddlers/releasenotes/Release 5.1.3.tid | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/releasenotes/BetaReleases.tid b/editions/tw5.com/tiddlers/releasenotes/BetaReleases.tid index d9113239d..e2087e94e 100644 --- a/editions/tw5.com/tiddlers/releasenotes/BetaReleases.tid +++ b/editions/tw5.com/tiddlers/releasenotes/BetaReleases.tid @@ -1,9 +1,9 @@ created: 20131109105400007 -modified: 20140701201607494 +modified: 20141010092837891 tags: Releases title: BetaReleases type: text/vnd.tiddlywiki Here are the details of the beta releases of TiddlyWiki5. See [[TiddlyWiki5 Versioning]] for details of how releases are named. -<<tabs "[tag[BetaReleaseNotes]!sort[created]]" "Release 5.0.19-beta" "$:/state/tab2" "tc-vertical" "ReleaseTemplate">> +<<tabs "[tag[BetaReleaseNotes]!sort[created]]" "Release 5.0.18-beta" "$:/state/tab2" "tc-vertical" "ReleaseTemplate">> diff --git a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid index 20834ce95..353899d38 100644 --- a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid +++ b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid @@ -10,13 +10,20 @@ type: text/vnd.tiddlywiki !! Usability Improvements +* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/e872f17842809e33eae177980e9ea0650b6a4c03]] "new journal" button; see [[Creating journal tiddlers]] +* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/70984aa39f8a4061162d4e404bfd158e515c7e6e]] "new here" button; see [[Creating and editing tiddlers]] +* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/00cdd04edd49c2bf0e461071c0c7c50f8aab4e42]] "new journal here" button; see [[Creating journal tiddlers]] +* [[Made|https://github.com/Jermolene/TiddlyWiki5/commit/c6951ee912d1f2717a8c208cbb920e54edf9e5d9]] date format strings be translateable * [[Added|https://github.com/Jermolene/TiddlyWiki5/tree/master/languages/ru-RU]] Russian translation * [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/ef1d5310918dae088ce9361c1682ce0f99cf568a]] confirmation when clearing password * [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/b7bbcfa05659808c1e51a4f2f5f1d6afbc2ed3a1]] additional prompt when setting password * [[Extended|https://github.com/Jermolene/TiddlyWiki5/commit/63c174d7ed56284e80ad6cd6ae966b81f9181cc9]] ~KaTeX plugin to be able to work under Node.js to generate static HTML +* [[Increased|https://github.com/Jermolene/TiddlyWiki5/commit/dc9981322aeb508d5ebac0b691b0d703f8c1995e]] size of the clear search button + !! Hackability Improvements +* [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/0dcf54c3b59ed04645928f0ec4ced647e5a0da7f]] support for ActionWidgets * [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/65504d5d41e45326ab1b1b6c0c21eea4c9772797]] new [[FilterOperator: addprefix]] and [[FilterOperator: addsuffix]] * [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/0c8e5380778303cdd3308bed4a15290214841f8b]] support for custom password prompts * [[Extended|https://github.com/Jermolene/TiddlyWiki5/commit/c26bd4c5a872f56c47e9f5cfc3fada468c53ddde]] the ListMacro to display ''caption'' field if present @@ -28,14 +35,20 @@ type: text/vnd.tiddlywiki * [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/09b6540998fec6bf1fb14842be8e8c53dbd5c46a]] bug whereby the `tm-home` message wasn't navigating to a tiddler, causing problems in zoomin storyview * [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/3ca8d7b6cca46ffa424bcf9bdc134da464fc84f4]] problem with jumping toolbar icons under Firefox * [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/f85b07e70b71d0622a9459e4b04e2027540abda8]] problem with untagged label being incorrectly coloured +* [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/b3dcd7d625ec83701ef3a77f3fb8101af57c154f]] problem with title background colours with the "Sticky Titles" theme !! Contributors [[@Jermolene|https://github.com/Jermolene]] would like to thank the contributors to this release who have generously given their time to help improve TiddlyWiki: * [[@andrey013|https://github.com/andrey013]] +* [[@BramChen|https://github.com/BramChen]] +* [[@buggyj|https://github.com/buggyj]] * [[@Eucaly|https://github.com/Eucaly]] * [[@fghhfg|https://github.com/fghhfg]] +* [[@gernert|https://github.com/gernert]] * [[@pmario|https://github.com/pmario]] +* [[@simonbaird|https://github.com/simonbaird]] * [[@TheDiveO|https://github.com/TheDiveO]] +* [[@xcazin|https://github.com/xcazin]] From 03defe4256564bf36fb1a4c3b23eb4c24774d4d8 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 10:35:36 +0100 Subject: [PATCH 069/117] Docs cleanup --- editions/tw5.com/tiddlers/TableOfContentsInProcess | 8 -------- .../resources}/TiddlyWiki5 Squared by Iannis Zannos.tid | 0 editions/tw5.com/tiddlers/{ => macros}/NowMacro.tid | 0 .../Working with the TiddlyWiki5 repository video.tid | 0 .../tiddlers/{ => widgets}/ActionNavigateWidget.tid | 0 .../tiddlers/{ => widgets}/ActionSendMessageWidget.tid | 0 editions/tw5.com/tiddlers/{ => widgets}/ActionWidgets.tid | 0 .../workingwithtw/Creating and editing tiddlers.tid | 6 +++++- 8 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 editions/tw5.com/tiddlers/TableOfContentsInProcess rename editions/tw5.com/tiddlers/{ => community/resources}/TiddlyWiki5 Squared by Iannis Zannos.tid (100%) rename editions/tw5.com/tiddlers/{ => macros}/NowMacro.tid (100%) rename editions/tw5.com/tiddlers/{ => videos}/Working with the TiddlyWiki5 repository video.tid (100%) rename editions/tw5.com/tiddlers/{ => widgets}/ActionNavigateWidget.tid (100%) rename editions/tw5.com/tiddlers/{ => widgets}/ActionSendMessageWidget.tid (100%) rename editions/tw5.com/tiddlers/{ => widgets}/ActionWidgets.tid (100%) diff --git a/editions/tw5.com/tiddlers/TableOfContentsInProcess b/editions/tw5.com/tiddlers/TableOfContentsInProcess deleted file mode 100644 index dfdd99e07..000000000 --- a/editions/tw5.com/tiddlers/TableOfContentsInProcess +++ /dev/null @@ -1,8 +0,0 @@ -title: TableOfContentsInProcess -tags: -created: 201409041006 -modified: 201409041006 - -<div class='tc-toc'> -<<toc-selective-expandable 'TableOfContents'>> -</div> diff --git a/editions/tw5.com/tiddlers/TiddlyWiki5 Squared by Iannis Zannos.tid b/editions/tw5.com/tiddlers/community/resources/TiddlyWiki5 Squared by Iannis Zannos.tid similarity index 100% rename from editions/tw5.com/tiddlers/TiddlyWiki5 Squared by Iannis Zannos.tid rename to editions/tw5.com/tiddlers/community/resources/TiddlyWiki5 Squared by Iannis Zannos.tid diff --git a/editions/tw5.com/tiddlers/NowMacro.tid b/editions/tw5.com/tiddlers/macros/NowMacro.tid similarity index 100% rename from editions/tw5.com/tiddlers/NowMacro.tid rename to editions/tw5.com/tiddlers/macros/NowMacro.tid diff --git a/editions/tw5.com/tiddlers/Working with the TiddlyWiki5 repository video.tid b/editions/tw5.com/tiddlers/videos/Working with the TiddlyWiki5 repository video.tid similarity index 100% rename from editions/tw5.com/tiddlers/Working with the TiddlyWiki5 repository video.tid rename to editions/tw5.com/tiddlers/videos/Working with the TiddlyWiki5 repository video.tid diff --git a/editions/tw5.com/tiddlers/ActionNavigateWidget.tid b/editions/tw5.com/tiddlers/widgets/ActionNavigateWidget.tid similarity index 100% rename from editions/tw5.com/tiddlers/ActionNavigateWidget.tid rename to editions/tw5.com/tiddlers/widgets/ActionNavigateWidget.tid diff --git a/editions/tw5.com/tiddlers/ActionSendMessageWidget.tid b/editions/tw5.com/tiddlers/widgets/ActionSendMessageWidget.tid similarity index 100% rename from editions/tw5.com/tiddlers/ActionSendMessageWidget.tid rename to editions/tw5.com/tiddlers/widgets/ActionSendMessageWidget.tid diff --git a/editions/tw5.com/tiddlers/ActionWidgets.tid b/editions/tw5.com/tiddlers/widgets/ActionWidgets.tid similarity index 100% rename from editions/tw5.com/tiddlers/ActionWidgets.tid rename to editions/tw5.com/tiddlers/widgets/ActionWidgets.tid diff --git a/editions/tw5.com/tiddlers/workingwithtw/Creating and editing tiddlers.tid b/editions/tw5.com/tiddlers/workingwithtw/Creating and editing tiddlers.tid index cdbf85ec4..0374fd081 100644 --- a/editions/tw5.com/tiddlers/workingwithtw/Creating and editing tiddlers.tid +++ b/editions/tw5.com/tiddlers/workingwithtw/Creating and editing tiddlers.tid @@ -1,5 +1,5 @@ created: 20140904140300000 -modified: 20140916130530304 +modified: 20141010093319359 tags: [[Working with TiddlyWiki]] title: Creating and editing tiddlers type: text/vnd.tiddlywiki @@ -8,6 +8,10 @@ type: text/vnd.tiddlywiki You create a tiddler either by clicking the {{$:/core/images/new-button}} button in the sidebar, or by clicking on a link to a missing tiddler (links to missing tiddlers will appear in [[blue italic text]]). +See also: + +* [[Creating journal tiddlers]] + ! Editing tiddlers You can edit an existing tiddler by clicking the {{$:/core/images/edit-button}} button at the top right of the tiddler. From 6e4dccda4cbb97c526e209629aa768402131a59d Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 10:35:43 +0100 Subject: [PATCH 070/117] Docs update --- .../tiddlers/workingwithtw/Creating journal tiddlers.tid | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 editions/tw5.com/tiddlers/workingwithtw/Creating journal tiddlers.tid diff --git a/editions/tw5.com/tiddlers/workingwithtw/Creating journal tiddlers.tid b/editions/tw5.com/tiddlers/workingwithtw/Creating journal tiddlers.tid new file mode 100644 index 000000000..0abab07ad --- /dev/null +++ b/editions/tw5.com/tiddlers/workingwithtw/Creating journal tiddlers.tid @@ -0,0 +1,6 @@ +created: 20141010093214683 +modified: 20141010093214683 +tags: [[Working with TiddlyWiki]] +title: Creating journal tiddlers +type: text/vnd.tiddlywiki + From 9a6f1f66be6f924533b39a2a0dfb02d852db3f96 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 20:32:12 +0100 Subject: [PATCH 071/117] Yet more fixing for the Firefox jumping toolbar problem... See #282 --- core/ui/EditTemplate/controls.tid | 2 +- themes/tiddlywiki/vanilla/base.tid | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ui/EditTemplate/controls.tid b/core/ui/EditTemplate/controls.tid index 4369d34ef..e2dcab626 100644 --- a/core/ui/EditTemplate/controls.tid +++ b/core/ui/EditTemplate/controls.tid @@ -4,7 +4,7 @@ tags: $:/tags/EditTemplate \define config-title() $:/config/EditToolbarButtons/Visibility/$(listItem)$ \end -<div class="tc-tiddler-title"> +<div class="tc-tiddler-title tc-tiddler-edit-title"> <$view field="title"/> <span class="tc-tiddler-controls tc-titlebar"><$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list></span> <div style="clear: both;"></div> diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 2d6adf2f1..178358363 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -708,7 +708,7 @@ canvas.tc-edit-bitmapeditor { line-height: 22px; } -.tc-titlebar { +.tc-titlebar, .tc-tiddler-edit-title { overflow: hidden; /* https://github.com/Jermolene/TiddlyWiki5/issues/282 */ } From f7bdb1c04de083f25ef827c61a14ee041f852921 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 20:32:22 +0100 Subject: [PATCH 072/117] Docs updates --- .../workingwithtw/Navigating between open tiddlers.tid | 4 ++-- .../tiddlers/workingwithtw/Using links to navigate.tid | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/editions/tw5.com/tiddlers/workingwithtw/Navigating between open tiddlers.tid b/editions/tw5.com/tiddlers/workingwithtw/Navigating between open tiddlers.tid index e9b02099b..aab29639b 100644 --- a/editions/tw5.com/tiddlers/workingwithtw/Navigating between open tiddlers.tid +++ b/editions/tw5.com/tiddlers/workingwithtw/Navigating between open tiddlers.tid @@ -1,10 +1,10 @@ created: 20140908092600000 -modified: 20140919154732676 +modified: 20141010184954582 tags: [[Working with TiddlyWiki]] title: Navigating between open tiddlers type: text/vnd.tiddlywiki -In the default 'classic' storyview mode, open tiddlers are displayed in a vertical column called the 'story river.' There are a number of ways you can 'navigate the story river' - that is, how you can jump back and forth between the open tiddlers. +In the default 'classic' storyview mode, open tiddlers are displayed in a vertical column called the 'story river.' There are a number of ways you can navigate the story river - that is, how you can jump back and forth between the open tiddlers. * One obvious way is to ''scroll the page up and down'' using the story river scrollbar to the right. diff --git a/editions/tw5.com/tiddlers/workingwithtw/Using links to navigate.tid b/editions/tw5.com/tiddlers/workingwithtw/Using links to navigate.tid index 390ab1b35..09f887da6 100644 --- a/editions/tw5.com/tiddlers/workingwithtw/Using links to navigate.tid +++ b/editions/tw5.com/tiddlers/workingwithtw/Using links to navigate.tid @@ -1,5 +1,5 @@ created: 20140908093600000 -modified: 20140919155030759 +modified: 20141010184816361 tags: [[Working with TiddlyWiki]] title: Using links to navigate between tiddlers type: text/vnd.tiddlywiki @@ -48,6 +48,6 @@ You can use internal hyperlinks (links between tiddlers, normally displayed in b * Finally, you can create your own custom lists of tiddlers by various methods: -** You can transclude a TiddlerFilter (see [[Transclusion in WikiText]]). For example, adding `{{ [tag[mountain]] }}` to a tiddler will insert a list of all tiddlers tagged with 'mountain'. +** You can transclude a [[filter|Filters]] (see [[Transclusion in WikiText]]). For example, adding `{{{ [tag[mountain]] }}}` to a tiddler will insert a list of all tiddlers tagged with 'mountain'. -** You can use the ListWidget. This is more complicated than transcluding a ~TiddlerFilter, but in return allows you more flexibility in designing and displaying the list exactly as you want it to appear. +** You can use the ListWidget. This is more complicated than transcluding a [[filter|Filters]], but in return allows you more flexibility in designing and displaying the list exactly as you want it to appear. From a671e7270698eba2ab83b44aad109ab6de89ae40 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 20:50:50 +0100 Subject: [PATCH 073/117] Fix problem with import button triggering checkbox on Firefox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems that there is a broader problem with the way that the button is embedded within the label of a checkbox; even on Chrome it meant that the checkbox active state was triggered when clicking on any of the buttons. The user experience was in any case confusing; it wasn’t obvious that clicking on the label to the right of the button would flick the checkbox. The solution takes the buttons and labels out of the checkbox label. --- core/ui/ControlPanel/Toolbars/EditToolbar.tid | 2 +- core/ui/ControlPanel/Toolbars/PageControls.tid | 2 +- core/ui/ControlPanel/Toolbars/ViewToolbar.tid | 2 +- core/ui/SideBar/Tools.tid | 2 +- core/ui/TiddlerInfo/Tools.tid | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/ui/ControlPanel/Toolbars/EditToolbar.tid b/core/ui/ControlPanel/Toolbars/EditToolbar.tid index c8f51b137..68d78f854 100644 --- a/core/ui/ControlPanel/Toolbars/EditToolbar.tid +++ b/core/ui/ControlPanel/Toolbars/EditToolbar.tid @@ -15,7 +15,7 @@ $:/config/EditToolbarButtons/Visibility/$(listItem)$ <$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"> -<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<<listItem>> field="caption"/> <i class="tc-muted">-- <$transclude tiddler=<<listItem>> field="description"/></i></$checkbox> +<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>> field="caption"/> <i class="tc-muted">-- <$transclude tiddler=<<listItem>> field="description"/></i> </$list> diff --git a/core/ui/ControlPanel/Toolbars/PageControls.tid b/core/ui/ControlPanel/Toolbars/PageControls.tid index 9acb3dc24..981b6be27 100644 --- a/core/ui/ControlPanel/Toolbars/PageControls.tid +++ b/core/ui/ControlPanel/Toolbars/PageControls.tid @@ -15,7 +15,7 @@ $:/config/PageControlButtons/Visibility/$(listItem)$ <$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem"> -<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<<listItem>> field="caption"/> <i class="tc-muted">-- <$transclude tiddler=<<listItem>> field="description"/></i></$checkbox> +<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>> field="caption"/> <i class="tc-muted">-- <$transclude tiddler=<<listItem>> field="description"/></i> </$list> diff --git a/core/ui/ControlPanel/Toolbars/ViewToolbar.tid b/core/ui/ControlPanel/Toolbars/ViewToolbar.tid index c151ef0c8..071fb206c 100644 --- a/core/ui/ControlPanel/Toolbars/ViewToolbar.tid +++ b/core/ui/ControlPanel/Toolbars/ViewToolbar.tid @@ -15,7 +15,7 @@ $:/config/ViewToolbarButtons/Visibility/$(listItem)$ <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"> -<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<<listItem>> field="caption"/> <i class="tc-muted">-- <$transclude tiddler=<<listItem>> field="description"/></i></$checkbox> +<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>> field="caption"/> <i class="tc-muted">-- <$transclude tiddler=<<listItem>> field="description"/></i> </$list> diff --git a/core/ui/SideBar/Tools.tid b/core/ui/SideBar/Tools.tid index 908426911..f5c62c96f 100644 --- a/core/ui/SideBar/Tools.tid +++ b/core/ui/SideBar/Tools.tid @@ -17,7 +17,7 @@ $:/config/PageControlButtons/Visibility/$(listItem)$ <$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem"> -<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<<listItem>>/> <i class="tc-muted"><$transclude tiddler=<<listItem>> field="description"/></i></$checkbox> +<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>>/> <i class="tc-muted"><$transclude tiddler=<<listItem>> field="description"/></i> </$list> diff --git a/core/ui/TiddlerInfo/Tools.tid b/core/ui/TiddlerInfo/Tools.tid index 7c23a4d64..a7cc433d1 100644 --- a/core/ui/TiddlerInfo/Tools.tid +++ b/core/ui/TiddlerInfo/Tools.tid @@ -14,7 +14,7 @@ $:/config/ViewToolbarButtons/Visibility/$(listItem)$ <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"> -<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<<listItem>>/> <i class="tc-muted"><$transclude tiddler=<<listItem>> field="description"/></i></$checkbox> +<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>>/> <i class="tc-muted"><$transclude tiddler=<<listItem>> field="description"/></i> </$list> From 644ced6d4e78a55c0ea1449e7fcad69fc0eabed5 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 20:58:34 +0100 Subject: [PATCH 074/117] Preserve modified title when reusing drafts Should fix the problem raised by @xcazin --- core/modules/widgets/navigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 256829256..f4a164c62 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -412,14 +412,14 @@ NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) { } // Save the draft tiddler var draftTiddler = new $tw.Tiddler({ - text: "" + text: "", + "draft.title": title }, templateTiddler, existingTiddler, this.wiki.getCreationFields(), { title: draftTitle, - "draft.title": title, "draft.of": title, tags: mergedTags },this.wiki.getModificationFields()); From 06f9ed8bad2c1fbf67700537ab1aed58e2900f19 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 10 Oct 2014 20:58:56 +0100 Subject: [PATCH 075/117] Generate new tiddler titles that aren't already subject of a draft --- core/modules/wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/wiki.js b/core/modules/wiki.js index 9cb34601b..10ec56f21 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -177,7 +177,7 @@ exports.generateNewTitle = function(baseTitle,options) { options = options || {}; var c = 0, title = baseTitle; - while(this.tiddlerExists(title) || this.isShadowTiddler(title)) { + while(this.tiddlerExists(title) || this.isShadowTiddler(title) || this.findDraft(title)) { title = baseTitle + (options.prefix || " ") + (++c); From 0671e59fed301591d0ab6d79f34dfb3267b008c2 Mon Sep 17 00:00:00 2001 From: Simon Baird <simon.baird@gmail.com> Date: Sun, 12 Oct 2014 00:26:51 +1000 Subject: [PATCH 076/117] Add span wrapper around button caption text Reasons: - can show or hide the button text with CSS (assuming tv-config-toolbar-text is yes). - can have different looking buttons in the page controls versus the view toolbar, etc - more flexibility styling the button appearance, for example you can change the text size compared to the icon size - button appearance is more themeable --- core/ui/EditToolbar/cancel.tid | 2 +- core/ui/EditToolbar/delete.tid | 2 +- core/ui/EditToolbar/save.tid | 2 +- core/ui/PageControls/closeall.tid | 2 +- core/ui/PageControls/controlpanel.tid | 2 +- core/ui/PageControls/encryption.tid | 4 ++-- core/ui/PageControls/full-screen.tid | 2 +- core/ui/PageControls/home.tid | 2 +- core/ui/PageControls/import.tid | 2 +- core/ui/PageControls/language.tid | 2 +- core/ui/PageControls/more-page-actions.tid | 2 +- core/ui/PageControls/new-journal.tid | 2 +- core/ui/PageControls/newtiddler.tid | 2 +- core/ui/PageControls/refresh.tid | 2 +- core/ui/PageControls/savewiki.tid | 2 +- core/ui/PageControls/storyview.tid | 2 +- core/ui/PageControls/tag-button.tid | 2 +- core/ui/PageControls/theme.tid | 2 +- core/ui/ViewToolbar/clone.tid | 2 +- core/ui/ViewToolbar/close-others.tid | 2 +- core/ui/ViewToolbar/close.tid | 2 +- core/ui/ViewToolbar/edit.tid | 2 +- core/ui/ViewToolbar/info.tid | 2 +- core/ui/ViewToolbar/more-tiddler-actions.tid | 2 +- core/ui/ViewToolbar/new-here.tid | 2 +- core/ui/ViewToolbar/new-journal-here.tid | 2 +- core/ui/ViewToolbar/permalink.tid | 2 +- core/ui/ViewToolbar/permaview.tid | 2 +- themes/tiddlywiki/vanilla/base.tid | 5 +++++ 29 files changed, 34 insertions(+), 29 deletions(-) diff --git a/core/ui/EditToolbar/cancel.tid b/core/ui/EditToolbar/cancel.tid index 03a533f53..f5e01e3c8 100644 --- a/core/ui/EditToolbar/cancel.tid +++ b/core/ui/EditToolbar/cancel.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Cancel/Hint}} {{$:/core/images/cancel-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Cancel/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span> </$list> </$button> diff --git a/core/ui/EditToolbar/delete.tid b/core/ui/EditToolbar/delete.tid index bab951295..add232c63 100644 --- a/core/ui/EditToolbar/delete.tid +++ b/core/ui/EditToolbar/delete.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Delete/Hint}} {{$:/core/images/delete-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Delete/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Delete/Caption}}/></span> </$list> </$button> \ No newline at end of file diff --git a/core/ui/EditToolbar/save.tid b/core/ui/EditToolbar/save.tid index 1d642c08a..e5282c528 100644 --- a/core/ui/EditToolbar/save.tid +++ b/core/ui/EditToolbar/save.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Save/Hint}} {{$:/core/images/done-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Save/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span> </$list> </$button> \ No newline at end of file diff --git a/core/ui/PageControls/closeall.tid b/core/ui/PageControls/closeall.tid index 95bdcb3a6..a34eff5df 100644 --- a/core/ui/PageControls/closeall.tid +++ b/core/ui/PageControls/closeall.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/CloseAll/Hint}} {{$:/core/images/close-all-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/CloseAll/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/CloseAll/Caption}}/></span> </$list> </$button> diff --git a/core/ui/PageControls/controlpanel.tid b/core/ui/PageControls/controlpanel.tid index 2d4f7d27c..8157c42cc 100644 --- a/core/ui/PageControls/controlpanel.tid +++ b/core/ui/PageControls/controlpanel.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/ControlPanel/Hint}} {{$:/core/images/options-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/ControlPanel/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/ControlPanel/Caption}}/></span> </$list> </$button> diff --git a/core/ui/PageControls/encryption.tid b/core/ui/PageControls/encryption.tid index dffc4efa7..cc06c82cd 100644 --- a/core/ui/PageControls/encryption.tid +++ b/core/ui/PageControls/encryption.tid @@ -9,7 +9,7 @@ description: {{$:/language/Buttons/Encryption/Hint}} {{$:/core/images/locked-padlock}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/></span> </$list> </$button> </$reveal> @@ -19,7 +19,7 @@ description: {{$:/language/Buttons/Encryption/Hint}} {{$:/core/images/unlocked-padlock}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/></span> </$list> </$button> </$reveal> diff --git a/core/ui/PageControls/full-screen.tid b/core/ui/PageControls/full-screen.tid index 1fb6edf59..d2ca1cbd3 100644 --- a/core/ui/PageControls/full-screen.tid +++ b/core/ui/PageControls/full-screen.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/FullScreen/Hint}} {{$:/core/images/full-screen-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/FullScreen/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/FullScreen/Caption}}/></span> </$list> </$button> diff --git a/core/ui/PageControls/home.tid b/core/ui/PageControls/home.tid index 7b48f2a21..8a06f6055 100644 --- a/core/ui/PageControls/home.tid +++ b/core/ui/PageControls/home.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Home/Hint}} {{$:/core/images/home-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Home/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Home/Caption}}/></span> </$list> </$button> diff --git a/core/ui/PageControls/import.tid b/core/ui/PageControls/import.tid index f7b6350bc..654a77ccd 100644 --- a/core/ui/PageControls/import.tid +++ b/core/ui/PageControls/import.tid @@ -9,7 +9,7 @@ description: {{$:/language/Buttons/Import/Hint}} {{$:/core/images/import-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Import/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Import/Caption}}/></span> </$list> </$button> <$browse/> diff --git a/core/ui/PageControls/language.tid b/core/ui/PageControls/language.tid index 1d07da32c..8abc7b126 100644 --- a/core/ui/PageControls/language.tid +++ b/core/ui/PageControls/language.tid @@ -15,7 +15,7 @@ $(languagePluginTitle)$/icon </span> </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Language/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Language/Caption}}/></span> </$list> </$button> <$reveal state=<<qualify "$:/state/popup/language">> type="popup" position="below" animate="yes"> diff --git a/core/ui/PageControls/more-page-actions.tid b/core/ui/PageControls/more-page-actions.tid index 4fe8e2dbd..00b1c58b1 100644 --- a/core/ui/PageControls/more-page-actions.tid +++ b/core/ui/PageControls/more-page-actions.tid @@ -11,7 +11,7 @@ $:/config/PageControlButtons/Visibility/$(listItem)$ {{$:/core/images/down-arrow}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/More/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/More/Caption}}/></span> </$list> </$button> <$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes"> diff --git a/core/ui/PageControls/new-journal.tid b/core/ui/PageControls/new-journal.tid index 6177c96a8..d1b5cae30 100644 --- a/core/ui/PageControls/new-journal.tid +++ b/core/ui/PageControls/new-journal.tid @@ -10,7 +10,7 @@ description: {{$:/language/Buttons/NewJournal/Hint}} {{$:/core/images/new-journal-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/NewJournal/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewJournal/Caption}}/></span> </$list> </$button> \end diff --git a/core/ui/PageControls/newtiddler.tid b/core/ui/PageControls/newtiddler.tid index 1995e5f00..9af1d49ee 100644 --- a/core/ui/PageControls/newtiddler.tid +++ b/core/ui/PageControls/newtiddler.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/NewTiddler/Hint}} {{$:/core/images/new-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/NewTiddler/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewTiddler/Caption}}/></span> </$list> </$button> diff --git a/core/ui/PageControls/refresh.tid b/core/ui/PageControls/refresh.tid index dc2c5467d..18ef57b09 100644 --- a/core/ui/PageControls/refresh.tid +++ b/core/ui/PageControls/refresh.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Refresh/Hint}} {{$:/core/images/refresh-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Refresh/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Refresh/Caption}}/></span> </$list> </$button> diff --git a/core/ui/PageControls/savewiki.tid b/core/ui/PageControls/savewiki.tid index c196c2ecf..16a4312c4 100644 --- a/core/ui/PageControls/savewiki.tid +++ b/core/ui/PageControls/savewiki.tid @@ -9,7 +9,7 @@ description: {{$:/language/Buttons/SaveWiki/Hint}} {{$:/core/images/save-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/SaveWiki/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/SaveWiki/Caption}}/></span> </$list> </span> </$button> \ No newline at end of file diff --git a/core/ui/PageControls/storyview.tid b/core/ui/PageControls/storyview.tid index 1d921ec2f..0b8c43c52 100644 --- a/core/ui/PageControls/storyview.tid +++ b/core/ui/PageControls/storyview.tid @@ -13,7 +13,7 @@ $:/core/images/storyview-$(storyview)$ </$set> </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/StoryView/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/StoryView/Caption}}/></span> </$list> </$button> <$reveal state=<<qualify "$:/state/popup/storyview">> type="popup" position="below" animate="yes"> diff --git a/core/ui/PageControls/tag-button.tid b/core/ui/PageControls/tag-button.tid index e49e611e5..ac1c3524c 100644 --- a/core/ui/PageControls/tag-button.tid +++ b/core/ui/PageControls/tag-button.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/TagManager/Hint}} {{$:/core/images/tag-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/TagManager/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/TagManager/Caption}}/></span> </$list> </$button> diff --git a/core/ui/PageControls/theme.tid b/core/ui/PageControls/theme.tid index 3af7510f3..c14ffba77 100644 --- a/core/ui/PageControls/theme.tid +++ b/core/ui/PageControls/theme.tid @@ -8,7 +8,7 @@ description: {{$:/language/Buttons/Theme/Hint}} {{$:/core/images/theme-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Theme/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Theme/Caption}}/></span> </$list> </$button> <$reveal state=<<qualify "$:/state/popup/theme">> type="popup" position="below" animate="yes"> diff --git a/core/ui/ViewToolbar/clone.tid b/core/ui/ViewToolbar/clone.tid index 9c3f26a9a..a1f97e6d6 100644 --- a/core/ui/ViewToolbar/clone.tid +++ b/core/ui/ViewToolbar/clone.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Clone/Hint}} {{$:/core/images/clone-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Clone/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Clone/Caption}}/></span> </$list> </$button> diff --git a/core/ui/ViewToolbar/close-others.tid b/core/ui/ViewToolbar/close-others.tid index 2be44940b..63bc4da80 100644 --- a/core/ui/ViewToolbar/close-others.tid +++ b/core/ui/ViewToolbar/close-others.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/CloseOthers/Hint}} {{$:/core/images/close-others-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/CloseOthers/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/CloseOthers/Caption}}/></span> </$list> </$button> diff --git a/core/ui/ViewToolbar/close.tid b/core/ui/ViewToolbar/close.tid index 6a6ae1ff1..3f90b68f1 100644 --- a/core/ui/ViewToolbar/close.tid +++ b/core/ui/ViewToolbar/close.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Close/Hint}} {{$:/core/images/close-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Close/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Close/Caption}}/></span> </$list> </$button> \ No newline at end of file diff --git a/core/ui/ViewToolbar/edit.tid b/core/ui/ViewToolbar/edit.tid index 16b3bf185..20e0aa79f 100644 --- a/core/ui/ViewToolbar/edit.tid +++ b/core/ui/ViewToolbar/edit.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Edit/Hint}} {{$:/core/images/edit-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Edit/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Edit/Caption}}/></span> </$list> </$button> diff --git a/core/ui/ViewToolbar/info.tid b/core/ui/ViewToolbar/info.tid index 0dc861638..22ef4f0b6 100644 --- a/core/ui/ViewToolbar/info.tid +++ b/core/ui/ViewToolbar/info.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Info/Hint}} {{$:/core/images/info-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Info/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Info/Caption}}/></span> </$list> </$button> diff --git a/core/ui/ViewToolbar/more-tiddler-actions.tid b/core/ui/ViewToolbar/more-tiddler-actions.tid index b5c1ebc62..ff852f617 100644 --- a/core/ui/ViewToolbar/more-tiddler-actions.tid +++ b/core/ui/ViewToolbar/more-tiddler-actions.tid @@ -11,7 +11,7 @@ $:/config/ViewToolbarButtons/Visibility/$(listItem)$ {{$:/core/images/down-arrow}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/More/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/More/Caption}}/></span> </$list> </$button> <$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes"> diff --git a/core/ui/ViewToolbar/new-here.tid b/core/ui/ViewToolbar/new-here.tid index 6ab831f64..94a81b07f 100644 --- a/core/ui/ViewToolbar/new-here.tid +++ b/core/ui/ViewToolbar/new-here.tid @@ -13,7 +13,7 @@ description: {{$:/language/Buttons/NewHere/Hint}} {{$:/core/images/new-here-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/NewHere/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewHere/Caption}}/></span> </$list> </$button> \end diff --git a/core/ui/ViewToolbar/new-journal-here.tid b/core/ui/ViewToolbar/new-journal-here.tid index 9aeffb602..f93a10a1a 100644 --- a/core/ui/ViewToolbar/new-journal-here.tid +++ b/core/ui/ViewToolbar/new-journal-here.tid @@ -13,7 +13,7 @@ description: {{$:/language/Buttons/NewJournalHere/Hint}} {{$:/core/images/new-journal-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewJournalHere/Caption}}/></span> </$list> </$button> \end diff --git a/core/ui/ViewToolbar/permalink.tid b/core/ui/ViewToolbar/permalink.tid index 0d13052f8..d19c1db1b 100644 --- a/core/ui/ViewToolbar/permalink.tid +++ b/core/ui/ViewToolbar/permalink.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Permalink/Hint}} {{$:/core/images/permalink-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Permalink/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Permalink/Caption}}/></span> </$list> </$button> diff --git a/core/ui/ViewToolbar/permaview.tid b/core/ui/ViewToolbar/permaview.tid index a2b93de4d..699fce949 100644 --- a/core/ui/ViewToolbar/permaview.tid +++ b/core/ui/ViewToolbar/permaview.tid @@ -8,6 +8,6 @@ description: {{$:/language/Buttons/Permaview/Hint}} {{$:/core/images/permaview-button}} </$list> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> -<$text text={{$:/language/Buttons/Permaview/Caption}}/> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Permaview/Caption}}/></span> </$list> </$button> diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 178358363..618273a0c 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -260,6 +260,11 @@ button svg, button img { fill: <<colour muted-foreground>>; } +.tc-btn-text { + padding: 0; + margin: 0; +} + .tc-btn-big-green { padding: 8px; margin: 4px 8px 4px 8px; From ca2afd9eef88ecdeec9bc1ee5209cc72ad1fcf77 Mon Sep 17 00:00:00 2001 From: Xavier Cazin <xcazin@immateriel.fr> Date: Sat, 11 Oct 2014 20:18:20 +0200 Subject: [PATCH 077/117] Journal- and NewTiddler- related fr-FR strings --- languages/fr-FR/Buttons.multids | 6 +++ languages/fr-FR/ControlPanel.multids | 2 + languages/fr-FR/Dates.multids | 75 ++++++++++++++++++++++++++++ languages/fr-FR/Misc.multids | 3 ++ languages/fr-FR/NewJournal.multids | 4 ++ 5 files changed, 90 insertions(+) create mode 100644 languages/fr-FR/NewJournal.multids diff --git a/languages/fr-FR/Buttons.multids b/languages/fr-FR/Buttons.multids index 4b0a59ca7..ed2cf0398 100644 --- a/languages/fr-FR/Buttons.multids +++ b/languages/fr-FR/Buttons.multids @@ -34,10 +34,16 @@ Home/Caption: accueil Home/Hint: Ouvre les tiddlers par défaut Language/Caption: langue Language/Hint: Choix de la langue pour l'interface utilisateur +NewJournal/Caption: nouveau journal +NewJournal/Hint: Crée un nouveau tiddler journal +NewJournalHere/Caption: nouveau journal, ici +NewJournalHere/Hint: Crée un nouveau tiddler journal avec pour tag le tiddler courant NewTiddler/Caption: nouveau tiddler NewTiddler/Hint: Créer un nouveau tiddler More/Caption: plus More/Hint: Autres actions +NewHere/Caption: nouveau, ici +NewHere/Hint: Crée un nouveau tiddler avec pour tag le tiddler courant Permalink/Caption: permalink Permalink/Hint: Remplacer l'URL dans la barre d'adresse du navigateur par un lien direct vers ce tiddler Permaview/Caption: permaview diff --git a/languages/fr-FR/ControlPanel.multids b/languages/fr-FR/ControlPanel.multids index 5a0e05e5a..06606c60e 100644 --- a/languages/fr-FR/ControlPanel.multids +++ b/languages/fr-FR/ControlPanel.multids @@ -10,6 +10,8 @@ Basics/DefaultTiddlers/BottomHint: Utilisez les [[crochets doubles]& Basics/DefaultTiddlers/Prompt: Tiddlers par défaut Basics/DefaultTiddlers/TopHint: Liste des tiddlers qui seront affichés au démarrage : Basics/Language/Prompt: Bonjour ! Langue active : +Basics/NewJournal/Title/Prompt: Modèle pour les titres des tiddlers journaux +Basics/NewJournal/Tags/Prompt: Tags pour les nouveaux tiddlers journaux Basics/OverriddenShadowTiddlers/Prompt: Nombre de tiddlers //shadow// remplacés Basics/ShadowTiddlers/Prompt: Nombre de tiddlers //shadow// Basics/Subtitle/Prompt: Sous-titre diff --git a/languages/fr-FR/Dates.multids b/languages/fr-FR/Dates.multids index 897fe3370..0b613e8be 100644 --- a/languages/fr-FR/Dates.multids +++ b/languages/fr-FR/Dates.multids @@ -1,5 +1,80 @@ title: $:/language/ +Date/DaySuffix/1: er +Date/DaySuffix/2: +Date/DaySuffix/3: +Date/DaySuffix/4: +Date/DaySuffix/5: +Date/DaySuffix/6: +Date/DaySuffix/7: +Date/DaySuffix/8: +Date/DaySuffix/9: +Date/DaySuffix/10: +Date/DaySuffix/11: +Date/DaySuffix/12: +Date/DaySuffix/13: +Date/DaySuffix/14: +Date/DaySuffix/15: +Date/DaySuffix/16: +Date/DaySuffix/17: +Date/DaySuffix/18: +Date/DaySuffix/19: +Date/DaySuffix/20: +Date/DaySuffix/21: +Date/DaySuffix/22: +Date/DaySuffix/23: +Date/DaySuffix/24: +Date/DaySuffix/25: +Date/DaySuffix/26: +Date/DaySuffix/27: +Date/DaySuffix/28: +Date/DaySuffix/29: +Date/DaySuffix/30: +Date/DaySuffix/31: +Date/Long/Day/0: Dimanche +Date/Long/Day/1: Lundi +Date/Long/Day/2: Mardi +Date/Long/Day/3: Mercredi +Date/Long/Day/4: Jeudi +Date/Long/Day/5: Vendredi +Date/Long/Day/6: Samedi +Date/Long/Month/1: Janvier +Date/Long/Month/2: Février +Date/Long/Month/3: Mars +Date/Long/Month/4: Avril +Date/Long/Month/5: Mai +Date/Long/Month/6: Juin +Date/Long/Month/7: Juillet +Date/Long/Month/8: Août +Date/Long/Month/9: Septembre +Date/Long/Month/10: Octobre +<<<<<<< HEAD +Date/Long/Month/11: Novembre +======= +Date/Long/Month/11: November +>>>>>>> a143ad18984e7853e2f6a0020faec3ffdf71d431 +Date/Long/Month/12: Décembre +Date/Period/am: am +Date/Period/pm: pm +Date/Short/Day/0: Di +Date/Short/Day/1: Lu +Date/Short/Day/2: Ma +Date/Short/Day/3: Me +Date/Short/Day/4: Je +Date/Short/Day/5: Ve +Date/Short/Day/6: Sa +Date/Short/Month/1: Jan +Date/Short/Month/2: Fév +Date/Short/Month/3: Mar +Date/Short/Month/4: Avr +Date/Short/Month/5: Mai +Date/Short/Month/6: Jun +Date/Short/Month/7: Jul +Date/Short/Month/8: Aoû +Date/Short/Month/9: Sep +Date/Short/Month/10: Oct +Date/Short/Month/11: Nov +Date/Short/Month/12: Déc RelativeDate/Future/Days: dans <<period>> jours RelativeDate/Future/Hours: dans <<period>> heures RelativeDate/Future/Minutes: dans <<period>> minutes diff --git a/languages/fr-FR/Misc.multids b/languages/fr-FR/Misc.multids index 43e8b65d5..b57f2ce7a 100644 --- a/languages/fr-FR/Misc.multids +++ b/languages/fr-FR/Misc.multids @@ -8,7 +8,10 @@ ConfirmCancelTiddler: Souhaitez-vous annuler les modifications apportées au tid ConfirmDeleteTiddler: Souhaitez-vous supprimer le tiddler « <$text text=<<title>>/> » ? ConfirmOverwriteTiddler: Souhaitez-vous supplanter le tiddler « <$text text=<<title>>/> » ? ConfirmEditShadowTiddler: Vous êtes sur le point d'éditer un ShadowTiddler. Toute modification supplantera la version par défaut du système, rendant les prochaines mises à jour non-triviales. Êtes-vous sûr(e) de vouloir éditer "<$text text=<<title>>/>"? +DefaultNewTiddlerTitle: Nouveau tiddler DropMessage: Lâcher ici (ou appuyer sur « escape » pour annuler) +Encryption/ConfirmClearPassword: Souhaitez-vous supprimer ce mot de passe ? Si oui, ce wiki ne sera plus chiffré au moment de la sauvegarde +Encryption/PromptSetPassword: Indiquer un nouveau mot de passe pour ce TiddlyWiki InvalidFieldName: Caractères illicites dans le nom du champ « <$text text=<<fieldName>>/> ». Les champs ne peuvent contenir que des lettres minuscules non accentuées et les caractères souligné (`_`), tiret (`-`) et point (`.`) MissingTiddler/Hint: Le tiddler « <$text text=<<currentTiddler>>/> » est manquant - cliquez sur {{$:/core/images/edit-button}} pour le créer RecentChanges/DateFormat: DD MMM YYYY diff --git a/languages/fr-FR/NewJournal.multids b/languages/fr-FR/NewJournal.multids new file mode 100644 index 000000000..9a2f139f0 --- /dev/null +++ b/languages/fr-FR/NewJournal.multids @@ -0,0 +1,4 @@ +title: $:/config/NewJournal/ + +Title: YYYY-0MM-0DD à 0hhh0mm'0ss'' +Tags: Journal From 4840357ea0636cbea01d96a9cdca98e6a8ea436b Mon Sep 17 00:00:00 2001 From: Xavier Cazin <xcazin@immateriel.fr> Date: Sat, 11 Oct 2014 20:19:43 +0200 Subject: [PATCH 078/117] Typo in fr-FR Dates --- languages/fr-FR/Dates.multids | 4 ---- 1 file changed, 4 deletions(-) diff --git a/languages/fr-FR/Dates.multids b/languages/fr-FR/Dates.multids index 0b613e8be..5de36a34a 100644 --- a/languages/fr-FR/Dates.multids +++ b/languages/fr-FR/Dates.multids @@ -48,11 +48,7 @@ Date/Long/Month/7: Juillet Date/Long/Month/8: Août Date/Long/Month/9: Septembre Date/Long/Month/10: Octobre -<<<<<<< HEAD Date/Long/Month/11: Novembre -======= -Date/Long/Month/11: November ->>>>>>> a143ad18984e7853e2f6a0020faec3ffdf71d431 Date/Long/Month/12: Décembre Date/Period/am: am Date/Period/pm: pm From 1695d5fe29e9931f24071f8d71cfe7703fea72b7 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Sun, 12 Oct 2014 09:42:16 +0100 Subject: [PATCH 079/117] Docs tweaks --- .../tiddlers/variables/WidgetVariable_ currentTiddler.tid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/variables/WidgetVariable_ currentTiddler.tid b/editions/tw5.com/tiddlers/variables/WidgetVariable_ currentTiddler.tid index e66fb5131..b2fbfa83c 100644 --- a/editions/tw5.com/tiddlers/variables/WidgetVariable_ currentTiddler.tid +++ b/editions/tw5.com/tiddlers/variables/WidgetVariable_ currentTiddler.tid @@ -7,7 +7,7 @@ type: text/vnd.tiddlywiki ! Mechanism -The ''currentTiddler'' variable containes the title of the current tiddler. +The ''currentTiddler'' variable contains the title of the current tiddler. The ListWidget assigns the list result to the ''currentTiddler'' variable, unless the `variable` attribute is specified. @@ -19,4 +19,4 @@ The TranscludeWidget (or WikiText `{{||TemplateTitle}}`) transcludes a tiddler w These mechanisms together allow you to write references like `<$view field="title" format="link"/>` in TemplateTiddlers or inside the ListWidget hierarchy without explicitly specifying the tiddler that it applies to. -See also [[WidgetVariable: storyTiddler]] \ No newline at end of file +See also [[WidgetVariable: storyTiddler]] and [[WidgetVariable: currentTiddler]] From b81095349f4b063b2b308368fbc97ab2549ee3b0 Mon Sep 17 00:00:00 2001 From: Xavier Cazin <xcazin@immateriel.fr> Date: Sun, 12 Oct 2014 11:14:16 +0200 Subject: [PATCH 080/117] Revert NewJournal fr-FR pattern to be the same as en-GB --- languages/fr-FR/NewJournal.multids | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/fr-FR/NewJournal.multids b/languages/fr-FR/NewJournal.multids index 9a2f139f0..bb517bab4 100644 --- a/languages/fr-FR/NewJournal.multids +++ b/languages/fr-FR/NewJournal.multids @@ -1,4 +1,4 @@ title: $:/config/NewJournal/ -Title: YYYY-0MM-0DD à 0hhh0mm'0ss'' +Title: DD MMM YYYY Tags: Journal From 2fe095fcd17a5ddcee192243f6ccba55e68bd5a2 Mon Sep 17 00:00:00 2001 From: Evolena <evo_lena@hotmail.com> Date: Fri, 10 Oct 2014 22:06:48 +0200 Subject: [PATCH 081/117] Fix bad links --- editions/tw5.com/tiddlers/filters/FilterOperator list.tid | 2 +- editions/tw5.com/tiddlers/macros/ChangeCountMacro.tid | 2 +- editions/tw5.com/tiddlers/widgets/CheckboxWidget.tid | 2 +- editions/tw5.com/tiddlers/widgets/EditBitmapWidget.tid | 2 +- editions/tw5.com/tiddlers/widgets/EditTextWidget.tid | 4 ++-- editions/tw5.com/tiddlers/widgets/EditWidget.tid | 2 +- editions/tw5.com/tiddlers/widgets/FieldManglerWidget.tid | 2 +- editions/tw5.com/tiddlers/widgets/FieldsWidget.tid | 2 +- editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid | 4 ++-- editions/tw5.com/tiddlers/widgets/LinkWidget.tid | 2 +- editions/tw5.com/tiddlers/widgets/ListWidget.tid | 2 +- editions/tw5.com/tiddlers/widgets/RadioWidget.tid | 2 +- editions/tw5.com/tiddlers/widgets/ViewWidget.tid | 2 +- .../tw5.com/tiddlers/wikitext/Transclusion in WikiText.tid | 2 +- .../tiddlers/workingwithtw/Using links to navigate.tid | 2 +- 15 files changed, 17 insertions(+), 17 deletions(-) diff --git a/editions/tw5.com/tiddlers/filters/FilterOperator list.tid b/editions/tw5.com/tiddlers/filters/FilterOperator list.tid index d5870a281..c546a3e40 100644 --- a/editions/tw5.com/tiddlers/filters/FilterOperator list.tid +++ b/editions/tw5.com/tiddlers/filters/FilterOperator list.tid @@ -5,7 +5,7 @@ caption: list title: FilterOperator: list type: text/vnd.tiddlywiki -The ''list'' filter operator replaces the current list with the list contained in the [[TextReference|TextReferences]] specified in the operand. The default field for the text reference is `list`. +The ''list'' filter operator replaces the current list with the list contained in the TextReference specified in the operand. The default field for the text reference is `list`. Preceding the operator name with `!` inverts the logic so that the filter only returns the tiddlers in the current list that are not listed in the specified list. diff --git a/editions/tw5.com/tiddlers/macros/ChangeCountMacro.tid b/editions/tw5.com/tiddlers/macros/ChangeCountMacro.tid index 4f6c50c94..ff14a4076 100644 --- a/editions/tw5.com/tiddlers/macros/ChangeCountMacro.tid +++ b/editions/tw5.com/tiddlers/macros/ChangeCountMacro.tid @@ -5,7 +5,7 @@ title: ChangeCountMacro type: text/vnd.tiddlywiki caption: changecount -The changecount macro returns a counter maintained by the TiddlyWiki core that tracks the number of modifications made to each tiddler. The changecount macro always applies to the tiddler named in the [[currentTiddler|WidgetVariable: currentTiddler]] variable. +The changecount macro returns a counter maintained by the TiddlyWiki core that tracks the number of modifications made to each tiddler. The changecount macro always applies to the tiddler named in the CurrentTiddler variable. For example: diff --git a/editions/tw5.com/tiddlers/widgets/CheckboxWidget.tid b/editions/tw5.com/tiddlers/widgets/CheckboxWidget.tid index e6f1e198d..21b13e236 100644 --- a/editions/tw5.com/tiddlers/widgets/CheckboxWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/CheckboxWidget.tid @@ -16,7 +16,7 @@ The checkbox widget displays an HTML `<input type="checkbox">` element that is d The content of the `<$checkbox>` widget is displayed within an HTML `<label>` element immediately after the checkbox itself. This means that clicking on the content will toggle the checkbox. |!Attribute |!Description | -|tiddler |Title of the tiddler to manipulate (defaults to the [[WidgetVariable: currentTiddler]]) | +|tiddler |Title of the tiddler to manipulate (defaults to the CurrentTiddler) | |tag |The name of the tag to which the checkbox should be bound | |field |The name of the field to which the checkbox should be bound | |checked |The value of the field corresponding to the checkbox being checked | diff --git a/editions/tw5.com/tiddlers/widgets/EditBitmapWidget.tid b/editions/tw5.com/tiddlers/widgets/EditBitmapWidget.tid index cbd7b69d7..69080e395 100644 --- a/editions/tw5.com/tiddlers/widgets/EditBitmapWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/EditBitmapWidget.tid @@ -14,7 +14,7 @@ The edit bitmap widget provides a user interface in the browser for editing bitm The content of the `<$edit-bitmap>` widget is ignored. |!Attribute |!Description | -|tiddler |The tiddler to edit (defaults to the [[WidgetVariable: currentTiddler]]) | +|tiddler |The tiddler to edit (defaults to the CurrentTiddler) | ! Configuration diff --git a/editions/tw5.com/tiddlers/widgets/EditTextWidget.tid b/editions/tw5.com/tiddlers/widgets/EditTextWidget.tid index db07d1e68..6ff14fba1 100644 --- a/editions/tw5.com/tiddlers/widgets/EditTextWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/EditTextWidget.tid @@ -15,7 +15,7 @@ By default, the edit text widget generates a `<textarea>` as the HTML editing el The content of the `<$edit-text>` widget is ignored. |!Attribute |!Description | -|tiddler |The tiddler to edit (defaults to the [[WidgetVariable: currentTiddler]]) | +|tiddler |The tiddler to edit (defaults to the CurrentTiddler) | |field |The field to edit (defaults to `text`). Takes precedence over the `index` attribute | |index |The index to edit | |default |The default text to be provided when the target tiddler doesn't exist | @@ -30,7 +30,7 @@ The content of the `<$edit-text>` widget is ignored. One trap to be aware of is that the edit text widget cannot be used to edit a field of the tiddler that contains it. Each keypress results in the tiddler being re-rendered, which loses the cursor position within the text field. -Instead, place the edit text widget in a [[template|TiddlerTemplates]] that references the tiddler you want to modify. +Instead, place the edit text widget in a [[template|TemplateTiddlers]] that references the tiddler you want to modify. For example, if you wanted to edit the value of the "myconfig" field of the tiddler "AppSettings", you might do so by creating a separate tiddler "ChangeAppSettings" that contains the following: diff --git a/editions/tw5.com/tiddlers/widgets/EditWidget.tid b/editions/tw5.com/tiddlers/widgets/EditWidget.tid index 83b648d4e..fa7422371 100644 --- a/editions/tw5.com/tiddlers/widgets/EditWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/EditWidget.tid @@ -13,7 +13,7 @@ The edit widget provides a general purpose interface for editing a tiddler. It d The content of the `<$edit>` widget is ignored. |!Attribute |!Description | -|tiddler |The tiddler to edit (defaults to the [[WidgetVariable: currentTiddler]]) | +|tiddler |The tiddler to edit (defaults to the CurrentTiddler) | |field |The field to edit (defaults to `text`). Takes precedence over the `index` attribute | |index |The index to edit | |class |A CSS class to be added the generated editing widget | diff --git a/editions/tw5.com/tiddlers/widgets/FieldManglerWidget.tid b/editions/tw5.com/tiddlers/widgets/FieldManglerWidget.tid index 326b29ff6..a4933af80 100644 --- a/editions/tw5.com/tiddlers/widgets/FieldManglerWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/FieldManglerWidget.tid @@ -20,4 +20,4 @@ The field mangler widget manipulates the fields and tags of a tiddler. It does s The field mangler widget displays any contained content, and responds to [[Messages]] dispatched within it. |!Attribute |!Description | -|tiddler |Title of the tiddler to manipulate (defaults to the [[WidgetVariable: currentTiddler]]) | +|tiddler |Title of the tiddler to manipulate (defaults to the CurrentTiddler) | diff --git a/editions/tw5.com/tiddlers/widgets/FieldsWidget.tid b/editions/tw5.com/tiddlers/widgets/FieldsWidget.tid index 9d068ce61..9e81ba094 100644 --- a/editions/tw5.com/tiddlers/widgets/FieldsWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/FieldsWidget.tid @@ -22,7 +22,7 @@ The provided template is rendered with the following special substitutions: The content of the `<$fields>` widget is ignored. |!Attribute |!Description | -|tiddler |Title of the tiddler from which the fields are to be displayed (defaults to the [[WidgetVariable: currentTiddler]]) | +|tiddler |Title of the tiddler from which the fields are to be displayed (defaults to the CurrentTiddler) | |template |Text of the template (see above) | |exclude |Lists of fields to be excluded (defaults to "text") | |stripTitlePrefix |If set to "yes" then curly bracketed prefixes are removed from titles (for example `{prefix}HelloThere` converts to `HelloThere`) | diff --git a/editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid b/editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid index f18eea3c1..950153eb9 100644 --- a/editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid @@ -14,8 +14,8 @@ The keyboard widget allows [[Messages]] to be generated in response to key press The content of the `<$keyboard>` widget is rendered normally. The keyboard shortcut only takes effect within the contained content. |!Attribute |!Description | -|message |The title of the WidgetMessage to generate | -|param |The parameter to be passed with the WidgetMessage | +|message |The title of the [[WidgetMessage|Messages]] to generate | +|param |The parameter to be passed with the [[WidgetMessage|Messages]] | |key |Key string identifying the key to be trapped (see below) | |class |A CSS class to be assigned to the generated HTML DIV element | diff --git a/editions/tw5.com/tiddlers/widgets/LinkWidget.tid b/editions/tw5.com/tiddlers/widgets/LinkWidget.tid index 29d163acb..db885e11e 100644 --- a/editions/tw5.com/tiddlers/widgets/LinkWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/LinkWidget.tid @@ -9,7 +9,7 @@ The `link` widget generates links to tiddlers. (Use the HTML `<a>` element to ge ! Content and Attributes |!Attribute |!Description | -|to |The title of the target tiddler for the link (defaults to the [[WidgetVariable: currentTiddler]]) | +|to |The title of the target tiddler for the link (defaults to the CurrentTiddler) | |aria-label |Optional [[Accessibility]] label | |tooltip |Optional tooltip WikiText | diff --git a/editions/tw5.com/tiddlers/widgets/ListWidget.tid b/editions/tw5.com/tiddlers/widgets/ListWidget.tid index 6bc9aaf1d..3efd64b82 100644 --- a/editions/tw5.com/tiddlers/widgets/ListWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/ListWidget.tid @@ -20,7 +20,7 @@ The tiddlers can either be displayed by transcluding each in turn through an opt The content of the `<$list>` widget is an optional template to use for rendering each tiddler in the list (alternatively, the template can be specified as a tiddler title in the ``template`` attribute). |!Attribute |!Description | -|filter |The TiddlerFilter to display | +|filter |The [[tiddler filter|Filters]] to display | |template |The title of a template tiddler for rendering each tiddler in the list | |editTemplate |An alternative template to use for DraftTiddlers in edit mode | |variable |The [[widget variable|WidgetVariables]] name to be assigned the title of each tiddler in the list. Defaults to ''currentTiddler'' | diff --git a/editions/tw5.com/tiddlers/widgets/RadioWidget.tid b/editions/tw5.com/tiddlers/widgets/RadioWidget.tid index 2b520fbf8..a0aa5f496 100644 --- a/editions/tw5.com/tiddlers/widgets/RadioWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/RadioWidget.tid @@ -14,7 +14,7 @@ The radio widget displays an HTML `<input type="radio">` that reflects whether The content of the `<$radio>` widget is displayed within an HTML `<label>` element also containing the radio button. This means that clicking on the content will have the same effect as clicking on the button itself. |!Attribute |!Description | -|tiddler |Title of the tiddler to manipulate (defaults to the [[WidgetVariable: currentTiddler]]) | +|tiddler |Title of the tiddler to manipulate (defaults to the CurrentTiddler) | |field |The name of the field to which the radio button will be bound | |value |The value for the tiddler field | |class |CSS classes to be assigned to the label around the radio button | diff --git a/editions/tw5.com/tiddlers/widgets/ViewWidget.tid b/editions/tw5.com/tiddlers/widgets/ViewWidget.tid index 963d0826e..e7d11bf55 100644 --- a/editions/tw5.com/tiddlers/widgets/ViewWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/ViewWidget.tid @@ -13,7 +13,7 @@ The view widget displays the contents of a tiddler field in a specified format. The content of the `<$view>` widget is displayed if the field or property is missing or empty. |!Attribute |!Description | -|tiddler |The title of the tiddler (defaults to the [[WidgetVariable: currentTiddler]]) | +|tiddler |The title of the tiddler (defaults to the CurrentTiddler) | |field |The name of the field to view (defaults to "text") | |index |The name of the index to view | |format |The format for displaying the field (see below) | diff --git a/editions/tw5.com/tiddlers/wikitext/Transclusion in WikiText.tid b/editions/tw5.com/tiddlers/wikitext/Transclusion in WikiText.tid index fe0df8844..9e1978996 100644 --- a/editions/tw5.com/tiddlers/wikitext/Transclusion in WikiText.tid +++ b/editions/tw5.com/tiddlers/wikitext/Transclusion in WikiText.tid @@ -9,7 +9,7 @@ You can incorporate the content of one tiddler within another using the transclu * `{{MyTiddler}}` transcludes a single tiddler * `{{MyTiddler||TemplateTitle}}` displays the tiddler through a specified [[TemplateTiddler|TemplateTiddlers]] -* `{{||TemplateTitle}}` displays the specified template tiddler without altering the [[current tiddler|WidgetVariable: currentTiddler]] +* `{{||TemplateTitle}}` displays the specified template tiddler without altering the CurrentTiddler You can also use a TextReference instead of a tiddler title: diff --git a/editions/tw5.com/tiddlers/workingwithtw/Using links to navigate.tid b/editions/tw5.com/tiddlers/workingwithtw/Using links to navigate.tid index 09f887da6..3b30e2e6e 100644 --- a/editions/tw5.com/tiddlers/workingwithtw/Using links to navigate.tid +++ b/editions/tw5.com/tiddlers/workingwithtw/Using links to navigate.tid @@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki You can use internal hyperlinks (links between tiddlers, normally displayed in blue text) to navigate between your tiddlers. Clicking on a link to any tiddler will take you to that tiddler. If the tiddler is closed, it will be opened. The wonderful thing about ~Tiddlywiki is that it has made links to tiddlers as accessible as possible. There are links everywhere! Here are the key places where you can find links to tiddlers in ~TiddlyWiki: -* You can ''create a link'' to a tiddler, whether it exists yet or not, in the body of any tiddler. See [[Linking in Wikitext]] to see the various, easy ways to create links between tiddlers. +* You can ''create a link'' to a tiddler, whether it exists yet or not, in the body of any tiddler. See [[Linking in WikiText]] to see the various, easy ways to create links between tiddlers. * Each ''tag pill'' found in your tiddler (such as the 'Working with ~TiddlyWiki' tag pill under the title of this tiddler) contains a link to that tag tiddler, as well a lists of all the tiddlers tagged with that tag. This allows you to go to any of those tiddlers. From 6fc14e5c1f92535f2de468689262c8b0ec1d0ead Mon Sep 17 00:00:00 2001 From: Mario Pietsch <pmariojo@gmail.com> Date: Sun, 12 Oct 2014 16:28:02 +0200 Subject: [PATCH 082/117] german video links for saving with chrome, firefox, ie --- .../de-AT/tiddlers/howto/Speichern mit Chrome.tid | 10 ++++++++-- .../de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid | 11 +++++++++-- .../de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid | 10 ++++++++-- editions/de-AT/tiddlers/howto/Windows HTA Hack.tid | 8 ++++++-- 4 files changed, 31 insertions(+), 8 deletions(-) diff --git a/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid b/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid index ecfd65918..81ce6eb76 100644 --- a/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid +++ b/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid @@ -1,13 +1,19 @@ created: 20131129092604900 creator: pmario -modified: 20140922125135926 -modifier: ChrisK +modified: 20141012120259664 +modifier: pmario tags: howto title: Speichern mit Chrome type: text/vnd.tiddlywiki Diese Methode ist etwas umständlich, da man Einstellungen immer wieder manuell vornehmen muss. Der Vorteil ist, dass diese Methode jedoch mit fast allen Desktop- und vielen mobilen Browsern funktioniert. +!! Video + +<iframe width="560" height="315" src="//www.youtube.com/embed/LcoZ7hQCuFI" frameborder="0" allowfullscreen></iframe> + +!! Speichern mit Chrome + # Speichern Sie eine leere Datei der deutschen Version. #> {{$:/editions/de-AT-DE/snippets/download-empty-button}} #> Wenn der Button nicht funktioniert, dann klicken Sie den Link mit der rechten Maustaste und wählen: "Ziel Speichern unter ..." http://tiddlywiki.com/languages/de-AT/empty.html oder http://tiddlywiki.com/languages/de-DE/empty.html diff --git a/editions/de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid b/editions/de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid index abb19a97e..d0fa5ff6b 100644 --- a/editions/de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid +++ b/editions/de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid @@ -1,13 +1,20 @@ created: 20131221085742684 creator: pmario -modified: 20140922125640163 -modifier: ChrisK +modified: 20141012083445443 +modifier: pmario tags: howto TiddlyFox title: Speichern mit TiddlyFox type: text/vnd.tiddlywiki +!! Android + Wenn Sie "Firefox for Android" verwenden, dann beachten sie: [[Speichern mit TiddlyFox - Android]]. +!! Video (de) + +<iframe width="560" height="315" src="//www.youtube.com/embed/bsWE7jXPbb0" frameborder="0" allowfullscreen></iframe> + +!! Speichern mit TiddlyFox # Stellen Sie sicher, dass Sie die [[aktuelle Version von Firefox|http://getfirefox.com]] verwenden. # Installieren Sie die aktuelle TiddlyFox Erweiterung von: https://addons.mozilla.org/en-US/firefox/addon/tiddlyfox/ # Firefox neu starten! diff --git a/editions/de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid b/editions/de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid index 461f2f944..5c5435995 100644 --- a/editions/de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid +++ b/editions/de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid @@ -1,11 +1,17 @@ created: 20131211220000000 creator: pmario -modified: 20140918102257399 +modified: 20141012141931383 modifier: pmario tags: howto title: Speichern mit TiddlyIE type: text/vnd.tiddlywiki +!! Video + +<iframe width="560" height="315" src="//www.youtube.com/embed/OrWuvjs3Ly0" frameborder="0" allowfullscreen></iframe> + +!! Speichern mit TiddlyIE + # Installieren Sie TiddlyIE AddOn von: #* https://github.com/davidjade/TiddlyIE/releases # Starten Sie Internet Explorer neu. IE wird beim Start einen Dialog anzeigen, mit dem Sie das AddOn freischalten können. @@ -14,7 +20,7 @@ type: text/vnd.tiddlywiki #> http://tiddlywiki.com/languages/de-AT/empty.html oder #> http://tiddlywiki.com/languages/de-DE/empty.html # Suchen Sie die eben geladene Datei im Datei Manager. -#* Geben Sie der Datei einen vernünftigen Namen und stellen Sie sicher, dass die Endung `.html` oder `.htm` ist. +#* Geben Sie der Datei einen vernünftigen Namen und stellen Sie sicher, dass die Endung `.html` ist. # Öffnen Sie die Datei mit dem Internet Explorer # Erstellen Sie einen neuen Tiddler mit dem {{$:/core/images/new-button}} ''plus'' im rechten Menü. # Geben Sie den Text ein und bestätigen die Eingabe mit dem {{$:/core/images/done-button}} ''OK''. diff --git a/editions/de-AT/tiddlers/howto/Windows HTA Hack.tid b/editions/de-AT/tiddlers/howto/Windows HTA Hack.tid index 00abaeee0..9d96331c2 100644 --- a/editions/de-AT/tiddlers/howto/Windows HTA Hack.tid +++ b/editions/de-AT/tiddlers/howto/Windows HTA Hack.tid @@ -1,7 +1,7 @@ created: 20131212223146250 creator: pmario -modified: 20140922132924816 -modifier: ChrisK +modified: 20141012142437720 +modifier: pmario tags: howto title: Windows HTA Hack type: text/vnd.tiddlywiki @@ -12,4 +12,8 @@ Achtung! Der Nachteil dieser Änderung ist, dass die Datei im UTF-16 format gespeichert wird, was sie ungefähr doppelt so groß macht. TW wird standardmäßig im UTF-8 Format gespeichert. Wird die Datei wieder mit einer TW spezifischen Methode gespeichert, dann wird sie wieder kleiner. +Hier ist ein Video von Mario Pietsch, dass den Umgang IE, HTA und TiddlyWiki zeigt. + +<iframe width="560" height="315" src="//www.youtube.com/embed/OrWuvjs3Ly0" frameborder="0" allowfullscreen></iframe> + Siehe Wikipedia (englisch): http://en.wikipedia.org/wiki/HTML_Application From 473b28585ac8b88375c33e7260793760e49a426d Mon Sep 17 00:00:00 2001 From: Mario Pietsch <pmariojo@gmail.com> Date: Sun, 12 Oct 2014 17:05:04 +0200 Subject: [PATCH 083/117] dates and misc same as en-GB now --- languages/de-AT/Dates.multids | 14 ++++++++++++++ languages/de-DE/Buttons.multids | 2 ++ languages/de-DE/Dates.multids | 14 ++++++++++++++ languages/de-DE/Misc.multids | 16 +--------------- 4 files changed, 31 insertions(+), 15 deletions(-) diff --git a/languages/de-AT/Dates.multids b/languages/de-AT/Dates.multids index 5f2982141..ac280cd4e 100644 --- a/languages/de-AT/Dates.multids +++ b/languages/de-AT/Dates.multids @@ -71,3 +71,17 @@ Date/Short/Month/9: Sep Date/Short/Month/10: Okt Date/Short/Month/11: Nov Date/Short/Month/12: Dez +RelativeDate/Future/Days: in <<period>> Tagen +RelativeDate/Future/Hours: in <<period>> Stunden +RelativeDate/Future/Minutes: in <<period>> Minuten +RelativeDate/Future/Months: in <<period>> Monaten +RelativeDate/Future/Second: in einer Sekunde +RelativeDate/Future/Seconds: in <<period>> Sekunden +RelativeDate/Future/Years: in <<period>> Jahren +RelativeDate/Past/Days: vor <<period>> Tagen +RelativeDate/Past/Hours: vor <<period>> Stunden +RelativeDate/Past/Minutes: vor <<period>> Minuten +RelativeDate/Past/Months: vor <<period>> Monaten +RelativeDate/Past/Second: vor einer Sekunde +RelativeDate/Past/Seconds: vor <<period>> Sekunden +RelativeDate/Past/Years: vor <<period>> Jahren diff --git a/languages/de-DE/Buttons.multids b/languages/de-DE/Buttons.multids index 8170a7706..3821cd056 100644 --- a/languages/de-DE/Buttons.multids +++ b/languages/de-DE/Buttons.multids @@ -40,6 +40,8 @@ NewHere/Caption: neu hier NewHere/Hint: Erstelle einen neuen Tiddler der mit diesem getaggt ist NewJournal/Caption: neues Journal NewJournal/Hint: Erstelle einen neuen Journal Tiddler +NewJournalHere/Caption: neues Journal hier +NewJournalHere/Hint: Erstelle ein neues Journal der mit diesem getaggt ist NewTiddler/Caption: neuer Tiddler NewTiddler/Hint: Erstelle einen neuen Tiddler Permalink/Caption: permalink diff --git a/languages/de-DE/Dates.multids b/languages/de-DE/Dates.multids index 1a0a98da2..ff028f0f6 100644 --- a/languages/de-DE/Dates.multids +++ b/languages/de-DE/Dates.multids @@ -71,3 +71,17 @@ Date/Short/Month/9: Sep Date/Short/Month/10: Okt Date/Short/Month/11: Nov Date/Short/Month/12: Dez +RelativeDate/Future/Days: in <<period>> Tagen +RelativeDate/Future/Hours: in <<period>> Stunden +RelativeDate/Future/Minutes: in <<period>> Minuten +RelativeDate/Future/Months: in <<period>> Monaten +RelativeDate/Future/Second: in einer Sekunde +RelativeDate/Future/Seconds: in <<period>> Sekunden +RelativeDate/Future/Years: in <<period>> Jahren +RelativeDate/Past/Days: vor <<period>> Tagen +RelativeDate/Past/Hours: vor <<period>> Stunden +RelativeDate/Past/Minutes: vor <<period>> Minuten +RelativeDate/Past/Months: vor <<period>> Monaten +RelativeDate/Past/Second: vor einer Sekunde +RelativeDate/Past/Seconds: vor <<period>> Sekunden +RelativeDate/Past/Years: vor <<period>> Jahren diff --git a/languages/de-DE/Misc.multids b/languages/de-DE/Misc.multids index 5b7c80ad5..d378e6bb1 100644 --- a/languages/de-DE/Misc.multids +++ b/languages/de-DE/Misc.multids @@ -14,21 +14,7 @@ Encryption/ConfirmClearPassword: Wollen Sie das Passwort löschen? Damit wird di Encryption/PromptSetPassword: Der TiddlyWiki Inhalt wird mit dem nächsten Speichern verschlüsselt! InvalidFieldName: Das Feld: "<$text text=<<fieldName>>/>" enthält illegale Zeichen. Felder müssen klein geschrieben werden. Erlaubte Sonderzeichen sind: Zahlen, Unterstrich (`_`), Minus (`-`) und Punkt (`.`). MissingTiddler/Hint: Fehlender Tiddler "<$text text=<<currentTiddler>>/>" - klicken Sie {{$:/core/images/edit-button}} um ihn zu erzeugen. -RecentChanges/DateFormat: YYYY MMM DD -RelativeDate/Future/Days: in <<period>> Tagen -RelativeDate/Future/Hours: in <<period>> Stunden -RelativeDate/Future/Minutes: in <<period>> Minuten -RelativeDate/Future/Months: in <<period>> Monaten -RelativeDate/Future/Second: in einer Sekunde -RelativeDate/Future/Seconds: in <<period>> Sekunden -RelativeDate/Future/Years: in <<period>> Jahren -RelativeDate/Past/Days: vor <<period>> Tagen -RelativeDate/Past/Hours: vor <<period>> Stunden -RelativeDate/Past/Minutes: vor <<period>> Minuten -RelativeDate/Past/Months: vor <<period>> Monaten -RelativeDate/Past/Second: vor einer Sekunde -RelativeDate/Past/Seconds: vor <<period>> Sekunden -RelativeDate/Past/Years: vor <<period>> Jahren +RecentChanges/DateFormat: YYYY MMM 0DD SystemTiddler/Tooltip: Das ist ein System-Tiddler TagManager/Colour/Heading: Farbe TagManager/Icon/Heading: Symbol From 4519c475510a95cad5ae9a1268bcb4f9d21f261c Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Sun, 12 Oct 2014 16:15:08 +0100 Subject: [PATCH 084/117] Docs update --- .../Creating journal tiddlers.tid | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/editions/tw5.com/tiddlers/workingwithtw/Creating journal tiddlers.tid b/editions/tw5.com/tiddlers/workingwithtw/Creating journal tiddlers.tid index 0abab07ad..62f7efe94 100644 --- a/editions/tw5.com/tiddlers/workingwithtw/Creating journal tiddlers.tid +++ b/editions/tw5.com/tiddlers/workingwithtw/Creating journal tiddlers.tid @@ -4,3 +4,33 @@ tags: [[Working with TiddlyWiki]] title: Creating journal tiddlers type: text/vnd.tiddlywiki +! Introduction + +Journal tiddlers are tiddlers that use a date and/or time as their title. They are typically used as a quick way to record time-stamped information. + +Additional tags on a journal tiddler can be used to link it to other tiddlers, helping to establish the relationships between items of information. + +For example, a journal tiddler called "11th October 2014" might be used to record thoughts and information captured on that particular day. The tags "Shopping" and "New York" might be used to indicate that the entry concerns shopping in New York. + +! Creating a journal tiddler + +The easiest way to create a journal tiddler is to use the ''new journal'' button in the tools tab of the sidebar. If you find yourself often using the button then click the checkbox to display the button in the page control toolbar where it is more easily accessible. + +The new journal button creates the journal tiddler as a blank tiddler with the tag "Journal" and a title derived from todays date. If there is already an existing journal tiddler then it is opened for editing. + +! Creating a tagged journal tiddler + +A common sequence of actions is creating (or re-opening) todays journal and adding a tag for the current tiddler. This can be done with the ''new journal here'' button in the tiddler toolbar (you can find this button in the tools tab of the tiddler info panel). + +For example, one might be reviewing a tiddler called "Times Square" and realise that it is relevant for planning the shopping trip. Clicking the ''new journal here'' button on the "Times Square" tiddler will bring up a journal tagged with "Times Square". + +! Customising journal tiddlers + +Visit the control panel Info/Basics tab to configure new journal creation: + +* "Title of new journal tiddlers" specifies the naming of journal tiddlers as a [[date format string|DateFormat]]. The default setting of "DDth MMM YYYY" causes new journals to have titles of the form "11th October 2014" +* "Tags for new journal tiddlers" specifies one or more optional tags that are automatically applied to new journal tiddlers. Multiple tags should be separated with spaces. Tags containing spaces should be surrounded by double square brackes. For example: `Journal [[Multi-word tag]]` + +One useful hint is to use a title format such as `YYYY-0MM-0DD at 0hhh0mm'0ss''` which causes the time (including seconds) to be included in the journal title. This means that a new, separate journal tiddler will be created each time the button is clicked. + + From 73bc2a1848d4fb117b0ad1f0bc72cae4d29fb83b Mon Sep 17 00:00:00 2001 From: Mario Pietsch <pmariojo@gmail.com> Date: Sun, 12 Oct 2014 17:20:04 +0200 Subject: [PATCH 085/117] remove duplicated elements --- languages/de-AT/Dates.multids | 84 +---------------------------------- 1 file changed, 1 insertion(+), 83 deletions(-) diff --git a/languages/de-AT/Dates.multids b/languages/de-AT/Dates.multids index ac280cd4e..cf4610a4b 100644 --- a/languages/de-AT/Dates.multids +++ b/languages/de-AT/Dates.multids @@ -1,87 +1,5 @@ title: $:/language/ -Date/DaySuffix/1: . -Date/DaySuffix/2: . -Date/DaySuffix/3: . -Date/DaySuffix/4: . -Date/DaySuffix/5: . -Date/DaySuffix/6: . -Date/DaySuffix/7: . -Date/DaySuffix/8: . -Date/DaySuffix/9: . -Date/DaySuffix/10: . -Date/DaySuffix/11: . -Date/DaySuffix/12: . -Date/DaySuffix/13: . -Date/DaySuffix/14: . -Date/DaySuffix/15: . -Date/DaySuffix/16: . -Date/DaySuffix/17: . -Date/DaySuffix/18: . -Date/DaySuffix/19: . -Date/DaySuffix/20: . -Date/DaySuffix/21: . -Date/DaySuffix/22: . -Date/DaySuffix/23: . -Date/DaySuffix/24: . -Date/DaySuffix/25: . -Date/DaySuffix/26: . -Date/DaySuffix/27: . -Date/DaySuffix/28: . -Date/DaySuffix/29: . -Date/DaySuffix/30: . -Date/DaySuffix/31: . -Date/Long/Day/0: Sonntag -Date/Long/Day/1: Montag -Date/Long/Day/2: Dienstag -Date/Long/Day/3: Mittwoch -Date/Long/Day/4: Donnerstag -Date/Long/Day/5: Freitag -Date/Long/Day/6: Samstag +# The rest of the elements is part of languages/de-DE/Dates.multids Date/Long/Month/1: Jänner -Date/Long/Month/2: Februar -Date/Long/Month/3: März -Date/Long/Month/4: April -Date/Long/Month/5: Mai -Date/Long/Month/6: Juni -Date/Long/Month/7: Juli -Date/Long/Month/8: August -Date/Long/Month/9: September -Date/Long/Month/10: Oktober -Date/Long/Month/11: November -Date/Long/Month/12: Dezember -Date/Period/am: am -Date/Period/pm: pm -Date/Short/Day/0: So -Date/Short/Day/1: Mo -Date/Short/Day/2: Di -Date/Short/Day/3: Mi -Date/Short/Day/4: Do -Date/Short/Day/5: Fr -Date/Short/Day/6: Sa Date/Short/Month/1: Jän -Date/Short/Month/2: Feb -Date/Short/Month/3: Mär -Date/Short/Month/4: Apr -Date/Short/Month/5: Mai -Date/Short/Month/6: Jun -Date/Short/Month/7: Jul -Date/Short/Month/8: Aug -Date/Short/Month/9: Sep -Date/Short/Month/10: Okt -Date/Short/Month/11: Nov -Date/Short/Month/12: Dez -RelativeDate/Future/Days: in <<period>> Tagen -RelativeDate/Future/Hours: in <<period>> Stunden -RelativeDate/Future/Minutes: in <<period>> Minuten -RelativeDate/Future/Months: in <<period>> Monaten -RelativeDate/Future/Second: in einer Sekunde -RelativeDate/Future/Seconds: in <<period>> Sekunden -RelativeDate/Future/Years: in <<period>> Jahren -RelativeDate/Past/Days: vor <<period>> Tagen -RelativeDate/Past/Hours: vor <<period>> Stunden -RelativeDate/Past/Minutes: vor <<period>> Minuten -RelativeDate/Past/Months: vor <<period>> Monaten -RelativeDate/Past/Second: vor einer Sekunde -RelativeDate/Past/Seconds: vor <<period>> Sekunden -RelativeDate/Past/Years: vor <<period>> Jahren From 601884d894d49d662c4bc5bc7a482194f26f15bc Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Sun, 12 Oct 2014 16:25:52 +0100 Subject: [PATCH 086/117] Docs tweaks --- .../tw5.com/tiddlers/workingwithtw/Working with TiddlyWiki.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/workingwithtw/Working with TiddlyWiki.tid b/editions/tw5.com/tiddlers/workingwithtw/Working with TiddlyWiki.tid index ebf627860..fb4d217ca 100644 --- a/editions/tw5.com/tiddlers/workingwithtw/Working with TiddlyWiki.tid +++ b/editions/tw5.com/tiddlers/workingwithtw/Working with TiddlyWiki.tid @@ -1,5 +1,5 @@ created: 20140904101100000 -list: [[The First Rule of Using TiddlyWiki]] GettingStarted [[Getting Started Video]] Upgrading [[Navigating between open tiddlers]] [[Using links to navigate between tiddlers]] [[Searching in TiddlyWiki]] [[Creating and editing tiddlers]] Saving [[Formatting text in TiddlyWiki]] [[Structuring TiddlyWiki]] Tagging [[Images in WikiText]] KeyboardShortcuts Encryption +list: [[The First Rule of Using TiddlyWiki]] GettingStarted [[Getting Started Video]] Upgrading [[Navigating between open tiddlers]] [[Using links to navigate between tiddlers]] [[Searching in TiddlyWiki]] [[Creating and editing tiddlers]] [[Creating journal tiddlers]] Saving [[Formatting text in TiddlyWiki]] [[Structuring TiddlyWiki]] Tagging [[Images in WikiText]] KeyboardShortcuts Encryption modified: 20140919191122898 tags: TableOfContents title: Working with TiddlyWiki From 554d2c689cd5401b63931f1b1060ff8d6900c2d3 Mon Sep 17 00:00:00 2001 From: Mario Pietsch <pmariojo@gmail.com> Date: Sun, 12 Oct 2014 17:31:59 +0200 Subject: [PATCH 087/117] revert leading 0 for timeline, but use it with Journal --- languages/de-DE/Misc.multids | 2 +- languages/de-DE/NewJournal.multids | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/languages/de-DE/Misc.multids b/languages/de-DE/Misc.multids index d378e6bb1..3139e8e84 100644 --- a/languages/de-DE/Misc.multids +++ b/languages/de-DE/Misc.multids @@ -14,7 +14,7 @@ Encryption/ConfirmClearPassword: Wollen Sie das Passwort löschen? Damit wird di Encryption/PromptSetPassword: Der TiddlyWiki Inhalt wird mit dem nächsten Speichern verschlüsselt! InvalidFieldName: Das Feld: "<$text text=<<fieldName>>/>" enthält illegale Zeichen. Felder müssen klein geschrieben werden. Erlaubte Sonderzeichen sind: Zahlen, Unterstrich (`_`), Minus (`-`) und Punkt (`.`). MissingTiddler/Hint: Fehlender Tiddler "<$text text=<<currentTiddler>>/>" - klicken Sie {{$:/core/images/edit-button}} um ihn zu erzeugen. -RecentChanges/DateFormat: YYYY MMM 0DD +RecentChanges/DateFormat: YYYY MMM DD SystemTiddler/Tooltip: Das ist ein System-Tiddler TagManager/Colour/Heading: Farbe TagManager/Icon/Heading: Symbol diff --git a/languages/de-DE/NewJournal.multids b/languages/de-DE/NewJournal.multids index 0ce46ea58..1a3cb24c3 100644 --- a/languages/de-DE/NewJournal.multids +++ b/languages/de-DE/NewJournal.multids @@ -1,4 +1,4 @@ title: $:/config/NewJournal/ -Title: YYYY MMM DD +Title: YYYY MMM 0DD Tags: Journal From c39b5b913c2b57dc069ec678d9ef9fcc5fc9a21c Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Sun, 12 Oct 2014 16:45:53 +0100 Subject: [PATCH 088/117] Docs tweak --- editions/tw5.com/tiddlers/concepts/CurrentTiddler.tid | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editions/tw5.com/tiddlers/concepts/CurrentTiddler.tid b/editions/tw5.com/tiddlers/concepts/CurrentTiddler.tid index 59d35f1dd..bc673c507 100644 --- a/editions/tw5.com/tiddlers/concepts/CurrentTiddler.tid +++ b/editions/tw5.com/tiddlers/concepts/CurrentTiddler.tid @@ -1,9 +1,9 @@ created: 20130825144900000 -modified: 20140107114307809 +modified: 20141012154500719 tags: Concepts title: CurrentTiddler type: text/vnd.tiddlywiki -The CurrentTiddler is the current tiddler during WikiText processing. A context tiddler is set by the TiddlerWidget. It allows you to write references like `<$view field="title" format="link"/>` in TemplateTiddlers without explicitly specifying the tiddler that it applies to. +The CurrentTiddler is the current tiddler during WikiText rendering. It is usually set by the TiddlerWidget. It allows you to write references like `<$view field="title"/>` in TemplateTiddlers without explicitly specifying the tiddler that it applies to. -The title of the current tiddler is contained in the widget variable ''currentTiddler''. +The title of the current tiddler is contained in the [[WidgetVariable: currentTiddler]]. From 316e1eca3f8dcd8ee20887eb9943b26ddc4b9d7e Mon Sep 17 00:00:00 2001 From: Mario Pietsch <pmariojo@gmail.com> Date: Sun, 12 Oct 2014 17:45:54 +0200 Subject: [PATCH 089/117] fix video protocol --- editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid | 2 +- editions/de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid | 2 +- editions/de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid | 2 +- editions/de-AT/tiddlers/howto/Windows HTA Hack.tid | 2 +- editions/tw5.com/tiddlers/community/TiddlyWiki Hangouts.tid | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid b/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid index 81ce6eb76..8463b75ec 100644 --- a/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid +++ b/editions/de-AT/tiddlers/howto/Speichern mit Chrome.tid @@ -10,7 +10,7 @@ Diese Methode ist etwas umständlich, da man Einstellungen immer wieder manuell !! Video -<iframe width="560" height="315" src="//www.youtube.com/embed/LcoZ7hQCuFI" frameborder="0" allowfullscreen></iframe> +<iframe width="560" height="315" src="http://www.youtube.com/embed/LcoZ7hQCuFI" frameborder="0" allowfullscreen></iframe> !! Speichern mit Chrome diff --git a/editions/de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid b/editions/de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid index d0fa5ff6b..1b7e5a52a 100644 --- a/editions/de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid +++ b/editions/de-AT/tiddlers/howto/Speichern mit TiddlyFox.tid @@ -12,7 +12,7 @@ Wenn Sie "Firefox for Android" verwenden, dann beachten sie: [[Speichern mit Tid !! Video (de) -<iframe width="560" height="315" src="//www.youtube.com/embed/bsWE7jXPbb0" frameborder="0" allowfullscreen></iframe> +<iframe width="560" height="315" src="http://www.youtube.com/embed/bsWE7jXPbb0" frameborder="0" allowfullscreen></iframe> !! Speichern mit TiddlyFox # Stellen Sie sicher, dass Sie die [[aktuelle Version von Firefox|http://getfirefox.com]] verwenden. diff --git a/editions/de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid b/editions/de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid index 5c5435995..c34906521 100644 --- a/editions/de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid +++ b/editions/de-AT/tiddlers/howto/Speichern mit TiddlyIE.tid @@ -8,7 +8,7 @@ type: text/vnd.tiddlywiki !! Video -<iframe width="560" height="315" src="//www.youtube.com/embed/OrWuvjs3Ly0" frameborder="0" allowfullscreen></iframe> +<iframe width="560" height="315" src="http://www.youtube.com/embed/OrWuvjs3Ly0" frameborder="0" allowfullscreen></iframe> !! Speichern mit TiddlyIE diff --git a/editions/de-AT/tiddlers/howto/Windows HTA Hack.tid b/editions/de-AT/tiddlers/howto/Windows HTA Hack.tid index 9d96331c2..40f91b062 100644 --- a/editions/de-AT/tiddlers/howto/Windows HTA Hack.tid +++ b/editions/de-AT/tiddlers/howto/Windows HTA Hack.tid @@ -14,6 +14,6 @@ TW wird standardmäßig im UTF-8 Format gespeichert. Wird die Datei wieder mit e Hier ist ein Video von Mario Pietsch, dass den Umgang IE, HTA und TiddlyWiki zeigt. -<iframe width="560" height="315" src="//www.youtube.com/embed/OrWuvjs3Ly0" frameborder="0" allowfullscreen></iframe> +<iframe width="560" height="315" src="http://www.youtube.com/embed/OrWuvjs3Ly0" frameborder="0" allowfullscreen></iframe> Siehe Wikipedia (englisch): http://en.wikipedia.org/wiki/HTML_Application diff --git a/editions/tw5.com/tiddlers/community/TiddlyWiki Hangouts.tid b/editions/tw5.com/tiddlers/community/TiddlyWiki Hangouts.tid index e9dce6324..fb9fda85b 100644 --- a/editions/tw5.com/tiddlers/community/TiddlyWiki Hangouts.tid +++ b/editions/tw5.com/tiddlers/community/TiddlyWiki Hangouts.tid @@ -8,4 +8,4 @@ The TiddlyWiki community holds regular Google Hangouts, usually every Tuesday fr Past Hangouts are archived in this YouTube playlist: -<iframe width="560" height="315" src="//www.youtube.com/embed/videoseries?list=PLVT_2PPd-1p34gGCQ5qpwC8QdykxVAI3u" frameborder="0" allowfullscreen></iframe> +<iframe width="560" height="315" src="http://www.youtube.com/embed/videoseries?list=PLVT_2PPd-1p34gGCQ5qpwC8QdykxVAI3u" frameborder="0" allowfullscreen></iframe> From 18fa5a4a5de1d3232e9f354d6bfdb9cf448fb057 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Sun, 12 Oct 2014 16:57:01 +0100 Subject: [PATCH 090/117] Fix typo Thanks @TheDiveO --- bin/serve.cmd | 4 ++-- bin/serve.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/serve.cmd b/bin/serve.cmd index 898904cdc..3f0b69e1c 100644 --- a/bin/serve.cmd +++ b/bin/serve.cmd @@ -43,8 +43,8 @@ echo - %%3 .. password .. can be empty like this: '""' echo - %%4 .. IP address or HOST .. defaults to localhost echo - %%5 .. PORT .. defaults to 8080 echo. -echo Example 1 .\serve .\edition\tw5.com-server username -echo Example 2 .\serve .\edition\tw5.com-server '""' '""' localhost 9090 +echo Example 1 .\serve .\editions\tw5.com-server username +echo Example 2 .\serve .\editions\tw5.com-server '""' '""' localhost 9090 echo .. Example 2 defines: empty username, empty password echo. echo Help information diff --git a/bin/serve.sh b/bin/serve.sh index 3d28d5297..9b9d9da71 100755 --- a/bin/serve.sh +++ b/bin/serve.sh @@ -45,8 +45,8 @@ help() { echo $'\t'-v .. Version echo $'\t'-h .. Help echo - echo Example 1 ./serve ./edition/tw5.com-server username - echo Example 2 ./serve ./edition/tw5.com-server \"\" \"\" localhost 9090 + echo Example 1 ./serve ./editions/tw5.com-server username + echo Example 2 ./serve ./editions/tw5.com-server \"\" \"\" localhost 9090 echo .. Example 2 defines: empty username, empty password echo } From 5154a83cf9bf604a3c9e711b222a12f846086f89 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Mon, 13 Oct 2014 09:11:34 +0100 Subject: [PATCH 091/117] Exclude search string tiddler from search results --- core/ui/AdvancedSearch/Shadows.tid | 2 +- core/ui/AdvancedSearch/Standard.tid | 2 +- core/ui/AdvancedSearch/System.tid | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/ui/AdvancedSearch/Shadows.tid b/core/ui/AdvancedSearch/Shadows.tid index b9fb02726..53cb90372 100644 --- a/core/ui/AdvancedSearch/Shadows.tid +++ b/core/ui/AdvancedSearch/Shadows.tid @@ -17,7 +17,7 @@ caption: {{$:/language/Search/Shadows/Caption}} <<lingo Shadows/Matches>> -<$list filter="[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/> +<$list filter="[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]" template="$:/core/ui/ListItemTemplate"/> </div> diff --git a/core/ui/AdvancedSearch/Standard.tid b/core/ui/AdvancedSearch/Standard.tid index ddc99be78..3f125f68e 100644 --- a/core/ui/AdvancedSearch/Standard.tid +++ b/core/ui/AdvancedSearch/Standard.tid @@ -17,7 +17,7 @@ caption: {{$:/language/Search/Standard/Caption}} <<lingo Standard/Matches>> -<$list filter="[!is[system]search{$:/temp/advancedsearch}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/> +<$list filter="[!is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]" template="$:/core/ui/ListItemTemplate"/> </div> diff --git a/core/ui/AdvancedSearch/System.tid b/core/ui/AdvancedSearch/System.tid index dd51f323e..801f7d4cc 100644 --- a/core/ui/AdvancedSearch/System.tid +++ b/core/ui/AdvancedSearch/System.tid @@ -17,7 +17,7 @@ caption: {{$:/language/Search/System/Caption}} <<lingo System/Matches>> -<$list filter="[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/> +<$list filter="[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]" template="$:/core/ui/ListItemTemplate"/> </div> From 6ec87efb5ab4a3fe82e30dd4fc4109aa9d653c40 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Mon, 13 Oct 2014 09:56:50 +0100 Subject: [PATCH 092/117] Remove references to `$TW5_BUILD_OUTPUT` --- .../Generating Static Sites with TiddlyWiki.tid | 15 ++++++++------- .../tiddlers/mechanisms/TestingMechanism.tid | 6 +++--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid b/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid index 328221864..fae89ff56 100644 --- a/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid +++ b/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid @@ -1,5 +1,5 @@ created: 20130828190200000 -modified: 20140912141647843 +modified: 20141013085608911 tags: [[TiddlyWiki on Node.js]] title: Generating Static Sites with TiddlyWiki type: text/vnd.tiddlywiki @@ -12,14 +12,15 @@ There is much flexibility in how the static HTML is generated. The following sce You can explore a static representation of this TiddlyWiki at <a href="static.html">static.html</a>. That file is a static snapshot of the current DefaultTiddlers. Any tiddlers that it links to are referred to via URLs of the form `/static/HelloThere.html` that point to static snapshots of individual tiddlers. The tiddler HTML files reference a `static.css` stylesheet file. -The included `bin/bld.sh` script includes these commands that are involved in generating the sample static version of the TiddlyWiki5 site: +The following commands are used to generate the sample static version of the TiddlyWiki5 site: ``` ---rendertiddler $:/core/templates/static.template.html $TW5_BUILD_OUTPUT/static.html text/plain \ ---rendertiddler $:/core/templates/static.template.css $TW5_BUILD_OUTPUT/static/static.css text/plain \ ---rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html $TW5_BUILD_OUTPUT/static text/plain \ +--rendertiddler $:/core/templates/static.template.html static.html text/plain \ +--rendertiddler $:/core/templates/static.template.css static/static.css text/plain \ +--rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html static text/plain \ ``` -The first RenderTiddlerCommand saves the static version of the DefaultTiddlers, the second saves the stylesheet, and the final RenderTiddlersCommand generates the HTML representations of individual tiddlers. + +The first RenderTiddlerCommand saves the static version of the DefaultTiddlers, the second saves the stylesheet, and the final RenderTiddlersCommand generates the HTML representations of individual tiddlers. (All the files are placed in the `output` folder of the wiki folder). ! Wiki Snapshot with Internal Links @@ -30,5 +31,5 @@ For example: <a href="alltiddlers.html">alltiddlers.html</a> The example is built by the following line in `bin/bld.sh`: ``` ---rendertiddler $:/core/templates/alltiddlers.template.html $TW5_BUILD_OUTPUT/alltiddlers.html text/plain \ +--rendertiddler $:/core/templates/alltiddlers.template.html alltiddlers.html text/plain \ ``` diff --git a/editions/tw5.com/tiddlers/mechanisms/TestingMechanism.tid b/editions/tw5.com/tiddlers/mechanisms/TestingMechanism.tid index f3c330d52..90694073d 100644 --- a/editions/tw5.com/tiddlers/mechanisms/TestingMechanism.tid +++ b/editions/tw5.com/tiddlers/mechanisms/TestingMechanism.tid @@ -1,4 +1,4 @@ -modified: 201311222159 +modified: 20141013085608911 tags: Mechanisms title: TestingMechanism @@ -28,9 +28,9 @@ To generate a wiki containing the browser tests load up the `test` wiki and save node ./tiddlywiki.js \ ./editions/test \ --verbose \ - --rendertiddler $:/core/save/all $TW5_BUILD_OUTPUT/test.html text/plain \ + --rendertiddler $:/core/save/all test.html text/plain \ ``` -Then, open the `test.html` file in the browser to see the test results. There is a prebuilt version of `test.html` at: +The `test.html` file will be placed in the `output` folder within the wiki folder. Open it in the browser to see the test results. There is a prebuilt version of `test.html` at: http://tiddlywiki.com/test.html From 2d25c40227cb43511c9e3099d145fa83de00abc8 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Mon, 13 Oct 2014 09:59:34 +0100 Subject: [PATCH 093/117] Remove backslashes from example commands --- .../howtos/Generating Static Sites with TiddlyWiki.tid | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid b/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid index fae89ff56..32e0b5c86 100644 --- a/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid +++ b/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid @@ -15,9 +15,9 @@ You can explore a static representation of this TiddlyWiki at <a href="static.ht The following commands are used to generate the sample static version of the TiddlyWiki5 site: ``` ---rendertiddler $:/core/templates/static.template.html static.html text/plain \ ---rendertiddler $:/core/templates/static.template.css static/static.css text/plain \ ---rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html static text/plain \ +--rendertiddler $:/core/templates/static.template.html static.html text/plain +--rendertiddler $:/core/templates/static.template.css static/static.css text/plain +--rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html static text/plain ``` The first RenderTiddlerCommand saves the static version of the DefaultTiddlers, the second saves the stylesheet, and the final RenderTiddlersCommand generates the HTML representations of individual tiddlers. (All the files are placed in the `output` folder of the wiki folder). @@ -31,5 +31,5 @@ For example: <a href="alltiddlers.html">alltiddlers.html</a> The example is built by the following line in `bin/bld.sh`: ``` ---rendertiddler $:/core/templates/alltiddlers.template.html alltiddlers.html text/plain \ +--rendertiddler $:/core/templates/alltiddlers.template.html alltiddlers.html text/plain ``` From 4b3d634b25486b25c7568e55cb0fc9e5b47056c9 Mon Sep 17 00:00:00 2001 From: Xavier Cazin <xcazin@immateriel.fr> Date: Mon, 13 Oct 2014 18:08:28 +0200 Subject: [PATCH 094/117] Fix caption field of NowMacro doc tiddler --- editions/tw5.com/tiddlers/macros/NowMacro.tid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/macros/NowMacro.tid b/editions/tw5.com/tiddlers/macros/NowMacro.tid index 1d58d72f8..6945ddf7a 100644 --- a/editions/tw5.com/tiddlers/macros/NowMacro.tid +++ b/editions/tw5.com/tiddlers/macros/NowMacro.tid @@ -1,6 +1,6 @@ -caption: qualify +caption: now created: 20141008141616791 -modified: 20141008142012309 +modified: 20141013180540337 tags: Macros title: NowMacro type: text/vnd.tiddlywiki From 49dc5694a391a391264a4473e4f4422e2472a3b3 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Tue, 14 Oct 2014 15:14:50 +0100 Subject: [PATCH 095/117] Enhance "includeWikis" to merge build targets Build targets found in included wikis are merged behind any found in the wiki itself --- boot/boot.js | 4 +++- editions/tw5.com/tiddlers/concepts/TiddlyWikiFolders.tid | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index 2ac978d72..0748f5c86 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1583,7 +1583,9 @@ $tw.loadWikiTiddlers = function(wikiPath,parentPaths) { $tw.utils.each(wikiInfo.includeWikis,function(includedWikiPath) { var resolvedIncludedWikiPath = path.resolve(wikiPath,includedWikiPath); if(parentPaths.indexOf(resolvedIncludedWikiPath) === -1) { - $tw.loadWikiTiddlers(resolvedIncludedWikiPath,parentPaths); + var subWikiInfo = $tw.loadWikiTiddlers(resolvedIncludedWikiPath,parentPaths); + // Merge the build targets + wikiInfo.build = $tw.utils.extend([],subWikiInfo.build,wikiInfo.build); } else { $tw.utils.error("Cannot recursively include wiki " + resolvedIncludedWikiPath); } diff --git a/editions/tw5.com/tiddlers/concepts/TiddlyWikiFolders.tid b/editions/tw5.com/tiddlers/concepts/TiddlyWikiFolders.tid index 30baeef3d..d0e14d8ce 100644 --- a/editions/tw5.com/tiddlers/concepts/TiddlyWikiFolders.tid +++ b/editions/tw5.com/tiddlers/concepts/TiddlyWikiFolders.tid @@ -1,5 +1,5 @@ created: 20130825214200000 -modified: 20140912141727308 +modified: 20141013204930183 tags: [[TiddlyWiki on Node.js]] title: TiddlyWikiFolders type: text/vnd.tiddlywiki @@ -27,6 +27,8 @@ The `tiddlywiki.info` file in a wiki folder contains a JSON object comprising th * ''build'' - a hashmap of named build targets, each defined by an array of command tokens (see BuildCommand) * ''config'' - an optional hashmap of configuration options (see below) +Note that the build targets of included wikis are merged if a target of that name isn't defined in the current `tiddlywiki.info` file. + Configuration options include: * ''default-tiddler-location'' - a string path to the default location for the filesystem adaptor to save new tiddlers (resolved relative to the wiki folder) From 62c31ed37a59c49bfd072af53e199a7d784bab29 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Tue, 14 Oct 2014 15:15:20 +0100 Subject: [PATCH 096/117] Add prerelease edition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the edition that we’ll use for publishing prerelease/beta builds of TW --- .../tiddlers/system/DefaultTiddlers.tid | 9 +++++ .../system/GoogleAnalyticsAccount.tid | 3 ++ .../tiddlers/system/GoogleAnalyticsDomain.tid | 3 ++ .../tiddlers/system/SiteSubtitle.tid | 3 ++ .../prerelease/tiddlers/system/SiteTitle.tid | 6 ++++ .../system/TiddlyWiki Pre-release.tid | 6 ++++ editions/prerelease/tiddlywiki.info | 34 +++++++++++++++++++ 7 files changed, 64 insertions(+) create mode 100644 editions/prerelease/tiddlers/system/DefaultTiddlers.tid create mode 100644 editions/prerelease/tiddlers/system/GoogleAnalyticsAccount.tid create mode 100644 editions/prerelease/tiddlers/system/GoogleAnalyticsDomain.tid create mode 100644 editions/prerelease/tiddlers/system/SiteSubtitle.tid create mode 100644 editions/prerelease/tiddlers/system/SiteTitle.tid create mode 100644 editions/prerelease/tiddlers/system/TiddlyWiki Pre-release.tid create mode 100644 editions/prerelease/tiddlywiki.info diff --git a/editions/prerelease/tiddlers/system/DefaultTiddlers.tid b/editions/prerelease/tiddlers/system/DefaultTiddlers.tid new file mode 100644 index 000000000..f822081ff --- /dev/null +++ b/editions/prerelease/tiddlers/system/DefaultTiddlers.tid @@ -0,0 +1,9 @@ +created: 20131127215321439 +modified: 20140912135951542 +title: $:/DefaultTiddlers +type: text/vnd.tiddlywiki + +[[TiddlyWiki Pre-release]] +HelloThere +GettingStarted +Community diff --git a/editions/prerelease/tiddlers/system/GoogleAnalyticsAccount.tid b/editions/prerelease/tiddlers/system/GoogleAnalyticsAccount.tid new file mode 100644 index 000000000..1e0f77e7c --- /dev/null +++ b/editions/prerelease/tiddlers/system/GoogleAnalyticsAccount.tid @@ -0,0 +1,3 @@ +title: $:/GoogleAnalyticsAccount + +UA-32839735-1 \ No newline at end of file diff --git a/editions/prerelease/tiddlers/system/GoogleAnalyticsDomain.tid b/editions/prerelease/tiddlers/system/GoogleAnalyticsDomain.tid new file mode 100644 index 000000000..ee2e3f723 --- /dev/null +++ b/editions/prerelease/tiddlers/system/GoogleAnalyticsDomain.tid @@ -0,0 +1,3 @@ +title: $:/GoogleAnalyticsDomain + +tiddlywiki.com \ No newline at end of file diff --git a/editions/prerelease/tiddlers/system/SiteSubtitle.tid b/editions/prerelease/tiddlers/system/SiteSubtitle.tid new file mode 100644 index 000000000..07d2ed13d --- /dev/null +++ b/editions/prerelease/tiddlers/system/SiteSubtitle.tid @@ -0,0 +1,3 @@ +title: $:/SiteSubtitle + +<<version>> \ No newline at end of file diff --git a/editions/prerelease/tiddlers/system/SiteTitle.tid b/editions/prerelease/tiddlers/system/SiteTitle.tid new file mode 100644 index 000000000..eb3d1d643 --- /dev/null +++ b/editions/prerelease/tiddlers/system/SiteTitle.tid @@ -0,0 +1,6 @@ +created: 20131211131022562 +modified: 20131211131023829 +title: $:/SiteTitle +type: text/vnd.tiddlywiki + +TiddlyWiki Pre-release \ No newline at end of file diff --git a/editions/prerelease/tiddlers/system/TiddlyWiki Pre-release.tid b/editions/prerelease/tiddlers/system/TiddlyWiki Pre-release.tid new file mode 100644 index 000000000..68a5f431f --- /dev/null +++ b/editions/prerelease/tiddlers/system/TiddlyWiki Pre-release.tid @@ -0,0 +1,6 @@ +title: TiddlyWiki Pre-release +modified: 20141013204930183 + +This is a pre-release build of TiddlyWiki. + +It is provided for testing purposes. Please don't try to use it for anything important -- you should use the latest official release from http://tiddlywiki.com. diff --git a/editions/prerelease/tiddlywiki.info b/editions/prerelease/tiddlywiki.info new file mode 100644 index 000000000..85e38ccce --- /dev/null +++ b/editions/prerelease/tiddlywiki.info @@ -0,0 +1,34 @@ +{ + "plugins": [ + "tiddlywiki/cecily", + "tiddlywiki/googleanalytics", + "tiddlywiki/nodewebkitsaver", + "tiddlywiki/github-fork-ribbon", + "tiddlywiki/browser-sniff" + ], + "themes": [ + "tiddlywiki/vanilla", + "tiddlywiki/snowwhite", + "tiddlywiki/nighttime", + "tiddlywiki/starlight", + "tiddlywiki/seamless", + "tiddlywiki/stickytitles", + "tiddlywiki/centralised", + "tiddlywiki/readonly" + ], + "languages": [ + "en-US", + "en-GB", + "de-AT", + "de-DE", + "fr-FR", + "zh-Hans", + "zh-Hant", + "it-IT", + "ja-JP", + "ru-RU" + ], + "includeWikis": [ + "../tw5.com" + ] +} From 86ec42c8c7c1ee44122133d717ef2835496783f6 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Tue, 14 Oct 2014 15:15:48 +0100 Subject: [PATCH 097/117] Readme for build.jermolene.github.io --- .../tiddlers/build/ReadMe for build.jermolene.github.io.tid | 3 +++ editions/dev/tiddlywiki.info | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 editions/dev/tiddlers/build/ReadMe for build.jermolene.github.io.tid diff --git a/editions/dev/tiddlers/build/ReadMe for build.jermolene.github.io.tid b/editions/dev/tiddlers/build/ReadMe for build.jermolene.github.io.tid new file mode 100644 index 000000000..f0e24855e --- /dev/null +++ b/editions/dev/tiddlers/build/ReadMe for build.jermolene.github.io.tid @@ -0,0 +1,3 @@ +title: ReadMe for build.jermolene.github.io + +{{Scripts for building tiddlywiki.com}} diff --git a/editions/dev/tiddlywiki.info b/editions/dev/tiddlywiki.info index 5d4be5dfb..d737e127b 100644 --- a/editions/dev/tiddlywiki.info +++ b/editions/dev/tiddlywiki.info @@ -32,6 +32,8 @@ "--setfield","[tag[external-image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain", "--setfield","[tag[external-image]]","text","","text/plain", "--rendertiddler","$:/core/save/all","index.html","text/plain"], + "build-readme": [ + "--rendertiddler","ReadMe for build.jermolene.github.io","readme.md","text/html"], "favicon": [ "--savetiddler","$:/favicon.ico","favicon.ico"], "static": [ From f721e25b8c6fe80226143a98a11d45f546acfae7 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Tue, 14 Oct 2014 15:15:56 +0100 Subject: [PATCH 098/117] Docs update --- contributing.md | 2 +- .../Releasing a new version of TiddlyWiki.tid | 20 ++++++ .../Releasing new content for TiddlyWiki.tid | 6 ++ .../Scripts for building tiddlywiki.com.tid | 68 +++++++++++++++++++ ...releasing a new version of TiddlyWiki5.tid | 16 ----- readme.md | 58 +++++----------- 6 files changed, 113 insertions(+), 57 deletions(-) create mode 100644 editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid create mode 100644 editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid create mode 100644 editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid delete mode 100644 editions/dev/tiddlers/from tw5.com/Procedure for releasing a new version of TiddlyWiki5.tid diff --git a/contributing.md b/contributing.md index 832b9432f..58e64e879 100644 --- a/contributing.md +++ b/contributing.md @@ -1,3 +1,3 @@ -<h1 class=''>Contributing to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></h1><p>We welcome contributions to the code and documentation of <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> in several ways:</p><ul><li><a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/ReportingBugs.html'>ReportingBugs</a></li><li>Helping to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Improving%2520TiddlyWiki%2520Documentation.html'>improve our documentation</a></li><li>Contributing to the code via <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5' target='_blank'>GitHub</a><ul><li>See <a class='tc-tiddlylink-external' href='http://tiddlywiki.com/dev' target='_blank'>http://tiddlywiki.com/dev</a> for more details</li></ul></li></ul><p>There are other ways to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/HelpingTiddlyWiki.html'>help TiddlyWiki</a> too.</p><h1 class=''>Contributor License Agreement</h1><p>Like other <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/OpenSource.html'>OpenSource</a> projects, <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> needs a signed contributor license agreement from individual contributors. This is a legal agreement that allows contributors to assert that they own the copyright of their contribution, and that they agree to license it to the <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/UnaMesa.html'>UnaMesa</a> Association (the legal entity that owns <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on behalf of the community).</p><ul><li>For individuals use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md' target='_blank'>licenses/CLA-individual</a></li><li>For entities use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md' target='_blank'>licenses/CLA-entity</a></li></ul><h1 class=''>How to sign the CLA</h1><p>Create a <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/GitHub.html'>GitHub</a> pull request to add your name to <code>cla-individual.md</code> or <code>cla-entity.md</code>, with the date in the format (YYYY/MM/DD).</p><p>eg: <code>Jeremy Ruston, @Jermolene, 2011/11/22</code></p><hr><p><em>The CLA documents used for this project were created using <a class='tc-tiddlylink-external' href='http://www.harmonyagreements.org' target='_blank'>Harmony Project Templates</a>. "HA-CLA-I-LIST Version 1.0" for "CLA-individual" and "HA-CLA-E-LIST Version 1.0" for "CLA-entity".</em> +<h1 class=''>Contributing to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></h1><p>We welcome contributions to the code and documentation of <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> in several ways:</p><ul><li><a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/ReportingBugs.html'>ReportingBugs</a></li><li>Helping to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Improving%2520TiddlyWiki%2520Documentation.html'>improve our documentation</a></li><li>Contributing to the code via <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5' target='_blank'>GitHub</a><ul><li>See <a class='tc-tiddlylink-external' href='http://tiddlywiki.com/dev' target='_blank'>http://tiddlywiki.com/dev</a> for more details</li></ul></li></ul><p>There are other ways to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/HelpingTiddlyWiki.html'>help TiddlyWiki</a> too.</p><h1 class=''>Contributor License Agreement</h1><p>Like other <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/OpenSource.html'>OpenSource</a> projects, <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> needs a signed contributor license agreement from individual contributors. This is a legal agreement that allows contributors to assert that they own the copyright of their contribution, and that they agree to license it to the <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/UnaMesa.html'>UnaMesa</a> Association (the legal entity that owns <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on behalf of the community).</p><ul><li>For individuals use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md' target='_blank'>licenses/CLA-individual</a></li><li>For entities use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md' target='_blank'>licenses/CLA-entity</a></li></ul><h1 class=''>How to sign the CLA</h1><p>Create a <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/GitHub.html'>GitHub</a> pull request to add your name to <code>cla-individual.md</code> or <code>cla-entity.md</code>, with the date in the format (YYYY/MM/DD).</p><p><strong>step by step</strong></p><ol><li>click <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md' target='_blank'>licenses/CLA-individual</a> or <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md' target='_blank'>licenses/CLA-entity</a></li><li>in <code>cla-individual.md</code> or <code>cla-entity.md</code> click icon on the top-right corner (clicking this button will fork the project so you can edit the file)</li><li>add your name at the bottom</li></ol><p>eg: <code>Jeremy Ruston, @Jermolene, 2011/11/22</code></p><hr><p><em>The CLA documents used for this project were created using <a class='tc-tiddlylink-external' href='http://www.harmonyagreements.org' target='_blank'>Harmony Project Templates</a>. "HA-CLA-I-LIST Version 1.0" for "CLA-individual" and "HA-CLA-E-LIST Version 1.0" for "CLA-entity".</em> </p><p><em>This file was automatically generated by <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></em> </p> \ No newline at end of file diff --git a/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid b/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid new file mode 100644 index 000000000..5d98ef3e4 --- /dev/null +++ b/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid @@ -0,0 +1,20 @@ +title: Releasing a new version of TiddlyWiki + +# Adjust the release date of the latest release tiddler (eg, [[Release 5.1.3]]) +# Ensure [[Releases]] has the new version as the default tab +# Adjust the modified time of HelloThere +# Make sure ''Jermolene/TiddlyWiki5'' is fully committed +# Edit `package.json` to the new version number +# Run `bin/makereadmes.sh` to build the readme files +# Restore `package.json` to the previous version number +# Run `bin/verbump "5.1.3"` (substituting the correct version number) to update the version number and assign it a tag +# Run `npm publish` to publish to npm +# Verify that the new release of TiddlyWiki is available at https://www.npmjs.org/package/tiddlywiki +# Check the version number of TiddlyWiki specified in `package.json` +# Change current directory to the `build.jermolene.github.io` directory +# Run `npm install` to install the correct version of TiddlyWiki +# Change current directory to the `TiddlyWiki5` directory +# Run `../build.jermolene.github.io/bld.sh` to build the content files +# Verify that the files in the `jermolene.github.io` directory are correct +# Run `../build.jermolene.github.io/deploy.sh` to push the new files to GitHub +# Run `bin/wbld.sh <username> <password>` diff --git a/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid b/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid new file mode 100644 index 000000000..54db985f6 --- /dev/null +++ b/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid @@ -0,0 +1,6 @@ +title: Releasing new content for TiddlyWiki + +# Change current directory to the `TiddlyWiki5` directory +# Run `../build.jermolene.github.io/bld.sh` to build the content files +# Verify that the files in the `jermolene.github.io` directory are correct +# Run `../build.jermolene.github.io/deploy.sh` to push the new files to GitHub diff --git a/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid b/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid new file mode 100644 index 000000000..64814c503 --- /dev/null +++ b/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid @@ -0,0 +1,68 @@ +title: Scripts for building tiddlywiki.com + +These scripts are used to build and release the content for tiddlywiki.com. They are not designed for general purpose use, but you may find techniques that are useful for your own scripts. + +! Hosting + +http://tiddlywiki.com is served by [[GitHub Pages|https://pages.github.com]] from the repository https://github.com/Jermolene/jermolene.github.io + +The scripts live in the repository https://github.com/Jermolene/build.jermolene.github.io + +! Directory structure + +These scripts require the following directories to be siblings: + +* `build.jermolene.github.io` - a local copy of https://github.com/Jermolene/build.jermolene.github.io +* `jermolene.github.io` - a local copy of the repo https://github.com/Jermolene/jermolene.github.io +* `TiddlyWiki5` - a local copy of the repo https://github.com/Jermolene/jermolene.github.io + +The scripts are designed to be executed with the current directory being the `TiddlyWiki5` directory. + +! Configuration + +!! package.json + +The `package.json` in the root of the `build.jermolene.github.io` repository contains a dependency declaration that specifies the latest official released version of TiddlyWiki to be used when building the release targets: + +``` + + "dependencies": { + "tiddlywiki": "5.1.2" + } +``` + +!! Environment variables + +Some of the scripts use the following environment variables: + +* ''TW5_BUILD_MAIN_EDITION'' - the path to the wiki folder to be used as the main edition, generating `index.html` and `encrypted.html` +* ''TW5_BUILD_OUTPUT'' - the path to the output folder (defaults to `../jermolene.github.io`) +* ''TW5_BUILD_TIDDLYWIKI'' - the pathname of the `tiddlywiki.js` to be used (defaults to `../build.jermolene.github.io/node_modules/tiddlywiki/tiddlywiki.js`) + +! Scripts + +!! `bld.sh` + +Builds the `tiddlywiki.com` target files. By default, it uses the version of tiddlywiki specified in the `package.json` file. This can be overridden with the ''TW5_BUILD_TIDDLYWIKI'' environment variable. The following command would select the latest prerelease version of tiddlywiki from the `TiddlyWiki5` directory: + +``` + TW5_BUILD_TIDDLYWIKI=./tiddlywiki.js +``` + +!! `prerelease-bld.sh` + +Builds the `tiddlywiki.com/prerelease` target files using the latest TiddlyWiki prerelease code and special ''prerelease'' edition for the content. + +!! `deploy.sh` + +Pushes the latest changes to the `jermolene.github.io` directory to GitHub. + +! Procedures + +!! Releasing a new version of TiddlyWiki + +{{Releasing a new version of TiddlyWiki}} + +!! Releasing new content for TiddlyWiki + +{{Releasing new content for TiddlyWiki}} diff --git a/editions/dev/tiddlers/from tw5.com/Procedure for releasing a new version of TiddlyWiki5.tid b/editions/dev/tiddlers/from tw5.com/Procedure for releasing a new version of TiddlyWiki5.tid deleted file mode 100644 index 39d711b9c..000000000 --- a/editions/dev/tiddlers/from tw5.com/Procedure for releasing a new version of TiddlyWiki5.tid +++ /dev/null @@ -1,16 +0,0 @@ -created: 20131130132123707 -modified: 20140908153054348 -tags: dev -title: Releasing a new version of TiddlyWiki5 -type: text/vnd.tiddlywiki - -# Adjust the release date of the latest release tiddler (eg, [[Release 5.0.7-beta]]) -# Ensure [[Releases]] has the new version as the default tab -# Adjust the modified time of HelloThere -# Make sure ''Jermolene/TiddlyWiki5'' is fully committed -# Edit `package.json` to the new version number -# Run `bin/bld.sh` to build the deployment files -# Restore `package.json` to the previous version number -# Run `bin/verbump "5.0.8-beta"`, substituting the new version number -# Run `bin/deploy.sh` -# Run `bin/wbld.sh <username> <password>` diff --git a/readme.md b/readme.md index be28003ce..7cceed996 100644 --- a/readme.md +++ b/readme.md @@ -1,189 +1,167 @@ <p>Welcome to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a>, a non-linear personal web notebook that anyone can use and keep forever, independently of any corporation.</p><p><a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> is a complete interactive wiki in <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/JavaScript.html'>JavaScript</a>. It can be used as a single HTML file in the browser or as a powerful Node.js application. It is highly customisable: the entire user interface is itself implemented in hackable <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/WikiText.html'>WikiText</a>.</p><p>Learn more and see it in action at <a class='tc-tiddlylink-external' href='http://tiddlywiki.com/' target='_blank'>http://tiddlywiki.com/</a></p><p>Developer documentation is in progress at <a class='tc-tiddlylink-external' href='http://tiddlywiki.com/dev/' target='_blank'>http://tiddlywiki.com/dev/</a></p><h1 class=''>Installing <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on Node.js</h1><ol><li>Install <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Node.js.html'>Node.js</a> from <a class='tc-tiddlylink-external' href='http://nodejs.org' target='_blank'>http://nodejs.org</a></li><li>Open a command line terminal and type:<blockquote><p><code>npm install -g tiddlywiki</code></p><p>If it fails with an error you may need to re-run the command as an administrator:</p><p><code>npm install -g tiddlywiki</code> (Windows)</p><p><code>sudo npm install -g tiddlywiki</code> (Mac/Linux)</p></blockquote></li><li>Check <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> is installed by typing:<blockquote><p><code>tiddlywiki --version</code></p></blockquote></li><li>In response, you should see <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> report its current version (eg <code>5.0.8-beta</code>; you may also see other debugging information reported)</li><li>Try it out:<ol><li><code>tiddlywiki mynewwiki --init server</code> to create a folder for a new wiki that includes server-related components</li><li><code>tiddlywiki mynewwiki --server</code> to start <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a></li><li>Visit <a class='tc-tiddlylink-external' href='http://127.0.0.1:8080/' target='_blank'>http://127.0.0.1:8080/</a> in your browser</li><li>Try editing and creating tiddlers</li></ol></li></ol><p>The <code>-g</code> flag causes <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> to be installed globally. Without it, <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> will only be available in the directory where you installed it. -</p><h1 class=''>Using <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on Node.js</h1><p><a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> can be used on the command line to perform an extensive set of operations based on <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWikiFolders.html'>TiddlyWikiFolders</a>, <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlerFiles.html'>TiddlerFiles</a> and <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/TiddlyWikiFiles.html'>TiddlyWikiFiles</a>.</p><p>For example, the following command loads the tiddlers from a <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> HTML file and then saves one of them in static HTML:</p><pre><code>tiddlywiki --verbose --load mywiki.html --rendertiddler ReadMe ./readme.html</code></pre><p>Running <code>tiddlywiki</code> from the command line boots the <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> kernel, loads the core plugins and establishes an empty wiki store. It then sequentially processes the command line arguments from left to right. The arguments are separated with spaces.</p><p>The first argument is the optional path to the <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWikiFolders.html'>TiddlyWikiFolder</a> to be loaded. If not present, then the current directory is used.</p><p>The commands and their individual arguments follow, each command being identified by the prefix <code>--</code>.</p><pre><code>tiddlywiki [<wikipath>] [--<command> [<arg>[,<arg>]]]</code></pre><p>The available commands are:</p><p><ul class=''> +</p><h1 class=''>Using <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on Node.js</h1><p><a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> can be used on the command line to perform an extensive set of operations based on <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWikiFolders.html'>TiddlyWikiFolders</a>, <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlerFiles.html'>TiddlerFiles</a> and <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/TiddlyWikiFiles.html'>TiddlyWikiFiles</a>.</p><p>For example, the following command loads the tiddlers from a <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> HTML file and then saves one of them in static HTML:</p><pre><code>tiddlywiki --verbose --load mywiki.html --rendertiddler ReadMe ./readme.html</code></pre><p>Running <code>tiddlywiki</code> from the command line boots the <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> kernel, loads the core plugins and establishes an empty wiki store. It then sequentially processes the command line arguments from left to right. The arguments are separated with spaces.</p><p>The first argument is the optional path to the <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWikiFolders.html'>TiddlyWikiFolder</a> to be loaded. If not present, then the current directory is used.</p><p>The commands and their individual arguments follow, each command being identified by the prefix <code>--</code>.</p><pre><code>tiddlywiki [<wikipath>] [--<command> [<arg>[,<arg>]]]</code></pre><p>The available commands are:</p><p><ul> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/BuildCommand.html'> -build +BuildCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/ClearPasswordCommand.html'> -clearpassword +ClearPasswordCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/HelpCommand.html'> -help +HelpCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/InitCommand.html'> -init +InitCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/LoadCommand.html'> -load +LoadCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/MakeLibraryCommand.html'> -makelibrary +MakeLibraryCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/OutputCommand.html'> -output +OutputCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/PasswordCommand.html'> -password +PasswordCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/RenderTiddlerCommand.html'> -rendertiddler +RenderTiddlerCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/RenderTiddlersCommand.html'> -rendertiddlers +RenderTiddlersCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/SaveTiddlerCommand.html'> -savetiddler +SaveTiddlerCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/SaveTiddlersCommand.html'> -savetiddlers +SaveTiddlersCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/ServerCommand.html'> -server +ServerCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/SetFieldCommand.html'> -setfield +SetFieldCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/VerboseCommand.html'> -verbose +VerboseCommand </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/VersionCommand.html'> -version +VersionCommand </a> </li> -</ul></p><h1 class=''>Upgrading <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on Node.js</h1><p>If you've installed <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki%2520on%2520Node.js.html'>TiddlyWiki on Node.js</a> on the usual way, when a new version is released you can upgrade it with this command:</p><pre><code>npm update -g tiddlywiki</code></pre><p>On Mac or Linux you'll need to add <strong>sudo</strong> like this:</p><pre><code>sudo npm update -g tiddlywiki</code></pre><h1 class=''>Also see</h1><p><ul class=''> +</ul></p><h1 class=''>Upgrading <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on Node.js</h1><p>If you've installed <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki%2520on%2520Node.js.html'>TiddlyWiki on Node.js</a> on the usual way, when a new version is released you can upgrade it with this command:</p><pre><code>npm update -g tiddlywiki</code></pre><p>On Mac or Linux you'll need to add <strong>sudo</strong> like this:</p><pre><code>sudo npm update -g tiddlywiki</code></pre><h1 class=''>Also see</h1><p><ul> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWikiFolders.html'> - TiddlyWikiFolders - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/MultiTiddlerFiles.html'> - MultiTiddlerFiles - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlerFiles.html'> - TiddlerFiles - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Generating%2520Static%2520Sites%2520with%2520TiddlyWiki.html'> - Generating Static Sites with TiddlyWiki - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/How%2520to%2520build%2520a%2520TiddlyWiki5%2520from%2520individual%2520tiddlers.html'> - How to build a TiddlyWiki5 from individual tiddlers - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Using%2520TiddlyWiki%2520for%2520GitHub%2520Pages%2520project%2520documentation.html'> - Using TiddlyWiki for GitHub Pages project documentation - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Using%2520a%2520custom%2520path%2520prefix%2520with%2520the%2520client-server%2520edition.html'> - Using a custom path prefix with the client-server edition - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Building%2520TiddlyWikiClassic.html'> - Building TiddlyWikiClassic - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Environment%2520Variables%2520on%2520Node.js.html'> - Environment Variables on Node.js - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Scripts%2520for%2520TiddlyWiki%2520on%2520Node.js.html'> - Scripts for TiddlyWiki on Node.js - </a> </li> <li> <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Working%2520with%2520the%2520TiddlyWiki5%2520repository.html'> - Working with the TiddlyWiki5 repository - </a> </li> From ed5a87c019d746f13626744fb8488342fb8d739f Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 09:17:00 +0100 Subject: [PATCH 099/117] Docs tweaks --- editions/tw5.com/tiddlers/about/History of TiddlyWiki.tid | 5 ++++- editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/about/History of TiddlyWiki.tid b/editions/tw5.com/tiddlers/about/History of TiddlyWiki.tid index 30afe03ed..25456498c 100644 --- a/editions/tw5.com/tiddlers/about/History of TiddlyWiki.tid +++ b/editions/tw5.com/tiddlers/about/History of TiddlyWiki.tid @@ -62,4 +62,7 @@ I worked on new release of TiddlyWiki from November 2011. As a programmer, worki ! The Future -Now that TiddlyWiki5 has finally left "beta" status behind, my hope is that it will have a long life. Because it only uses standard features of HTML5 and Node.js, there is no reason why it cannot be fully operational for many years to come. My goal is for it last for at least 25 years. +Now that TiddlyWiki5 has finally left "beta" status behind, my hope is that it will have a long life. Because it only uses standard features of HTML5 and Node.js, there is no reason why it cannot be fully operational for many years to come. My goal is for it to last for at least 25 years. + +//Jeremy Ruston, 20th September 2014// + diff --git a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid index 353899d38..17fdf447c 100644 --- a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid +++ b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid @@ -17,7 +17,6 @@ type: text/vnd.tiddlywiki * [[Added|https://github.com/Jermolene/TiddlyWiki5/tree/master/languages/ru-RU]] Russian translation * [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/ef1d5310918dae088ce9361c1682ce0f99cf568a]] confirmation when clearing password * [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/b7bbcfa05659808c1e51a4f2f5f1d6afbc2ed3a1]] additional prompt when setting password -* [[Extended|https://github.com/Jermolene/TiddlyWiki5/commit/63c174d7ed56284e80ad6cd6ae966b81f9181cc9]] ~KaTeX plugin to be able to work under Node.js to generate static HTML * [[Increased|https://github.com/Jermolene/TiddlyWiki5/commit/dc9981322aeb508d5ebac0b691b0d703f8c1995e]] size of the clear search button @@ -37,6 +36,12 @@ type: text/vnd.tiddlywiki * [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/f85b07e70b71d0622a9459e4b04e2027540abda8]] problem with untagged label being incorrectly coloured * [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/b3dcd7d625ec83701ef3a77f3fb8101af57c154f]] problem with title background colours with the "Sticky Titles" theme +!! Node.js Changes + +//These changes are only relevant to people using TiddlyWiki under Node.js// + +* [[Extended|https://github.com/Jermolene/TiddlyWiki5/commit/63c174d7ed56284e80ad6cd6ae966b81f9181cc9]] ~KaTeX plugin to be able to work under Node.js to generate static HTML + !! Contributors [[@Jermolene|https://github.com/Jermolene]] would like to thank the contributors to this release who have generously given their time to help improve TiddlyWiki: From 230f2d96dedb937d9e6ecca77583386e9d7abf8e Mon Sep 17 00:00:00 2001 From: Mario Pietsch <pmariojo@gmail.com> Date: Wed, 15 Oct 2014 15:49:53 +0200 Subject: [PATCH 100/117] some adjustments due to feedback --- languages/de-DE/Buttons.multids | 12 ++++++------ languages/de-DE/ControlPanel.multids | 20 ++++++++++---------- languages/de-DE/Docs/ModuleTypes.multids | 22 +++++++++++----------- languages/de-DE/EditTemplate.multids | 6 +++--- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/languages/de-DE/Buttons.multids b/languages/de-DE/Buttons.multids index 3821cd056..408efa01c 100644 --- a/languages/de-DE/Buttons.multids +++ b/languages/de-DE/Buttons.multids @@ -31,23 +31,23 @@ Import/Hint: Importiere Dateien Info/Caption: info Info/Hint: Informationen zu diesem Tiddler anzeigen Home/Caption: home -Home/Hint: Öffnen der standard (default) Tiddler +Home/Hint: Öffnen der Standard-Tiddler Language/Caption: Sprache -Language/Hint: Auswahl Dialog für die System Sprache +Language/Hint: Auswahldialog für die Systemsprache More/Caption: mehr More/Hint: Weitere Aktionen NewHere/Caption: neu hier NewHere/Hint: Erstelle einen neuen Tiddler der mit diesem getaggt ist NewJournal/Caption: neues Journal -NewJournal/Hint: Erstelle einen neuen Journal Tiddler +NewJournal/Hint: Erstelle einen neuen Journal-Tiddler NewJournalHere/Caption: neues Journal hier NewJournalHere/Hint: Erstelle ein neues Journal der mit diesem getaggt ist NewTiddler/Caption: neuer Tiddler NewTiddler/Hint: Erstelle einen neuen Tiddler Permalink/Caption: permalink -Permalink/Hint: Die Browser Adressleiste enthält einen Link zu diesem Tiddler +Permalink/Hint: Die Adressleiste des Browsers enthält einen Link zu diesem Tiddler Permaview/Caption: permaview -Permaview/Hint: Die Browser Adressleiste enthält einen Link zu allen offenen Tiddlern in dieser "Story" +Permaview/Hint: Die Adressleiste des Browsers enthält einen Link zu allen offenen Tiddlern in dieser [[Story]] Refresh/Caption: aktualisieren Refresh/Hint: Die Seite wird neu in den Browser geladen Save/Caption: speichern @@ -55,7 +55,7 @@ Save/Hint: Speichere diesen Tiddler SaveWiki/Caption: Speichern SaveWiki/Hint: Das Wiki speichern StoryView/Caption: Story Modus -StoryView/Hint: Auswahl des Anzeige Modus für die "Story" +StoryView/Hint: Auswahl des Anzeigemodus für die [[Story]] HideSideBar/Caption: Sidebar ausblenden HideSideBar/Hint: Sidebar ausblenden ShowSideBar/Caption: Sidebar einblenden diff --git a/languages/de-DE/ControlPanel.multids b/languages/de-DE/ControlPanel.multids index e7df8776e..a81a0437b 100755 --- a/languages/de-DE/ControlPanel.multids +++ b/languages/de-DE/ControlPanel.multids @@ -7,11 +7,11 @@ Appearance/Hint: Möglichkeiten um das Aussehen Ihres ~TiddlyWiki's anzupassen. Basics/AnimDuration/Prompt: Animation Dauer: Basics/Caption: Basis Basics/DefaultTiddlers/BottomHint: Verwenden Sie [[doppelte eckige Klammern]] für Titel mit Leerzeichen oder wählen Sie <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">Offene Tiddler beim Laden wiederherstellen.</$button> -Basics/DefaultTiddlers/Prompt: Standard Tiddler: +Basics/DefaultTiddlers/Prompt: Standard-Tiddler: Basics/DefaultTiddlers/TopHint: Tiddler, die beim Start geladen werden: Basics/Language/Prompt: Hallo! Aktuelle Sprache: -Basics/NewJournal/Title/Prompt: Titel des neuen Journal Tiddlers -Basics/NewJournal/Tags/Prompt: Tags des neuen Journal Tiddlers +Basics/NewJournal/Title/Prompt: Titel des neuen Journal-Tiddlers +Basics/NewJournal/Tags/Prompt: Tags des neuen Journal-Tiddlers Basics/OverriddenShadowTiddlers/Prompt: Anzahl überschriebener Schatten-Tiddler: Basics/ShadowTiddlers/Prompt: Anzahl Schatten-Tiddler: Basics/Subtitle/Prompt: Untertitel: @@ -19,7 +19,7 @@ Basics/SystemTiddlers/Prompt: Anzahl System-Tiddler: Basics/Tags/Prompt: Anzahl Tags: Basics/Tiddlers/Prompt: Anzahl Tiddler: Basics/Title/Prompt: Titel dieses ~TiddlyWikis: -Basics/Username/Prompt: Benutzer Signatur zum editieren: +Basics/Username/Prompt: Benutzersignatur zum editieren: Basics/Version/Prompt: ~TiddlyWiki Version: EditorTypes/Caption: Editor Typen EditorTypes/Editor/Caption: Editor @@ -28,10 +28,10 @@ EditorTypes/Type/Caption: MIME-Type Info/Caption: Info Info/Hint: Informationen über dieses TiddlyWiki LoadedModules/Caption: Geladene Module -LoadedModules/Hint: Hier werden die geladenen Module und ihre Quelltext Komponenten angezeigt. Mit "italic" hervorgehobene Tiddler wurden während des Boot-Prozesses erstellt. Diese Tiddler haben keinen Quelltext. +LoadedModules/Hint: Hier werden die geladenen Module und ihre Quelltext-Komponenten angezeigt. Kursiv hervorgehobene Tiddler haben keinen Quelltext. Sie werden während des Boot-Prozesses (Aufrufen des Tiddlywikis) erstellt. Palette/Caption: Palette Palette/Editor/Clone/Caption: Palette klonen -Palette/Editor/Clone/Prompt: Es wird empfohlen, dass Sie diese Schatten-Palette klonen, bevor Sie sie bearbeiten. Der Name der Palette wird im Tiddler Feld "description" eingestellt. +Palette/Editor/Clone/Prompt: Es wird empfohlen, dass Sie diese Schatten-Palette klonen, bevor Sie sie bearbeiten. Der Name der Palette wird im Tiddler-Feld "description" eingestellt. Palette/Editor/Prompt/Modified: Diese Schatten-Palette wurde bearbeitet. Palette/Editor/Prompt: Bearbeiten Palette/Editor/Reset/Caption: Palette zurücksetzen @@ -56,9 +56,9 @@ Saving/TiddlySpot/Backups: "Backups" Saving/TiddlySpot/Description: Diese Einstellungen sind nur für http://tiddlyspot.com und kompatible Server aktiv! Saving/TiddlySpot/Filename: "Upload" Dateiname Saving/TiddlySpot/Heading: ~TiddlySpot -Saving/TiddlySpot/Hint: //Die standard Server URL ist `http://<wikiname>.tiddlyspot.com/store.cgi` und kann im Feld 'Server URL' verändert werden.// +Saving/TiddlySpot/Hint: //Die standard Server-URL ist `http://<wikiname>.tiddlyspot.com/store.cgi` und kann im Feld 'Server-URL' verändert werden.// Saving/TiddlySpot/Password: Passwort -Saving/TiddlySpot/ServerURL: Server URL +Saving/TiddlySpot/ServerURL: Server-URL Saving/TiddlySpot/UploadDir: "Upload" Verzeichnis Saving/TiddlySpot/UserName: Wiki Name Settings/AutoSave/Caption: Automatisch speichern @@ -68,8 +68,8 @@ Settings/AutoSave/Hint: Änderungen des Wikis automatisch speichern Settings/Caption: Einstellungen Settings/Hint: Diese erweiterten Einstellungen ermöglichen Ihnen, das Verhalten von TiddlyWiki zu ändern. Settings/NavigationAddressBar/Caption: Navigation Adresszeile -Settings/NavigationAddressBar/Hint: Verhalten der Browser Adresszeile, wenn ein Tiddler geöffnet wird: -Settings/NavigationAddressBar/No/Description: Die Browser Adresszeile wird nicht verändert. +Settings/NavigationAddressBar/Hint: Verhalten der Adresszeile des Browsers, wenn ein Tiddler geöffnet wird: +Settings/NavigationAddressBar/No/Description: Die Adresszeile des Browsers wird nicht verändert. Settings/NavigationAddressBar/Permalink/Description: Den aktuellen Tiddler einbinden. Settings/NavigationAddressBar/Permaview/Description: Alle geöffneten Tiddler einbinden. Settings/NavigationHistory/Caption: Browser Chronik diff --git a/languages/de-DE/Docs/ModuleTypes.multids b/languages/de-DE/Docs/ModuleTypes.multids index 582644717..1a001df29 100644 --- a/languages/de-DE/Docs/ModuleTypes.multids +++ b/languages/de-DE/Docs/ModuleTypes.multids @@ -1,21 +1,21 @@ title: $:/language/Docs/ModuleTypes/ animation: Animationen, die vom RevealWidget verwendet werden. -command: Kommandozeilen Parameter, die mit node.js ausgeführt werden können. +command: Kommandozeilen-Parameter, die mit node.js ausgeführt werden können. config: Daten, die in `$tw.config` eingefügt werden. -filteroperator: Individuelle Filter Operator Funktionen. +filteroperator: Individuelle Funktionen für den Filter-Operator. global: Globale Daten, die in `$tw` eingefügt werden. -isfilteroperator: Operanden, für den ''is'' Filter Operator. -macro: Globale JavaScript Macro Definitionen. +isfilteroperator: Operanden für den Filter-Operator: ''is'' +macro: Globale Macro-Definitionen in JavaScript. parser: Parser für verschiedene Tiddler Typen. saver: "Savers" stellen verschiedene Methoden zum Speichern mit dem Browser zur Verfügung. -startup: Initialisierungs Funktionen. -storyview: "Story View" ist für das Verhalten des "ListWidget's" zuständig, das die Tiddler "Hauptanzeige" verwaltet. -tiddlerdeserializer: Konvertiert unterschiedliche "Inhalts Typen" in das Tiddler Format. -tiddlerfield: Definiert das Verhalten, der unterschiedlichen Tiddler Felder. +startup: Funktionen zur Initialisierung. +storyview: "[[Story View|Story]]" ist für das Verhalten des "ListWidgets" zuständig, das die Tiddler "Hauptanzeige" verwaltet. Mit dem Toolbutton "Story Modus" wird einer dieser Modi ausgewählt. +tiddlerdeserializer: Konvertiert verschiedene textbasierte Inhaltstypen in das Tiddler-Format. +tiddlerfield: Definiert das Verhalten, der unterschiedlichen Tiddler-Felder. tiddlermethod: Methoden werden dem `$tw.Tiddler` Prototypen hinzugefügt. utils: Methoden werden `$tw.utils` hinzugefügt. -utils-node: Erweitert `$tw.utils` mit node.js spezifischen Methoden. -widget: Widgets verarbeiten das "Rendern" und "Aktualisieren" der Anzeige in der DOM. +utils-node: Erweitert `$tw.utils` mit Methoden aus node.js. +widget: Widgets verarbeiten das Rendern und Aktualisieren der Anzeige in der DOM. wikimethod: Methoden werden zu `$tw.Wiki` hinzugefügt. -wikirule: Enthält die individuellen "Parser Regeln" für den WikiText Parser. +wikirule: Enthält die individuellen Parser Regeln für den WikiText-Parser. diff --git a/languages/de-DE/EditTemplate.multids b/languages/de-DE/EditTemplate.multids index 201f3ab0c..d65cda1d6 100644 --- a/languages/de-DE/EditTemplate.multids +++ b/languages/de-DE/EditTemplate.multids @@ -1,7 +1,7 @@ title: $:/language/EditTemplate/ Body/External/Hint: Diese ist ein externer Tiddler, der nicht im TW file gespeichert ist. Sie können die "Tags" und "Feld" Texte ändern, jedoch nicht den Inhalt des Tiddlers! -Body/Hint: Verwenden Sie [[WikiText|http://tiddlywiki.com/static/WikiText.html]] zum Formatieren. +Body/Hint: Verwenden Sie zum Formatieren [[WikiText|http://tiddlywiki.com/static/WikiText.html]]. Body/Placeholder: Geben Sie den Text für diesen Tiddler ein. Body/Preview/Button/Hide: Vorschau aus Body/Preview/Button/Show: Vorschau @@ -10,8 +10,8 @@ Fields/Add/Name/Placeholder: Feld Name Fields/Add/Prompt: Feld einfügen: Fields/Add/Value/Placeholder: Feld Text / Wert Shadow/Warning: Dies ist ein Schatten-Tiddler. Jede Änderung überschreibt die Standardversion. -Shadow/OverriddenWarning: Dies ist ein veränderter Tiddler. Um zur Standardversion zurück zu kehren, löschen Sie diesen Tiddler. +Shadow/OverriddenWarning: Dies ist ein veränderter Tiddler. Um zur Standardversion zurückzukehren, löschen Sie diesen Tiddler. Tags/Add/Button: ok Tags/Add/Placeholder: neuer Tag Type/Placeholder: Tiddler Format -Type/Prompt: Type: +Type/Prompt: Typ: From 5dfda99388262e0c7c7069288f2689473662faff Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 16:17:46 +0100 Subject: [PATCH 101/117] Remove scripts that have moved to build.jermolene.github.io --- bin/deploy.cmd | 17 ----------------- bin/deploy.sh | 17 ----------------- bin/verbump.cmd | 16 ---------------- bin/verbump.sh | 17 ----------------- bin/wbld.cmd | 26 -------------------------- bin/wbld.sh | 30 ------------------------------ 6 files changed, 123 deletions(-) delete mode 100644 bin/deploy.cmd delete mode 100755 bin/deploy.sh delete mode 100644 bin/verbump.cmd delete mode 100755 bin/verbump.sh delete mode 100644 bin/wbld.cmd delete mode 100755 bin/wbld.sh diff --git a/bin/deploy.cmd b/bin/deploy.cmd deleted file mode 100644 index d1bf0cf5c..000000000 --- a/bin/deploy.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@echo off - -rem Publish to NPM - -npm publish || exit 1 - -rem Deploy latest build to github - -pushd ..\jermolene.github.com - -git add --all || exit 1 - -git commit -m "Updates" || exit 1 - -git push origin || exit 1 - -popd diff --git a/bin/deploy.sh b/bin/deploy.sh deleted file mode 100755 index 7c392005c..000000000 --- a/bin/deploy.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -# Publish to NPM - -npm publish || exit 1 - -# Deploy latest build to github - -pushd ../jermolene.github.com - -git add --all || exit 1 - -git commit -m "Updates" || exit 1 - -git push origin || exit 1 - -popd diff --git a/bin/verbump.cmd b/bin/verbump.cmd deleted file mode 100644 index 378a3e3e8..000000000 --- a/bin/verbump.cmd +++ /dev/null @@ -1,16 +0,0 @@ -@echo off - -rem Bump to a new version number - -if "x%1" == "x" ( - echo Missing version (eg '5.0.0-alpha'^) - exit 1 -) - -rem Set the new version number (will also commit and tag the release) - -npm version %1 -m "Version number update for %1" || exit 1 - -rem Make sure our tags are pushed to the origin server - -git push origin --tags || exit 1 diff --git a/bin/verbump.sh b/bin/verbump.sh deleted file mode 100755 index fe97908ef..000000000 --- a/bin/verbump.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -# Bump to a new version number - -if [ -z "$1" ] - then - echo "Missing version (eg '5.0.0-alpha')" - exit 1 -fi - -# Set the new version number (will also commit and tag the release) - -npm version $1 -m "Version number update for $1" || exit 1 - -# Make sure our tags are pushed to the origin server - -git push origin --tags || exit 1 diff --git a/bin/wbld.cmd b/bin/wbld.cmd deleted file mode 100644 index 31c028d39..000000000 --- a/bin/wbld.cmd +++ /dev/null @@ -1,26 +0,0 @@ -@echo off - -rem build the TiddlyWeb edition of TiddlyWiki5 and upload it to TiddlySpace. Requires the TiddlySpace credentials -rem of a member of the tw5tiddlyweb space - -rem usage: -rem .\wbld.cmd <tiddlyspace username> <tiddlyspace password> - -rem Open the tw5tiddlyweb edition in TW5 and save the template for the main HTML file - -node .\tiddlywiki.js ^ - editions\tw5tiddlyweb ^ - --verbose ^ - --output tmp ^ - --rendertiddler $:/core/save/all tiddlyweb.html text/plain ^ - || exit 1 - -rem Prepend the type information that TiddlyWeb needs to turn the .html file into a .tid file - -echo "type: text/html" > tmp\tiddlerforupload.txt -echo "" >> tmp\tiddlerforupload.txt -type tmp\tiddlyweb.html >> tmp\tiddlerforupload.txt - -rem Upload the tiddler file - -curl -u %1:%2 -X PUT -H "content-type: text/plain" http://tw5tiddlyweb.tiddlyspace.com/bags/tw5tiddlyweb_public/tiddlers/tw5 --data-binary @tmp/tiddlerforupload.txt diff --git a/bin/wbld.sh b/bin/wbld.sh deleted file mode 100755 index a50ba3042..000000000 --- a/bin/wbld.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# build the TiddlyWeb edition of TiddlyWiki5 and upload it to TiddlySpace. Requires the TiddlySpace credentials -# of a member of the tw5tiddlyweb space - -# usage: -# ./wbld.sh <tiddlyspace username> <tiddlyspace password> - -# Create the tmp directory if needed - -mkdir -p tmp - -# Open the tw5tiddlyweb edition in TW5 and save the template for the main HTML file - -node ./tiddlywiki.js \ - editions/tw5tiddlyweb \ - --verbose \ - --output tmp \ - --rendertiddler $:/core/save/all tiddlyweb.html text/plain \ - || exit 1 - -# Prepend the type information that TiddlyWeb needs to turn the .html file into a .tid file - -echo "type: text/html" > tmp/tiddlerforupload.txt -echo "" >> tmp/tiddlerforupload.txt -cat tmp/tiddlyweb.html >> tmp/tiddlerforupload.txt - -# Upload the tiddler file - -curl -u $1:$2 -X PUT -H "content-type: text/plain" http://tw5tiddlyweb.tiddlyspace.com/bags/tw5tiddlyweb_public/tiddlers/tw5 --data-binary @tmp/tiddlerforupload.txt From ca650e2012feaeee42a15b31d18e17cc52c05bb9 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 16:18:00 +0100 Subject: [PATCH 102/117] Stop building a separate readme for tw2 edition --- bin/2bld.cmd | 9 --------- bin/2bld.sh | 9 --------- editions/tw2/readme.md | 5 ----- 3 files changed, 23 deletions(-) delete mode 100644 editions/tw2/readme.md diff --git a/bin/2bld.cmd b/bin/2bld.cmd index bf2a64ae4..9d18f6327 100644 --- a/bin/2bld.cmd +++ b/bin/2bld.cmd @@ -2,15 +2,6 @@ rem build TiddlyWiki 2.x -rem Prepare the readme file from the revelant content in the tw5.com wiki - -node .\tiddlywiki.js ^ - editions\tw5.com ^ - --verbose ^ - --output editions\tw2 ^ - --rendertiddler TiddlyWiki2ReadMe readme.md text/html ^ - || exit 1 - rem cook the TiddlyWiki 2.x.x index file node .\tiddlywiki.js ^ diff --git a/bin/2bld.sh b/bin/2bld.sh index e0b8d30c1..530466540 100755 --- a/bin/2bld.sh +++ b/bin/2bld.sh @@ -2,15 +2,6 @@ # build TiddlyWiki 2.x -# Prepare the readme file from the revelant content in the tw5.com wiki - -node ./tiddlywiki.js \ - editions/tw5.com \ - --verbose \ - --output editions/tw2 \ - --rendertiddler TiddlyWiki2ReadMe readme.md text/html \ - || exit 1 - # cook the TiddlyWiki 2.x.x index file node ./tiddlywiki.js \ diff --git a/editions/tw2/readme.md b/editions/tw2/readme.md deleted file mode 100644 index 5eaadaea2..000000000 --- a/editions/tw2/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -<h1 class=''>Building <span>TiddlyWikiClassic</span></h1><p><span>TiddlyWiki5</span> can be used to build older 2.x.x versions of <span>TiddlyWikiClassic</span> from their constituent components. Doing so involves these features:</p><ul><li>The <code>tiddlywiki/classictools</code> plugin, containing a deserializer module which allows tiddlers to be loaded from <span>TiddlyWiki</span> 2.x.x <code>.recipe</code> files</li><li>The <code>stripcomments</code> format for the <span>ViewWidget</span>, which strips single line <span>JavaScript</span> comments starting <code>//#</code></li><li>The <code>stripTitlePrefix='yes'</code> attribute of the <span>FieldsWidget</span>, which removes prefixes wrapped in curly braces from the <code>title</code> attribute<ul><li>For example, <code>{tiddler}HelloThere</code> would be transformed to <code>HelloThere</code></li></ul></li></ul><h1 class=''>Usage</h1><p><span>TiddlyWikiClassic</span> is built from the command line by running <span>TiddlyWiki on Node.js</span>. A typical usage would be:</p><pre><code>node ../../tiddlywiki.js \ - --verbose \ - --load <path_to_recipe_file> \ - --rendertiddler $:/core/templates/tiddlywiki2.template.html <path_to_write_index_file> text/plain \ - || exit 1</code></pre> \ No newline at end of file From b0bd5ba96f9f75ea872178020b70618cc3a30089 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 16:18:08 +0100 Subject: [PATCH 103/117] Build and release docs update --- .../build/Releasing a new version of TiddlyWiki.tid | 12 ++++++------ .../build/Releasing new content for TiddlyWiki.tid | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid b/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid index 5d98ef3e4..246a75ff7 100644 --- a/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid +++ b/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid @@ -5,16 +5,16 @@ title: Releasing a new version of TiddlyWiki # Adjust the modified time of HelloThere # Make sure ''Jermolene/TiddlyWiki5'' is fully committed # Edit `package.json` to the new version number -# Run `bin/makereadmes.sh` to build the readme files +# Run `../build.jermolene.github.io/readme-bld.sh` to build the readme files +# Commit the new readme files in `TiddlyWiki5` and `build.jermolene.github.io` # Restore `package.json` to the previous version number -# Run `bin/verbump "5.1.3"` (substituting the correct version number) to update the version number and assign it a tag -# Run `npm publish` to publish to npm +# Run `../build.jermolene.github.io/verbump "5.1.3"` (substituting the correct version number) to update the version number, assign it a tag and publish the release to npm # Verify that the new release of TiddlyWiki is available at https://www.npmjs.org/package/tiddlywiki -# Check the version number of TiddlyWiki specified in `package.json` +# Check the version number of TiddlyWiki specified in `build.jermolene.github.io/package.json` is the latest version # Change current directory to the `build.jermolene.github.io` directory # Run `npm install` to install the correct version of TiddlyWiki # Change current directory to the `TiddlyWiki5` directory # Run `../build.jermolene.github.io/bld.sh` to build the content files # Verify that the files in the `jermolene.github.io` directory are correct -# Run `../build.jermolene.github.io/deploy.sh` to push the new files to GitHub -# Run `bin/wbld.sh <username> <password>` +# Run `../build.jermolene.github.io/github-push.sh` to push the new files to GitHub +# Run `../build.jermolene.github.io/tiddlyspace-upload.sh <username> <password>` to upload the release to TiddlySpace diff --git a/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid b/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid index 54db985f6..6b61c8596 100644 --- a/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid +++ b/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid @@ -3,4 +3,4 @@ title: Releasing new content for TiddlyWiki # Change current directory to the `TiddlyWiki5` directory # Run `../build.jermolene.github.io/bld.sh` to build the content files # Verify that the files in the `jermolene.github.io` directory are correct -# Run `../build.jermolene.github.io/deploy.sh` to push the new files to GitHub +# Run `../build.jermolene.github.io/github-push.sh` to push the new files to GitHub From c1e60736d829859b58b54ad33f43faf2d4f6b202 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 17:07:47 +0100 Subject: [PATCH 104/117] Add description for "upgrader" modules Fixes #982 --- core/language/en-GB/Docs/ModuleTypes.multids | 1 + 1 file changed, 1 insertion(+) diff --git a/core/language/en-GB/Docs/ModuleTypes.multids b/core/language/en-GB/Docs/ModuleTypes.multids index 6f7f08d30..7d666e309 100644 --- a/core/language/en-GB/Docs/ModuleTypes.multids +++ b/core/language/en-GB/Docs/ModuleTypes.multids @@ -14,6 +14,7 @@ storyview: Story views customise the animation and behaviour of list widgets. tiddlerdeserializer: Converts different content types into tiddlers. tiddlerfield: Defines the behaviour of an individual tiddler field. tiddlermethod: Adds methods to the `$tw.Tiddler` prototype. +upgrader: Applies upgrade processing to tiddlers during an upgrade/import. utils: Adds methods to `$tw.utils`. utils-node: Adds Node.js-specific methods to `$tw.utils`. widget: Widgets encapsulate DOM rendering and refreshing. From 5211f9c40c874a167174e8c0d439db34189d3329 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 17:48:45 +0100 Subject: [PATCH 105/117] Fix problem with timeline subfilter Fixes #975 --- core/wiki/macros/timeline.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wiki/macros/timeline.tid b/core/wiki/macros/timeline.tid index 62f8782cf..c385c9500 100644 --- a/core/wiki/macros/timeline.tid +++ b/core/wiki/macros/timeline.tid @@ -6,7 +6,7 @@ tags: $:/tags/Macro <$list filter="[!is[system]$subfilter$has[modified]!sort[modified]limit[$limit$]eachday[modified]]"> <div class="tc-menu-list-item"> <$view field="modified" format="date" template="$format$"/> -<$list filter="[sameday{!!modified}!is[system]!sort[modified]]"> +<$list filter="[sameday{!!modified}!is[system]$subfilter$!sort[modified]]"> <div class="tc-menu-list-subitem"> <$link to={{!!title}}> <$view field="title"/> From b94fc7b647b2e5c1cd0c81bb0f1e59b392fa652c Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 17:57:00 +0100 Subject: [PATCH 106/117] Clarify docs for limit parameter of timeline macro Prompted by a comment in #975 --- editions/tw5.com/tiddlers/macros/TimelineMacro.tid | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/macros/TimelineMacro.tid b/editions/tw5.com/tiddlers/macros/TimelineMacro.tid index 1f9396518..4a3ec9b0e 100644 --- a/editions/tw5.com/tiddlers/macros/TimelineMacro.tid +++ b/editions/tw5.com/tiddlers/macros/TimelineMacro.tid @@ -1,6 +1,6 @@ title: TimelineMacro tags: Macros -modified: 20140913100126081 +modified: 20141015165343893 caption: timeline The timeline macro produces a list of tiddlers in reverse chronological order of modification date that is grouped by the date of the day of modification. @@ -8,7 +8,7 @@ The timeline macro produces a list of tiddlers in reverse chronological order of ! Parameters |!Position |!Name |!Description |!Default | -|1st |limit |The maximum number of tiddlers to list |100 | +|1st |limit |The maximum number of tiddlers to list (see below) |100 | |2nd |format |A DateFormat string for formatting the date |DDth MMM YYYY | |3rd |subfilter |A subfilter to include in the timeline filter (see below) | | @@ -24,6 +24,8 @@ To restrict the timeline to a particular tag, the subfilter can be set to someth <<timeline limit:10 subfilter:"tag[mytag]">> ``` +Note that the timeline macro does not truncate the entries for a particular day, instead always displaying all the tiddlers under each displayed day heading. This means that the limit parameter works in an unexpected way because it is possible for more than the specified number of tiddlers to be displayed. + ! Examples <$macrocall $name="wikitext-example-without-html" From d91e4be74ebf4d039982ff5c55f5ed7f767b2883 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 19:46:11 +0100 Subject: [PATCH 107/117] Docs updates --- .../tiddlers/build/Scripts for building tiddlywiki.com.tid | 2 +- editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid b/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid index 64814c503..d459e5ab8 100644 --- a/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid +++ b/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid @@ -53,7 +53,7 @@ Builds the `tiddlywiki.com` target files. By default, it uses the version of tid Builds the `tiddlywiki.com/prerelease` target files using the latest TiddlyWiki prerelease code and special ''prerelease'' edition for the content. -!! `deploy.sh` +!! `github-push.sh` Pushes the latest changes to the `jermolene.github.io` directory to GitHub. diff --git a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid index 17fdf447c..a05f31f35 100644 --- a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid +++ b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid @@ -7,7 +7,6 @@ type: text/vnd.tiddlywiki //[[See GitHub for detailed change history of this release|https://github.com/Jermolene/TiddlyWiki5/compare/v5.1.2...v5.1.3]]// - !! Usability Improvements * [[Added|https://github.com/Jermolene/TiddlyWiki5/commit/e872f17842809e33eae177980e9ea0650b6a4c03]] "new journal" button; see [[Creating journal tiddlers]] @@ -35,12 +34,16 @@ type: text/vnd.tiddlywiki * [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/3ca8d7b6cca46ffa424bcf9bdc134da464fc84f4]] problem with jumping toolbar icons under Firefox * [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/f85b07e70b71d0622a9459e4b04e2027540abda8]] problem with untagged label being incorrectly coloured * [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/b3dcd7d625ec83701ef3a77f3fb8101af57c154f]] problem with title background colours with the "Sticky Titles" theme +* [[Fixed|https://github.com/Jermolene/TiddlyWiki5/commit/5211f9c40c874a167174e8c0d439db34189d3329]] problem with subfilter parameter of TimelineMacro +* [[Exclude|https://groups.google.com/d/topic/tiddlywiki/YPACpXhH9PY/discussion]] search string tiddler from search results !! Node.js Changes //These changes are only relevant to people using TiddlyWiki under Node.js// * [[Extended|https://github.com/Jermolene/TiddlyWiki5/commit/63c174d7ed56284e80ad6cd6ae966b81f9181cc9]] ~KaTeX plugin to be able to work under Node.js to generate static HTML +* [[Extended|https://github.com/Jermolene/TiddlyWiki5/commit/49dc5694a391a391264a4473e4f4422e2472a3b3]] "includeWikis" to merge build targets +* [[Refactored|https://github.com/Jermolene/TiddlyWiki5/issues/969]] the build scripts for tiddlywiki.com into a separate repository at https://github.com/Jermolene/build.jermolene.github.io !! Contributors From b0b89fac729fa8baa85dd93d92abc3feaa11dbb8 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 21:55:33 +0100 Subject: [PATCH 108/117] Moved to build.jermolene.github.io --- bin/bld-languages.sh | 65 ------------ bin/bld.cmd | 130 ----------------------- bin/bld.sh | 127 ----------------------- bin/devbld.sh | 30 ------ bin/fullbld.sh | 239 ------------------------------------------- bin/qbld.cmd | 28 ----- bin/qbld.sh | 30 ------ 7 files changed, 649 deletions(-) delete mode 100755 bin/bld-languages.sh delete mode 100644 bin/bld.cmd delete mode 100755 bin/bld.sh delete mode 100755 bin/devbld.sh delete mode 100755 bin/fullbld.sh delete mode 100644 bin/qbld.cmd delete mode 100755 bin/qbld.sh diff --git a/bin/bld-languages.sh b/bin/bld-languages.sh deleted file mode 100755 index 19561c08e..000000000 --- a/bin/bld-languages.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash - -# Abbreviated version of bld.sh for quicker builds - -# Set up the build output directory - -if [ -z "$TW5_BUILD_OUTPUT" ]; then - TW5_BUILD_OUTPUT=../jermolene.github.com -fi - -if [ ! -d "$TW5_BUILD_OUTPUT" ]; then - echo 'A valid TW5_BUILD_OUTPUT environment variable must be set' - exit 1 -fi - -echo "Using TW5_BUILD_OUTPUT as [$TW5_BUILD_OUTPUT]" - -# /languages/de-AT/index.html Demo wiki with de-AT language -# /languages/de-AT/empty.html Empty wiki with de-AT language -node ./tiddlywiki.js \ - ./editions/de-AT \ - --verbose \ - --output $TW5_BUILD_OUTPUT/languages/de-AT \ - --build favicon empty static index \ - || exit 1 - -# /languages/de-DE/index.html Demo wiki with de-DE language -# /languages/de-DE/empty.html Empty wiki with de-DE language -node ./tiddlywiki.js \ - ./editions/de-DE \ - --verbose \ - --output $TW5_BUILD_OUTPUT/languages/de-DE \ - --build favicon empty static index \ - || exit 1 - -# /languages/fr-FR/index.html Demo wiki with fr-FR language -# /languages/fr-FR/empty.html Empty wiki with fr-FR language -node ./tiddlywiki.js \ - ./editions/fr-FR \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all languages/fr-FR/index.html text/plain \ - --rendertiddler $:/core/save/empty languages/fr-FR/empty.html text/plain \ - || exit 1 - -# /languages/zh-Hans/index.html Demo wiki with zh-Hans language -# /languages/zh-Hans/empty.html Empty wiki with zh-Hans language -node ./tiddlywiki.js \ - ./editions/zh-Hans \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all languages/zh-Hans/index.html text/plain \ - --rendertiddler $:/core/save/empty languages/zh-Hans/empty.html text/plain \ - || exit 1 - -# /languages/zh-Hant/index.html Demo wiki with zh-Hant language -# /languages/zh-Hant/empty.html Empty wiki with zh-Hant language -node ./tiddlywiki.js \ - ./editions/zh-Hant \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all languages/zh-Hant/index.html text/plain \ - --rendertiddler $:/core/save/empty languages/zh-Hant/empty.html text/plain \ - || exit 1 - diff --git a/bin/bld.cmd b/bin/bld.cmd deleted file mode 100644 index ef4be5b80..000000000 --- a/bin/bld.cmd +++ /dev/null @@ -1,130 +0,0 @@ -@echo off - -rem build TiddlyWiki5 for tiddlywiki.com - -rem Set up the build output directory - -if "x%TW5_BUILD_OUTPUT%" == "x" ( - set TW5_BUILD_OUTPUT=..\jermolene.github.com -) - -if not exist %TW5_BUILD_OUTPUT%\nul ( - echo A valid TW5_BUILD_OUTPUT environment variable must be set - exit 1 -) - -echo Using TW5_BUILD_OUTPUT as %TW5_BUILD_OUTPUT% -echo. - -rem Create the `static` directories if necessary - -setlocal enableextensions -mkdir %TW5_BUILD_OUTPUT%\static -setlocal disableextensions - -rem Delete any existing content - -del /q /s %TW5_BUILD_OUTPUT%\static - -rem The tw5.com wiki -rem index.html: the main file, including content -rem empty.html: the main file, excluding content -rem static.html: the static version of the default tiddlers - -node .\tiddlywiki.js ^ - .\editions\tw5.com ^ - --verbose ^ - --output . ^ - --build readmes ^ - --output %TW5_BUILD_OUTPUT% ^ - --build favicon empty static index ^ - || exit 1 - -rem dev/: developer material - -node .\tiddlywiki.js ^ - .\editions\dev ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT%\dev ^ - --build index favicon static ^ - || exit 1 - -rem upgrade.html: custom edition for handling upgrades - -node .\tiddlywiki.js ^ - .\editions\upgrade ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT% ^ - --build upgrade ^ - || exit 1 - -rem encrypted.html: a version of the main file encrypted with the password "password" - -node .\tiddlywiki.js ^ - .\editions\tw5.com ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT% ^ - --build encrypted ^ - || exit 1 - -rem tahoelafs.html: empty wiki with plugin for Tahoe-LAFS - -node .\tiddlywiki.js ^ - .\editions\tahoelafs ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT% ^ - --rendertiddler $:/core/save/all tahoelafs.html text/plain ^ - || exit 1 - -rem d3demo.html: wiki to demo d3 plugin - -node .\tiddlywiki.js ^ - .\editions\d3demo ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT% ^ - --rendertiddler $:/core/save/all d3demo.html text/plain ^ - || exit 1 - -rem codemirrordemo.html: wiki to demo codemirror plugin - -node .\tiddlywiki.js ^ - .\editions\codemirrordemo ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT% ^ - --rendertiddler $:/core/save/all codemirrordemo.html text/plain ^ - || exit 1 - -rem markdowndemo.html: wiki to demo markdown plugin - -node .\tiddlywiki.js ^ - .\editions\markdowndemo ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT% ^ - --rendertiddler $:/core/save/all markdowndemo.html text/plain ^ - || exit 1 - -rem classicparserdemo.html: wiki to demo classicparser plugin - -node .\tiddlywiki.js ^ - .\editions\classicparserdemo ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT% ^ - --rendertiddler $:/core/save/all classicparserdemo.html text/plain ^ - || exit 1 - -rem highlightdemo.html: wiki to demo highlight plugin - -node .\tiddlywiki.js ^ - .\editions\highlightdemo ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT% ^ - --rendertiddler $:/core/save/all highlightdemo.html text/plain ^ - || exit 1 - -rem Make the CNAME file that GitHub Pages requires - -echo tiddlywiki.com > %TW5_BUILD_OUTPUT%\CNAME - -rem Run the test edition to run the Node.js tests and to generate test.html for tests in the browser - -.\bin\test.cmd diff --git a/bin/bld.sh b/bin/bld.sh deleted file mode 100755 index 5c2db5d1b..000000000 --- a/bin/bld.sh +++ /dev/null @@ -1,127 +0,0 @@ -#!/bin/bash - -# build TiddlyWiki5 for tiddlywiki.com - -# Set up the build output directory - -if [ -z "$TW5_BUILD_OUTPUT" ]; then - TW5_BUILD_OUTPUT=../jermolene.github.com -fi - -if [ ! -d "$TW5_BUILD_OUTPUT" ]; then - echo 'A valid TW5_BUILD_OUTPUT environment variable must be set' - exit 1 -fi - -echo "Using TW5_BUILD_OUTPUT as [$TW5_BUILD_OUTPUT]" - -# Make the CNAME file that GitHub Pages requires - -echo "tiddlywiki.com" > $TW5_BUILD_OUTPUT/CNAME - -# Create the `static` directories if necessary - -mkdir -p $TW5_BUILD_OUTPUT/static - -# Delete any existing content - -rm $TW5_BUILD_OUTPUT/static/* - -# The tw5.com wiki -# index.html: the main file, including content -# empty.html: the main file, excluding content -# static.html: the static version of the default tiddlers - -node ./tiddlywiki.js \ - ./editions/tw5.com \ - --verbose \ - --output . \ - --build readmes \ - --output $TW5_BUILD_OUTPUT \ - --build favicon empty static index \ - || exit 1 - -# dev/: developer material - -node ./tiddlywiki.js \ - ./editions/dev \ - --verbose \ - --output $TW5_BUILD_OUTPUT/dev \ - --build index favicon static \ - || exit 1 - -# upgrade.html: custom edition for handling upgrades - -node ./tiddlywiki.js \ - ./editions/upgrade \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --build upgrade \ - || exit 1 - -# encrypted.html: a version of the main file encrypted with the password "password" - -node ./tiddlywiki.js \ - ./editions/tw5.com \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --build encrypted \ - || exit 1 - -# tahoelafs.html: empty wiki with plugin for Tahoe-LAFS - -node ./tiddlywiki.js \ - ./editions/tahoelafs \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all tahoelafs.html text/plain \ - || exit 1 - -# d3demo.html: wiki to demo d3 plugin - -node ./tiddlywiki.js \ - ./editions/d3demo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all d3demo.html text/plain \ - || exit 1 - -# codemirrordemo.html: wiki to demo codemirror plugin - -node ./tiddlywiki.js \ - ./editions/codemirrordemo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all codemirrordemo.html text/plain \ - || exit 1 - -# markdowndemo.html: wiki to demo markdown plugin - -node ./tiddlywiki.js \ - ./editions/markdowndemo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all markdowndemo.html text/plain \ - || exit 1 - -# classicparserdemo.html: wiki to demo classicparser plugin - -node ./tiddlywiki.js \ - ./editions/classicparserdemo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all classicparserdemo.html text/plain \ - || exit 1 - -# highlightdemo.html: wiki to demo highlight plugin - -node ./tiddlywiki.js \ - ./editions/highlightdemo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all highlightdemo.html text/plain \ - || exit 1 - -# Run the test edition to run the Node.js tests and to generate test.html for tests in the browser - -./bin/test.sh diff --git a/bin/devbld.sh b/bin/devbld.sh deleted file mode 100755 index e3a50de5a..000000000 --- a/bin/devbld.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Build the dev wiki - -# Set up the build output directory - -if [ -z "$TW5_BUILD_OUTPUT" ]; then - TW5_BUILD_OUTPUT=../jermolene.github.com -fi - -if [ ! -d "$TW5_BUILD_OUTPUT" ]; then - echo 'A valid TW5_BUILD_OUTPUT environment variable must be set' - exit 1 -fi - -echo "Using TW5_BUILD_OUTPUT as [$TW5_BUILD_OUTPUT]" - -# Make the CNAME file that GitHub Pages requires - -echo "tiddlywiki.com" > $TW5_BUILD_OUTPUT/CNAME - -# The tw5.com wiki -# index.html: the main file, including content - -node ./tiddlywiki.js \ - ./editions/dev \ - --verbose \ - --output $TW5_BUILD_OUTPUT/dev \ - --build index favicon \ - || exit 1 diff --git a/bin/fullbld.sh b/bin/fullbld.sh deleted file mode 100755 index 736ace45b..000000000 --- a/bin/fullbld.sh +++ /dev/null @@ -1,239 +0,0 @@ -#!/bin/bash - -# Perform a full build for tiddlywiki.com - -# Set up the build output directory - -if [ -z "$TW5_BUILD_OUTPUT" ]; then - TW5_BUILD_OUTPUT=../jermolene.github.com -fi - -if [ ! -d "$TW5_BUILD_OUTPUT" ]; then - echo 'A valid TW5_BUILD_OUTPUT environment variable must be set' - exit 1 -fi - -echo "Using TW5_BUILD_OUTPUT as [$TW5_BUILD_OUTPUT]" - -# Make the CNAME file that GitHub Pages requires - -echo "tiddlywiki.com" > $TW5_BUILD_OUTPUT/CNAME - -# Delete any existing static content - -mkdir -p $TW5_BUILD_OUTPUT/static -mkdir -p $TW5_BUILD_OUTPUT/dev -mkdir -p $TW5_BUILD_OUTPUT/dev/static -rm $TW5_BUILD_OUTPUT/static/* -rm $TW5_BUILD_OUTPUT/dev/static/* - -rm $TW5_BUILD_OUTPUT/languages/de_AT/static/* -rm $TW5_BUILD_OUTPUT/languages/de_DE/static/* - -# Redirects - -echo "<a href='./plugins/tiddlywiki/tw2parser/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/tw2parser/index.html</a>" > $TW5_BUILD_OUTPUT/classicparserdemo.html -echo "<a href='./plugins/tiddlywiki/codemirror/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/codemirror/index.html</a>" > $TW5_BUILD_OUTPUT/codemirrordemo.html -echo "<a href='./plugins/tiddlywiki/d3/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/d3/index.html</a>" > $TW5_BUILD_OUTPUT/d3demo.html -echo "<a href='./plugins/tiddlywiki/highlight/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/highlight/index.html</a>" > $TW5_BUILD_OUTPUT/highlightdemo.html -echo "<a href='./plugins/tiddlywiki/markdown/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/markdown/index.html</a>" > $TW5_BUILD_OUTPUT/markdowndemo.html -echo "<a href='./plugins/tiddlywiki/tahoelafs/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/tahoelafs/index.html</a>" > $TW5_BUILD_OUTPUT/tahoelafs.html - -###################################################### -# -# Core distribution -# -###################################################### - -# /index.html Main site -# /favicon.ico Favicon for main site -# /empty.html Empty -# /empty.hta For Internet Explorer -# /static.html Static rendering of default tiddlers -# /alltiddlers.html Static rendering of all tiddlers -# /static/* Static single tiddlers -# /static/static.css Static stylesheet -# /static/favicon.ico Favicon for static pages -node ./tiddlywiki.js \ - ./editions/tw5.com \ - --verbose \ - --output . \ - --build readmes \ - --output $TW5_BUILD_OUTPUT \ - --build favicon empty static index \ - || exit 1 - -# /dev/index.html Developer docs -# /dev/favicon.ico Favicon for dev site -# /dev/static.html Static rendering of default tiddlers -# /dev/alltiddlers.html Static rendering of all tiddlers -# /dev/static/* Static single tiddlers -# /dev/static/static.css Static stylesheet -node ./tiddlywiki.js \ - ./editions/dev \ - --verbose \ - --output $TW5_BUILD_OUTPUT/dev \ - --build index favicon static \ - || exit 1 - -# /upgrade.html Custom edition for performing upgrades -node ./tiddlywiki.js \ - ./editions/upgrade \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --build upgrade \ - || exit 1 - -# /encrypted.html Copy of the main file encrypted with the password "password" -node ./tiddlywiki.js \ - ./editions/tw5.com \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --build encrypted \ - || exit 1 - -###################################################### -# -# Plugin demos -# -###################################################### - -# /plugins/tiddlywiki/katex/index.html Demo wiki with KaTeX plugin -# /plugins/tiddlywiki/katex/empty.html Empty wiki with KaTeX plugin -node ./tiddlywiki.js \ - ./editions/katexdemo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all plugins/tiddlywiki/katex/index.html text/plain \ - --rendertiddler $:/core/save/empty plugins/tiddlywiki/katex/empty.html text/plain \ - --rendertiddler $:/core/templates/static.template.html plugins/tiddlywiki/katex/static.html text/plain \ - || exit 1 - -# /plugins/tiddlywiki/tahoelafs/index.html Demo wiki with Tahoe-LAFS plugin -# /plugins/tiddlywiki/tahoelafs/empty.html Empty wiki with Tahoe-LAFS plugin -node ./tiddlywiki.js \ - ./editions/tahoelafs \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all plugins/tiddlywiki/tahoelafs/index.html text/plain \ - --rendertiddler $:/core/save/empty plugins/tiddlywiki/tahoelafs/empty.html text/plain \ - || exit 1 - -# /plugins/tiddlywiki/d3/index.html Demo wiki with D3 plugin -# /plugins/tiddlywiki/d3/empty.html Empty wiki with D3 plugin -node ./tiddlywiki.js \ - ./editions/d3demo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all plugins/tiddlywiki/d3/index.html text/plain \ - --rendertiddler $:/core/save/empty plugins/tiddlywiki/d3/empty.html text/plain \ - || exit 1 - -# /plugins/tiddlywiki/codemirror/index.html Demo wiki with codemirror plugin -# /plugins/tiddlywiki/codemirror/empty.html Empty wiki with codemirror plugin -node ./tiddlywiki.js \ - ./editions/codemirrordemo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all plugins/tiddlywiki/codemirror/index.html text/plain \ - --rendertiddler $:/core/save/empty plugins/tiddlywiki/codemirror/empty.html text/plain \ - || exit 1 - -# /plugins/tiddlywiki/markdown/index.html Demo wiki with Markdown plugin -# /plugins/tiddlywiki/markdown/empty.html Empty wiki with Markdown plugin -node ./tiddlywiki.js \ - ./editions/markdowndemo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all plugins/tiddlywiki/markdown/index.html text/plain \ - --rendertiddler $:/core/save/empty plugins/tiddlywiki/markdown/empty.html text/plain \ - || exit 1 - -# /plugins/tiddlywiki/tw2parser/index.html Demo wiki with tw2parser plugin -# /plugins/tiddlywiki/tw2parser/empty.html Empty wiki with tw2parser plugin -node ./tiddlywiki.js \ - ./editions/classicparserdemo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all plugins/tiddlywiki/tw2parser/index.html text/plain \ - --rendertiddler $:/core/save/empty plugins/tiddlywiki/tw2parser/empty.html text/plain \ - || exit 1 - -# /plugins/tiddlywiki/highlight/index.html Demo wiki with highlight plugin -# /plugins/tiddlywiki/highlight/empty.html Empty wiki with highlight plugin -node ./tiddlywiki.js \ - ./editions/highlightdemo \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all plugins/tiddlywiki/highlight/index.html text/plain \ - --rendertiddler $:/core/save/empty plugins/tiddlywiki/highlight/empty.html text/plain \ - || exit 1 - -###################################################### -# -# Language editions -# -###################################################### - -# /languages/de-AT/index.html Demo wiki with de-AT language -# /languages/de-AT/empty.html Empty wiki with de-AT language -node ./tiddlywiki.js \ - ./editions/de-AT \ - --verbose \ - --output $TW5_BUILD_OUTPUT/languages/de-AT \ - --build favicon empty static index \ - || exit 1 - -# /languages/de-DE/index.html Demo wiki with de-DE language -# /languages/de-DE/empty.html Empty wiki with de-DE language -node ./tiddlywiki.js \ - ./editions/de-DE \ - --verbose \ - --output $TW5_BUILD_OUTPUT/languages/de-DE \ - --build favicon empty static index \ - || exit 1 - -# /languages/fr-FR/index.html Demo wiki with fr-FR language -# /languages/fr-FR/empty.html Empty wiki with fr-FR language -node ./tiddlywiki.js \ - ./editions/fr-FR \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all languages/fr-FR/index.html text/plain \ - --rendertiddler $:/core/save/empty languages/fr-FR/empty.html text/plain \ - || exit 1 - -# /languages/zh-Hans/index.html Demo wiki with zh-Hans language -# /languages/zh-Hans/empty.html Empty wiki with zh-Hans language -node ./tiddlywiki.js \ - ./editions/zh-Hans \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all languages/zh-Hans/index.html text/plain \ - --rendertiddler $:/core/save/empty languages/zh-Hans/empty.html text/plain \ - || exit 1 - -# /languages/zh-Hant/index.html Demo wiki with zh-Hant language -# /languages/zh-Hant/empty.html Empty wiki with zh-Hant language -node ./tiddlywiki.js \ - ./editions/zh-Hant \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all languages/zh-Hant/index.html text/plain \ - --rendertiddler $:/core/save/empty languages/zh-Hant/empty.html text/plain \ - || exit 1 - -###################################################### -# -# Tests -# -###################################################### - -# /test.html Wiki for running tests in browser -# Also runs the serverside tests -node ./tiddlywiki.js \ - ./editions/test \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --rendertiddler $:/core/save/all test.html text/plain \ - || exit 1 diff --git a/bin/qbld.cmd b/bin/qbld.cmd deleted file mode 100644 index 4eb772b3b..000000000 --- a/bin/qbld.cmd +++ /dev/null @@ -1,28 +0,0 @@ -@echo off - -rem Abbreviated version of bld.sh for quicker builds - -rem Set up the build output directory - -if "x%TW5_BUILD_OUTPUT%" == "x" ( - set TW5_BUILD_OUTPUT=..\jermolene.github.com -) - -if not exist %TW5_BUILD_OUTPUT%\nul ( - echo A valid TW5_BUILD_OUTPUT environment variable must be set - exit 1 -) - -echo Using TW5_BUILD_OUTPUT as %TW5_BUILD_OUTPUT% -echo. - -rem The tw5.com wiki -rem index.html: the main file, including content - -node .\tiddlywiki.js ^ - .\editions\tw5.com ^ - --verbose ^ - --output %TW5_BUILD_OUTPUT% ^ - --rendertiddler $:/core/save/all index.html text/plain ^ - --savetiddler $:/favicon.ico favicon.ico ^ - || exit 1 diff --git a/bin/qbld.sh b/bin/qbld.sh deleted file mode 100755 index a7a2d2534..000000000 --- a/bin/qbld.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Abbreviated version of bld.sh for quicker builds - -# Set up the build output directory - -if [ -z "$TW5_BUILD_OUTPUT" ]; then - TW5_BUILD_OUTPUT=../jermolene.github.com -fi - -if [ ! -d "$TW5_BUILD_OUTPUT" ]; then - echo 'A valid TW5_BUILD_OUTPUT environment variable must be set' - exit 1 -fi - -echo "Using TW5_BUILD_OUTPUT as [$TW5_BUILD_OUTPUT]" - -# Make the CNAME file that GitHub Pages requires - -echo "tiddlywiki.com" > $TW5_BUILD_OUTPUT/CNAME - -# The tw5.com wiki -# index.html: the main file, including content - -node ./tiddlywiki.js \ - ./editions/tw5.com \ - --verbose \ - --output $TW5_BUILD_OUTPUT \ - --build index favicon \ - || exit 1 From 7672fb37a7dbb27f168c56eb71c65521fd09193f Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 21:55:45 +0100 Subject: [PATCH 109/117] Simplify test script --- bin/test.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/bin/test.sh b/bin/test.sh index 00036cd7d..38bb7fbb8 100755 --- a/bin/test.sh +++ b/bin/test.sh @@ -2,24 +2,12 @@ # test TiddlyWiki5 for tiddlywiki.com -# Set up the build output directory - -if [ -z "$TW5_BUILD_OUTPUT" ]; then - TW5_BUILD_OUTPUT=../jermolene.github.com -fi - -if [ ! -d "$TW5_BUILD_OUTPUT" ]; then - echo 'A valid TW5_BUILD_OUTPUT environment variable must be set' - exit 1 -fi - -echo "Using TW5_BUILD_OUTPUT as [$TW5_BUILD_OUTPUT]" - # Run the test edition to run the node.js tests and to generate test.html for tests in the browser node ./tiddlywiki.js \ ./editions/test \ --verbose \ - --output $TW5_BUILD_OUTPUT \ --rendertiddler $:/core/save/all test.html text/plain \ || exit 1 + +echo To run the tests in a browser, open "editions/test/output/test.html" From e188662438ee75dd9321687b36067079b3abb9a3 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 21:56:24 +0100 Subject: [PATCH 110/117] Move prerelease release note The release note for the pending release should be part of the prerelease edition --- .../releasenotes => prerelease/tiddlers}/Release 5.1.3.tid | 0 editions/prerelease/tiddlers/system/DefaultTiddlers.tid | 1 + 2 files changed, 1 insertion(+) rename editions/{tw5.com/tiddlers/releasenotes => prerelease/tiddlers}/Release 5.1.3.tid (100%) diff --git a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid b/editions/prerelease/tiddlers/Release 5.1.3.tid similarity index 100% rename from editions/tw5.com/tiddlers/releasenotes/Release 5.1.3.tid rename to editions/prerelease/tiddlers/Release 5.1.3.tid diff --git a/editions/prerelease/tiddlers/system/DefaultTiddlers.tid b/editions/prerelease/tiddlers/system/DefaultTiddlers.tid index f822081ff..19dd8b2fd 100644 --- a/editions/prerelease/tiddlers/system/DefaultTiddlers.tid +++ b/editions/prerelease/tiddlers/system/DefaultTiddlers.tid @@ -4,6 +4,7 @@ title: $:/DefaultTiddlers type: text/vnd.tiddlywiki [[TiddlyWiki Pre-release]] +[tag[ReleaseNotes]!has[released]] HelloThere GettingStarted Community From dcc33e52b3b55d69ce1497a9f7079157d0ccd3a4 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Wed, 15 Oct 2014 21:56:32 +0100 Subject: [PATCH 111/117] Docs updates --- bin/readme.md | 8 ++--- .../Releasing a new version of TiddlyWiki.tid | 1 + .../Scripts for TiddlyWiki on Node.js.tid | 30 ++----------------- 3 files changed, 5 insertions(+), 34 deletions(-) diff --git a/bin/readme.md b/bin/readme.md index 5b1443f95..d69837069 100644 --- a/bin/readme.md +++ b/bin/readme.md @@ -1,7 +1,3 @@ -<h1 class=''>Script Files</h1><p>The <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> repository contains several scripts in the <code>bin</code> folder that are used to build and deploy <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> (<code>.sh</code> for *nix and <code>.cmd</code> for Windows). They can serve as a useful starting point for your own scripts.</p><p>All the scripts expect to be run from the root folder of the repository.</p><h2 class=''><code>fullbld</code>: builds tw5.com</h2><p>This script builds several variants of <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> for deployment on tiddlywiki.com.</p><p>By default, files are output to a folder called <code>jermolene.github.com</code>, sibling to the <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> repo directory. For example:</p><pre><code>/TiddlyWork/ - Directory for working with TiddlyWiki5 - | - +--+-- /TiddlyWiki5/ - Directory containing the TiddlyWiki5 repo from GitHub - | - +-- /jermolene.github.com/ - Directory for output files</code></pre><p>You can override the build output directory by defining the environment variable <code>TW5_BUILD_OUTPUT</code>. The easiest way to do this is to create a personal batch file to invoke <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> that first sets the environment variable and then invokes <code>fullbld</code>.</p><p><code>fullbld</code> also runs the <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> Node.js-based test suite (see <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TestingMechanism.html'>TestingMechanism</a>)</p><h2 class=''><code>serve</code>: serves tw5.com</h2><pre><code>./bin/serve.sh -h +<h1 class=''>Script Files</h1><p>The <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> repository contains several scripts in the <code>bin</code> folder that you can use to automate common tasks, or as a useful starting point for your own scripts. See <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/Scripts%2520for%2520building%2520tiddlywiki.com.html'>Scripts for building tiddlywiki.com</a> for details of the scripts used to build and release <a class='tc-tiddlylink-external' href='http://tiddlywiki.com/' target='_blank'>http://tiddlywiki.com/</a>.</p><p>All the scripts expect to be run from the root folder of the repository.</p><h2 class=''><code>serve</code>: serves tw5.com</h2><pre><code>./bin/serve.sh -h ./bin/serve.sh [edition dir] [username] [password] [host] [port]</code></pre><p>Or:</p><pre><code>./bin/serve.cmd -h -./bin/serve.cmd [edition dir] [username] [password] [host] [port]</code></pre><p>This script starts <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> running as an HTTP server, defaulting to the content from the <code>tw5.com-server</code> edition. By default, the Node.js serves on port 8080. If the optional <code>username</code> parameter is provided, it is used for signing edits. If the <code>password</code> is provided then HTTP basic authentication is used. Run the script with the <code>-h</code> parameter to see online help.</p><p>To experiment with this configuration, run the script and then visit <code>http://127.0.0.1:8080</code> in a browser.</p><p>Changes made in the browser propagate to the server over HTTP (use the browser developer console to see these requests). The server then syncs changes to the file system (and logs each change to the screen).</p><h2 class=''><code>test</code>: build and run tests</h2><p>This script runs the <code>test</code> edition of <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on the server to perform the server-side tests and to build <code>test.html</code> for running the tests in the browser.</p><h2 class=''><code>lazy</code>: serves tw5.com with lazily loaded images</h2><pre><code>./bin/lazy.sh <username> [<password>]</code></pre><p>Or:</p><pre><code>./bin/lazy.cmd <username> [<password>]</code></pre><p>This script serves the <code>tw5.com-server</code> edition content with <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/LazyLoading.html'>LazyLoading</a> applied to images.</p><h2 class=''><code>wbld</code>: builds <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> for <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWeb.html'>TiddlyWeb</a></h2><p>This script builds and deploys the code for <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki%2520in%2520the%2520Sky%2520for%2520TiddlyWeb.html'>TiddlyWiki in the Sky for TiddlyWeb</a>. If you want to experiment with your own builds of <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> for <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWeb.html'>TiddlyWeb</a> you could use this batch file as a base.</p><h2 class=''><code>2bld</code>: builds <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> 2.6.5</h2><p>This script builds <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> 2.6.5 from the original source and then displays the differences between them (<code>diff</code> is used for *nix, <code>fc</code> for Windows).</p><h2 class=''><code>deploy</code> & <code>verbump</code>: deploy <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> and bump the <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> version number</h2><p>These scripts are concerned with releasing a new version of <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a>. See <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/Releasing%2520a%2520new%2520version%2520of%2520TiddlyWiki5.html'>Releasing a new version of TiddlyWiki5</a>.</p> \ No newline at end of file +./bin/serve.cmd [edition dir] [username] [password] [host] [port]</code></pre><p>This script starts <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> running as an HTTP server, defaulting to the content from the <code>tw5.com-server</code> edition. By default, the Node.js serves on port 8080. If the optional <code>username</code> parameter is provided, it is used for signing edits. If the <code>password</code> is provided then HTTP basic authentication is used. Run the script with the <code>-h</code> parameter to see online help.</p><p>To experiment with this configuration, run the script and then visit <code>http://127.0.0.1:8080</code> in a browser.</p><p>Changes made in the browser propagate to the server over HTTP (use the browser developer console to see these requests). The server then syncs changes to the file system (and logs each change to the screen).</p><h2 class=''><code>test</code>: build and run tests</h2><p>This script runs the <code>test</code> edition of <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on the server to perform the server-side tests and to build <code>test.html</code> for running the tests in the browser.</p><h2 class=''><code>lazy</code>: serves tw5.com with lazily loaded images</h2><pre><code>./bin/lazy.sh <username> [<password>]</code></pre><p>Or:</p><pre><code>./bin/lazy.cmd <username> [<password>]</code></pre><p>This script serves the <code>tw5.com-server</code> edition content with <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/LazyLoading.html'>LazyLoading</a> applied to images.</p><h2 class=''><code>2bld</code>: builds <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> 2.6.5</h2><p>This script builds <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> 2.6.5 from the original source and then displays the differences between them (<code>diff</code> is used for *nix, <code>fc</code> for Windows).</p> \ No newline at end of file diff --git a/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid b/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid index 246a75ff7..b033f6946 100644 --- a/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid +++ b/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid @@ -1,5 +1,6 @@ title: Releasing a new version of TiddlyWiki +# Move the latest release note from the prerelease edition into the tw5.com edition # Adjust the release date of the latest release tiddler (eg, [[Release 5.1.3]]) # Ensure [[Releases]] has the new version as the default tab # Adjust the modified time of HelloThere diff --git a/editions/tw5.com/tiddlers/nodejs/Scripts for TiddlyWiki on Node.js.tid b/editions/tw5.com/tiddlers/nodejs/Scripts for TiddlyWiki on Node.js.tid index e0b33bd25..8c0c250e1 100644 --- a/editions/tw5.com/tiddlers/nodejs/Scripts for TiddlyWiki on Node.js.tid +++ b/editions/tw5.com/tiddlers/nodejs/Scripts for TiddlyWiki on Node.js.tid @@ -1,33 +1,15 @@ created: 20131219100637788 -modified: 20140917190022854 +modified: 20141015165343893 tags: [[TiddlyWiki on Node.js]] title: Scripts for TiddlyWiki on Node.js type: text/vnd.tiddlywiki ! Script Files -The TiddlyWiki5 repository contains several scripts in the `bin` folder that are used to build and deploy TiddlyWiki (`.sh` for *nix and `.cmd` for Windows). They can serve as a useful starting point for your own scripts. +The TiddlyWiki5 repository contains several scripts in the `bin` folder that you can use to automate common tasks, or as a useful starting point for your own scripts. See [[Scripts for building tiddlywiki.com]] for details of the scripts used to build and release http://tiddlywiki.com/. All the scripts expect to be run from the root folder of the repository. -!! `fullbld`: builds tw5.com - -This script builds several variants of TiddlyWiki5 for deployment on tiddlywiki.com. - -By default, files are output to a folder called `jermolene.github.com`, sibling to the TiddlyWiki5 repo directory. For example: - -``` -/TiddlyWork/ - Directory for working with TiddlyWiki5 - | - +--+-- /TiddlyWiki5/ - Directory containing the TiddlyWiki5 repo from GitHub - | - +-- /jermolene.github.com/ - Directory for output files -``` - -You can override the build output directory by defining the environment variable `TW5_BUILD_OUTPUT`. The easiest way to do this is to create a personal batch file to invoke TiddlyWiki5 that first sets the environment variable and then invokes `fullbld`. - -`fullbld` also runs the TiddlyWiki5 Node.js-based test suite (see TestingMechanism) - !! `serve`: serves tw5.com ``` @@ -66,15 +48,7 @@ Or: This script serves the `tw5.com-server` edition content with LazyLoading applied to images. -!! `wbld`: builds TiddlyWiki for TiddlyWeb - -This script builds and deploys the code for [[TiddlyWiki in the Sky for TiddlyWeb]]. If you want to experiment with your own builds of TiddlyWiki5 for TiddlyWeb you could use this batch file as a base. - !! `2bld`: builds TiddlyWiki 2.6.5 This script builds TiddlyWiki 2.6.5 from the original source and then displays the differences between them (`diff` is used for *nix, `fc` for Windows). -!! `deploy` & `verbump`: deploy TiddlyWiki and bump the TiddlyWiki version number - -These scripts are concerned with releasing a new version of TiddlyWiki. See [[Releasing a new version of TiddlyWiki5]]. - From f20286fb26f73fa6021c487b73b572dbc551428e Mon Sep 17 00:00:00 2001 From: Bram Chen <bram.chen@gmail.com> Date: Thu, 16 Oct 2014 15:48:07 +0800 Subject: [PATCH 112/117] Update chinese translations for adding description for "upgrader" modules --- languages/zh-Hans/Docs/ModuleTypes.multids | 1 + languages/zh-Hant/Docs/ModuleTypes.multids | 1 + 2 files changed, 2 insertions(+) diff --git a/languages/zh-Hans/Docs/ModuleTypes.multids b/languages/zh-Hans/Docs/ModuleTypes.multids index 015d5c652..010c8725c 100644 --- a/languages/zh-Hans/Docs/ModuleTypes.multids +++ b/languages/zh-Hans/Docs/ModuleTypes.multids @@ -14,6 +14,7 @@ storyview: 查看模式用以自订 list 小工具的动画与行为。 tiddlerdeserializer: 转换不同内容类型至条目。 tiddlerfield: 定义个别条目栏位的行为。 tiddlermethod: 添加方法至 `$tw.Tiddler` 原型。 +upgrader: 于升级/导入过程中,套用升级处理至条目。 utils: 添加方法至 `$tw.utils`。 utils-node: 将特定于 Node.js 的方法添加到 '$tw.utils'。 widget: 封装 DOM 渲染和刷新的小工具。 diff --git a/languages/zh-Hant/Docs/ModuleTypes.multids b/languages/zh-Hant/Docs/ModuleTypes.multids index 0111f41e2..461652ce6 100644 --- a/languages/zh-Hant/Docs/ModuleTypes.multids +++ b/languages/zh-Hant/Docs/ModuleTypes.multids @@ -14,6 +14,7 @@ storyview: 檢視模式用以自訂 list 小工具的動畫與行為。 tiddlerdeserializer: 轉換不同內容類型至條目。 tiddlerfield: 定義個別條目欄位的行為。 tiddlermethod: 新增方法至 `$tw.Tiddler` 原型。 +upgrader: 於升級/導入過程中,套用升級處理至條目。 utils: 新增方法至 `$tw.utils`。 utils-node: 將特定於 Node.js 的方法新增到 '$tw.utils'。. widget: 封裝 DOM 渲染和刷新的小工具。 From fc2d3ce56a7fe764654905bbf69bb804fc802f53 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 16 Oct 2014 09:27:25 +0100 Subject: [PATCH 113/117] Docs update --- .../Releasing a new version of TiddlyWiki.tid | 3 +- .../Releasing new content for TiddlyWiki.tid | 2 ++ .../Scripts for building tiddlywiki.com.tid | 30 +++++++++++++++++-- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid b/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid index b033f6946..073c32cbb 100644 --- a/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid +++ b/editions/dev/tiddlers/build/Releasing a new version of TiddlyWiki.tid @@ -9,7 +9,8 @@ title: Releasing a new version of TiddlyWiki # Run `../build.jermolene.github.io/readme-bld.sh` to build the readme files # Commit the new readme files in `TiddlyWiki5` and `build.jermolene.github.io` # Restore `package.json` to the previous version number -# Run `../build.jermolene.github.io/verbump "5.1.3"` (substituting the correct version number) to update the version number, assign it a tag and publish the release to npm +# Run `../build.jermolene.github.io/verbump "5.1.3"` (substituting the correct version number) to update the version number, assign it a tag +# Run `../build.jermolene.github.io/npm-publish.sh` to publish the release to npm # Verify that the new release of TiddlyWiki is available at https://www.npmjs.org/package/tiddlywiki # Check the version number of TiddlyWiki specified in `build.jermolene.github.io/package.json` is the latest version # Change current directory to the `build.jermolene.github.io` directory diff --git a/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid b/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid index 6b61c8596..662fbdf41 100644 --- a/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid +++ b/editions/dev/tiddlers/build/Releasing new content for TiddlyWiki.tid @@ -2,5 +2,7 @@ title: Releasing new content for TiddlyWiki # Change current directory to the `TiddlyWiki5` directory # Run `../build.jermolene.github.io/bld.sh` to build the content files +# Run `../build.jermolene.github.io/readme-bld.sh` to build the readmes +# Commit the readmes to `TiddlyWiki5` and `build.jermolene.github.io` if necessary # Verify that the files in the `jermolene.github.io` directory are correct # Run `../build.jermolene.github.io/github-push.sh` to push the new files to GitHub diff --git a/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid b/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid index d459e5ab8..c78b80d26 100644 --- a/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid +++ b/editions/dev/tiddlers/build/Scripts for building tiddlywiki.com.tid @@ -1,6 +1,8 @@ title: Scripts for building tiddlywiki.com -These scripts are used to build and release the content for tiddlywiki.com. They are not designed for general purpose use, but you may find techniques that are useful for your own scripts. +These scripts are used to build and release the content for tiddlywiki.com. They are not designed for general purpose use -- they resolve problems that are specific to the task of building tiddlywiki.com: pushing to GitHub Pages, handling the prerelease builds and bumping version numbers. + +Nonetheless, you may find techniques that are useful for your own scripts. ! Hosting @@ -14,7 +16,7 @@ These scripts require the following directories to be siblings: * `build.jermolene.github.io` - a local copy of https://github.com/Jermolene/build.jermolene.github.io * `jermolene.github.io` - a local copy of the repo https://github.com/Jermolene/jermolene.github.io -* `TiddlyWiki5` - a local copy of the repo https://github.com/Jermolene/jermolene.github.io +* `TiddlyWiki5` - a local copy of the repo https://github.com/Jermolene/TiddlyWiki5 The scripts are designed to be executed with the current directory being the `TiddlyWiki5` directory. @@ -49,6 +51,10 @@ Builds the `tiddlywiki.com` target files. By default, it uses the version of tid TW5_BUILD_TIDDLYWIKI=./tiddlywiki.js ``` +!! `readme-bld.sh` + +Builds the readme files for the `TiddlyWiki5` and `build.jermolene.github.io` repos using the released version of TiddlyWiki specified in `package.json`. + !! `prerelease-bld.sh` Builds the `tiddlywiki.com/prerelease` target files using the latest TiddlyWiki prerelease code and special ''prerelease'' edition for the content. @@ -57,6 +63,26 @@ Builds the `tiddlywiki.com/prerelease` target files using the latest TiddlyWiki Pushes the latest changes to the `jermolene.github.io` directory to GitHub. +!! `dev-bld.sh` + +Builds the ''dev'' prerelease edition. + +!! `quick-bld.sh` + +Builds the ''prerelease'' prerelease edition. + +!! `tiddlyspace-upload.sh` + +Builds the ''tw5tiddlyweb'' edition and uploads it to TiddlySpace. + +!! `verbump.sh` + +Bumps the version number of the `package.json` in the `TiddlyWiki5` repo and applies the correct version tag to the repo. + +!! `npm-publish.sh` + +Publishes the `TiddlyWiki5` repo to npm. + ! Procedures !! Releasing a new version of TiddlyWiki From a4c1fee075eab07a26ca00b4a862ccbd27b6a152 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 16 Oct 2014 10:00:55 +0100 Subject: [PATCH 114/117] Update test.cmd --- bin/test.cmd | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/bin/test.cmd b/bin/test.cmd index f5a3085eb..554277b57 100644 --- a/bin/test.cmd +++ b/bin/test.cmd @@ -2,24 +2,10 @@ rem test TiddlyWiki5 for tiddlywiki.com -rem Set up the build output directory - -if "x%TW5_BUILD_OUTPUT%" == "x" ( - set TW5_BUILD_OUTPUT=..\jermolene.github.com -) - -if not exist %TW5_BUILD_OUTPUT%\nul ( - echo A valid TW5_BUILD_OUTPUT environment variable must be set - exit 1 -) - -echo Using TW5_BUILD_OUTPUT as %TW5_BUILD_OUTPUT% - rem Run the test edition to run the node.js tests and to generate test.html for tests in the browser node .\tiddlywiki.js ^ .\editions\test ^ - --output %TW5_BUILD_OUTPUT% ^ --verbose ^ --rendertiddler $:/core/save/all test.html text/plain ^ || exit 1 From 209c018c38b465d9fc5f64dcaaeb83b3de18613b Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Thu, 16 Oct 2014 10:01:02 +0100 Subject: [PATCH 115/117] Docs updates --- editions/dev/tiddlers/HelloThere.tid | 3 +++ .../Contributing to the TiddlyWiki Core.tid | 22 +++++++++++++++++++ ...uting to the TiddlyWiki Plugin Library.tid | 14 ++++++++++++ .../TiddlyWiki Coding Style Guidelines.tid | 3 +++ 4 files changed, 42 insertions(+) create mode 100644 editions/dev/tiddlers/from tw5.com/Contributing to the TiddlyWiki Core.tid create mode 100644 editions/dev/tiddlers/from tw5.com/Contributing to the TiddlyWiki Plugin Library.tid diff --git a/editions/dev/tiddlers/HelloThere.tid b/editions/dev/tiddlers/HelloThere.tid index 87d262af2..be8687104 100644 --- a/editions/dev/tiddlers/HelloThere.tid +++ b/editions/dev/tiddlers/HelloThere.tid @@ -16,6 +16,9 @@ Welcome to the developer documentation for TiddlyWiki (http://tiddlywiki.com/). ** [[TiddlyWiki on node-webkit]] ** [[package.json for node-webkit]] ** [[How to create plugins in the browser]] +** [[Contributing to the TiddlyWiki Core]] +** [[Contributing to the TiddlyWiki Plugin Library]] +** [[Scripts for building tiddlywiki.com]] ** SyncAdaptorModules ** WidgetModules ** WikiRuleModules diff --git a/editions/dev/tiddlers/from tw5.com/Contributing to the TiddlyWiki Core.tid b/editions/dev/tiddlers/from tw5.com/Contributing to the TiddlyWiki Core.tid new file mode 100644 index 000000000..9e1e08c5c --- /dev/null +++ b/editions/dev/tiddlers/from tw5.com/Contributing to the TiddlyWiki Core.tid @@ -0,0 +1,22 @@ +created: 20141016083308219 +modified: 20141016083333808 +title: Contributing to the TiddlyWiki Core +type: text/vnd.tiddlywiki + +The TiddlyWiki core is the container for all the generic features of TiddlyWiki that are of universal utility. Concretely, it comprises the tiddlers in the `$:/core` plugin. + +! Core Contribution Requirements + +There are requirements that must be met for any contribution that is to be accepted into the core: + +* If appropriate, the new functionality must support both standalone and Node.js configurations. For example, any new widgets must be capable of being rendered on the server +* The contribution must not compromise the backwards compatibility of the existing code +* Code contributions must comply with the [[TiddlyWiki Coding Style Guidelines]] +* Generic components are preferred over point solutions for specific problems (which belong in plugins) + +! The Core and Innovation + +If you've created something new and innovative, don't try to rush to get it included into the core. Once new stuff is in the core it is subject to the core policies of strict backwards compatibility, making it frozen as far as radical innovation is concerned. It's usually better to release the new thing as a plugin so that it can be shared with the rest of the community for feedback. + +The expected model of innovation is that the core development will move relatively slowly as more and more of the initial planned functionality is implemented. Innovation can take place in the much more unconstrained environment of plugins. Over time, as these third party plugins gain popularity and become more polished, some or all of their functionality will be migrated into the core. + diff --git a/editions/dev/tiddlers/from tw5.com/Contributing to the TiddlyWiki Plugin Library.tid b/editions/dev/tiddlers/from tw5.com/Contributing to the TiddlyWiki Plugin Library.tid new file mode 100644 index 000000000..cc3bec88e --- /dev/null +++ b/editions/dev/tiddlers/from tw5.com/Contributing to the TiddlyWiki Plugin Library.tid @@ -0,0 +1,14 @@ +created: 20141016083308219 +modified: 20141016083333808 +title: Contributing to the TiddlyWiki Plugin Library +type: text/vnd.tiddlywiki + +The TiddlyWiki Plugin library is the set of plugins, themes and languages that are distributed via http://tiddlywiki.com. + +The plugin library is intended to help end users of TiddlyWiki in the following ways: + +* By being a reliable, official source of community assets +* Permitting automatic upgrading of plugins during the upgrade process +* Providing a guarantee of backwards compatibility + +Plugins in the library need a maintainer who is prepared to make a commitment to keep them tested and fully operational with successive releases of the core code. Many plugins are maintained by the core team. diff --git a/editions/dev/tiddlers/from tw5.com/TiddlyWiki Coding Style Guidelines.tid b/editions/dev/tiddlers/from tw5.com/TiddlyWiki Coding Style Guidelines.tid index f50c7c2b8..9fded81a7 100644 --- a/editions/dev/tiddlers/from tw5.com/TiddlyWiki Coding Style Guidelines.tid +++ b/editions/dev/tiddlers/from tw5.com/TiddlyWiki Coding Style Guidelines.tid @@ -1,3 +1,4 @@ +modified: 20141016083333808 title: TiddlyWiki Coding Style Guidelines tags: dev @@ -7,6 +8,8 @@ TiddlyWiki is a large project with many interested parties. It benefits everyone ! Guidelines +This list of guidelines isn't exhaustive but captures some of the common problems. The ultimate guide is the existing TiddlyWiki code-base. There are still some places where the coding guidelines aren't used consistently within the core; pull requests are welcome to help resolve those issues. + !! Tabs and whitespace TiddlyWiki uses 4-character tabs for indenting. From ad13d57523571522a4aebcbea7b5a530d16e4951 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 17 Oct 2014 10:02:21 +0100 Subject: [PATCH 116/117] Use separate state for each slider demo Fixes #988 --- editions/tw5.com/tiddlers/widgets/RevealWidget.tid | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/editions/tw5.com/tiddlers/widgets/RevealWidget.tid b/editions/tw5.com/tiddlers/widgets/RevealWidget.tid index 0bafa0241..54799aca1 100644 --- a/editions/tw5.com/tiddlers/widgets/RevealWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/RevealWidget.tid @@ -34,10 +34,10 @@ Retaining the content when hidden can give poor performance since the hidden con Here's a simple example of showing and hiding content with buttons: -<<wikitext-example-without-html '<$button set="$:/SampleRevealState" setTo="show">Show me</$button> -<$button set="$:/SampleRevealState" setTo="hide">Hide me</$button> +<<wikitext-example-without-html '<$button set="$:/SampleRevealState1" setTo="show">Show me</$button> +<$button set="$:/SampleRevealState1" setTo="hide">Hide me</$button> -<$reveal type="match" state="$:/SampleRevealState" text="show"> +<$reveal type="match" state="$:/SampleRevealState1" text="show"> ! This is the revealed content And this is some text @@ -48,14 +48,14 @@ And this is some text A slider appears as a single button that can be used to toggle the display of the contained content. -<<wikitext-example-without-html '<$reveal type="nomatch" state="$:/SampleRevealState" text="show"> +<<wikitext-example-without-html '<$reveal type="nomatch" state="$:/SampleRevealState2" text="show"> -<$button set="$:/SampleRevealState" setTo="show">Show me</$button> +<$button set="$:/SampleRevealState2" setTo="show">Show me</$button> </$reveal> -<$reveal type="match" state="$:/SampleRevealState" text="show"> +<$reveal type="match" state="$:/SampleRevealState2" text="show"> -<$button set="$:/SampleRevealState" setTo="hide">Hide me</$button> +<$button set="$:/SampleRevealState2" setTo="hide">Hide me</$button> ! This is the revealed content And this is some text From 21a791cdcda14e075825ae9b62ac6a5ff413cdb8 Mon Sep 17 00:00:00 2001 From: Jermolene <jeremy@osmosoft.com> Date: Fri, 17 Oct 2014 16:29:27 +0100 Subject: [PATCH 117/117] Docs updates --- .../Developing plugins using Node.js and GitHub.tid | 2 +- .../How to create a translation for TiddlyWiki.tid | 2 +- .../Generating Static Sites with TiddlyWiki.tid | 2 +- ...yWiki for GitHub Pages project documentation.tid | 13 +++---------- 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/editions/dev/tiddlers/from tw5.com/Developing plugins using Node.js and GitHub.tid b/editions/dev/tiddlers/from tw5.com/Developing plugins using Node.js and GitHub.tid index 97fbeb635..9d271de77 100644 --- a/editions/dev/tiddlers/from tw5.com/Developing plugins using Node.js and GitHub.tid +++ b/editions/dev/tiddlers/from tw5.com/Developing plugins using Node.js and GitHub.tid @@ -87,7 +87,7 @@ For example files see the plugins in the tiddlywiki5 repository i.e. those locat Modify editions/tw5.com/tiddlywiki.info to include a reference to your plugin directory, i.e. find `"plugins": [ ` and add `"yourname/pluginname"`. -From the TW5 directory issue command +From the TW5 directory issue the command ``` ./bin/qbld.sh diff --git a/editions/dev/tiddlers/from tw5.com/How to create a translation for TiddlyWiki.tid b/editions/dev/tiddlers/from tw5.com/How to create a translation for TiddlyWiki.tid index 36a66e84b..c8ad7300a 100644 --- a/editions/dev/tiddlers/from tw5.com/How to create a translation for TiddlyWiki.tid +++ b/editions/dev/tiddlers/from tw5.com/How to create a translation for TiddlyWiki.tid @@ -21,7 +21,7 @@ type: text/vnd.tiddlywiki # Copy the contents of `<repo>/core/language/en-GB` into your translation folder # Create a `plugin.info` file (see below) in your translation folder # Edit `<repo>/editions/tw5.com/tiddlywiki.info` to add your language to the list -# Run `./bin/qbld.sh` to build TiddlyWiki +# Run `../build.jermolene.github.io/quick-bld.sh` to build TiddlyWiki # Open the TiddlyWiki file at `/MyTranslation/jermolene.github.com/index.html` # You should see your translation listed in the control panel, but the text of the translation will still be in British English # Edit the `.tid` and `.multids` files in your language folder to translate the English text diff --git a/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid b/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid index 32e0b5c86..ca738891e 100644 --- a/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid +++ b/editions/tw5.com/tiddlers/howtos/Generating Static Sites with TiddlyWiki.tid @@ -28,7 +28,7 @@ It is also possible to produce a single HTML file that contains static represent For example: <a href="alltiddlers.html">alltiddlers.html</a> -The example is built by the following line in `bin/bld.sh`: +The example is built by the following commands: ``` --rendertiddler $:/core/templates/alltiddlers.template.html alltiddlers.html text/plain diff --git a/editions/tw5.com/tiddlers/howtos/Using TiddlyWiki for GitHub Pages project documentation.tid b/editions/tw5.com/tiddlers/howtos/Using TiddlyWiki for GitHub Pages project documentation.tid index 2227b55d1..3dccedebc 100644 --- a/editions/tw5.com/tiddlers/howtos/Using TiddlyWiki for GitHub Pages project documentation.tid +++ b/editions/tw5.com/tiddlers/howtos/Using TiddlyWiki for GitHub Pages project documentation.tid @@ -1,16 +1,16 @@ created: 20130825150100000 modified: 20140912141559011 tags: [[TiddlyWiki on Node.js]] -title: Using TiddlyWiki for GitHub Pages project documentation +title: Using TiddlyWiki for GitHub project documentation type: text/vnd.tiddlywiki -TiddlyWiki5 can be used to produce documentation for GitHub projects. It lets you maintain a single set of documentation as a [[TiddlyWikiFolder|TiddlyWikiFolders]] containing separate tiddler files under source code control, and then use it to produce `readme.md` files for inclusion in project folders, or HTML files for storage in [[GitHub Pages|http://pages.github.com/]]. Both features are demonstrated by TiddlyWiki5 itself. +TiddlyWiki5 can be used to produce documentation for GitHub projects. It lets you maintain a single set of documentation as a [[TiddlyWikiFolder|TiddlyWikiFolders]] containing separate tiddler files under source code control, and then use it to produce `readme.md` files for inclusion in project folders, or HTML files for storage in [[GitHub Pages|http://pages.github.com/]]. Both features are demonstrated by TiddlyWiki5 itself. ! Generating `readme.md` files When displaying the contents of a folder GitHub will look for a `readme.md` file and display it. Note that it will not display full HTML files in this way, just static MarkDown files (this is a security measure). Happily MarkDown permits a safe subset of HTML, and thus to generate a `readme.md` file that is suitable for GitHub it is just necessary for TiddlyWiki5 to generate the content of the `<body>` element of an HTML document, and give it the appropriate filename. -This is done in `bin/bld.sh` by this command: +This is done with this command: ``` --rendertiddler ReadMe ./readme.md text/html @@ -27,10 +27,3 @@ By default, tiddler links will be rendered as `<a>` links to a relative URI cons See the LinkWidget for more details. In this example, tiddler links are rendered as links to the static rendering of tw5.com. - -! Publishing to GitHub Pages - -Publishing to GitHub Pages is very straightforward. In the case of TiddlyWiki5, several different build products are published. - -The `bld.sh` script deposits the build products directly into the local clone of the repo associated with the GitHub Pages account. There is then a manual step to review changes and push them up to github.com. -