Coder Social home page Coder Social logo

ar-php's People

Contributors

johntaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ar-php's Issues

Some Letters Does Not Show Correctly On Output Image

Hi @Johntaa , Hi Github community .
I'm using Intervention/image on Laravel 5.8 , and I'm trying to write Arabic text on an image .
before using Johantaa/ar-php I get a reversed text but all the letters are showing correctly .
Now using Johantaa/ar-php I got my text without the reverse problem , but some letters are replacing with a black rectangle

I am getting this error in some cases.

ErrorException in Glyphs.php line 281:

mb_strpos(): Empty delimiter

in Glyphs.php line 281

(updated) the word لايوجد making issue.

at HandleExceptions->handleError('2', 'mb_strpos(): Empty delimiter', '/var/www/html/dev/property/vendor/johntaa/ar-php/src/Arabic/Arabic/Glyphs.php', '281', array('str' => 'لايوجد', 'crntChar' => 'ا', 'prevChar' => 'ل', 'nextChar' => 'ي', 'output' => 'ﺪﺟﻮﻳ', '_temp' => '6', 'i' => '1', 'chars' => array('ل', 'ا', 'ي', 'و', 'ج', 'د'), 'max' => '6', 'Reversed' => false, 'flip_arr' => ')]>}', 'ReversedChr' => '([<{', 'form' => '0'))
at mb_strpos('،؟؛ـئبتثجحخسشصضطظعغفقكلمنهي', '') in Glyphs.php line 281
at I18N_Arabic_Glyphs->preConvert('لايوجد') in Glyphs.php line 518
at I18N_Arabic_Glyphs->utf8Glyphs('لايوجد', '50', true)

does not comply with psr-4 autoloading standard.

I dont know if this project still a live but when upgrading to composer 2 i can't load Class 'Johntaa\Arabic\I18N_Arabic' in Laravel project because of error

Class Johntaa\Arabic\Arabic\I18N_Arabic_Transliteration located in C:/AppServ/www/vendor/johntaa/ar-php/src/Arabic\Arabic\Transliteration.php does not comply with psr-4 autoloading standard. Skipping.
Class Johntaa\Arabic\Arabic\I18N_Arabic_WordTag located in C:/AppServ/www/vendor/johntaa/ar-php/src/Arabic\Arabic\WordTag.php does not comply with psr-4 autoloading standard. Skipping.
Class Johntaa\Arabic\I18N_Arabic located in C:/AppServ/www/vendor/johntaa/ar-php/src/Arabic\Arabic.php does not comply with psr-4 autoloading standard. Skipping.
Class Johntaa\Arabic\ArabicException located in C:/AppServ/www/vendor/johntaa/ar-php/src/Arabic\Arabic.php does not comply with psr-4 autoloading standard. Skipping.

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.