Comments (17)
@Hlaford the problem is that there are multiple standards that are not deprecated.
from portable-ascii.
So solution would be allowing to choose a standard.
from portable-ascii.
There are multiple ways to tranlit and there are many GOSTs (state standards). Using the one for passports would produce "lysaia gora".
from portable-ascii.
No, that won't work well. If it's something like generating slugs for an article title, that doesn't matter much which standard is used. If it's passport names, your users may get in trouble if you aren't using correct standard. If your service if exchanging info with state road police, it matters to use correct standard for road signs and street names.
from portable-ascii.
Thank you for the review & feedback. 👍
from portable-ascii.
http://translit.cc/ for rescue, this specific case will be "lysaja gora".
from portable-ascii.
Thanks @kalessil I have merged the suggestions from "translit.ru" and "translit.cc" here: https://github.com/voku/portable-ascii/blob/master/src/voku/helper/data/ascii_by_languages.php#L468
from portable-ascii.
https://en.m.wikipedia.org/wiki/Romanization_of_Russian
from portable-ascii.
There are multiple ways to tranlit and there are many GOSTs (state standards). Using the one for passports would produce "lysaia gora".
I would use this one, actually. It is GOSTed (i.e. standardized).
from portable-ascii.
Do different standards all have the same language code?
from portable-ascii.
Yes.
from portable-ascii.
Hmm, I guess we just need to choose a standard.
from portable-ascii.
+1 for "So solution would be allowing to choose a standard."
from portable-ascii.
@samdark Ok, so what standards do a normal application / user need?
"Passport (2013)" + "GOST 7.79-2000(B)"?https://en.m.wikipedia.org/wiki/Romanization_of_Russian#content-collapsible-block-1
from portable-ascii.
Yes. Would be enough for many typical cases.
from portable-ascii.
@samdark I added mappings for "ru__passport_2013" && "ru__gost_2000_b" (copy&past from wikipedia).
Can you please take a look at it, here is a test case for the string "лысая гора": a2b1920
Mappings:
- Russian - Passport (2013), ICAO | https://github.com/voku/portable-ascii/blob/master/src/voku/helper/data/ascii_by_languages.php#L539
- Russian - GOST 7.79-2000(B) | https://github.com/voku/portable-ascii/blob/master/src/voku/helper/data/ascii_by_languages.php#L641
from portable-ascii.
Looks OK to me.
from portable-ascii.
Related Issues (20)
- Is Persian to ASCII correct?
- Is Serbian to ASCII correct? HOT 6
- Is Azerbaijani to ASCII correct?
- Is Slovak to ASCII correct? HOT 2
- Is French to ASCII correct? HOT 7
- Turn this package into a polyfill for transliterator_transliterate() HOT 2
- German transcription with plural is wrong HOT 3
- Tag 1.4.11 HOT 2
- Package size HOT 2
- Some character mappings include a quote symbol HOT 3
- [DE] MacOS (Big Sur or M1) uses multi character German umlaute
- Dependency Dashboard
- CVE-2020-11023 (Medium) detected in jquery-3.3.1.min.js HOT 1
- CVE-2019-8331 (Medium) detected in bootstrap-4.1.3.min.js HOT 1
- CVE-2020-11022 (Medium) detected in jquery-3.3.1.min.js HOT 1
- CVE-2019-11358 (Medium) detected in jquery-3.3.1.min.js HOT 1
- Update v1.6.0 broke Laravel's builds HOT 4
- Missing entry in `.gitattributes` HOT 1
- Doesn't work in php 8 or greater due to namespaces not being Capitalized
- Turkish Character 'i̇' HOT 2
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 portable-ascii.