Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-03-20 13:21:08

WebKat
Member
Registered: 2007-01-16
Posts: 301

[textile] What if I don't want Textile parsed in only PART of my article?

I have a problem that comes up frequently, for example, I make a sentence that has an asterisk in it, and then at the bottom of the page is the asterisk and footnote that goes along with it.

Currently, if I put [asterisk] [space] [text] I get a one-item bulleted list. If I put [asterisk] [text] it makes it bold, along with everything on the page afterward…

But I want to use Textile for 99% of the rest of my articles… is there a <notxp> tag or something that I can put around areas I don’t want parsed? Apologies if this is in the faq somewhere—I did a search but I’m running close to the edge on getting to work on time so I can’t spend much time looking.

Thanks in advance for any help or ideas!



WebKat

Offline

#2 2012-03-20 13:27:29

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,725
Website

Re: [textile] What if I don't want Textile parsed in only PART of my article?

You can start a line with a blank space or with:

notextile. This line won't be textiled

but that cancels out the rest of the line. Another simple way of getting around your problem is to do:

%*% Wrapping your leading asterisk in %-signs puts a span around the asterisk but _doesn't_ create a bullet point and allows textile in the rest of the line.

which produces this:

* Wrapping your leading asterisk in %-signs puts a span around the asterisk but doesn’t create a bullet point and allows textile in the rest of the line.

Try it out here


TXP Builders – finely-crafted code, design and txp

Offline

#3 2012-03-20 13:36:37

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: [textile] What if I don't want Textile parsed in only PART of my article?

You can also do Textile footnotes (though I think they are numerical, not asterisk), more here.

Offline

#4 2012-03-20 13:40:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,442
Website GitHub

Re: [textile] What if I don't want Textile parsed in only PART of my article?

Or use named notes:

This is my sentence and this bit[#starred] is important

Then somewhere nearby, or anywhere in your content, you can put the definition of that starred note:

note#starred. My definition and its optional "web reference":http://reference.com/whatever 20 March 2012

You can add as many [#some-name] things as you like and define each one wherever and however you wish. Then to bring it all together, at the bottom just add:

notelist.

to display all notes along with back-reference hyperlinks to the actual place(s) they’re referenced.

There are a host of controls you can use to determine which characters get used, whether you want back and forward links, or none at all, etc. All documented at the link jakob gave. If you’re only using one note, it’s probably overkill, but for many references in a single article, or those times when you cite the same source multiple times, it’s very handy.

EDIT: the next version of Textile is going to have more support for wacky reference characters such as spade, club, dagger, etc. For now you have to make do with english or greek or some other natural language.

Last edited by Bloke (2012-03-20 13:48:21)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2012-03-20 14:31:26

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [textile] What if I don't want Textile parsed in only PART of my article?

jakob wrote:

[…] * Wrapping your leading asterisk in %-signs puts a span around the asterisk but doesn’t create a bullet point and allows textile in the rest of the line.

Or you could just escape it with the inline equivalent of your mentioned notextile., ==string==. I.e.

==*== I'm a star -- I mean an _asterisk_.

No list, no span.

Last edited by Gocom (2012-03-20 14:33:41)

Offline

#6 2012-03-20 15:06:30

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: [textile] What if I don't want Textile parsed in only PART of my article?

Cool, thanks for the answers, guys.

Putting a blank space before the asterisk was the first thing I tried, by the way, and what it did was end up putting the contents of that line at the end of the line above it.

In this specific case, I am entering club setlists and the asterisk isn’t for a footnote, but rather to denote requested songs, and the format I get is like this:

MIDNIGHT Set List -- March 10, 2012
* = request; (v) = video

DJ VLAD -- 9:00-9:45
Austra -- The Beat and the Pulse
Binary Park -- My Angel
Zola Jesus -- Vessel*
Terrolokaust -- The Pain of Knowing
Diary of Dreams -- She
Mind.In.A.Box -- Sanctuary*
Cryo -- Substance...etc

When I tried

MIDNIGHT Set List -- March 10, 2012
 *= request; (v) = video

DJ VLAD -- 9:00-9:45
Austra -- The Beat and the Pulse
Binary Park -- My Angel
Zola Jesus -- Vessel*
Terrolokaust -- The Pain of Knowing
Diary of Dreams -- She
Mind.In.A.Box -- Sanctuary*
Cryo -- Substance

it ended up coming out like this:

MIDNIGHT Set List — March 10, 2012 *= request; (v) = video
.
DJ VLAD — 9:00-9:45
Austra — The Beat and the Pulse
Binary Park — My Angel
Zola Jesus — Vessel*
Terrolokaust — The Pain of Knowing
Diary of Dreams — She
Mind.In.A.Box — Sanctuary*
Cryo — Substance

So let me test this fancy == thing…

MIDNIGHT Set List — March 10, 2012
* = request; (v) = video
.
DJ VLAD — 9:00-9:45
Austra — The Beat and the Pulse
Binary Park — My Angel
Zola Jesus — Vessel*
Terrolokaust — The Pain of Knowing
Diary of Dreams — She
Mind.In.A.Box — Sanctuary*
Cryo — Substance…etc

Woohoo! Thanks, guys! That works great! And that footnote thing I will definitely look into because that could be quite handy in other situations.

(I put the . in the blank line so the blockquote wouldn’t end—is there a way to have block quote with paragraph breaks in it? If I put a second bq. it puts a second box around the next paragraph, instead of keeping it as one blockquote…)



WebKat

Offline

#7 2012-03-20 15:15:45

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [textile] What if I don't want Textile parsed in only PART of my article?

is there a way to have block quote with paragraph breaks in it?

The double dot helps in many cases: bq.., bc.., (…?)

But you must end bq.. manually eg by starting the next not quoted paragraph explicitly with p..


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#8 2012-03-20 15:32:37

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,725
Website

Re: [textile] What if I don't want Textile parsed in only PART of my article?

==*== I'm a star -- I mean an _asterisk_.

Thanks for reminding me of that Jukka – that’s much better and just as easy.


TXP Builders – finely-crafted code, design and txp

Offline

#9 2012-03-20 18:31:33

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: [textile] What if I don't want Textile parsed in only PART of my article?

@bloke

I’d never known about Textile named notes before – good stuff. Is it quite new?

Offline

#10 2012-03-21 00:17:58

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [textile] What if I don't want Textile parsed in only PART of my article?

More in the TXP Tips article for your reference. Looks like we’ll need to revisit this article given the new version of Textile.

Offline

Board footer

Powered by FluxBB