Giter Site home page Giter Site logo

Comments (3)

miladd3 avatar miladd3 commented on May 30, 2024

Hi
if the numbers are latin numbers it should be considered as latin.
but if you want arabic numbers to be considered as latin characters. you should edit the main code and add Regex that do this trick.

from automatic-direction.

SBenoit5 avatar SBenoit5 commented on May 30, 2024

Ok, you're right… the issue is not with your code. It comes from somewhere else. I was trying to use your code in this situation : In a RTL webpage, I have a RTL contact form, but in some countries they use both type of characters (RTL and/or LTR). So I thought that your code might be the solution… Depending on what type of text they write (latin or arabic), the direction of the field's content is determined. But it seems that it's not that simple, because the browser, or the contact form plugin reinterprets the code after yours and shift the numbers to the right of the line (even if it's a latin number). Do you think there's a workaround for this? Thanks again.

from automatic-direction.

miladd3 avatar miladd3 commented on May 30, 2024

hi again :D
so i think some script is interrupting the input
i recommend testing this in a raw input.
sry but i cant fix the problems on other libraries

from automatic-direction.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.