Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: HTML Mobile browsing
Hi all,
I have a mobile website.
When tested on a Samsung Star mobile and in Right-to-Left direction, text was displayed with bad format (un-wanted spaces and indents).
 
Samsung Star Browser: WAP 2.0/xHTML, HTML
http://www.gsmarena.com/samsung_s5230_star-2739.php
 
I've tried on some other mobiles but problem didn't occur.
Now, I don't know what is the problem, so I don't know how many other mobiles may problem occur on !!
 
There was another problem of screen width that does't occur on Samsung star but occurs on htc, and it has been fixed by adding a "HandheldFriendly" tag.
 
Please help me as soon as possible to fix that bad text format problem.
Posted 29-Sep-12 13:53pm
Comments
Sandeep Mewara at 30-Sep-12 3:26am
   
Once again, Did you talk to mobile website guys if there is any known issue with Samsung mobile?
Ahmad Safwat at 30-Sep-12 9:20am
   
Thank you for reply,
The problem is with Samsung Star, and I want to get a solution that is valid for all mobiles

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

On asking OP if he contacted the website about any known issues, he replied: "Thank you for reply, The problem is with Samsung Star, and I want to get a solution that is valid for all mobiles"
  Permalink  
Comments
Ahmad Safwat at 30-Sep-12 11:01am
   
??
Sandeep Mewara at 30-Sep-12 11:04am
   
It was posted as it looked like you are trying a different approach now. If you are still seeking for something here, I will remove this. Please confirm.
Ahmad Safwat at 30-Sep-12 17:18pm
   
I cannot fix the problem and also I don't know which mobiles may cause it, that's why I'm looking for a generic solution
Sandeep Mewara at 1-Oct-12 2:10am
   
Based on what you shared, I doubt anyone can help you like this.
 
You have to share the work and snippets of what is causing an issue. Support to each mobile would be difficult. My suggestion would be to just follow the standards for implementation. All good mobiles should and would follow it. Ones that does not should not, you should ignore until it's a VERy big number.
Ahmad Safwat at 1-Oct-12 8:48am
   
I agree with you, and for this reason I've built a very simple interface, no ajax for example in this version no advanced js code.
In my question I realy look for that standards of RTL.
I gave you the example of "HandheldFriendly" tag that solved the screen width problem for html5 mobiles, now I look for a similar solution for RTL problem
Regarding the code snippets, it is just a right to left page :'(
when converting to left to right it works fine
Ahmad Safwat at 1-Oct-12 14:42pm
   
I've detected now that the problem occurs with Arabic text only in RTL
 
Arabic text in LEFT to right is OK
English text in RIGHT to left is OK
but, Arabic text in RIGHT to left is the problem
 
what do you think about that
 
by the way, sorry for my bad English :)
Sandeep Mewara at 1-Oct-12 14:45pm
   
Sorry, no idea. If you can get to know from before that which language it is, may be you can apply specific css for it.
Ahmad Safwat at 1-Oct-12 15:25pm
   
can you clarify more?
Sandeep Mewara at 2-Oct-12 2:29am
   
For a website, you alwayshave a defined stylesheet. For Arabic, set the text direction in stylesheet as right to left.
Ahmad Safwat at 2-Oct-12 16:51pm
   
it's already right to left, but it causes unwanted spaces and indents, that is the problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 230
1 PIEBALDconsult 150
2 DamithSL 125
3 Andreas Gieriet 90
4 Jochen Arndt 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 30 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100