From fc197e1bfa5082f315384813600f24fde36e3148 Mon Sep 17 00:00:00 2001 From: "j. redhead" Date: Mon, 30 Sep 2024 08:28:41 -0500 Subject: [PATCH] Improve documentation of how to disable CamelCase (#8626) --- editions/tw5.com/tiddlers/definitions/CamelCase.tid | 10 +++++++--- .../howtos/How_to_turn_off_camel_case_linking.tid | 10 ++++++++-- editions/tw5.com/tiddlers/pragmas/Pragma_ _rules.tid | 6 +++--- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/editions/tw5.com/tiddlers/definitions/CamelCase.tid b/editions/tw5.com/tiddlers/definitions/CamelCase.tid index b0847ac6d..1d29548e5 100644 --- a/editions/tw5.com/tiddlers/definitions/CamelCase.tid +++ b/editions/tw5.com/tiddlers/definitions/CamelCase.tid @@ -1,6 +1,10 @@ -created: 201308281853 -modified: 201308281853 +created: 20130828185300000 +modified: 20240923162029767 tags: Definitions title: CamelCase -CamelCase is formed by taking a phrase, capitalising the initial letter of each word, and smashing the words together to form a portmanteau word. Most wikis use CamelCase to signal phrases that should automatically become links. +CamelCase is formed by taking a phrase, capitalising the initial letter of each word, and smashing the words together to form a portmanteau word. Traditionally most wikis including ~TiddlyWiki use CamelCase to signal phrases that should automatically become links. + +You can also [[disable CamelCase linking in TiddlyWiki|How to turn off camel case linking]] if you want. + +<<.from-version 5.3.0>> ~CamelCase is disabled by default in new wikis. diff --git a/editions/tw5.com/tiddlers/howtos/How_to_turn_off_camel_case_linking.tid b/editions/tw5.com/tiddlers/howtos/How_to_turn_off_camel_case_linking.tid index dca2be398..35b8bb2f4 100644 --- a/editions/tw5.com/tiddlers/howtos/How_to_turn_off_camel_case_linking.tid +++ b/editions/tw5.com/tiddlers/howtos/How_to_turn_off_camel_case_linking.tid @@ -1,5 +1,5 @@ created: 20161209172820513 -modified: 20170204191306382 +modified: 20240923161828376 tags: [[Customise TiddlyWiki]] Learning title: How to turn off camel case linking type: text/vnd.tiddlywiki @@ -8,12 +8,18 @@ CamelCase is used in most Wikis, but it can interfere with text presentation in !! Turning off Camel Case locally -To turn off a particular instance of a CamelCase text, simply put a tilde (~) in front of the word, like this: +To prevent a particular CamelCase word from being linked, simply put a tilde (~) in front of the word, like this: ``` ~CamelCase ``` +If you need to disable CamelCase for just an entire tiddler, you can use the [[\rules pragma|Pragma: \rules]]: + +``` +\rules except wikilink +``` + !! Turning off Camel Case globally To turn off CamelCase in all tiddlers, navigate to the [[Control Panel|$:/ControlPanel]]. Select the `Settings` tab and then scroll or read down to the ``Camel Case Wiki Links`` section and unselect ``Enable automatic CamelCase linking``. \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/pragmas/Pragma_ _rules.tid b/editions/tw5.com/tiddlers/pragmas/Pragma_ _rules.tid index 56aa4d665..ef62ae994 100644 --- a/editions/tw5.com/tiddlers/pragmas/Pragma_ _rules.tid +++ b/editions/tw5.com/tiddlers/pragmas/Pragma_ _rules.tid @@ -1,5 +1,5 @@ created: 20220917112931273 -modified: 20230724184044642 +modified: 20240923161726957 tags: Pragmas title: Pragma: \rules type: text/vnd.tiddlywiki @@ -18,8 +18,8 @@ For example, in stylesheets it is typical to only use the rules associated with \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline ``` -Some users prefer not to use CamelCase links: +Disable CamelCase for just one tiddler: ``` -\rules except prettylink +\rules except wikilink ``` \ No newline at end of file