Joomla! Discussion Forums



It is currently Tue Feb 09, 2010 10:25 pm (All times are UTC )

 





Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
Posted: Thu Jul 06, 2006 1:11 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Aug 29, 2005 7:59 pm
Posts: 104
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.

_________________
* "The philosophers have only interpreted the world; the point is to change it." (Karl Marx) http://www.marxist.com
* "I am convinced that the way to build a new and better world is not capitalism. Capitalism leads us straight to hell."
(Hugo Chavez) http://www.handsoffvenezuela.org


Top
  E-mail  
 
Posted: Thu Jul 06, 2006 3:23 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Apr 07, 2006 4:02 pm
Posts: 771
Location: Egypt
Try switching to ( windows-1256 ) instead of UTF-8

_________________
Joomla! SuperHero
http://www.alfystudio.com
Arabian Joomla! Fan :)
http://www.portsaid-online.com


Top
  E-mail  
 
Posted: Thu Jul 06, 2006 6:01 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Sep 22, 2005 3:52 pm
Posts: 585
Location: Egypt
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:
شيئ غريب!
 


After:
Code:
شيئ غريب!ﹺ

in order to use this copy and paste the following character after your Exclamation mark.

Code:


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)


Top
  E-mail  
 
Posted: Fri Jul 07, 2006 1:00 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Aug 29, 2005 7:59 pm
Posts: 104
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?

_________________
* "The philosophers have only interpreted the world; the point is to change it." (Karl Marx) http://www.marxist.com
* "I am convinced that the way to build a new and better world is not capitalism. Capitalism leads us straight to hell."
(Hugo Chavez) http://www.handsoffvenezuela.org


Top
  E-mail  
 
Posted: Fri Jul 07, 2006 2:44 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Sep 22, 2005 3:52 pm
Posts: 585
Location: Egypt
Try to set the direction of the arabic(and other rtl languages) titles to rtl by using CSS

Code:
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)


Top
  E-mail  
 
Posted: Fri Jul 07, 2006 8:25 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Feb 27, 2006 8:47 am
Posts: 324
Location: Egypt
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

Quote:

 



i think it may help, not sure but try

_________________
http://www.sultan.org


Top
  E-mail  
 
Posted: Mon Jul 10, 2006 12:12 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Oct 27, 2005 11:20 pm
Posts: 1274
Location: Cairo , Egypt
well ,

Quote:
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:
<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 !!


Top
   
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group