tiddlywiki 5.3.2 → 5.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/build-site.sh +34 -1
- package/boot/boot.js +61 -26
- package/boot/tiddlywiki.files +32 -0
- package/contributing.md +1 -1
- package/core/copyright.tid +1 -1
- package/core/images/standard-layout.tid +7 -0
- package/core/language/en-GB/Buttons.multids +3 -0
- package/core/language/en-GB/ControlPanel.multids +6 -0
- package/core/language/en-GB/Docs/ModuleTypes.multids +1 -1
- package/core/language/en-GB/Docs/PaletteColours.multids +7 -0
- package/core/language/en-GB/Fields.multids +2 -0
- package/core/language/en-GB/Misc.multids +2 -2
- package/core/modules/commands/listen.js +1 -1
- package/core/modules/commands/makelibrary.js +1 -26
- package/core/modules/commands/save.js +3 -1
- package/core/modules/commands/savewikifolder.js +4 -1
- package/core/modules/filters/backtranscludes.js +26 -0
- package/core/modules/filters/crypto.js +2 -5
- package/core/modules/filters/strings.js +6 -3
- package/core/modules/filters/transcludes.js +26 -0
- package/core/modules/filters/x-listops.js +1 -1
- package/core/modules/indexers/back-indexer.js +122 -0
- package/core/modules/macros/csvtiddlers.js +9 -5
- package/core/modules/parsers/parseutils.js +1 -1
- package/core/modules/parsers/wikiparser/rules/codeblock.js +6 -3
- package/core/modules/parsers/wikiparser/rules/codeinline.js +5 -2
- package/core/modules/parsers/wikiparser/rules/extlink.js +2 -1
- package/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js +15 -5
- package/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js +15 -5
- package/core/modules/parsers/wikiparser/rules/fnprocdef.js +3 -3
- package/core/modules/parsers/wikiparser/rules/hardlinebreaks.js +2 -1
- package/core/modules/parsers/wikiparser/rules/heading.js +4 -2
- package/core/modules/parsers/wikiparser/rules/html.js +25 -0
- package/core/modules/parsers/wikiparser/rules/image.js +2 -2
- package/core/modules/parsers/wikiparser/rules/import.js +2 -1
- package/core/modules/parsers/wikiparser/rules/list.js +29 -4
- package/core/modules/parsers/wikiparser/rules/macrodef.js +3 -3
- package/core/modules/parsers/wikiparser/rules/prettyextlink.js +7 -2
- package/core/modules/parsers/wikiparser/rules/prettylink.js +12 -5
- package/core/modules/parsers/wikiparser/rules/quoteblock.js +16 -30
- package/core/modules/parsers/wikiparser/rules/syslink.js +6 -3
- package/core/modules/parsers/wikiparser/rules/table.js +2 -1
- package/core/modules/parsers/wikiparser/rules/typedblock.js +4 -1
- package/core/modules/parsers/wikiparser/rules/wikilink.js +4 -1
- package/core/modules/parsers/wikiparser/wikiparser.js +41 -5
- package/core/modules/saver-handler.js +7 -3
- package/core/modules/server/authenticators/header.js +3 -1
- package/core/modules/server/server.js +5 -0
- package/core/modules/startup/render.js +8 -2
- package/core/modules/startup/rootwidget.js +10 -2
- package/core/modules/startup/story.js +14 -4
- package/core/modules/startup/windows.js +1 -1
- package/core/modules/utils/dom/dom.js +3 -1
- package/core/modules/utils/dom/http.js +19 -7
- package/core/modules/utils/errors.js +23 -0
- package/core/modules/utils/fakedom.js +2 -2
- package/core/modules/utils/filesystem.js +13 -10
- package/core/modules/utils/repository.js +52 -0
- package/core/modules/utils/utils.js +11 -2
- package/core/modules/widgets/action-deletefield.js +7 -2
- package/core/modules/widgets/action-log.js +6 -1
- package/core/modules/widgets/button.js +1 -1
- package/core/modules/widgets/data.js +182 -0
- package/core/modules/widgets/draggable.js +2 -2
- package/core/modules/widgets/edit.js +1 -1
- package/core/modules/widgets/importvariables.js +1 -1
- package/core/modules/widgets/link.js +1 -1
- package/core/modules/widgets/list.js +5 -2
- package/core/modules/widgets/parameters.js +12 -0
- package/core/modules/widgets/select.js +2 -2
- package/core/modules/widgets/testcase.js +165 -0
- package/core/modules/widgets/transclude.js +24 -1
- package/core/modules/widgets/widget.js +23 -10
- package/core/modules/wiki.js +78 -2
- package/core/palettes/Vanilla.tid +7 -0
- package/core/plugin.info +2 -1
- package/core/templates/external-js/save-all-external-js.tid +1 -1
- package/core/templates/external-js/save-offline-external-js.tid +1 -1
- package/core/templates/html-json-skinny-tiddler.tid +1 -1
- package/core/templates/save-all.tid +1 -1
- package/core/templates/save-empty.tid +1 -1
- package/core/templates/save-lazy-all.tid +1 -1
- package/core/templates/save-lazy-images.tid +1 -1
- package/core/templates/store.area.template.html.tid +3 -5
- package/core/ui/AdvancedSearch/Filter.tid +1 -4
- package/core/ui/AdvancedSearch/Standard.tid +5 -4
- package/core/ui/Components/plugin-info.tid +11 -1
- package/core/ui/ControlPanel/Modals/AddPlugins.tid +13 -2
- package/core/ui/ControlPanel/Saving/DownloadSaver.tid +11 -2
- package/core/ui/ControlPanel/Saving/General.tid +11 -3
- package/core/ui/ControlPanel/Settings/CamelCase.tid +10 -1
- package/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab.tid +11 -6
- package/core/ui/ControlPanel/Settings/DefaultSidebarTab.tid +11 -5
- package/core/ui/ControlPanel/Settings/EditorToolbar.tid +9 -2
- package/core/ui/ControlPanel/Settings/InfoPanelMode.tid +11 -3
- package/core/ui/ControlPanel/Settings/LinkToBehaviour.tid +15 -11
- package/core/ui/ControlPanel/Settings/MissingLinks.tid +6 -2
- package/core/ui/ControlPanel/Settings/NavigationAddressBar.tid +13 -4
- package/core/ui/ControlPanel/Settings/NavigationHistory.tid +11 -3
- package/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode.tid +17 -2
- package/core/ui/ControlPanel/Settings/PerformanceInstrumentation.tid +9 -1
- package/core/ui/ControlPanel/Settings/TitleLinks.tid +11 -3
- package/core/ui/ControlPanel/Settings/ToolbarButtonStyle.tid +9 -6
- package/core/ui/ControlPanel/Settings/ToolbarButtons.tid +17 -2
- package/core/ui/ControlPanel/TestCases.tid +10 -0
- package/core/ui/ControlPanel/TestCasesAll.tid +24 -0
- package/core/ui/ControlPanel/TestCasesFailed.tid +15 -0
- package/core/ui/ControlPanel/TiddlyWiki.tid +2 -2
- package/core/ui/EditTemplate/body/default.tid +5 -3
- package/core/ui/EditTemplate/controls.tid +12 -6
- package/core/ui/EditTemplate/tags.tid +52 -28
- package/core/ui/EditorToolbar/preview.tid +4 -13
- package/core/ui/KeyboardShortcuts/refresh.tid +5 -0
- package/core/ui/PageControls/more-page-actions.tid +37 -44
- package/core/ui/PageControls.tid +10 -13
- package/core/ui/{PageTemplate.tid → StandardLayout.tid} +1 -1
- package/core/ui/TestCaseTemplate.tid +19 -0
- package/core/ui/TestCases/DefaultTemplate.tid +91 -0
- package/core/ui/TestCases/DefaultTemplateSourceTabs.tid +27 -0
- package/core/ui/TestCases/RawJSONTemplate.tid +4 -0
- package/core/ui/TestCases/actions/Export.tid +4 -0
- package/core/ui/TestCases/actions/Import.tid +11 -0
- package/core/ui/ViewTemplate/title.tid +33 -26
- package/core/ui/ViewToolbar/more-tiddler-actions.tid +35 -43
- package/core/wiki/config/OfficialPluginLibrary.tid +1 -1
- package/core/wiki/config/ShortcutInfo.multids +1 -0
- package/core/wiki/config/ViewTemplateBodyFilters.multids +1 -0
- package/core/wiki/config/shortcuts/shortcuts-mac.multids +1 -0
- package/core/wiki/config/shortcuts/shortcuts-not-mac.multids +1 -0
- package/core/wiki/macros/CSS.tid +44 -51
- package/core/wiki/macros/copy-to-clipboard.tid +17 -11
- package/core/wiki/macros/diff.tid +28 -28
- package/core/wiki/macros/tag-picker.tid +165 -160
- package/core/wiki/macros/tag.tid +3 -1
- package/core/wiki/macros/testcase.tid +10 -0
- package/core/wiki/tags/TestCaseActions.tid +2 -0
- package/core/wiki/tags/ViewTemplateBodyFilter.tid +1 -1
- package/editions/dev/tiddlers/HelloThere.tid +1 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Javascript Widget Tutorial.tid +22 -16
- package/editions/dev/tiddlers/new/Using ES2016 for Writing Plugins.tid +18 -8
- package/editions/dev/tiddlers/new/Using TiddlyWiki as a library.tid +5 -0
- package/editions/dev/tiddlers/system/$__themes_tiddlywiki_vanilla_options_sidebarlayout.tid +6 -0
- package/editions/full/tiddlywiki.info +1 -0
- package/editions/geospatialdemo/tiddlers/DefaultTiddlers.tid +4 -0
- package/editions/geospatialdemo/tiddlers/Features.tid +14 -0
- package/editions/geospatialdemo/tiddlers/Flickr Demo.tid +27 -0
- package/editions/geospatialdemo/tiddlers/Geospatial Plugin Logo.png +0 -0
- package/editions/geospatialdemo/tiddlers/Geospatial Plugin Logo.png.meta +2 -0
- package/editions/geospatialdemo/tiddlers/HelloThere.tid +37 -0
- package/editions/geospatialdemo/tiddlers/Markers.tid +53 -0
- package/editions/geospatialdemo/tiddlers/SiteSubtitle.tid +3 -0
- package/editions/geospatialdemo/tiddlers/SiteTitle.tid +3 -0
- package/editions/geospatialdemo/tiddlers/cascades/ViewTemplateBodyFilters.tid +6 -0
- package/editions/geospatialdemo/tiddlers/cities/LimehouseTownHall.tid +9 -0
- package/editions/geospatialdemo/tiddlers/cities/Motovun.tid +9 -0
- package/editions/geospatialdemo/tiddlers/cities/NewYork.tid +8 -0
- package/editions/geospatialdemo/tiddlers/cities/Oxford.tid +8 -0
- package/editions/geospatialdemo/tiddlers/cities/Toronto.tid +8 -0
- package/editions/geospatialdemo/tiddlers/cities/Winchester.tid +8 -0
- package/editions/geospatialdemo/tiddlers/config/flickr-param.multids +5 -0
- package/editions/geospatialdemo/tiddlers/default-import-spec.tid +4 -0
- package/editions/geospatialdemo/tiddlers/favicon.png +0 -0
- package/editions/geospatialdemo/tiddlers/favicon.png.meta +2 -0
- package/editions/geospatialdemo/tiddlers/features/canada-census-subdivision-millesime.geojson +1 -0
- package/editions/geospatialdemo/tiddlers/features/canada-census-subdivision-millesime.geojson.meta +5 -0
- package/editions/geospatialdemo/tiddlers/features/denver-bikerental.tid +109 -0
- package/editions/geospatialdemo/tiddlers/features/denver-campus.tid +63 -0
- package/editions/geospatialdemo/tiddlers/features/denver-freebus.tid +56 -0
- package/editions/geospatialdemo/tiddlers/features/denver-lightrail.tid +30 -0
- package/editions/geospatialdemo/tiddlers/features/harvard-glb-volc-geojson.json +1 -0
- package/editions/geospatialdemo/tiddlers/features/harvard-glb-volc-geojson.json.meta +5 -0
- package/editions/geospatialdemo/tiddlers/features/us-states.geojson +54 -0
- package/editions/geospatialdemo/tiddlers/features/us-states.geojson.meta +5 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/real-estate-demo.tid +99 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/schema.json +22 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/schema.json.meta +3 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRow.tid +5 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldAddress.tid +7 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldBroker.tid +7 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldCity.tid +7 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldLat.tid +8 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldLong.tid +8 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldPrice.tid +8 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldSalesAgent.tid +7 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldState.tid +7 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldTags.tid +7 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldTitle.tid +8 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesRowFieldZipCode.tid +7 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/PropertiesSheet.tid +7 -0
- package/editions/geospatialdemo/tiddlers/real-estate-demo/xlsx-utils-import-specs/workbook.tid +7 -0
- package/editions/geospatialdemo/tiddlers/sidebarlayout.tid +2 -0
- package/editions/geospatialdemo/tiddlers/ui/geofeature.tid +39 -0
- package/editions/geospatialdemo/tiddlers/ui/geomarker.tid +128 -0
- package/editions/geospatialdemo/tiddlywiki.info +23 -0
- package/editions/introduction/tiddlers/slides/CecilyMap.tid +12 -12
- package/editions/introduction/tiddlers/slides/blank.json +1 -1
- package/editions/prerelease/tiddlers/{Release 5.3.3.tid → Release 5.3.5.tid } +13 -7
- package/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid +1 -1
- package/editions/prerelease/tiddlers/system/configPerformanceInstrumentation.tid +2 -0
- package/editions/prerelease/tiddlywiki.info +4 -1
- package/editions/test/tiddlers/HelloThere.tid +4 -0
- package/editions/test/tiddlers/tests/data/data-widget/ImportCompound.tid +27 -0
- package/editions/test/tiddlers/tests/data/data-widget/ImportFilter.tid +28 -0
- package/editions/test/tiddlers/tests/data/data-widget/ImportTiddler.tid +23 -0
- package/editions/test/tiddlers/tests/data/data-widget/Simple.tid +18 -0
- package/editions/test/tiddlers/tests/data/functions/FunctionFilterrunVariables.tid +24 -0
- package/editions/test/tiddlers/tests/data/functions/FunctionFilterrunVariables2.tid +20 -0
- package/editions/test/tiddlers/tests/data/functions/FunctionFilterrunVariables3.tid +21 -0
- package/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid +1 -0
- package/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid +1 -0
- package/editions/test/tiddlers/tests/data/list-widget/WithEmptyParagraphTemplate.tid +13 -0
- package/editions/test/tiddlers/tests/data/macros/EndInBody.tid +16 -0
- package/editions/test/tiddlers/tests/data/macros/IndentedEnd.tid +16 -0
- package/editions/test/tiddlers/tests/data/macros/MismatchedNamedEnd.tid +16 -0
- package/editions/test/tiddlers/tests/data/macros/WhitespaceOnlyWithEnd.tid +18 -0
- package/editions/test/tiddlers/tests/data/macros/WhitespaceOnlyWithEnd2.tid +15 -0
- package/editions/test/tiddlers/tests/data/macros/unusedtitle/basic-params-draft-exists.tid +27 -0
- package/editions/test/tiddlers/tests/data/macros/unusedtitle/basic-params-empty-tiddler-exists.tid +23 -0
- package/editions/test/tiddlers/tests/data/macros/unusedtitle/basic-params-empty.tid +20 -0
- package/editions/test/tiddlers/tests/data/macros/unusedtitle/basic-params-tiddlers-exist.tid +28 -0
- package/editions/test/tiddlers/tests/data/macros/unusedtitle/basic-params.tid +20 -0
- package/editions/test/tiddlers/tests/data/macros/unusedtitle/template-empty-params-tiddler-exist.tid +50 -0
- package/editions/test/tiddlers/tests/data/macros/unusedtitle/template-empty-params.tid +24 -0
- package/editions/test/tiddlers/tests/data/macros/unusedtitle/template.tid +28 -0
- package/editions/test/tiddlers/tests/data/pragmas/WhitespaceAfterPragma.tid +67 -0
- package/editions/test/tiddlers/tests/data/pragmas/WhitespaceNoPragma.tid +32 -0
- package/editions/test/tiddlers/tests/data/procedures/EndInBody.tid +16 -0
- package/editions/test/tiddlers/tests/data/procedures/IndentedEnd.tid +16 -0
- package/editions/test/tiddlers/tests/data/procedures/MismatchedNamedEnd.tid +16 -0
- package/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd.tid +18 -0
- package/editions/test/tiddlers/tests/data/procedures/WhitespaceOnlyWithEnd2.tid +15 -0
- package/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace2.tid +25 -0
- package/editions/test/tiddlers/tests/data/transclude/Procedures-Whitespace3.tid +30 -0
- package/editions/test/tiddlers/tests/data/transclude/Recursion.tid +2 -1
- package/editions/test/tiddlers/tests/data/widgets/DataAttributes/SelectWidget-DataAttributes.tid +2 -2
- package/editions/test/tiddlers/tests/from-tw5.com/tiddlywiki.files +5 -0
- package/editions/test/tiddlers/tests/test-action-deletefield.js +176 -0
- package/editions/test/tiddlers/tests/test-backlinks.js +57 -44
- package/editions/test/tiddlers/tests/test-backtranscludes.js +241 -0
- package/editions/test/tiddlers/tests/test-fakedom.js +27 -0
- package/editions/test/tiddlers/tests/test-plugins.js +55 -0
- package/editions/test/tiddlers/tests/test-widget-getVariableInfo.js +95 -0
- package/editions/test/tiddlers/tests/test-widget.js +61 -0
- package/editions/test/tiddlers/tests/test-wikitext-parser.js +48 -49
- package/editions/test/tiddlywiki.info +2 -1
- package/editions/tour/tiddlers/Solar System/Asteroid (253) Mathilde Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Asteroid (253) Mathilde Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Asteroid.tid +17 -0
- package/editions/tour/tiddlers/Solar System/Comet Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Comet Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Comet.tid +15 -0
- package/editions/tour/tiddlers/Solar System/Earth Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Earth Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Earth's Moon Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Earth's Moon Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Earth's Moon.tid +10 -0
- package/editions/tour/tiddlers/Solar System/Earth.tid +21 -0
- package/editions/tour/tiddlers/Solar System/Jupiter Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Jupiter Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Jupiter.tid +15 -0
- package/editions/tour/tiddlers/Solar System/Kuiper belt.tid +12 -0
- package/editions/tour/tiddlers/Solar System/Mars Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Mars Image.png.meta +5 -0
- package/editions/tour/tiddlers/Solar System/Mars.tid +11 -0
- package/editions/tour/tiddlers/Solar System/Mercury Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Mercury Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Mercury.tid +21 -0
- package/editions/tour/tiddlers/Solar System/Milky Way Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Milky Way Image.png.meta +5 -0
- package/editions/tour/tiddlers/Solar System/Milky Way.tid +14 -0
- package/editions/tour/tiddlers/Solar System/Moon.tid +9 -0
- package/editions/tour/tiddlers/Solar System/Neptune Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Neptune Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Neptune.tid +19 -0
- package/editions/tour/tiddlers/Solar System/Planet Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Planet Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Planet.tid +17 -0
- package/editions/tour/tiddlers/Solar System/Pluto Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Pluto Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Pluto.tid +12 -0
- package/editions/tour/tiddlers/Solar System/Saturn Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Saturn Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Saturn.tid +17 -0
- package/editions/tour/tiddlers/Solar System/Solar System Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Solar System Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Solar System.tid +18 -0
- package/editions/tour/tiddlers/Solar System/Sun Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Sun Image.png.meta +5 -0
- package/editions/tour/tiddlers/Solar System/Sun.tid +17 -0
- package/editions/tour/tiddlers/Solar System/Uranus Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Uranus Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Uranus.tid +19 -0
- package/editions/tour/tiddlers/Solar System/Venus Image.png +0 -0
- package/editions/tour/tiddlers/Solar System/Venus Image.png.meta +3 -0
- package/editions/tour/tiddlers/Solar System/Venus.tid +17 -0
- package/editions/tour/tiddlers/System/$__themes_tiddlywiki_vanilla_options_sidebarlayout.tid +4 -0
- package/editions/tour/tiddlers/System/DefaultTiddlers.tid +4 -0
- package/editions/tour/tiddlers/System/HelloThere.tid +5 -0
- package/editions/tour/tiddlers/System/SiteSubtitle.tid +2 -0
- package/editions/tour/tiddlers/System/SiteTitle.tid +2 -0
- package/editions/tour/tiddlers/System/configAutoStartTour.tid +2 -0
- package/editions/tour/tiddlers/System/styles.tid +9 -0
- package/editions/tour/tiddlywiki.info +16 -0
- package/editions/translators/tiddlywiki.info +1 -0
- package/editions/tw5.com/tiddlers/String Operators.tid +8 -0
- package/editions/tw5.com/tiddlers/Tag Operators.tid +8 -0
- package/editions/tw5.com/tiddlers/TiddlyWiki Docs PR Maker.tid +12 -0
- package/editions/tw5.com/tiddlers/about/Archive.tid +1 -1
- package/editions/tw5.com/tiddlers/about/Developers.tid +1 -0
- package/editions/tw5.com/tiddlers/about/History of TiddlyWiki.tid +5 -5
- package/editions/tw5.com/tiddlers/community/Community Editions.tid +2 -2
- package/editions/tw5.com/tiddlers/community/Contributor License Agreement.tid +2 -2
- package/editions/tw5.com/tiddlers/community/Improving TiddlyWiki Documentation.tid +21 -1
- package/editions/tw5.com/tiddlers/community/plugins/Disqus comments plugin by bimlas.tid +1 -1
- package/editions/tw5.com/tiddlers/community/plugins/Kin filter operator by bimlas.tid +1 -1
- package/editions/tw5.com/tiddlers/community/plugins/Locator plugin by bimlas.tid +1 -1
- package/editions/tw5.com/tiddlers/community/themes/Notebook theme by Nicolas Petton.tid +2 -2
- package/editions/tw5.com/tiddlers/concepts/Bags and Recipes.tid +42 -0
- package/editions/tw5.com/tiddlers/concepts/ColourPalettes.tid +2 -2
- package/editions/tw5.com/tiddlers/concepts/CompoundTiddlers.tid +31 -0
- package/editions/tw5.com/tiddlers/concepts/Filters.tid +3 -3
- package/editions/tw5.com/tiddlers/concepts/Hard and Soft Links.tid +4 -2
- package/editions/tw5.com/tiddlers/concepts/Hard and Soft Transclusions.tid +16 -0
- package/editions/tw5.com/tiddlers/concepts/ShadowTiddlers.tid +4 -2
- package/editions/tw5.com/tiddlers/concepts/Temporary Tiddlers.tid +8 -0
- package/editions/tw5.com/tiddlers/concepts/TestCaseTiddlers.tid +26 -0
- package/editions/tw5.com/tiddlers/concepts/TextReference.tid +2 -2
- package/editions/tw5.com/tiddlers/concepts/TiddlerFields.tid +4 -3
- package/editions/tw5.com/tiddlers/concepts/Transclusion.tid +10 -3
- package/editions/tw5.com/tiddlers/customising/Alternative page layouts.tid +34 -3
- package/editions/tw5.com/tiddlers/customising/Creating new toolbar buttons.tid +2 -2
- package/editions/tw5.com/tiddlers/definitions/Legacy.tid +9 -0
- package/editions/tw5.com/tiddlers/definitions/TiddlyFox.tid +4 -2
- package/editions/tw5.com/tiddlers/definitions/TiddlyWeb.tid +2 -3
- package/editions/tw5.com/tiddlers/definitions/TiddlyWebAdaptor.tid +9 -0
- package/editions/tw5.com/tiddlers/definitions/UnaMesa.tid +10 -0
- package/editions/tw5.com/tiddlers/fields/ListField.tid +3 -3
- package/editions/tw5.com/tiddlers/filters/Conditional Operators.tid +6 -4
- package/editions/tw5.com/tiddlers/filters/Filter Operators.tid +13 -6
- package/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/add.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/all.tid +8 -4
- package/editions/tw5.com/tiddlers/filters/append.tid +3 -3
- package/editions/tw5.com/tiddlers/filters/backtranscludes.tid +14 -0
- package/editions/tw5.com/tiddlers/filters/charcode.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/compare Operator.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/cycle Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/divide Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/enlist Operator.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/enlist-input Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/Brownies.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/Chick Peas.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/Milk.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/Rice Pudding.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/backtransclude.tid +7 -0
- package/editions/tw5.com/tiddlers/filters/examples/prepend.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/examples/sha256 Operator (Examples).tid +9 -0
- package/editions/tw5.com/tiddlers/filters/examples/subfilter Operator (Examples).tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/transclude.tid +5 -0
- package/editions/tw5.com/tiddlers/filters/field.tid +11 -11
- package/editions/tw5.com/tiddlers/filters/format.tid +6 -6
- package/editions/tw5.com/tiddlers/filters/jsonextract.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/jsonget.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/jsonindexes.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/jsontype.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/log Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/match Operator.tid +5 -6
- package/editions/tw5.com/tiddlers/filters/max Operator.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/min Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/minlength.tid +3 -3
- package/editions/tw5.com/tiddlers/filters/moduleproperty Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/modules.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/multiply Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/power Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/prefix.tid +9 -10
- package/editions/tw5.com/tiddlers/filters/prepend.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/range.tid +11 -11
- package/editions/tw5.com/tiddlers/filters/reduce.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/remainder Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/remove.tid +3 -3
- package/editions/tw5.com/tiddlers/filters/removeprefix.tid +8 -9
- package/editions/tw5.com/tiddlers/filters/removesuffix.tid +8 -9
- package/editions/tw5.com/tiddlers/filters/search.tid +3 -3
- package/editions/tw5.com/tiddlers/filters/sortby.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/splitregexp Operator.tid +20 -2
- package/editions/tw5.com/tiddlers/filters/subfilter Operator.tid +3 -3
- package/editions/tw5.com/tiddlers/filters/subtract Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/suffix.tid +9 -10
- package/editions/tw5.com/tiddlers/filters/syntax/All Filter Run Prefix.tid +18 -0
- package/editions/tw5.com/tiddlers/filters/syntax/And Filter Run Prefix.tid +18 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid +2 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix.tid +14 -9
- package/editions/tw5.com/tiddlers/filters/syntax/Else Filter Run Prefix.tid +18 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Except Filter Run Prefix.tid +18 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Expression.tid +11 -63
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix (Examples).tid +2 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix.tid +19 -14
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Parameter.tid +11 -7
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix (Examples).tid +2 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix.tid +18 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Run.tid +5 -4
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Step.tid +22 -10
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Syntax.tid +12 -6
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Whitespace.tid +5 -3
- package/editions/tw5.com/tiddlers/filters/syntax/Interchangeable Filter Run Prefixes.tid +44 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix (Examples).tid +2 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix.tid +13 -8
- package/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix (Examples).tid +2 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix.tid +21 -16
- package/editions/tw5.com/tiddlers/filters/syntax/Named Filter Run Prefix.tid +32 -6
- package/editions/tw5.com/tiddlers/filters/syntax/Or Filter Run Prefix.tid +18 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix (Examples).tid +2 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix.tid +23 -14
- package/editions/tw5.com/tiddlers/filters/syntax/Shortcut Filter Run Prefixes.tid +29 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix (Examples).tid +2 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Sort Filter Run Prefix.tid +16 -9
- package/editions/tw5.com/tiddlers/filters/syntax/then Filter Run Prefix.tid +3 -36
- package/editions/tw5.com/tiddlers/filters/toggle Operator.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/transcludes.tid +14 -0
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Firefox.tid +4 -3
- package/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +1 -1
- package/editions/tw5.com/tiddlers/howtos/Concatenating text and variables using macro substitution.tid +6 -0
- package/editions/tw5.com/tiddlers/howtos/Custom_data-styles.tid +4 -2
- package/editions/tw5.com/tiddlers/howtos/How to embed PDF and other documents.tid +2 -2
- package/editions/tw5.com/tiddlers/howtos/Setting a page background image.tid +2 -2
- package/editions/tw5.com/tiddlers/howtos/Tagging.tid +3 -3
- package/editions/tw5.com/tiddlers/howtos/Using Excise.tid +2 -2
- package/editions/tw5.com/tiddlers/images/New Release Banner.png +0 -0
- package/editions/tw5.com/tiddlers/images/Open Collective Logo.tid +4 -2
- package/editions/tw5.com/tiddlers/macros/StylesheetMacros.tid +3 -1
- package/editions/tw5.com/tiddlers/macros/TagMacro.tid +30 -2
- package/editions/tw5.com/tiddlers/macros/examples/tag.tid +8 -4
- package/editions/tw5.com/tiddlers/macros/import/tags-of-current-tiddler.tid +2 -1
- package/editions/tw5.com/tiddlers/macros/import/tv-get-export-image-link.tid +3 -2
- package/editions/tw5.com/tiddlers/macros/import/tv-wikilink-tooltip.tid +2 -1
- package/editions/tw5.com/tiddlers/macros/list-thumbnails Macro.tid +5 -5
- package/editions/tw5.com/tiddlers/macros/syntax/Macro Call Syntax.tid +5 -1
- package/editions/tw5.com/tiddlers/macros/syntax/Macro Definition Syntax.tid +5 -1
- package/editions/tw5.com/tiddlers/macros/syntax/Procedure Call Syntax.tid +33 -0
- package/editions/tw5.com/tiddlers/macros/syntax/Procedure Definition Syntax.tid +93 -0
- package/editions/tw5.com/tiddlers/macros/syntax/Procedure Syntax.tid +11 -0
- package/editions/tw5.com/tiddlers/macros/tag-picker_Macro.tid +13 -5
- package/editions/tw5.com/tiddlers/macros/thumbnail Macro.tid +19 -4
- package/editions/tw5.com/tiddlers/mechanisms/PluginMechanism.tid +5 -1
- package/editions/tw5.com/tiddlers/mechanisms/RefreshThrottling.tid +1 -1
- package/editions/tw5.com/tiddlers/mechanisms/WikificationMechanism.tid +3 -3
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-copy-to-clipboard.tid +3 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-delete-tiddler.tid +3 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-edit-bitmap-operation.tid +2 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-edit-text-operation.tid +2 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Basic Authentication.tid +34 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Random Dog.tid +1 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid +1 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Examples.tid +117 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request.tid +8 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-permalink.tid +3 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-permaview.tid +3 -1
- package/editions/tw5.com/tiddlers/nodejs/Naming of System Tiddlers.tid +4 -4
- package/editions/tw5.com/tiddlers/nodejs/TiddlyWiki5 Versioning.tid +1 -1
- package/editions/tw5.com/tiddlers/plugins/Plugin Stability.tid +14 -0
- package/editions/tw5.com/tiddlers/pragmas/Pragma_ _define.tid +3 -1
- package/editions/tw5.com/tiddlers/pragmas/Pragma_ _parsermode.tid +1 -1
- package/editions/tw5.com/tiddlers/procedures/Procedures.tid +6 -3
- package/editions/tw5.com/tiddlers/releasenotes/BetaReleases.tid +2 -2
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.3.2.tid +1 -1
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.3.3.tid +30 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.3.4.tid +170 -0
- package/editions/tw5.com/tiddlers/releasenotes/alpha/AlphaReleases.tid +2 -2
- package/editions/tw5.com/tiddlers/saving/Saving with FireFox.tid +17 -0
- package/editions/tw5.com/tiddlers/saving/Saving with Polly.tid +0 -1
- package/editions/tw5.com/tiddlers/saving/Saving with TiddlyFox on Android.tid +4 -2
- package/editions/tw5.com/tiddlers/saving/Saving with TiddlyFox.tid +2 -19
- package/editions/tw5.com/tiddlers/saving/TiddlyBucket - Save to AWS or Google Storage.tid +0 -1
- package/editions/tw5.com/tiddlers/styleguide/Documentation Macros.tid +188 -163
- package/editions/tw5.com/tiddlers/system/$__SplashScreen.tid +3 -1
- package/editions/tw5.com/tiddlers/system/ContributionBanner.tid +7 -3
- package/editions/tw5.com/tiddlers/system/Deprecated.tid +5 -1
- package/editions/tw5.com/tiddlers/system/Deprecated_-_What_does_it_mean.tid +0 -3
- package/editions/tw5.com/tiddlers/system/Sources.tid +36 -15
- package/editions/tw5.com/tiddlers/system/TableOfContents.tid +2 -2
- package/editions/tw5.com/tiddlers/system/doc-macros.tid +181 -170
- package/editions/tw5.com/tiddlers/system/doc-styles.tid +46 -23
- package/editions/tw5.com/tiddlers/system/download-empty.tid +4 -4
- package/editions/tw5.com/tiddlers/system/filter-run-template.tid +50 -0
- package/editions/tw5.com/tiddlers/system/operator-macros.tid +46 -32
- package/editions/tw5.com/tiddlers/system/operator-template.tid +52 -71
- package/editions/tw5.com/tiddlers/system/variable-macros.tid +15 -10
- package/editions/tw5.com/tiddlers/system/version-macros.tid +29 -5
- package/editions/tw5.com/tiddlers/system/wikitext-macros.tid +54 -62
- package/editions/tw5.com/tiddlers/tag-picker Macro (Examples).tid +69 -0
- package/editions/tw5.com/tiddlers/tag-pill Macro (Examples).tid +14 -0
- package/editions/tw5.com/tiddlers/testcases/DataWidget/ImportCompound.tid +33 -0
- package/editions/tw5.com/tiddlers/testcases/DataWidget/ImportedFilter.tid +49 -0
- package/editions/tw5.com/tiddlers/testcases/DataWidget/ImportedTiddler.tid +29 -0
- package/editions/tw5.com/tiddlers/testcases/DataWidget/Refreshing.tid +30 -0
- package/editions/tw5.com/tiddlers/testcases/DataWidget/SimpleTiddler.tid +22 -0
- package/editions/tw5.com/tiddlers/testcases/TestCaseWidget/FailingTest.tid +15 -0
- package/editions/tw5.com/tiddlers/testcases/TestCaseWidget/NoExpectedResults.tid +12 -0
- package/editions/tw5.com/tiddlers/testcases/TestCaseWidget/TwoPlusTwo.tid +18 -0
- package/editions/tw5.com/tiddlers/testcases/TestCaseWidget/currentTiddler.tid +16 -0
- package/editions/tw5.com/tiddlers/testcases/TranscludeWidget/SimpleTransclusion.tid +23 -0
- package/editions/tw5.com/tiddlers/variables/Variables.tid +4 -3
- package/editions/tw5.com/tiddlers/variables/examples/tv-get-export-image-link.tid +7 -1
- package/editions/tw5.com/tiddlers/variables/tv-filter-export-link Variable.tid +2 -2
- package/editions/tw5.com/tiddlers/variables/tv-get-export-image-link.tid +4 -4
- package/editions/tw5.com/tiddlers/variables/tv-get-export-link.tid +4 -4
- package/editions/tw5.com/tiddlers/variables/tv-wikilink-template.tid +2 -2
- package/editions/tw5.com/tiddlers/webserver/Using the external JavaScript template.tid +2 -2
- package/editions/tw5.com/tiddlers/webserver/Using the integrated static file server.tid +17 -2
- package/editions/tw5.com/tiddlers/webserver/WebServer Parameter_ use-browse-cache.tid +25 -0
- package/editions/tw5.com/tiddlers/webserver/WebServer.tid +1 -1
- package/editions/tw5.com/tiddlers/widgets/ActionDeleteFieldWidget.tid +51 -20
- package/editions/tw5.com/tiddlers/widgets/ActionDeleteTiddlerWidget.tid +16 -14
- package/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid +5 -3
- package/editions/tw5.com/tiddlers/widgets/DataWidget.tid +42 -0
- package/editions/tw5.com/tiddlers/widgets/EncryptWidget.tid +5 -5
- package/editions/tw5.com/tiddlers/widgets/GenesisWidget.tid +2 -1
- package/editions/tw5.com/tiddlers/widgets/ImageWidget.tid +32 -0
- package/editions/tw5.com/tiddlers/widgets/RevealWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ScrollableWidget.tid +10 -0
- package/editions/tw5.com/tiddlers/widgets/TestCaseWidget.tid +107 -0
- package/editions/tw5.com/tiddlers/widgets/TranscludeWidget.tid +34 -34
- package/editions/tw5.com/tiddlers/widgets/Widgets.tid +4 -4
- package/editions/tw5.com/tiddlers/wikitext/Block Quotes in WikiText.tid +32 -1
- package/editions/tw5.com/tiddlers/wikitext/Hard Linebreaks in WikiText.tid +7 -3
- package/editions/tw5.com/tiddlers/wikitext/Transclusion and Substitution.tid +2 -2
- package/editions/tw5.com/tiddlers/wikitext/Transclusion in WikiText.tid +27 -6
- package/editions/tw5.com/tiddlers/wikitext/parser/Block Mode WikiText.tid +2 -2
- package/editions/tw5.com/tiddlers/workingwithtw/Sharing your tiddlers with others.tid +2 -2
- package/editions/tw5.com/tiddlywiki.info +5 -2
- package/languages/de-DE/Buttons.multids +4 -1
- package/languages/de-DE/ControlPanel.multids +7 -1
- package/languages/de-DE/Dates.multids +1 -1
- package/languages/de-DE/Docs/ModuleTypes.multids +2 -2
- package/languages/de-DE/Docs/PaletteColours.multids +4 -1
- package/languages/de-DE/EditTemplate.multids +1 -1
- package/languages/de-DE/Exporters.multids +1 -1
- package/languages/de-DE/Fields.multids +3 -1
- package/languages/de-DE/Help/build.tid +1 -1
- package/languages/de-DE/Help/clearpassword.tid +2 -2
- package/languages/de-DE/Help/commands.tid +2 -2
- package/languages/de-DE/Help/editions.tid +1 -1
- package/languages/de-DE/Help/fetch.tid +6 -6
- package/languages/de-DE/Help/import.tid +5 -5
- package/languages/de-DE/Help/init.tid +1 -1
- package/languages/de-DE/Help/listen.tid +8 -8
- package/languages/de-DE/Help/load.tid +3 -3
- package/languages/de-DE/Help/makelibrary.tid +2 -2
- package/languages/de-DE/Help/output.tid +2 -2
- package/languages/de-DE/Help/password.tid +1 -1
- package/languages/de-DE/Help/render.tid +6 -6
- package/languages/de-DE/Help/save.tid +3 -4
- package/languages/de-DE/Help/server.tid +5 -0
- package/languages/de-DE/Help/setfield.tid +1 -1
- package/languages/de-DE/Import.multids +1 -1
- package/languages/de-DE/Misc.multids +6 -6
- package/languages/de-DE/Modals/Download.tid +0 -1
- package/languages/de-DE/NewJournal.multids +1 -1
- package/languages/de-DE/Notifications.multids +1 -1
- package/languages/de-DE/Search.multids +1 -1
- package/languages/de-DE/SideBar.multids +1 -1
- package/languages/de-DE/SiteSubtitle.tid +1 -1
- package/languages/de-DE/ThemeTweaks.multids +1 -1
- package/languages/de-DE/TiddlerInfo.multids +1 -1
- package/languages/fr-FR/Buttons.multids +1 -0
- package/languages/fr-FR/ControlPanel.multids +6 -0
- package/languages/fr-FR/Docs/ModuleTypes.multids +1 -1
- package/languages/fr-FR/Docs/PaletteColours.multids +3 -0
- package/languages/fr-FR/Fields.multids +3 -1
- package/languages/fr-FR/Help/commands.tid +1 -1
- package/languages/fr-FR/Help/savewikifolder.tid +15 -0
- package/languages/fr-FR/Help/server.tid +1 -1
- package/languages/fr-FR/Types/application_javascript.tid +3 -3
- package/languages/fr-FR/Types/application_json.tid +2 -2
- package/languages/fr-FR/Types/application_x_tiddler_dictionary.tid +2 -2
- package/languages/fr-FR/Types/image_gif.tid +2 -2
- package/languages/fr-FR/Types/image_jpeg.tid +1 -1
- package/languages/fr-FR/Types/image_png.tid +1 -1
- package/languages/fr-FR/Types/image_svg_xml.tid +1 -1
- package/languages/fr-FR/Types/image_x-icon.tid +1 -1
- package/languages/fr-FR/Types/text_css.tid +2 -2
- package/languages/fr-FR/Types/text_html.tid +2 -2
- package/languages/fr-FR/Types/text_plain.tid +2 -2
- package/languages/fr-FR/Types/text_vnd.tiddlywiki.tid +2 -2
- package/languages/fr-FR/Types/text_x-tiddlywiki.tid +1 -1
- package/languages/mk-MK/Buttons.multids +195 -0
- package/languages/mk-MK/ControlPanel.multids +231 -0
- package/languages/mk-MK/CoreReadMe.tid +8 -0
- package/languages/mk-MK/Dates.multids +87 -0
- package/languages/mk-MK/Docs/ModuleTypes.multids +30 -0
- package/languages/mk-MK/Docs/PaletteColours.multids +109 -0
- package/languages/mk-MK/EditTemplate.multids +38 -0
- package/languages/mk-MK/Exporters.multids +6 -0
- package/languages/mk-MK/Fields.multids +43 -0
- package/languages/mk-MK/Filters.multids +16 -0
- package/languages/mk-MK/GettingStarted.tid +18 -0
- package/languages/mk-MK/Help/build.tid +11 -0
- package/languages/mk-MK/Help/clearpassword.tid +8 -0
- package/languages/mk-MK/Help/commands.tid +18 -0
- package/languages/mk-MK/Help/default.tid +26 -0
- package/languages/mk-MK/Help/deletetiddlers.tid +8 -0
- package/languages/mk-MK/Help/editions.tid +8 -0
- package/languages/mk-MK/Help/fetch.tid +38 -0
- package/languages/mk-MK/Help/help.tid +10 -0
- package/languages/mk-MK/Help/import.tid +24 -0
- package/languages/mk-MK/Help/init.tid +23 -0
- package/languages/mk-MK/Help/listen.tid +35 -0
- package/languages/mk-MK/Help/load.tid +19 -0
- package/languages/mk-MK/Help/makelibrary.tid +14 -0
- package/languages/mk-MK/Help/notfound.tid +4 -0
- package/languages/mk-MK/Help/output.tid +11 -0
- package/languages/mk-MK/Help/password.tid +10 -0
- package/languages/mk-MK/Help/render.tid +35 -0
- package/languages/mk-MK/Help/rendertiddler.tid +24 -0
- package/languages/mk-MK/Help/rendertiddlers.tid +20 -0
- package/languages/mk-MK/Help/save.tid +25 -0
- package/languages/mk-MK/Help/savetiddler.tid +14 -0
- package/languages/mk-MK/Help/savetiddlers.tid +16 -0
- package/languages/mk-MK/Help/savewikifolder.tid +34 -0
- package/languages/mk-MK/Help/server.tid +43 -0
- package/languages/mk-MK/Help/setfield.tid +17 -0
- package/languages/mk-MK/Help/unpackplugin.tid +8 -0
- package/languages/mk-MK/Help/verbose.tid +8 -0
- package/languages/mk-MK/Help/version.tid +8 -0
- package/languages/mk-MK/Import.multids +34 -0
- package/languages/mk-MK/Misc.multids +99 -0
- package/languages/mk-MK/Modals/Download.tid +13 -0
- package/languages/mk-MK/NewJournal.multids +5 -0
- package/languages/mk-MK/Notifications.multids +6 -0
- package/languages/mk-MK/Search.multids +20 -0
- package/languages/mk-MK/SideBar.multids +18 -0
- package/languages/mk-MK/SiteSubtitle.tid +3 -0
- package/languages/mk-MK/SiteTitle.tid +3 -0
- package/languages/mk-MK/Snippets/ListByTag.tid +5 -0
- package/languages/mk-MK/Snippets/MacroDefinition.tid +7 -0
- package/languages/mk-MK/Snippets/Table4x3.tid +8 -0
- package/languages/mk-MK/Snippets/TableOfContents.tid +9 -0
- package/languages/mk-MK/ThemeTweaks.multids +42 -0
- package/languages/mk-MK/TiddlerInfo.multids +21 -0
- package/languages/mk-MK/Types/application%2Fjavascript.tid +4 -0
- package/languages/mk-MK/Types/application%2Fjson.tid +4 -0
- package/languages/mk-MK/Types/application%2Fx-tiddler-dictionary.tid +4 -0
- package/languages/mk-MK/Types/image%2Fgif.tid +4 -0
- package/languages/mk-MK/Types/image%2Fjpeg.tid +4 -0
- package/languages/mk-MK/Types/image%2Fpng.tid +4 -0
- package/languages/mk-MK/Types/image%2Fsvg%2Bxml.tid +4 -0
- package/languages/mk-MK/Types/image%2Fx-icon.tid +4 -0
- package/languages/mk-MK/Types/text%2Fcss.tid +4 -0
- package/languages/mk-MK/Types/text%2Fhtml.tid +4 -0
- package/languages/mk-MK/Types/text%2Fplain.tid +4 -0
- package/languages/mk-MK/Types/text%2Fvnd.tiddlywiki.tid +4 -0
- package/languages/mk-MK/Types/text%2Fx-tiddlywiki.tid +4 -0
- package/languages/mk-MK/icon.tid +8 -0
- package/languages/mk-MK/plugin.info +8 -0
- package/languages/pl-PL/Dates.multids +41 -41
- package/languages/zh-Hans/Buttons.multids +3 -0
- package/languages/zh-Hans/ControlPanel.multids +6 -0
- package/languages/zh-Hans/Docs/ModuleTypes.multids +1 -1
- package/languages/zh-Hans/Docs/PaletteColours.multids +7 -0
- package/languages/zh-Hans/Fields.multids +2 -0
- package/languages/zh-Hans/Misc.multids +3 -3
- package/languages/zh-Hant/Buttons.multids +3 -0
- package/languages/zh-Hant/ControlPanel.multids +6 -0
- package/languages/zh-Hant/Docs/ModuleTypes.multids +1 -1
- package/languages/zh-Hant/Docs/PaletteColours.multids +7 -0
- package/languages/zh-Hant/Fields.multids +2 -0
- package/languages/zh-Hant/Misc.multids +2 -2
- package/license +1 -1
- package/licenses/cla-individual.md +16 -0
- package/package.json +1 -1
- package/plugins/tiddlywiki/async/plugin.info +2 -1
- package/plugins/tiddlywiki/aws/plugin.info +2 -1
- package/plugins/tiddlywiki/aws/templates/lambda/sjcl.tid +2 -2
- package/plugins/tiddlywiki/bibtex/plugin.info +2 -1
- package/plugins/tiddlywiki/blog/plugin.info +2 -1
- package/plugins/tiddlywiki/browser-sniff/plugin.info +2 -1
- package/plugins/tiddlywiki/browser-storage/plugin.info +2 -1
- package/plugins/tiddlywiki/cecily/plugin.info +2 -1
- package/plugins/tiddlywiki/classictools/modules/recipe.js +9 -0
- package/plugins/tiddlywiki/classictools/plugin.info +2 -1
- package/plugins/tiddlywiki/classictools/templates/tiddlywiki2.externaljs.template.html.tid +4 -4
- package/plugins/tiddlywiki/classictools/templates/tiddlywiki2.template.html.tid +21 -21
- package/plugins/tiddlywiki/codemirror/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-autocomplete/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-closebrackets/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-closetag/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-fullscreen-editing/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-keymap-emacs/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-keymap-sublime-text/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-keymap-vim/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-mode-css/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-mode-htmlembedded/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-mode-htmlmixed/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-mode-javascript/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-mode-markdown/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-mode-x-tiddlywiki/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-mode-xml/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-search-replace/plugin.info +2 -1
- package/plugins/tiddlywiki/codemirror-trailingspace/plugin.info +2 -1
- package/plugins/tiddlywiki/comments/plugin.info +2 -1
- package/plugins/tiddlywiki/confetti/confetti-manager.js +56 -0
- package/plugins/tiddlywiki/confetti/confetti-widget.js +67 -0
- package/plugins/tiddlywiki/confetti/examples/staggered.tid +10 -0
- package/plugins/tiddlywiki/confetti/examples/typing-trigger.tid +10 -0
- package/plugins/tiddlywiki/confetti/files/LICENSE +15 -0
- package/plugins/tiddlywiki/confetti/files/confetti.js +626 -0
- package/plugins/tiddlywiki/confetti/files/tiddlywiki.files +20 -0
- package/plugins/tiddlywiki/confetti/plugin.info +7 -0
- package/plugins/tiddlywiki/confetti/readme.tid +65 -0
- package/plugins/tiddlywiki/confetti/startup.js +63 -0
- package/plugins/tiddlywiki/consent-banner/plugin.info +2 -1
- package/plugins/tiddlywiki/d3/plugin.info +2 -1
- package/plugins/tiddlywiki/dynannotate/docs/readme.tid +10 -0
- package/plugins/tiddlywiki/dynannotate/examples/spotlight.tid +71 -0
- package/plugins/tiddlywiki/dynannotate/modules/element-spotlight.js +136 -0
- package/plugins/tiddlywiki/dynannotate/modules/startup.js +24 -1
- package/plugins/tiddlywiki/dynannotate/plugin.info +2 -1
- package/plugins/tiddlywiki/dynannotate/styles.tid +17 -0
- package/plugins/tiddlywiki/dynaview/plugin.info +2 -1
- package/plugins/tiddlywiki/evernote/plugin.info +2 -1
- package/plugins/tiddlywiki/external-attachments/plugin.info +2 -1
- package/plugins/tiddlywiki/filesystem/plugin.info +2 -1
- package/plugins/tiddlywiki/freelinks/plugin.info +2 -1
- package/plugins/tiddlywiki/geospatial/baselayers/TagsGeoBaseLayer.tid +2 -0
- package/plugins/tiddlywiki/geospatial/baselayers/esri-world-imagery.tid +7 -0
- package/plugins/tiddlywiki/geospatial/baselayers/openstreetmap.tid +7 -0
- package/plugins/tiddlywiki/geospatial/baselayers/opentopomap.tid +7 -0
- package/plugins/tiddlywiki/geospatial/docs/flickr.tid +141 -0
- package/plugins/tiddlywiki/geospatial/docs/geobaselayer.tid +20 -0
- package/plugins/tiddlywiki/geospatial/docs/geodifference.tid +20 -0
- package/plugins/tiddlywiki/geospatial/docs/geodistance.tid +14 -0
- package/plugins/tiddlywiki/geospatial/docs/geointersect.tid +20 -0
- package/plugins/tiddlywiki/geospatial/docs/geolayer.tid +24 -0
- package/plugins/tiddlywiki/geospatial/docs/geolocation.tid +92 -0
- package/plugins/tiddlywiki/geospatial/docs/geolookup.tid +16 -0
- package/plugins/tiddlywiki/geospatial/docs/geomap.tid +122 -0
- package/plugins/tiddlywiki/geospatial/docs/geonearestpoint.tid +19 -0
- package/plugins/tiddlywiki/geospatial/docs/geopoint.tid +22 -0
- package/plugins/tiddlywiki/geospatial/docs/geounion.tid +20 -0
- package/plugins/tiddlywiki/geospatial/docs/olc-decode.tid +14 -0
- package/plugins/tiddlywiki/geospatial/docs/olc-encode.tid +14 -0
- package/plugins/tiddlywiki/geospatial/docs.tid +3 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/LICENSE +26 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/images/layers-2x.png +0 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/images/layers.png +0 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/images/marker-icon-2x.png +0 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/images/marker-icon.png +0 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/images/marker-shadow.png +0 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/leaflet-src.js +14512 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/leaflet-src.js.map +1 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/leaflet.css +661 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/leaflet.js +6 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/leaflet.js.map +1 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.js/tiddlywiki.files +34 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.markercluster/MIT-LICENCE.txt +20 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.markercluster/MarkerCluster.Default.css +60 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.markercluster/MarkerCluster.css +14 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.markercluster/leaflet.markercluster-src.js +2718 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.markercluster/leaflet.markercluster-src.js.map +1 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.markercluster/leaflet.markercluster.js +2 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.markercluster/leaflet.markercluster.js.map +1 -0
- package/plugins/tiddlywiki/geospatial/files/leaflet.markercluster/tiddlywiki.files +41 -0
- package/plugins/tiddlywiki/geospatial/files/open-location-code/LICENSE +202 -0
- package/plugins/tiddlywiki/geospatial/files/open-location-code/openlocationcode.js +695 -0
- package/plugins/tiddlywiki/geospatial/files/open-location-code/openlocationcode.min.js +1 -0
- package/plugins/tiddlywiki/geospatial/files/open-location-code/tiddlywiki.files +21 -0
- package/plugins/tiddlywiki/geospatial/files/turf.js/LICENSE +20 -0
- package/plugins/tiddlywiki/geospatial/files/turf.js/tiddlywiki.files +21 -0
- package/plugins/tiddlywiki/geospatial/files/turf.js/turf.6.5.0.js +88 -0
- package/plugins/tiddlywiki/geospatial/geotools.js +41 -0
- package/plugins/tiddlywiki/geospatial/helpers/Flickr.tid +99 -0
- package/plugins/tiddlywiki/geospatial/helpers/FlickrDefaultPhotoTemplate.tid +11 -0
- package/plugins/tiddlywiki/geospatial/icon.tid +6 -0
- package/plugins/tiddlywiki/geospatial/images/markers/pin.svg +9 -0
- package/plugins/tiddlywiki/geospatial/images/markers/pin.svg.meta +2 -0
- package/plugins/tiddlywiki/geospatial/license.tid +10 -0
- package/plugins/tiddlywiki/geospatial/operators/helper.js +24 -0
- package/plugins/tiddlywiki/geospatial/operators/lookup.js +45 -0
- package/plugins/tiddlywiki/geospatial/operators/measurement.js +54 -0
- package/plugins/tiddlywiki/geospatial/operators/olc.js +55 -0
- package/plugins/tiddlywiki/geospatial/operators/transformation.js +88 -0
- package/plugins/tiddlywiki/geospatial/plugin.info +7 -0
- package/plugins/tiddlywiki/geospatial/readme.tid +13 -0
- package/plugins/tiddlywiki/geospatial/settings.tid +24 -0
- package/plugins/tiddlywiki/geospatial/startup.js +78 -0
- package/plugins/tiddlywiki/geospatial/styles.tid +10 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geodifference-interactive.tid +63 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geodifference.tid +54 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geodistance.tid +30 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geointersect-interactive.tid +63 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geointersect.tid +54 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geolookup.tid +64 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint.tid +28 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geonearestpoint2.tid +45 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geopoint.tid +21 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geounion-interactive.tid +63 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/geounion.tid +54 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/olc-decode.tid +20 -0
- package/plugins/tiddlywiki/geospatial/tests/operators/olc-encode.tid +20 -0
- package/plugins/tiddlywiki/geospatial/tests/widgets/geomap-draggable-marker.tid +40 -0
- package/plugins/tiddlywiki/geospatial/tests/widgets/geomap-refresh.tid +62 -0
- package/plugins/tiddlywiki/geospatial/tests/widgets/geomap.tid +54 -0
- package/plugins/tiddlywiki/geospatial/widgets/geobaselayer.js +17 -0
- package/plugins/tiddlywiki/geospatial/widgets/geolayer.js +17 -0
- package/plugins/tiddlywiki/geospatial/widgets/geomap.js +301 -0
- package/plugins/tiddlywiki/github-fork-ribbon/plugin.info +2 -1
- package/plugins/tiddlywiki/github-fork-ribbon/readme.tid +2 -4
- package/plugins/tiddlywiki/github-fork-ribbon/styles.tid +10 -11
- package/plugins/tiddlywiki/github-fork-ribbon/template.tid +26 -0
- package/plugins/tiddlywiki/github-fork-ribbon/usage.tid +79 -24
- package/plugins/tiddlywiki/googleanalytics/plugin.info +2 -1
- package/plugins/tiddlywiki/hammerjs/plugin.info +2 -1
- package/plugins/tiddlywiki/help/plugin.info +2 -1
- package/plugins/tiddlywiki/highlight/files/tiddlywiki.files +0 -1
- package/plugins/tiddlywiki/highlight/plugin.info +2 -1
- package/plugins/tiddlywiki/highlight-legacy/plugin.info +2 -1
- package/plugins/tiddlywiki/innerwiki/anchor.js +17 -0
- package/plugins/tiddlywiki/innerwiki/innerwiki.js +6 -66
- package/plugins/tiddlywiki/innerwiki/plugin.info +2 -1
- package/plugins/tiddlywiki/internals/plugin.info +2 -1
- package/plugins/tiddlywiki/jasmine/plugin.info +2 -1
- package/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js +21 -18
- package/plugins/tiddlywiki/jszip/plugin.info +2 -1
- package/plugins/tiddlywiki/katex/plugin.info +2 -1
- package/plugins/tiddlywiki/markdown/plugin.info +2 -1
- package/plugins/tiddlywiki/markdown-legacy/plugin.info +2 -1
- package/plugins/tiddlywiki/menubar/items/pagecontrols.tid +9 -10
- package/plugins/tiddlywiki/menubar/plugin.info +2 -1
- package/plugins/tiddlywiki/mobiledragdrop/plugin.info +2 -1
- package/plugins/tiddlywiki/nodewebkitsaver/plugin.info +2 -1
- package/plugins/tiddlywiki/pluginlibrary/plugin.info +2 -1
- package/plugins/tiddlywiki/powered-by-tiddlywiki/plugin.info +2 -1
- package/plugins/tiddlywiki/qrcode/plugin.info +2 -1
- package/plugins/tiddlywiki/railroad/plugin.info +2 -1
- package/plugins/tiddlywiki/savetrail/plugin.info +2 -1
- package/plugins/tiddlywiki/sax/plugin.info +2 -1
- package/plugins/tiddlywiki/share/plugin.info +2 -1
- package/plugins/tiddlywiki/stacked-view/plugin.info +2 -1
- package/plugins/tiddlywiki/tahoelafs/plugin.info +2 -1
- package/plugins/tiddlywiki/text-slicer/plugin.info +2 -1
- package/plugins/tiddlywiki/tiddlyweb/html-json-skinny-tiddler.tid +1 -1
- package/plugins/tiddlywiki/tiddlyweb/plugin.info +2 -1
- package/plugins/tiddlywiki/tour/config-AutoStartTour.tid +2 -0
- package/plugins/tiddlywiki/tour/config-CurrentTour.tid +2 -0
- package/plugins/tiddlywiki/tour/config-DefaultColourMappings.multids +31 -0
- package/plugins/tiddlywiki/tour/config-ShowTour.tid +2 -0
- package/plugins/tiddlywiki/tour/docs.tid +25 -0
- package/plugins/tiddlywiki/tour/images/tour-button-icon.tid +9 -0
- package/plugins/tiddlywiki/tour/plugin.info +8 -0
- package/plugins/tiddlywiki/tour/readme.tid +3 -0
- package/plugins/tiddlywiki/tour/settings.tid +154 -0
- package/plugins/tiddlywiki/tour/simplified-tiddler-with-tags.tid +106 -0
- package/plugins/tiddlywiki/tour/simplified-tiddler.tid +22 -0
- package/plugins/tiddlywiki/tour/start-tour-button.tid +18 -0
- package/plugins/tiddlywiki/tour/startup-actions.tid +7 -0
- package/plugins/tiddlywiki/tour/styles.tid +261 -0
- package/plugins/tiddlywiki/tour/tour-panel.tid +104 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/config/ProductName.tid +2 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/data/tiddlers-GasGiant.tid +4 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/data/tiddlers-Jupiter.tid +5 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/data/tiddlers-Mars.tid +5 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/data/tiddlers-Planet.tid +4 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/data/tiddlers-Rocky.tid +4 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/data/tiddlers-Saturn.tid +5 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/images/tiddlywiki-tour-logo.svg +28 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/images/tiddlywiki-tour-logo.svg.meta +2 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/introduction-to-tiddlywiki.tid +8 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/settings.tid +4 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/close-control-panel.tid +9 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/closing-tiddlers.tid +25 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/create-tiddler.tid +11 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/end-of-fullscreen.tid +10 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/finished.tid +13 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/links.tid +23 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/open-control-panel.tid +9 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/recent.tid +9 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/search.tid +9 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/tags.tid +26 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/tiddlers.tid +16 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/steps/welcome.tid +10 -0
- package/plugins/tiddlywiki/tour/tours/introduction-to-tiddlywiki/tagsTourIntroductionToTiddlyWiki.tid +2 -0
- package/plugins/tiddlywiki/tour/variables.tid +104 -0
- package/plugins/tiddlywiki/translators/plugin.info +2 -1
- package/plugins/tiddlywiki/tw2parser/plugin.info +2 -1
- package/plugins/tiddlywiki/tw5.com-docs/plugin.info +2 -1
- package/plugins/tiddlywiki/tw5.com-docs/readme.tid +7 -0
- package/plugins/tiddlywiki/twitter/plugin.info +2 -1
- package/plugins/tiddlywiki/twitter-archivist/plugin.info +2 -1
- package/plugins/tiddlywiki/upgrade/plugin.info +2 -1
- package/plugins/tiddlywiki/xlsx-utils/plugin.info +2 -1
- package/plugins/tiddlywiki/xmldom/plugin.info +2 -1
- package/readme.md +6 -6
- package/themes/tiddlywiki/vanilla/base.tid +212 -9
- package/themes/tiddlywiki/vanilla/reset.tid +61 -85
- package/boot/sjcl.js.meta +0 -3
- package/core/modules/indexers/backlinks-index.js +0 -86
- package/editions/es-ES/tiddlers/$__StoryList.tid +0 -6
- package/editions/tw.org/tiddlers/$__StoryList.tid +0 -3
- package/editions/tw5.com/tiddlers/$__StoryList.tid +0 -5
- package/plugins/tiddlywiki/innerwiki/data.js +0 -58
- /package/editions/fr-FR/tiddlers/community/editions/{_Noteself_ by Danielo Rodr/303/255guez.tid" → _Noteself_ by Danielo Rodriguez.tid} +0 -0
- /package/editions/test/tiddlers/tests/data/macros/{NestedMacros-indented.tid → nested-macros/NestedMacros-indented.tid} +0 -0
- /package/editions/test/tiddlers/tests/data/macros/{NestedMacros-indented2.tid → nested-macros/NestedMacros-indented2.tid} +0 -0
- /package/editions/test/tiddlers/tests/data/macros/{NestedMacros.tid → nested-macros/NestedMacros.tid} +0 -0
- /package/editions/test/tiddlers/tests/data/macros/{TrailingNewlines.tid → trailing-newlines/TrailingNewlines.tid} +0 -0
- /package/editions/tw5.com/tiddlers/{Tables in WikiText CSS Utility Classes.tid → wikitext/Tables in WikiText CSS Utility Classes.tid} +0 -0
@@ -0,0 +1,695 @@
|
|
1
|
+
// Copyright 2014 Google Inc. All rights reserved.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the 'License');
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an 'AS IS' BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Convert locations to and from short codes.
|
17
|
+
*
|
18
|
+
* Open Location Codes are short, 10-11 character codes that can be used instead
|
19
|
+
* of street addresses. The codes can be generated and decoded offline, and use
|
20
|
+
* a reduced character set that minimises the chance of codes including words.
|
21
|
+
*
|
22
|
+
* Codes are able to be shortened relative to a nearby location. This means that
|
23
|
+
* in many cases, only four to seven characters of the code are needed.
|
24
|
+
* To recover the original code, the same location is not required, as long as
|
25
|
+
* a nearby location is provided.
|
26
|
+
*
|
27
|
+
* Codes represent rectangular areas rather than points, and the longer the
|
28
|
+
* code, the smaller the area. A 10 character code represents a 13.5x13.5
|
29
|
+
* meter area (at the equator. An 11 character code represents approximately
|
30
|
+
* a 2.8x3.5 meter area.
|
31
|
+
*
|
32
|
+
* Two encoding algorithms are used. The first 10 characters are pairs of
|
33
|
+
* characters, one for latitude and one for longitude, using base 20. Each pair
|
34
|
+
* reduces the area of the code by a factor of 400. Only even code lengths are
|
35
|
+
* sensible, since an odd-numbered length would have sides in a ratio of 20:1.
|
36
|
+
*
|
37
|
+
* At position 11, the algorithm changes so that each character selects one
|
38
|
+
* position from a 4x5 grid. This allows single-character refinements.
|
39
|
+
*
|
40
|
+
* Examples:
|
41
|
+
*
|
42
|
+
* Encode a location, default accuracy:
|
43
|
+
* var code = OpenLocationCode.encode(47.365590, 8.524997);
|
44
|
+
*
|
45
|
+
* Encode a location using one stage of additional refinement:
|
46
|
+
* var code = OpenLocationCode.encode(47.365590, 8.524997, 11);
|
47
|
+
*
|
48
|
+
* Decode a full code:
|
49
|
+
* var coord = OpenLocationCode.decode(code);
|
50
|
+
* var msg = 'Center is ' + coord.latitudeCenter + ',' + coord.longitudeCenter;
|
51
|
+
*
|
52
|
+
* Attempt to trim the first characters from a code:
|
53
|
+
* var shortCode = OpenLocationCode.shorten('8FVC9G8F+6X', 47.5, 8.5);
|
54
|
+
*
|
55
|
+
* Recover the full code from a short code:
|
56
|
+
* var code = OpenLocationCode.recoverNearest('9G8F+6X', 47.4, 8.6);
|
57
|
+
* var code = OpenLocationCode.recoverNearest('8F+6X', 47.4, 8.6);
|
58
|
+
*/
|
59
|
+
(function(root, factory) {
|
60
|
+
/* global define, module */
|
61
|
+
if (typeof define === 'function' && define.amd) {
|
62
|
+
// AMD. Register as an anonymous module.
|
63
|
+
define(['b'], function(b) {
|
64
|
+
return (root.returnExportsGlobal = factory(b));
|
65
|
+
});
|
66
|
+
} else if (typeof module === 'object' && module.exports) {
|
67
|
+
// Node. Does not work with strict CommonJS, but
|
68
|
+
// only CommonJS-like environments that support module.exports,
|
69
|
+
// like Node.
|
70
|
+
module.exports = factory(require('b'));
|
71
|
+
} else {
|
72
|
+
// Browser globals
|
73
|
+
root.OpenLocationCode = factory();
|
74
|
+
}
|
75
|
+
}(this, function() {
|
76
|
+
var OpenLocationCode = {};
|
77
|
+
|
78
|
+
/**
|
79
|
+
* Provides a normal precision code, approximately 14x14 meters.
|
80
|
+
* @const {number}
|
81
|
+
*/
|
82
|
+
OpenLocationCode.CODE_PRECISION_NORMAL = 10;
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Provides an extra precision code, approximately 2x3 meters.
|
86
|
+
* @const {number}
|
87
|
+
*/
|
88
|
+
OpenLocationCode.CODE_PRECISION_EXTRA = 11;
|
89
|
+
|
90
|
+
// A separator used to break the code into two parts to aid memorability.
|
91
|
+
var SEPARATOR_ = '+';
|
92
|
+
|
93
|
+
// The number of characters to place before the separator.
|
94
|
+
var SEPARATOR_POSITION_ = 8;
|
95
|
+
|
96
|
+
// The character used to pad codes.
|
97
|
+
var PADDING_CHARACTER_ = '0';
|
98
|
+
|
99
|
+
// The character set used to encode the values.
|
100
|
+
var CODE_ALPHABET_ = '23456789CFGHJMPQRVWX';
|
101
|
+
|
102
|
+
// The base to use to convert numbers to/from.
|
103
|
+
var ENCODING_BASE_ = CODE_ALPHABET_.length;
|
104
|
+
|
105
|
+
// The maximum value for latitude in degrees.
|
106
|
+
var LATITUDE_MAX_ = 90;
|
107
|
+
|
108
|
+
// The maximum value for longitude in degrees.
|
109
|
+
var LONGITUDE_MAX_ = 180;
|
110
|
+
|
111
|
+
// The max number of digits to process in a plus code.
|
112
|
+
var MAX_DIGIT_COUNT_ = 15;
|
113
|
+
|
114
|
+
// Maximum code length using lat/lng pair encoding. The area of such a
|
115
|
+
// code is approximately 13x13 meters (at the equator), and should be suitable
|
116
|
+
// for identifying buildings. This excludes prefix and separator characters.
|
117
|
+
var PAIR_CODE_LENGTH_ = 10;
|
118
|
+
|
119
|
+
// First place value of the pairs (if the last pair value is 1).
|
120
|
+
var PAIR_FIRST_PLACE_VALUE_ = Math.pow(
|
121
|
+
ENCODING_BASE_, (PAIR_CODE_LENGTH_ / 2 - 1));
|
122
|
+
|
123
|
+
// Inverse of the precision of the pair section of the code.
|
124
|
+
var PAIR_PRECISION_ = Math.pow(ENCODING_BASE_, 3);
|
125
|
+
|
126
|
+
// The resolution values in degrees for each position in the lat/lng pair
|
127
|
+
// encoding. These give the place value of each position, and therefore the
|
128
|
+
// dimensions of the resulting area.
|
129
|
+
var PAIR_RESOLUTIONS_ = [20.0, 1.0, .05, .0025, .000125];
|
130
|
+
|
131
|
+
// Number of digits in the grid precision part of the code.
|
132
|
+
var GRID_CODE_LENGTH_ = MAX_DIGIT_COUNT_ - PAIR_CODE_LENGTH_;
|
133
|
+
|
134
|
+
// Number of columns in the grid refinement method.
|
135
|
+
var GRID_COLUMNS_ = 4;
|
136
|
+
|
137
|
+
// Number of rows in the grid refinement method.
|
138
|
+
var GRID_ROWS_ = 5;
|
139
|
+
|
140
|
+
// First place value of the latitude grid (if the last place is 1).
|
141
|
+
var GRID_LAT_FIRST_PLACE_VALUE_ = Math.pow(
|
142
|
+
GRID_ROWS_, (GRID_CODE_LENGTH_ - 1));
|
143
|
+
|
144
|
+
// First place value of the longitude grid (if the last place is 1).
|
145
|
+
var GRID_LNG_FIRST_PLACE_VALUE_ = Math.pow(
|
146
|
+
GRID_COLUMNS_, (GRID_CODE_LENGTH_ - 1));
|
147
|
+
|
148
|
+
// Multiply latitude by this much to make it a multiple of the finest
|
149
|
+
// precision.
|
150
|
+
var FINAL_LAT_PRECISION_ = PAIR_PRECISION_ *
|
151
|
+
Math.pow(GRID_ROWS_, (MAX_DIGIT_COUNT_ - PAIR_CODE_LENGTH_));
|
152
|
+
|
153
|
+
// Multiply longitude by this much to make it a multiple of the finest
|
154
|
+
// precision.
|
155
|
+
var FINAL_LNG_PRECISION_ = PAIR_PRECISION_ *
|
156
|
+
Math.pow(GRID_COLUMNS_, (MAX_DIGIT_COUNT_ - PAIR_CODE_LENGTH_));
|
157
|
+
|
158
|
+
// Minimum length of a code that can be shortened.
|
159
|
+
var MIN_TRIMMABLE_CODE_LEN_ = 6;
|
160
|
+
|
161
|
+
/**
|
162
|
+
@return {string} Returns the OLC alphabet.
|
163
|
+
*/
|
164
|
+
OpenLocationCode.getAlphabet = function() {
|
165
|
+
return CODE_ALPHABET_;
|
166
|
+
};
|
167
|
+
|
168
|
+
/**
|
169
|
+
* Determines if a code is valid.
|
170
|
+
*
|
171
|
+
* To be valid, all characters must be from the Open Location Code character
|
172
|
+
* set with at most one separator. The separator can be in any even-numbered
|
173
|
+
* position up to the eighth digit.
|
174
|
+
*
|
175
|
+
* @param {string} code The string to check.
|
176
|
+
* @return {boolean} True if the string is a valid code.
|
177
|
+
*/
|
178
|
+
var isValid = OpenLocationCode.isValid = function(code) {
|
179
|
+
if (!code || typeof code !== 'string') {
|
180
|
+
return false;
|
181
|
+
}
|
182
|
+
// The separator is required.
|
183
|
+
if (code.indexOf(SEPARATOR_) == -1) {
|
184
|
+
return false;
|
185
|
+
}
|
186
|
+
if (code.indexOf(SEPARATOR_) != code.lastIndexOf(SEPARATOR_)) {
|
187
|
+
return false;
|
188
|
+
}
|
189
|
+
// Is it the only character?
|
190
|
+
if (code.length == 1) {
|
191
|
+
return false;
|
192
|
+
}
|
193
|
+
// Is it in an illegal position?
|
194
|
+
if (code.indexOf(SEPARATOR_) > SEPARATOR_POSITION_ ||
|
195
|
+
code.indexOf(SEPARATOR_) % 2 == 1) {
|
196
|
+
return false;
|
197
|
+
}
|
198
|
+
// We can have an even number of padding characters before the separator,
|
199
|
+
// but then it must be the final character.
|
200
|
+
if (code.indexOf(PADDING_CHARACTER_) > -1) {
|
201
|
+
// Short codes cannot have padding
|
202
|
+
if (code.indexOf(SEPARATOR_) < SEPARATOR_POSITION_) {
|
203
|
+
return false;
|
204
|
+
}
|
205
|
+
// Not allowed to start with them!
|
206
|
+
if (code.indexOf(PADDING_CHARACTER_) == 0) {
|
207
|
+
return false;
|
208
|
+
}
|
209
|
+
// There can only be one group and it must have even length.
|
210
|
+
var padMatch = code.match(new RegExp('(' + PADDING_CHARACTER_ + '+)', 'g'));
|
211
|
+
if (padMatch.length > 1 || padMatch[0].length % 2 == 1 ||
|
212
|
+
padMatch[0].length > SEPARATOR_POSITION_ - 2) {
|
213
|
+
return false;
|
214
|
+
}
|
215
|
+
// If the code is long enough to end with a separator, make sure it does.
|
216
|
+
if (code.charAt(code.length - 1) != SEPARATOR_) {
|
217
|
+
return false;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
// If there are characters after the separator, make sure there isn't just
|
221
|
+
// one of them (not legal).
|
222
|
+
if (code.length - code.indexOf(SEPARATOR_) - 1 == 1) {
|
223
|
+
return false;
|
224
|
+
}
|
225
|
+
|
226
|
+
// Strip the separator and any padding characters.
|
227
|
+
code = code.replace(new RegExp('\\' + SEPARATOR_ + '+'), '')
|
228
|
+
.replace(new RegExp(PADDING_CHARACTER_ + '+'), '');
|
229
|
+
// Check the code contains only valid characters.
|
230
|
+
for (var i = 0, len = code.length; i < len; i++) {
|
231
|
+
var character = code.charAt(i).toUpperCase();
|
232
|
+
if (character != SEPARATOR_ && CODE_ALPHABET_.indexOf(character) == -1) {
|
233
|
+
return false;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
return true;
|
237
|
+
};
|
238
|
+
|
239
|
+
/**
|
240
|
+
* Determines if a code is a valid short code.
|
241
|
+
*
|
242
|
+
* @param {string} code The string to check.
|
243
|
+
* @return {boolean} True if the string can be produced by removing four or
|
244
|
+
* more characters from the start of a valid code.
|
245
|
+
*/
|
246
|
+
var isShort = OpenLocationCode.isShort = function(code) {
|
247
|
+
// Check it's valid.
|
248
|
+
if (!isValid(code)) {
|
249
|
+
return false;
|
250
|
+
}
|
251
|
+
// If there are less characters than expected before the SEPARATOR.
|
252
|
+
if (code.indexOf(SEPARATOR_) >= 0 &&
|
253
|
+
code.indexOf(SEPARATOR_) < SEPARATOR_POSITION_) {
|
254
|
+
return true;
|
255
|
+
}
|
256
|
+
return false;
|
257
|
+
};
|
258
|
+
|
259
|
+
/**
|
260
|
+
* Determines if a code is a valid full Open Location Code.
|
261
|
+
*
|
262
|
+
* @param {string} code The string to check.
|
263
|
+
* @return {boolean} True if the code represents a valid latitude and
|
264
|
+
* longitude combination.
|
265
|
+
*/
|
266
|
+
var isFull = OpenLocationCode.isFull = function(code) {
|
267
|
+
if (!isValid(code)) {
|
268
|
+
return false;
|
269
|
+
}
|
270
|
+
// If it's short, it's not full.
|
271
|
+
if (isShort(code)) {
|
272
|
+
return false;
|
273
|
+
}
|
274
|
+
|
275
|
+
// Work out what the first latitude character indicates for latitude.
|
276
|
+
var firstLatValue = CODE_ALPHABET_.indexOf(
|
277
|
+
code.charAt(0).toUpperCase()) * ENCODING_BASE_;
|
278
|
+
if (firstLatValue >= LATITUDE_MAX_ * 2) {
|
279
|
+
// The code would decode to a latitude of >= 90 degrees.
|
280
|
+
return false;
|
281
|
+
}
|
282
|
+
if (code.length > 1) {
|
283
|
+
// Work out what the first longitude character indicates for longitude.
|
284
|
+
var firstLngValue = CODE_ALPHABET_.indexOf(
|
285
|
+
code.charAt(1).toUpperCase()) * ENCODING_BASE_;
|
286
|
+
if (firstLngValue >= LONGITUDE_MAX_ * 2) {
|
287
|
+
// The code would decode to a longitude of >= 180 degrees.
|
288
|
+
return false;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
return true;
|
292
|
+
};
|
293
|
+
|
294
|
+
/**
|
295
|
+
* Encode a location into an Open Location Code.
|
296
|
+
*
|
297
|
+
* @param {number} latitude The latitude in signed decimal degrees. It will
|
298
|
+
* be clipped to the range -90 to 90.
|
299
|
+
* @param {number} longitude The longitude in signed decimal degrees. Will be
|
300
|
+
* normalised to the range -180 to 180.
|
301
|
+
* @param {?number} codeLength The length of the code to generate. If
|
302
|
+
* omitted, the value OpenLocationCode.CODE_PRECISION_NORMAL will be used.
|
303
|
+
* For a more precise result, OpenLocationCode.CODE_PRECISION_EXTRA is
|
304
|
+
* recommended.
|
305
|
+
* @return {string} The code.
|
306
|
+
* @throws {Exception} if any of the input values are not numbers.
|
307
|
+
*/
|
308
|
+
var encode = OpenLocationCode.encode = function(latitude,
|
309
|
+
longitude, codeLength) {
|
310
|
+
latitude = Number(latitude);
|
311
|
+
longitude = Number(longitude);
|
312
|
+
if (typeof codeLength == 'undefined') {
|
313
|
+
codeLength = OpenLocationCode.CODE_PRECISION_NORMAL;
|
314
|
+
} else {
|
315
|
+
codeLength = Math.min(MAX_DIGIT_COUNT_, Number(codeLength));
|
316
|
+
}
|
317
|
+
if (isNaN(latitude) || isNaN(longitude) || isNaN(codeLength)) {
|
318
|
+
throw new Error('ValueError: Parameters are not numbers');
|
319
|
+
}
|
320
|
+
if (codeLength < 2 ||
|
321
|
+
(codeLength < PAIR_CODE_LENGTH_ && codeLength % 2 == 1)) {
|
322
|
+
throw new Error('IllegalArgumentException: Invalid Open Location Code length');
|
323
|
+
}
|
324
|
+
// Ensure that latitude and longitude are valid.
|
325
|
+
latitude = clipLatitude(latitude);
|
326
|
+
longitude = normalizeLongitude(longitude);
|
327
|
+
// Latitude 90 needs to be adjusted to be just less, so the returned code
|
328
|
+
// can also be decoded.
|
329
|
+
if (latitude == 90) {
|
330
|
+
latitude = latitude - computeLatitudePrecision(codeLength);
|
331
|
+
}
|
332
|
+
var code = '';
|
333
|
+
|
334
|
+
// Compute the code.
|
335
|
+
// This approach converts each value to an integer after multiplying it by
|
336
|
+
// the final precision. This allows us to use only integer operations, so
|
337
|
+
// avoiding any accumulation of floating point representation errors.
|
338
|
+
|
339
|
+
// Multiply values by their precision and convert to positive.
|
340
|
+
// Force to integers so the division operations will have integer results.
|
341
|
+
// Note: JavaScript requires rounding before truncating to ensure precision!
|
342
|
+
var latVal =
|
343
|
+
Math.floor(Math.round((latitude + LATITUDE_MAX_) * FINAL_LAT_PRECISION_ * 1e6) / 1e6);
|
344
|
+
var lngVal =
|
345
|
+
Math.floor(Math.round((longitude + LONGITUDE_MAX_) * FINAL_LNG_PRECISION_ * 1e6) / 1e6);
|
346
|
+
|
347
|
+
// Compute the grid part of the code if necessary.
|
348
|
+
if (codeLength > PAIR_CODE_LENGTH_) {
|
349
|
+
for (var i = 0; i < MAX_DIGIT_COUNT_ - PAIR_CODE_LENGTH_; i++) {
|
350
|
+
var latDigit = latVal % GRID_ROWS_;
|
351
|
+
var lngDigit = lngVal % GRID_COLUMNS_;
|
352
|
+
var ndx = latDigit * GRID_COLUMNS_ + lngDigit;
|
353
|
+
code = CODE_ALPHABET_.charAt(ndx) + code;
|
354
|
+
// Note! Integer division.
|
355
|
+
latVal = Math.floor(latVal / GRID_ROWS_);
|
356
|
+
lngVal = Math.floor(lngVal / GRID_COLUMNS_);
|
357
|
+
}
|
358
|
+
} else {
|
359
|
+
latVal = Math.floor(latVal / Math.pow(GRID_ROWS_, GRID_CODE_LENGTH_));
|
360
|
+
lngVal = Math.floor(lngVal / Math.pow(GRID_COLUMNS_, GRID_CODE_LENGTH_));
|
361
|
+
}
|
362
|
+
// Compute the pair section of the code.
|
363
|
+
for (var i = 0; i < PAIR_CODE_LENGTH_ / 2; i++) {
|
364
|
+
code = CODE_ALPHABET_.charAt(lngVal % ENCODING_BASE_) + code;
|
365
|
+
code = CODE_ALPHABET_.charAt(latVal % ENCODING_BASE_) + code;
|
366
|
+
latVal = Math.floor(latVal / ENCODING_BASE_);
|
367
|
+
lngVal = Math.floor(lngVal / ENCODING_BASE_);
|
368
|
+
}
|
369
|
+
|
370
|
+
// Add the separator character.
|
371
|
+
code = code.substring(0, SEPARATOR_POSITION_) +
|
372
|
+
SEPARATOR_ +
|
373
|
+
code.substring(SEPARATOR_POSITION_);
|
374
|
+
|
375
|
+
|
376
|
+
// If we don't need to pad the code, return the requested section.
|
377
|
+
if (codeLength >= SEPARATOR_POSITION_) {
|
378
|
+
return code.substring(0, codeLength + 1);
|
379
|
+
}
|
380
|
+
// Pad and return the code.
|
381
|
+
return code.substring(0, codeLength) +
|
382
|
+
Array(SEPARATOR_POSITION_ - codeLength + 1).join(PADDING_CHARACTER_) + SEPARATOR_;
|
383
|
+
};
|
384
|
+
|
385
|
+
/**
|
386
|
+
* Decodes an Open Location Code into its location coordinates.
|
387
|
+
*
|
388
|
+
* Returns a CodeArea object that includes the coordinates of the bounding
|
389
|
+
* box - the lower left, center and upper right.
|
390
|
+
*
|
391
|
+
* @param {string} code The code to decode.
|
392
|
+
* @return {OpenLocationCode.CodeArea} An object with the coordinates of the
|
393
|
+
* area of the code.
|
394
|
+
* @throws {Exception} If the code is not valid.
|
395
|
+
*/
|
396
|
+
var decode = OpenLocationCode.decode = function(code) {
|
397
|
+
// This calculates the values for the pair and grid section separately, using
|
398
|
+
// integer arithmetic. Only at the final step are they converted to floating
|
399
|
+
// point and combined.
|
400
|
+
if (!isFull(code)) {
|
401
|
+
throw new Error('IllegalArgumentException: ' +
|
402
|
+
'Passed Open Location Code is not a valid full code: ' + code);
|
403
|
+
}
|
404
|
+
// Strip the '+' and '0' characters from the code and convert to upper case.
|
405
|
+
code = code.replace('+', '').replace(/0/g, '').toLocaleUpperCase('en-US');
|
406
|
+
|
407
|
+
// Initialise the values for each section. We work them out as integers and
|
408
|
+
// convert them to floats at the end.
|
409
|
+
var normalLat = -LATITUDE_MAX_ * PAIR_PRECISION_;
|
410
|
+
var normalLng = -LONGITUDE_MAX_ * PAIR_PRECISION_;
|
411
|
+
var gridLat = 0;
|
412
|
+
var gridLng = 0;
|
413
|
+
// How many digits do we have to process?
|
414
|
+
var digits = Math.min(code.length, PAIR_CODE_LENGTH_);
|
415
|
+
// Define the place value for the most significant pair.
|
416
|
+
var pv = PAIR_FIRST_PLACE_VALUE_;
|
417
|
+
// Decode the paired digits.
|
418
|
+
for (var i = 0; i < digits; i += 2) {
|
419
|
+
normalLat += CODE_ALPHABET_.indexOf(code.charAt(i)) * pv;
|
420
|
+
normalLng += CODE_ALPHABET_.indexOf(code.charAt(i + 1)) * pv;
|
421
|
+
if (i < digits - 2) {
|
422
|
+
pv /= ENCODING_BASE_;
|
423
|
+
}
|
424
|
+
}
|
425
|
+
// Convert the place value to a float in degrees.
|
426
|
+
var latPrecision = pv / PAIR_PRECISION_;
|
427
|
+
var lngPrecision = pv / PAIR_PRECISION_;
|
428
|
+
// Process any extra precision digits.
|
429
|
+
if (code.length > PAIR_CODE_LENGTH_) {
|
430
|
+
// Initialise the place values for the grid.
|
431
|
+
var rowpv = GRID_LAT_FIRST_PLACE_VALUE_;
|
432
|
+
var colpv = GRID_LNG_FIRST_PLACE_VALUE_;
|
433
|
+
// How many digits do we have to process?
|
434
|
+
digits = Math.min(code.length, MAX_DIGIT_COUNT_);
|
435
|
+
for (var i = PAIR_CODE_LENGTH_; i < digits; i++) {
|
436
|
+
var digitVal = CODE_ALPHABET_.indexOf(code.charAt(i));
|
437
|
+
var row = Math.floor(digitVal / GRID_COLUMNS_);
|
438
|
+
var col = digitVal % GRID_COLUMNS_;
|
439
|
+
gridLat += row * rowpv;
|
440
|
+
gridLng += col * colpv;
|
441
|
+
if (i < digits - 1) {
|
442
|
+
rowpv /= GRID_ROWS_;
|
443
|
+
colpv /= GRID_COLUMNS_;
|
444
|
+
}
|
445
|
+
}
|
446
|
+
// Adjust the precisions from the integer values to degrees.
|
447
|
+
latPrecision = rowpv / FINAL_LAT_PRECISION_;
|
448
|
+
lngPrecision = colpv / FINAL_LNG_PRECISION_;
|
449
|
+
}
|
450
|
+
// Merge the values from the normal and extra precision parts of the code.
|
451
|
+
var lat = normalLat / PAIR_PRECISION_ + gridLat / FINAL_LAT_PRECISION_;
|
452
|
+
var lng = normalLng / PAIR_PRECISION_ + gridLng / FINAL_LNG_PRECISION_;
|
453
|
+
// Multiple values by 1e14, round and then divide. This reduces errors due
|
454
|
+
// to floating point precision.
|
455
|
+
return new CodeArea(
|
456
|
+
Math.round(lat * 1e14) / 1e14, Math.round(lng * 1e14) / 1e14,
|
457
|
+
Math.round((lat + latPrecision) * 1e14) / 1e14,
|
458
|
+
Math.round((lng + lngPrecision) * 1e14) / 1e14,
|
459
|
+
Math.min(code.length, MAX_DIGIT_COUNT_));
|
460
|
+
};
|
461
|
+
|
462
|
+
/**
|
463
|
+
* Recover the nearest matching code to a specified location.
|
464
|
+
*
|
465
|
+
* Given a valid short Open Location Code this recovers the nearest matching
|
466
|
+
* full code to the specified location.
|
467
|
+
*
|
468
|
+
* @param {string} shortCode A valid short code.
|
469
|
+
* @param {number} referenceLatitude The latitude to use for the reference
|
470
|
+
* location.
|
471
|
+
* @param {number} referenceLongitude The longitude to use for the reference
|
472
|
+
* location.
|
473
|
+
* @return {string} The nearest matching full code to the reference location.
|
474
|
+
* @throws {Exception} if the short code is not valid, or the reference
|
475
|
+
* position values are not numbers.
|
476
|
+
*/
|
477
|
+
OpenLocationCode.recoverNearest = function(
|
478
|
+
shortCode, referenceLatitude, referenceLongitude) {
|
479
|
+
if (!isShort(shortCode)) {
|
480
|
+
if (isFull(shortCode)) {
|
481
|
+
return shortCode.toUpperCase();
|
482
|
+
} else {
|
483
|
+
throw new Error(
|
484
|
+
'ValueError: Passed short code is not valid: ' + shortCode);
|
485
|
+
}
|
486
|
+
}
|
487
|
+
referenceLatitude = Number(referenceLatitude);
|
488
|
+
referenceLongitude = Number(referenceLongitude);
|
489
|
+
if (isNaN(referenceLatitude) || isNaN(referenceLongitude)) {
|
490
|
+
throw new Error('ValueError: Reference position are not numbers');
|
491
|
+
}
|
492
|
+
// Ensure that latitude and longitude are valid.
|
493
|
+
referenceLatitude = clipLatitude(referenceLatitude);
|
494
|
+
referenceLongitude = normalizeLongitude(referenceLongitude);
|
495
|
+
|
496
|
+
// Clean up the passed code.
|
497
|
+
shortCode = shortCode.toUpperCase();
|
498
|
+
// Compute the number of digits we need to recover.
|
499
|
+
var paddingLength = SEPARATOR_POSITION_ - shortCode.indexOf(SEPARATOR_);
|
500
|
+
// The resolution (height and width) of the padded area in degrees.
|
501
|
+
var resolution = Math.pow(20, 2 - (paddingLength / 2));
|
502
|
+
// Distance from the center to an edge (in degrees).
|
503
|
+
var halfResolution = resolution / 2.0;
|
504
|
+
|
505
|
+
// Use the reference location to pad the supplied short code and decode it.
|
506
|
+
var codeArea = decode(
|
507
|
+
encode(referenceLatitude, referenceLongitude).substr(0, paddingLength)
|
508
|
+
+ shortCode);
|
509
|
+
// How many degrees latitude is the code from the reference? If it is more
|
510
|
+
// than half the resolution, we need to move it north or south but keep it
|
511
|
+
// within -90 to 90 degrees.
|
512
|
+
if (referenceLatitude + halfResolution < codeArea.latitudeCenter &&
|
513
|
+
codeArea.latitudeCenter - resolution >= -LATITUDE_MAX_) {
|
514
|
+
// If the proposed code is more than half a cell north of the reference location,
|
515
|
+
// it's too far, and the best match will be one cell south.
|
516
|
+
codeArea.latitudeCenter -= resolution;
|
517
|
+
} else if (referenceLatitude - halfResolution > codeArea.latitudeCenter &&
|
518
|
+
codeArea.latitudeCenter + resolution <= LATITUDE_MAX_) {
|
519
|
+
// If the proposed code is more than half a cell south of the reference location,
|
520
|
+
// it's too far, and the best match will be one cell north.
|
521
|
+
codeArea.latitudeCenter += resolution;
|
522
|
+
}
|
523
|
+
|
524
|
+
// How many degrees longitude is the code from the reference?
|
525
|
+
if (referenceLongitude + halfResolution < codeArea.longitudeCenter) {
|
526
|
+
codeArea.longitudeCenter -= resolution;
|
527
|
+
} else if (referenceLongitude - halfResolution > codeArea.longitudeCenter) {
|
528
|
+
codeArea.longitudeCenter += resolution;
|
529
|
+
}
|
530
|
+
|
531
|
+
return encode(
|
532
|
+
codeArea.latitudeCenter, codeArea.longitudeCenter, codeArea.codeLength);
|
533
|
+
};
|
534
|
+
|
535
|
+
/**
|
536
|
+
* Remove characters from the start of an OLC code.
|
537
|
+
*
|
538
|
+
* This uses a reference location to determine how many initial characters
|
539
|
+
* can be removed from the OLC code. The number of characters that can be
|
540
|
+
* removed depends on the distance between the code center and the reference
|
541
|
+
* location.
|
542
|
+
*
|
543
|
+
* @param {string} code The full code to shorten.
|
544
|
+
* @param {number} latitude The latitude to use for the reference location.
|
545
|
+
* @param {number} longitude The longitude to use for the reference location.
|
546
|
+
* @return {string} The code, shortened as much as possible that it is still
|
547
|
+
* the closest matching code to the reference location.
|
548
|
+
* @throws {Exception} if the passed code is not a valid full code or the
|
549
|
+
* reference location values are not numbers.
|
550
|
+
*/
|
551
|
+
OpenLocationCode.shorten = function(
|
552
|
+
code, latitude, longitude) {
|
553
|
+
if (!isFull(code)) {
|
554
|
+
throw new Error('ValueError: Passed code is not valid and full: ' + code);
|
555
|
+
}
|
556
|
+
if (code.indexOf(PADDING_CHARACTER_) != -1) {
|
557
|
+
throw new Error('ValueError: Cannot shorten padded codes: ' + code);
|
558
|
+
}
|
559
|
+
code = code.toUpperCase();
|
560
|
+
var codeArea = decode(code);
|
561
|
+
if (codeArea.codeLength < MIN_TRIMMABLE_CODE_LEN_) {
|
562
|
+
throw new Error(
|
563
|
+
'ValueError: Code length must be at least ' +
|
564
|
+
MIN_TRIMMABLE_CODE_LEN_);
|
565
|
+
}
|
566
|
+
// Ensure that latitude and longitude are valid.
|
567
|
+
latitude = Number(latitude);
|
568
|
+
longitude = Number(longitude);
|
569
|
+
if (isNaN(latitude) || isNaN(longitude)) {
|
570
|
+
throw new Error('ValueError: Reference position are not numbers');
|
571
|
+
}
|
572
|
+
latitude = clipLatitude(latitude);
|
573
|
+
longitude = normalizeLongitude(longitude);
|
574
|
+
// How close are the latitude and longitude to the code center.
|
575
|
+
var range = Math.max(
|
576
|
+
Math.abs(codeArea.latitudeCenter - latitude),
|
577
|
+
Math.abs(codeArea.longitudeCenter - longitude));
|
578
|
+
for (var i = PAIR_RESOLUTIONS_.length - 2; i >= 1; i--) {
|
579
|
+
// Check if we're close enough to shorten. The range must be less than 1/2
|
580
|
+
// the resolution to shorten at all, and we want to allow some safety, so
|
581
|
+
// use 0.3 instead of 0.5 as a multiplier.
|
582
|
+
if (range < (PAIR_RESOLUTIONS_[i] * 0.3)) {
|
583
|
+
// Trim it.
|
584
|
+
return code.substring((i + 1) * 2);
|
585
|
+
}
|
586
|
+
}
|
587
|
+
return code;
|
588
|
+
};
|
589
|
+
|
590
|
+
/**
|
591
|
+
* Clip a latitude into the range -90 to 90.
|
592
|
+
*
|
593
|
+
* @param {number} latitude
|
594
|
+
* @return {number} The latitude value clipped to be in the range.
|
595
|
+
*/
|
596
|
+
var clipLatitude = function(latitude) {
|
597
|
+
return Math.min(90, Math.max(-90, latitude));
|
598
|
+
};
|
599
|
+
|
600
|
+
/**
|
601
|
+
* Compute the latitude precision value for a given code length.
|
602
|
+
* Lengths <= 10 have the same precision for latitude and longitude, but
|
603
|
+
* lengths > 10 have different precisions due to the grid method having
|
604
|
+
* fewer columns than rows.
|
605
|
+
* @param {number} codeLength
|
606
|
+
* @return {number} The latitude precision in degrees.
|
607
|
+
*/
|
608
|
+
var computeLatitudePrecision = function(codeLength) {
|
609
|
+
if (codeLength <= 10) {
|
610
|
+
return Math.pow(ENCODING_BASE_, Math.floor(codeLength / -2 + 2));
|
611
|
+
}
|
612
|
+
return Math.pow(ENCODING_BASE_, -3) / Math.pow(GRID_ROWS_, codeLength - 10);
|
613
|
+
};
|
614
|
+
|
615
|
+
/**
|
616
|
+
* Normalize a longitude into the range -180 to 180, not including 180.
|
617
|
+
*
|
618
|
+
* @param {number} longitude
|
619
|
+
* @return {number} Normalized into the range -180 to 180.
|
620
|
+
*/
|
621
|
+
var normalizeLongitude = function(longitude) {
|
622
|
+
while (longitude < -180) {
|
623
|
+
longitude = longitude + 360;
|
624
|
+
}
|
625
|
+
while (longitude >= 180) {
|
626
|
+
longitude = longitude - 360;
|
627
|
+
}
|
628
|
+
return longitude;
|
629
|
+
};
|
630
|
+
|
631
|
+
/**
|
632
|
+
* Coordinates of a decoded Open Location Code.
|
633
|
+
*
|
634
|
+
* The coordinates include the latitude and longitude of the lower left and
|
635
|
+
* upper right corners and the center of the bounding box for the area the
|
636
|
+
* code represents.
|
637
|
+
* @param {number} latitudeLo
|
638
|
+
* @param {number} longitudeLo
|
639
|
+
* @param {number} latitudeHi
|
640
|
+
* @param {number} longitudeHi
|
641
|
+
* @param {number} codeLength
|
642
|
+
*
|
643
|
+
* @constructor
|
644
|
+
*/
|
645
|
+
var CodeArea = OpenLocationCode.CodeArea = function(
|
646
|
+
latitudeLo, longitudeLo, latitudeHi, longitudeHi, codeLength) {
|
647
|
+
return new OpenLocationCode.CodeArea.fn.Init(
|
648
|
+
latitudeLo, longitudeLo, latitudeHi, longitudeHi, codeLength);
|
649
|
+
};
|
650
|
+
CodeArea.fn = CodeArea.prototype = {
|
651
|
+
Init: function(
|
652
|
+
latitudeLo, longitudeLo, latitudeHi, longitudeHi, codeLength) {
|
653
|
+
/**
|
654
|
+
* The latitude of the SW corner.
|
655
|
+
* @type {number}
|
656
|
+
*/
|
657
|
+
this.latitudeLo = latitudeLo;
|
658
|
+
/**
|
659
|
+
* The longitude of the SW corner in degrees.
|
660
|
+
* @type {number}
|
661
|
+
*/
|
662
|
+
this.longitudeLo = longitudeLo;
|
663
|
+
/**
|
664
|
+
* The latitude of the NE corner in degrees.
|
665
|
+
* @type {number}
|
666
|
+
*/
|
667
|
+
this.latitudeHi = latitudeHi;
|
668
|
+
/**
|
669
|
+
* The longitude of the NE corner in degrees.
|
670
|
+
* @type {number}
|
671
|
+
*/
|
672
|
+
this.longitudeHi = longitudeHi;
|
673
|
+
/**
|
674
|
+
* The number of digits in the code.
|
675
|
+
* @type {number}
|
676
|
+
*/
|
677
|
+
this.codeLength = codeLength;
|
678
|
+
/**
|
679
|
+
* The latitude of the center in degrees.
|
680
|
+
* @type {number}
|
681
|
+
*/
|
682
|
+
this.latitudeCenter = Math.min(
|
683
|
+
latitudeLo + (latitudeHi - latitudeLo) / 2, LATITUDE_MAX_);
|
684
|
+
/**
|
685
|
+
* The longitude of the center in degrees.
|
686
|
+
* @type {number}
|
687
|
+
*/
|
688
|
+
this.longitudeCenter = Math.min(
|
689
|
+
longitudeLo + (longitudeHi - longitudeLo) / 2, LONGITUDE_MAX_);
|
690
|
+
},
|
691
|
+
};
|
692
|
+
CodeArea.fn.Init.prototype = CodeArea.fn;
|
693
|
+
|
694
|
+
return OpenLocationCode;
|
695
|
+
}));
|