Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-02-13 14:23:56

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

[textile] cite attribute

We seem to have the following attributes to work with:

  • (class)
  • (#id)
  • {style}
  • [language]

But for people using a fair amount of q and blockquote, the cite="" attribute is relatively important too.

Borrowing from the parenthetical pattern, couldn’t we create one for cite attributes like [#cite].

Then instead of having to use <blockquote cite="url">, it could simply be bq[#cite]. or bq[#cite].. .

I.e., bq[http://textpattern.com]. First sentence... would produce…

<blockquote cite="http://textpattern.com">
<p>First sentence...</p>
</blockquote>

Etc.

On a related note, p elements are not required inside blockquotes in HTML5, as noted in third example here. Theoretically asking, would it be possible to not automatically include p elements in blockquotes, specifically? This isn’t a big deal, but I’m just curious. Granted, this favors HTML5, then, over XHTML, but that’s where things are going anyway so it would reasonably be the default, I would think.

Ed. — Never mind, while that might be true, we would need p elements for bq.. so I think it’s fine as is for default.

Last edited by Destry (2012-02-13 14:29:17)

Offline

#2 2012-02-13 17:01:24

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

Re: [textile] cite attribute

Destry wrote:

couldn’t we create one for cite attributes like [#cite].

That syntax has been taken for automatic creation of numbered notelists, similar to Wikipedia’s ‘References’ section (a feature you requested, iirc).

I don’t know about the extended blockquote/cite syntax you specified. That might be a nice addition unless someone can find a neat way to do it already.


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

#3 2012-02-13 17:36:04

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [textile] cite attribute

What about…

  • {#cite}
  • /cite/
  • |cite|
  • \cite\
  • ‘cite’
  • =cite=
  • §cite§ (actually a key on the azerty board)
  • $cite$

I’d be happy with any of those, but 'cite' would probably be the nicest looking…

bq'http://textpattern.com'. First para...

Offline

#4 2012-02-13 17:49:14

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: [textile] cite attribute

RTFM ;)

Offline

#5 2012-02-13 17:55:18

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [textile] cite attribute

Nice.

So we seriously need an up-do-date and consumer-friendly reference, then.

I’ve got the 2 cents on that notion, wet, so hang-tight for TXP issue 1.

Offline

#6 2012-02-13 18:01:48

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

Re: [textile] cite attribute

wet wrote:

RTFM

Holy smokes. Never spotted that lurking in there. Terrific.


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

#7 2012-02-13 18:05:30

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: [textile] cite attribute

Destry wrote:

so hang-tight for TXP issue 1.

You see me shiver with antici…pation

Offline

#8 2012-02-13 19:27:14

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

Re: [textile] cite attribute

Sorry to sound negative, but I still don’t know why they bother with that attribute on <blockquote> and <q> tags. It’s not like it provides a clickable link or anything, so unless you’re scouring the source code it’s invisible to the end user.

Last edited by philwareham (2012-02-13 19:27:51)

Offline

#9 2012-02-13 20:29:49

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [textile] cite attribute

Unless you’re a blind end user. It’s a machine-readable attribute, and has value for:

  • screenreaders (thus accessibility)
  • search engine indexing
  • retrieval via DOM Scripting

Offline

#10 2012-02-13 20:39:45

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [textile] cite attribute

Hixie says

for q situations:

[The browser agent] … should be able to jump to the [cited source] from the [formatted q output].

and for blockquote situation:

The browser should, somehow, allow you to [follow the cited URL]. The simplest way on graphical browsers would be to provide a context-sensitive menu option (in english: right clicking on the blockquote should allow you to jump to the cited document).

So, maybe in the future it will be more than just for people using screen readers.

Offline

#11 2012-02-13 20:42:36

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

Re: [textile] cite attribute

OK, I’ve done some investigating and JAWS can read/recite the URL. Never considered that.

Offline

Board footer

Powered by FluxBB