Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-12-17 07:18:36
- mrfreeman
- New Member
- Registered: 2009-12-17
- Posts: 1
Can't use permalink with non-English title ?
Hi,
I newer of textpattern. I like to use permalink style “/article/title”.
But I seek problem with non-English title. It return permalink only “/article/-”.
like
title = “I love dad”
permalink = “/article/i-love-dad”
title = “ฉันรักพ่อ” (Thai language mean I love dad)
permalink = /article/-”
but I want permalink = “/article/ฉันรักพ่อ”
I don’t know how to fixed this problem.
Help me please
Offline
Re: Can't use permalink with non-English title ?
You can specify your own permalink. Just open the left-column “Advanced Options” panel and enter it into the “URL-only title” input field.
Offline
Re: Can't use permalink with non-English title ?
same problem with arabic!
we must manually copy the title of the article into text url field and it works, but is this a bug?
Offline
Re: Can't use permalink with non-English title ?
Not really.
See, we use a method called “transliteration” to convert non-ASCII characters to their rough ASCII equivalent.
This works by applying a transformation table which (for instance) matches the German umlaut “ä” into the equivalent ASCII sequence “ae”. We do not have these tables for Arabic and Thai, obviously, and none of the developers has the cultural background to create them.
So, if you want to help with automatic transliteration for your language, provide a file with a suitable transliteration set and send it to txp-dev@textpattern.com. As an example, I’ve posted a few lines from the Georgian transliteration below:
; Georgian
ა = "a"
ბ = "b"
გ = "g"
დ = "d"
ე = "e"
ვ = "v"
ზ = "z"
თ = "t"
ი = "i"
კ = "k"
ლ = "l"
Offline
Re: Can't use permalink with non-English title ?
Thanks wet for your response
I have searched for transliteration to understund what is it and what si it for then i find what is it but haven’t found what is it for cause today all browsers are UTF-8 compliant but i am far from an expert.
And I found also a very complete transliteration file here
If you need help making an arabic transliteration i will be happy to make it.
Cheers
Last edited by Dragondz (2009-12-17 08:55:41)
Offline
Re: Can't use permalink with non-English title ?
Dragondz wrote:
…but haven’t found what is it for cause today all browsers are UTF-8 compliant but i am far from an expert.
It’s all TimBL’s fault:
1.2.1. Transcription
The URI syntax has been designed with global transcription as one of its main considerations. A URI is a sequence of characters from a very limited set: the letters of the basic Latin alphabet, digits, and a few special characters.
Offline
Re: Can't use permalink with non-English title ?
Thanks for the information wet i will sleep tonight less stupid ;)
Offline
Re: Can't use permalink with non-English title ?
Dragondz wrote:
If you need help making an arabic transliteration i will be happy to make it.
This would definitely help, as including all of the large transliteration file you found on the Drupal site increases Textpattern’s memory consumption by approximately 200 percent while we determine the URL title – too much. A suitable part which covers Arabic will probably exert a lesser burden. http://drupal.org/files/issues/i18n-ascii-full.txt can serve as a base.
Offline
Re: Can't use permalink with non-English title ?
Hi
I have noticed those lines:
[ar]
ا = "a"
أ = "a"
إ = "i"
ؤ = "a"
ي = "y'"
ب = "b"
ت = "t"
ث = "th"
ج = "j"
ح = "H"
خ = "kh"
د = "d"
ذ = "dh"
ر = "r"
ز = "z"
س = "s"
ش = "sh"
ص = "S"
ض = "D"
ط = "T"
ظ = "Z"
غ = "G"
ف = "f"
ق = "q"
ك = "k"
ل = "l"
م = "m"
ن = "n"
ه = "h"
و = "w"
ي = "y"
ً = "an"
ٌ = "un"
ٍ = "in"
َ = "a"
ُ = "u"
ِ = "i"
ّ = "W"
١ = "1"
٢ = "2"
٣ = "3"
٤ = "4"
٥ = "5"
٦ = "6"
٧ = "7"
٨ = "8"
٩ = "9"
I added them to i18n-ascii.txt and upload it to an arabic blog, but it s not working, did i miss something!!
Offline
Re: Can't use permalink with non-English title ?
Dragondz wrote:
I added them to i18n-ascii.txt and upload it to an arabic blog, but it s not working, did i miss something!!
Did you upgrade your language file? Also did you re-save the articles?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Can't use permalink with non-English title ?
Hi colak
Why upgrade language file?
Yes I re save article.
Maybe the problem is because i use french for the backend and not arabic?
Offline
Re: Can't use permalink with non-English title ?
This is a reason. Move your transliteration table into the [default]
section of the file, so it applies to all languages. Of note: The URL title is computed when either the field is empty or the article is not live yet.
Offline