Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-11-24 16:23:50

Saigo
Member
Registered: 2005-01-02
Posts: 60
Website

Re: Help test new Textile changes

zem, I was directed here by this topic just in case you don’t remember =P

Anyway, I uploaded the new classTextile.php file to my /lib folder, and tested out the image alignment thing. While this time the image does appear, it’s not centered at all. My textile code is as the following, without the spaces (if there’s a better way to post Textile codes without executing ‘em, do tell me >.>):

! = /images/48t.jpg! :/images/48.jpg

Offline

#14 2005-11-24 21:40:15

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

Re: Help test new Textile changes

!=/images/48t.jpg!:/images/48.jpg gives me <a href="/images/48.jpg"><img src="/images/48t.jpg" align="center" title="" alt="" /></a>.

What HTML code does it produce for you? See here for instructions on posting code and Textile, or try pastebin.com or similar.


Alex

Offline

#15 2005-11-25 00:25:06

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,245
Website

Re: Help test new Textile changes

> zem wrote:

As I said before, I’ll look at adding the [] syntax later. Until then, consider surrounding whitespace or punctuation as necessary.

At rev. r1117, with the addition of the [* syntax *], it is now possible to get most inline tags to work correctly with East-Asian languages. Nice one.

I still seem to have a problem with links, though. Adding brackets around the textile syntax for links doesn’t seem to work, yet.

Thanks, zem.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#16 2005-11-25 00:55:18

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

Re: Help test new Textile changes

I haven’t done links or images yet.


Alex

Offline

#17 2005-11-25 01:06:04

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,245
Website

Re: Help test new Textile changes

> zem wrote:

I haven’t done links or images yet.

Ah, that explains it. Anyway, already a huge progress.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#18 2005-11-25 11:29:44

Saigo
Member
Registered: 2005-01-02
Posts: 60
Website

Re: Help test new Textile changes

> zem wrote:

> !=/images/48t.jpg!:/images/48.jpg gives me <a href="/images/48.jpg"><img src="/images/48t.jpg" align="center" title="" alt="" /></a>.

> What HTML code does it produce for you? See here for instructions on posting code and Textile, or try pastebin.com or similar.

The HTML code that was produced is:

<a href="/images/48.jpg"><img src="/images/48t.jpg" title="" alt="" align="middle"></a>

For some reason my alignment is “middle”, and not “center”. I’m not sure if that’s what preventing it from being centered or not..

Offline

#19 2005-11-25 21:11:09

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

Re: Help test new Textile changes

“middle” is only used for vertical alignment, and classTextile.php always puts the align attribute before title and alt. Sure you have the right classTextile.php file? Is there anything else surrounding the image code that might interfere with it? Try placing it on a line by itself, if you haven’t already.


Alex

Offline

#20 2005-11-27 06:06:06

Saigo
Member
Registered: 2005-01-02
Posts: 60
Website

Re: Help test new Textile changes

This is really odd. The image is on a line by itself, and there are no other tags surrounding the image code.

I have re-downloaded the same file again here but the same problem still persists. Am I supposed to logout from Textpattern (or do anything else for that matter) after transfering the new classTextile.php file to my server?

Edit: You can also check the image that goes with my blog entry at my site here

2nd Edit: I just checked the XHTML from Textpattern when editing that article, and it does indeed show the correct align=“center”, before the alt tags. I’m going to post another entry with some pictures to center with, so I’ll let you know if it works.

3rd Edit: It doesn’t work. When I previewed my article in HTML, it does show the correct tags like this:

<p><a href="/images/53.jpg"><img src="/images/53t.jpg" align="center" title="" alt="" /></a></p>

but after posting the article, and viewed the article’s source, for some reason it comes out as:

<p><a href="/images/53.jpg"><img src="/images/53t.jpg" title="" alt="" align="middle"></a></p>

This is going beyond weird. o_o

Last edited by Saigo (2005-11-27 07:31:36)

Offline

#21 2005-11-30 18:50:04

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: Help test new Textile changes

hi there,

i would like to try this version because * around
czech capitals are not processed in stock 4.0.2 .

classTextile.php and replace your existing 4.0.2 copy in textpattern/lib/.

i am not familiar with svn only cvs. is there a way i can get the referenced
file with the proper “cvs” tags without using svn? in cvsweb you can get a
version of a file using only the web but the link here contains no “cvs” tags,
and i am afraid this will result in great confusion in time (what version do i have
installed?)


we is experts™

Offline

#22 2005-12-11 16:59:06

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

Re: Help test new Textile changes

I think, rev 1100 breaks formating for table headers. The original sample from Textism produces this html:

bc..<table style=“border:1px solid black;”>
<tr>
<td><em>. this</td>
<td></em>. is</td>
<td><em>. a</td>
<td></em>. header</td>
</tr>
[…]

In earlier revisions of classTextile.php, this resulted in the correct html:

<table style="border:1px solid black;">
<tr>
<th>this</th>
<th>is</th>
<th>a</th>
<th>header</th>
</tr>
[...]

I’ve reported this as a bug already.

//w&

Offline

#23 2006-02-05 08:33:26

Cantide
Member
From: Wellington, New Zealand
Registered: 2004-03-03
Posts: 27
Website

Re: Help test new Textile changes

Yo. RE: the SUP support, I’ve found a wee problem with the way Textile looks at things to be supped. If there’s no space in front of the phrase, it doesn’t sup it right? This makes sense for the general Textile syntax, but no sense when you wanna write something like 3<sup>rd</sup>, which turns into 3 <sup>rd</sup>. Just a minor note :)

Last edited by Cantide (2006-02-05 08:34:54)

Offline

#24 2006-02-14 00:13:53

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

Re: Help test new Textile changes

Use 3[^rd^], or submit a patch to fix it.


Alex

Offline

Board footer

Powered by FluxBB