Text-slicer plugin not working correctly?

62 views
Skip to first unread message

Jon

unread,
Jan 17, 2020, 6:13:59 AM1/17/20
to TiddlyWiki
Hi,

I've been playing around with the Text slicer plug-in and noticed that the option to produce "One tiddler per heading, threaded (HTML)" doesn't produce the table of contents correctly. The ! is shown next to each heading in the TOC and the heading font size is applied to the whole text. It works fine for the "One tiddler per paragraph" option.

Regards
Jon

Jon

unread,
Jan 17, 2020, 6:29:50 AM1/17/20
to TiddlyWiki
Also, the Tiddler per heading option exports as HTML when Wiki text is selected - the Tiddler per paragraph option works as expected.

Jeremy Ruston

unread,
Jan 17, 2020, 7:06:55 AM1/17/20
to TiddlyWiki
Hi Jon

I've been playing around with the Text slicer plug-in and noticed that the option to produce "One tiddler per heading, threaded (HTML)" doesn't produce the table of contents correctly. The ! is shown next to each heading in the TOC and the heading font size is applied to the whole text. It works fine for the "One tiddler per paragraph" option.

Ouch, that is indeed a bug with the display of the outline.


Also, the Tiddler per heading option exports as HTML when Wiki text is selected - the Tiddler per paragraph option works as expected.

The rulesets can optionally provide wikitext equivalents for HTML elements, but that doesn’t make sense for all the provided rulesets.

For example, the ruleset $:/plugins/tiddlywiki/text-slicer/slicer-rules/html-by-paragraph.json contains this rule for handling blockquotes:


{
"selector": "blockquote",
"actions": {
"startNewChunk": {
"toc-type": "paragraph"
},
"markup": {
"wiki": {
"prefix": "<<<\n",
"suffix": "<<<\n"
}
}
}
},

But the ruleset $:/plugins/tiddlywiki/text-slicer/slicer-rules/html-linear.json is much simpler, and doesn’t distinguish between different elements, and therefore can’t provide wikitext equivalents.

Best wishes

Jeremy.




Regards
Jon

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e7046c54-7c97-477f-b3cf-978a5d2a0c0d%40googlegroups.com.

Jon

unread,
Jan 20, 2020, 8:04:44 AM1/20/20
to tiddl...@googlegroups.com
Hi Jeremy,

just another tweak which might be needed for a future release. When slicing, the name offered (Prefix for extracted tiddlers) is the name of the previous tiddler which has been sliced rather than the one currently being operated on.

Regards
Jon


On Friday, 17 January 2020 12:06:55 UTC, Jeremy Ruston wrote:
Hi Jon

I've been playing around with the Text slicer plug-in and noticed that the option to produce "One tiddler per heading, threaded (HTML)" doesn't produce the table of contents correctly. The ! is shown next to each heading in the TOC and the heading font size is applied to the whole text. It works fine for the "One tiddler per paragraph" option.

Ouch, that is indeed a bug with the display of the outline.

Also, the Tiddler per heading option exports as HTML when Wiki text is selected - the Tiddler per paragraph option works as expected.

The rulesets can optionally provide wikitext equivalents for HTML elements, but that doesn’t make sense for all the provided rulesets.

For example, the ruleset $:/plugins/tiddlywiki/text-slicer/slicer-rules/html-by-paragraph.json contains this rule for handling blockquotes:


{
"selector": "blockquote",
"actions": {
"startNewChunk": {
"toc-type": "paragraph"
},
"markup": {
"wiki": {
"prefix": "<<<\n",
"suffix": "<<<\n"
}
}
}
},

But the ruleset $:/plugins/tiddlywiki/text-slicer/slicer-rules/html-linear.json is much simpler, and doesn’t distinguish between different elements, and therefore can’t provide wikitext equivalents.

Best wishes

Jeremy.




Regards
Jon

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages