Exclamation mark in title

جميع المواضيع السابقة فى القسم العربى قبل تقسيمه

Moderators: sherif, General Support Moderators

Locked
tijs
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 106
Joined: Mon Aug 29, 2005 7:59 pm

Exclamation mark in title

Post by tijs » Thu Jul 06, 2006 1:11 pm

Hi,

First of all, apologies for writing in English but I can't speak or read any Arabic, I am just maintaining a site with some Arabic articles.

I have one annoying problem: whenever I paste an Arabic title containing also an exclamation or question mark, that exclamation mark is always being put at the end of the title, so in the LTR way, not RTL.

Is there any way around this?

My site it is UTF-8 by the way.

User avatar
ahmad
Joomla! Guru
Joomla! Guru
Posts: 903
Joined: Fri Apr 07, 2006 4:02 pm
Location: Egypt
Contact:

Re: Exclamation mark in title

Post by ahmad » Thu Jul 06, 2006 3:23 pm

Try switching to ( windows-1256 ) instead of UTF-8

User avatar
dr_drsh
Joomla! Guru
Joomla! Guru
Posts: 585
Joined: Thu Sep 22, 2005 3:52 pm
Location: Egypt
Contact:

Re: Exclamation mark in title

Post by dr_drsh » Thu Jul 06, 2006 6:01 pm

Hello

If I understand the problem correctly the error only occurs when certain non-arabic characters come at the end of an arabic string,while I don't have a satisfying solution for this "but I'll surely search for one" I came up with a workaround ,a rather Ugly one  :P.

You need to make sure that the Exclamation mark doesn't come last by appending an arabic letter to the string,instead of appending a full sized letter you can append tiny letter that hardly appears,it's what we call "Tashkeel" or Diacritics,they are considered letters internally by the rendering engine,however, they're not quite visible to the viewers.

Here's a sample of how it works

Before:

Code: Select all

شيئ غريب!
 


After:

Code: Select all

شيئ غريب!ﹺ
in order to use this copy and paste the following character after your Exclamation mark.

Code: Select all

Ofcourse this is not the best way around,I'll do some research on that issue I'll let you know if I find anything.
http://mostafa.mosmar.com/blog | My blog
http://mostafa.mosmar.com/jforms | JForms - WYSIWYG Forms Component for J! 1.5 (Beta)

tijs
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 106
Joined: Mon Aug 29, 2005 7:59 pm

Re: Exclamation mark in title

Post by tijs » Fri Jul 07, 2006 1:00 pm

Merhaba!

Thanks for the help. Switching to windows-1256 is no option for me, I need UTF-8 because the site is mainly in English, French and Spanish. So UTF-8 is the best character set for this kind of site.

dr_drsh, I tried your work-around but unfortunately it doesn't work. The diacritic character comes up as a normal question mark, though the good thing about it is that the exclamation mark indeed appeared on the left of the title.

Here is the link: http://www.marxist.com/defend-palestini ... arabic.htm

الدفاع عن الشعب الفلسطيني

should be

!الدفاع عن الشعب الفلسطيني

But when I copy and paste this from http://marxy.com/campaigns/defence-pale ... 060706.htm (the original site, which is in plain HTML) the exclamation mark appears on the right.

Does anybody else have this problem?

User avatar
dr_drsh
Joomla! Guru
Joomla! Guru
Posts: 585
Joined: Thu Sep 22, 2005 3:52 pm
Location: Egypt
Contact:

Re: Exclamation mark in title

Post by dr_drsh » Fri Jul 07, 2006 2:44 pm

Try to set the direction of the arabic(and other rtl languages) titles to rtl by using CSS

Code: Select all

body.contentpagetitle{

       direction: rtl;

}
with some php knowledge you can modify the template to load a specific CSS file for rtl and another for ltr.
http://mostafa.mosmar.com/blog | My blog
http://mostafa.mosmar.com/jforms | JForms - WYSIWYG Forms Component for J! 1.5 (Beta)

User avatar
drtooty
Joomla! Explorer
Joomla! Explorer
Posts: 338
Joined: Mon Feb 27, 2006 8:47 am
Location: Egypt
Contact:

Re: Exclamation mark in title

Post by drtooty » Fri Jul 07, 2006 8:25 pm

Let me tell you about something may help you. it may solve the problem. after editing the arabic article in the editor, save the conent and then re-open it but ( in the no-editor mode) so that the html codes appear. when it appear try to add this code to the end of the html code
 
i think it may help, not sure but try

User avatar
Mohammed
Joomla! Ace
Joomla! Ace
Posts: 1313
Joined: Thu Oct 27, 2005 11:20 pm
Location: Cairo , Egypt
Contact:

Re: Exclamation mark in title

Post by Mohammed » Mon Jul 10, 2006 12:12 pm

well ,
My site it is UTF-8 by the way.
This has nothing to do with the problem , it's about site direction . It should be one direction for always . You've chosen to use LTR , it's ok and we understand your idea .



A quick solution for this , just put the mark before the sentence you write as title and it'll appear nicely .  ;)

Further , for the content itself , after you finish the article go in no editor mode and wrap the article with this html code

Code: Select all

<rtl>sample</rtl>
I hope this is helpful enough and welcome to the Arabic forum ,
Mohammed
"Joomla! is science made clear."
Mohammed Sh. Abbas  -- Joomla! Fan !!


Locked

Return to “الأرشيف”