Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-16 20:06:47

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

[textile] Removing caps span ?

Is it possible to remove the

<span class="caps">ABC</span>

that is added automatically to all groups of caps in the newest Textile?

Last edited by cbeyls (2006-10-16 20:07:13)


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#2 2006-10-16 21:28:07

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [textile] Removing caps span ?

No. Just don’t style the caps class if you don’t want it to appear any different.


Alex

Offline

#3 2006-11-30 12:29:19

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: [textile] Removing caps span ?

Is there a reason why it gets added?


Cheers,
Jon VC#9

Offline

#4 2006-12-01 05:51:21

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [textile] Removing caps span ?

Typography option is the most likely reason.

Offline

#5 2006-12-02 01:53:26

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [textile] Removing caps span ?

link.

Adding it is harmless enough – just leave it alone and it has no effect.


Alex

Offline

#6 2006-12-02 12:41:16

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [textile] Removing caps span ?

It could be useful for styling comments.
I manage a site where visitors usually leave comments like: “This is AWESOME.”

Sometimes, I edit the comment and re-write the word in lowercase, but I could also apply a rule like .caps {text-transformation: lowercase; font-weight: strong; }. This way, I would avoid the need of editing the comment to remove the caps.
Of course, when CSS is off, the caps are still there…

Just a thought.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#7 2006-12-08 04:06:33

loid
Member
Registered: 2005-03-09
Posts: 38

Re: [textile] Removing caps span ?

It is a major pain to try and edit a large chunk of comment text when the author has written in all caps, when (span class=“caps”) appears between every letter.

Offline

#8 2006-12-12 23:32:21

loid
Member
Registered: 2005-03-09
Posts: 38

Re: [textile] Removing caps span ?

In order to avoid this major pain, which in my case occurs two or three times a day, is there no file that can be edited to make this go away, then?

Offline

#9 2006-12-13 02:30:51

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: [textile] Removing caps span ?

/textpattern/lib/classTextile.php

Offline

#10 2010-01-12 22:23:15

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: [textile] Removing caps span ?

This mark up is a bit sloppy. I wonder would it choke up a screen reader?


its a bad hen that wont scratch itself.
photogallery

Offline

#11 2011-01-18 14:13:51

MBLuke
New Member
From: London, UK
Registered: 2011-01-18
Posts: 1
Website

Re: [textile] Removing caps span ?

I’ve just commented the line:
‘<span class=“caps”>$1</span>$2’, // 3+ uppercase
From /textpattern/lib/classTextile.php

In my case a previous designer had styled the <span>‘s on a certain page therefore the ‘fix’ of removing the .caps styling had no effect. This should be optional functionality in my opintion. If it’s going to add anything I’d rather a properly executed <abbr /> tag!

Edit: I’ve actually replaced the line with:
‘$1$2’, // 3+ uppercase
as it was causing ABR… rather then ABRs

Last edited by MBLuke (2011-01-21 09:51:48)

Offline

#12 2011-01-21 01:03:01

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [textile] Removing caps span ?

Hello Luke

Welcome to the textpattern forums and thanks for voicing your opinion on the textile caps-span issue. If you’d care to do so, please open a feature request issue for better abbr support on the textile repository’s issue tracker so this doesn’t get overlooked.

Thank you.


Steve

Offline

Board footer

Powered by FluxBB