Git Product home page Git Product logo

Comments (9)

mac2000 avatar mac2000 commented on May 26, 2024

Seems that slugify do not have rules for that language (btw what language it is?).

Can you provide rules for transliteration? And some examples so we could make a pull request from it?

from slugify.

florianeckerstorfer avatar florianeckerstorfer commented on May 26, 2024

@sharvari1 Slugify currently does not support Marathi, Hindi or Kannada (as @mac2000 mentioned we would appreciate it if you could provide transliterations for these).

Do you mean that the transliteration fail because it produces not the desired result or does it produce an PHP error or exception. If there is an error or exception could you please provide the following:

  • Exact error message (and stack trace if available)
  • Exact PHP version
  • Exact Slugify version

from slugify.

mac2000 avatar mac2000 commented on May 26, 2024

Have checked - symbols are removed, only digits left, e.g. $slugify->slugify('11:50AM - बांगलादेशमध्ये सलग तिसऱ्या वर्षी आशिया कप टी-ट्वेंटी स्पर्धेचे आयोजन करण्यात आले असून २४ फेब्रुवारी ते ६ मार्च दरम्यान ही स्पर्धा होणार आहे.') will produce 11-50am

from slugify.

florianeckerstorfer avatar florianeckerstorfer commented on May 26, 2024

Thanks for checking this. Yes, we would need transliterations for these languages then.

For Hindi I found an alphabet which we could use: http://mylanguages.org/hindi_alphabet.php
But I could not find one for Marathi.

from slugify.

sharvarilimbkar avatar sharvarilimbkar commented on May 26, 2024

Thanks for reply but
if msg in marathi language is small that time slugify work well (it gives proper result means it gives empty string )but for long msg of marathi language it fail

i am using php of version 5.4.14
and slugify version =^1.3

from slugify.

florianeckerstorfer avatar florianeckerstorfer commented on May 26, 2024

Can you specify how it fails. For PHP 5.6 the original message you posted did produce a valid result based on the current set of rules.

from slugify.

sharvarilimbkar avatar sharvarilimbkar commented on May 26, 2024

It directly terminate the execution of program for php 5.4.14

from slugify.

florianeckerstorfer avatar florianeckerstorfer commented on May 26, 2024

According to the tests I added Slugify works fine with unknown unicode characters in PHP 5.4.37.

Can you try increasing PCRE backtrack limit? See http://www.karlrixon.co.uk/writing/php-regular-expression-fails-silently-on-long-strings/

from slugify.

florianeckerstorfer avatar florianeckerstorfer commented on May 26, 2024

@Poojal123 Were you able to try increasing PCRE backtrack limit? Since we can't reproduce the bug I am closing this issue now. If you continue to have problems please reopen.

from slugify.

Related Issues (20)

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.