-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Right-to-Left Reading Order Support #5167
Comments
+1 for rtl support |
same here. |
I attempted to reach out to the person from intlaqa.com a while back to see if he'd be interested in maintaining this as part of the official codebase but didn't hear back. We'd like to have someone with expertise in this on the team to keep it up-to-date before we added it. Any help appreciated, we'd like to support this. |
Moutaz Shams can be reached on his facebook page at https://www.facebook.com/intlaqa. |
I left a facebook message this weekend... |
I communicated with him and he agreed in principle to do it. let us hope it goes through for the benefit of all involved |
Issue #5440 is about a problem that occurs when you use "rtl" in combination with a |
Closing as feature request. After 1.4 final release we are going to update the roadmap and set a specific milestone. The ticket will be re-opened when we are going to work on implementing the feature. |
+1 |
need this |
+1. Is there anything new on the RTL / jQuery Mobile front? |
This is something we want to support but we need someone with more knowledge then we have on the subject to help out with it. I talked to someone last week hopefully they come through! PR's welcome! |
+1 |
I see there's still nothing proposed in the roadmap, regarding RTL support. Just having some thoughts on how this might be done. Moutaz Shams approach was to create a dedicated RTL version, where particular edits were done to swap left and right classes, in the CSS and JS, and make additional edits were required. I can see why he decided not to continue with generating RTL versions once the requirejs approach was taken. I'm thinking about doing something similar (a RTL conversion for jqm 1.4.5), but I would like to do it in a fashion that has a bit more longevity. Perhaps a fork from the final 1.4.5 release so that upgrades can easily be applied. My initial thoughts are to have CSS styles that use either My next thought is how to support RTL in the JS. Perhaps a rtl property in jquery.mobile.defaults.js that is set to false. And perhaps a jquery.mobile.rtl.js or an update of jquery.mobile.support.js to provide $.mobile.rtl as returning true or false, based on the |
I started doing some work on this. My previous experience with jqm is 1.2, and my how things have changed. I'm attempting to do a conversion on 1.4.5, and for my first widget to attempt to convert is the button, it's an interesting time to pick it. The button markup is about to be deprecated, and functionality from 1.5 onwards dictates that you need to specify the icon position yourself, via classes. I've updated the widgets/forms/button.js to place the correct default In the back of mind is the seed of an idea that a lazy conversion option might be warranted, where an otherwise LTR page can be easily converted to RTL, without having to introduce ternary operators on every right or left specific class. I'm thinking specifically of multilingual sites that are predominately LTR. |
I'm still continuing work on this, but have a question about convenience. The latest jqm preference is to explicitly state the CSS styles on any particular widget. The convenience of a Now your app has to be more RTL aware than normal, if Anyway, I'm just sounding out if it would be preferred that |
Supporting RTL in a LTR context is implicit RTL is invoked by using a ui-rtl class wrapper with dir="rtl" attribute. LTR in a RTL context is invoked by using a ui-ltr class wrapper and accompanying dir="ltr" inside the ui-rtl wrapper. ui-btn-start, ui-btn-end, ui-btn-icon-start and ui-btn-icon-end has been added to allow easier ordering of elements, as a replacement for *-left and *-right counterparts. Tests have not been 100% updated with RTL considerations in this commit. The only test updates are the ones needed to pass all current tests. Transitions have not been included in RTL considerations. RTL versions of demos have been copied and modified from their LTR counterparts, and can be accessed from the Right To Left option on the demos menu. Ref jquery-archivegh-5167
@rhelms we have been recently working with IBM Bidi labs to work towards proper RTL implementation. Unrelated to that we already have renamed these classes to I will get meeting notes from these talks and link them here shortly |
@rhelms also worth noting the options are |
@arschmitz the usage of It would also be good if a proper RTL implementation also supported LTR within a RTL context for screens where multiple languages and orientations of text are required. I've done my best to try an implement that in my modifications, and have provided demos of that functionality. Looking forward to reading those talks. |
Any update on supporting RTL now ? |
@rhelms the implementation we are working on is Bidi so it does support nesting. Icons are complicated because my understanding from working on this is that many icons should not flip in a rtl vs ltr context. The best examples is progress controls from players things like play fast forward etc by default should not flip, in addition many icons are symmetrical and so therefore should not flip. @gnanaswaroop This is being implemented in UI first since mobile depends on much of UI. There is a PR here jquery/jquery-ui#1682 This is in progress but cant be landed until UI 1.12 final is release ( Wont be long we are on RC3 ) This will likely land in Mobile 1.6 which should be a quick release after the very long 1.5 |
@arschmitz Any tentative timeline for Mobile 1.6 release ? |
+1 for officially RTL support, and although when I have to edit almost all css and most js files to make JQM work, why I must use it??? |
Please provide Right-to-Left reading order layout. An RTL version of jQueryMobile 1.1.0 can already be found at http://www.intlaqa.com/jquery-mobile-rtl/
The text was updated successfully, but these errors were encountered: