Comments (9)
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.
@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.
Have checked - symbols are removed, only digits left, e.g. $slugify->slugify('11:50AM - बांगलादेशमध्ये सलग तिसऱ्या वर्षी आशिया कप टी-ट्वेंटी स्पर्धेचे आयोजन करण्यात आले असून २४ फेब्रुवारी ते ६ मार्च दरम्यान ही स्पर्धा होणार आहे.')
will produce 11-50am
from slugify.
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.
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.
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.
It directly terminate the execution of program for php 5.4.14
from slugify.
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.
@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)
- Generated ruleset different from the json file HOT 1
- Symfony Bundle ignores ruleset HOT 1
- Problem with combining characters HOT 2
- There is any options to convert in Unicode symbols to description HOT 3
- User Deprecated HOT 5
- Issue with usage, example doesnt work after installing with composer HOT 3
- how to get slug without translation HOT 1
- Laravel 9 Support HOT 3
- Sign « changes on quot HOT 1
- Split DefaultRules into deparate files
- Add command-line interface to this package? HOT 1
- release for php 8.2 HOT 2
- Remove reserved characters like ­ and
- New release does not work on PHP 7.4 HOT 2
- The version 4.4.0 have been removed from Packagist? HOT 3
- Requirements Version 4.5 HOT 2
- version 4.5.0 is not compatible with PHP 7 although mentioned in packagist HOT 3
- Czech rules missing several characters
- Syntax error, unexpected '|', expecting variable {t_variable} HOT 3
- Issue with Php Composer (Slugify)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slugify.