inserting special characters

482 views
Skip to first unread message

Backslash

unread,
Apr 1, 2008, 6:48:03 AM4/1/08
to TiddlyWiki
Hi folks!
I'm a new and enthusiastic user of tiddlywiki. I have to write some
special characters as -- but without strikingout!
And i'd like to insert some text pasting, but tiddly find wikiwords
that i don't want. It's a better way than insert ~ before any words?
there are too many, 18425 words!!
thx all

bye
Backslash

Eric Shulman

unread,
Apr 1, 2008, 10:49:31 AM4/1/08
to TiddlyWiki
> I'm a new and enthusiastic user of tiddlywiki. I have to write some
> special characters as -- but without strikingout!

To disable the strikethrough formatter, see this discussion:
http://groups.google.com/group/TiddlyWiki/browse_frm/thread/bf3fc357ec416a6b/ab7bdc1e35e3249d

Note: the fix provided by Martin Budden in the above discussion is
stored in the TiddlyWiki.org SVN repository as a separate .js file (as
opposed to being published in a TiddlyWiki document). Thus, you can't
directly *import* the plugin into your own document. Instead, you
should:
* retrieve the DisableStrikeThrough.js file from:
http://svn.tiddlywiki.org/Trunk/contributors/MartinBudden/plugins/DisableStrikeThroughPlugin.js
* select the entire contents of that file and copy to the clipboard
* create a new tiddler in your document, called
[[DisableStrikeThroughPlugin]]
* paste the content copied from the .js file
* tag the tiddler with "systemConfig" (to make it a plugin)
* save-and-reload (so the plugin is invoked)

> And i'd like to insert some text pasting, but tiddly find wikiwords
> that i don't want. It's a better way than insert ~ before any words?
> there are too many, 18425 words!!

* Import this plugin:
http://www.TiddlyTools.com/#DisableWikiLinksPlugin
* save-and-reload (so the plugin is invoked)
* see the plugin documentation for how to disable WikiLinks in
specific tiddlers

enjoy,
-e


Backslash

unread,
Apr 1, 2008, 11:12:46 AM4/1/08
to TiddlyWiki
On 1 Apr, 16:49, Eric Shulman <elsdes...@gmail.com> wrote:
> enjoy,
> -e

....
thx eric you solve my problems!!

Backslash

unread,
Apr 4, 2008, 4:25:42 AM4/4/08
to TiddlyWiki
infact the problem is yet not solved. I insert <nowiki> and </nowiki>
tags, it works, but it lose the new line character, so i find
everything in one line. Solutions?
thx

Eric Shulman

unread,
Apr 4, 2008, 6:30:17 AM4/4/08
to TiddlyWiki
> infact the problem is yet not solved. I insert <nowiki> and </nowiki>
> tags, it works, but it lose the new line character, so i find
> everything in one line. Solutions?

<nowiki>...</nowiki> leaves it up to the browser to render the text.
By default, browsers don't preserve newlines, and automatically word-
wrap the text.

To force the browser to keep the newlines (and other whitespace, such
as multiple spaces, tabs, etc.) wrap the entire <nowiki>...</nowiki>
syntax with inline CSS, like this:

@@white-space:pre;<nowiki>
... content goes here
</nowiki>@@

Note: You can also use triple-double-quotes instead of the <nowiki>
and </nowiki> syntax, like this:

@@white-space:pre;"""
... content goes here
"""@@

enjoy,
-e

Backslash

unread,
Apr 4, 2008, 7:47:27 AM4/4/08
to TiddlyWiki
On 4 Apr, 12:30, Eric Shulman <elsdes...@gmail.com> wrote:
> @@white-space:pre;<nowiki>
> ... content goes here
> </nowiki>@@
>
very interesting, in which guide is described it?
thx eric 4 your support

Eric Shulman

unread,
Apr 4, 2008, 11:12:46 AM4/4/08
to TiddlyWiki
@@white-space:pre;<nowiki>
> > ... content goes here
> > </nowiki>@@
> very interesting, in which guide is described it?

Although the 'inline CSS' syntax is part of the standard TW core,
documentation for this feature is somewhat spotty, at best.

Here's the basics:

@@attribute:value;attribute:value;...;attribute:value;content@@

where
attribute:value;
is any valid CSS declaration, such as
white-space:pre;
color:#F00;
font-family:courier;
display:none;
etc.

You cannot use whitespace within or between each "attribute:value;"
part (but can, of course, use whitespace in the enclosed content).
Also, the entire @@..@@ cannot be "nested". E.g., this does *not*
work:

@@color:#F00; red text @@color:#00F; blue text @@ more red text @@

When nested CSS styles are needed, you should use the 'CSS class
wrapper' syntax instead:

{{classname{ stuff {{otherclassname{more stuff}}} still more stuff }}}

for example:

{{red{ yabba {{blue{ dabba }}} doo! }}}

To define the classnames, enter their CSS definitions into the
StyleSheet tiddler:

.red { color:#F00; }
.blue { color:#00F; }

Note: for a convenient set of pre-defined CSS classes that can be used
as 'formatting shortcuts', see:
http://www.TiddlyTools.com/#StyleSheetShortcuts

To use these definitions, you can either:
A) copy/paste selected CSS directly into your StyleSheet
or
B) import the entire StyleSheetShortcuts tiddler from TiddlyTools, and
then enter
[[StyleSheetShortcuts]]
into your StyleSheet to automatically 'include' all those definitions.

enjoy,
-e
Reply all
Reply to author
Forward
0 new messages