Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse transliteration #8

Open
d47081 opened this issue Oct 27, 2023 · 2 comments
Open

Reverse transliteration #8

d47081 opened this issue Oct 27, 2023 · 2 comments

Comments

@d47081
Copy link

d47081 commented Oct 27, 2023

Hello and thanks for your work!

I want to make reverse transliteration (for search engine project)

for example, I have latin filenames, and want to index theirs cyryllic variants:

\ashtokalo\translit\Translit::object()->convert('filename', 'uk')

that's not implemented?

@ashtokalo
Copy link
Owner

Thank you for interesting question. I never had this kind of transformations. This library doesn't have this feature as well.

You can do it yourself without this library by using one of available transliteration schema in back order.

You might also want to add this feature to the library with pull request. But in this case it would better to implement some new backward method instead of using convert(). Because convert() assumes latin text as result. Moreover, backward convertation might produce more than one variant.

@d47081
Copy link
Author

d47081 commented Oct 27, 2023

Yes, did not found that implementation.

It's would be simple to PR but there is additional classes available beside with plain transliteration tables and I'm not familiar with some languages there.

Anyway, I have applied this library in the project as supports lot of locales, maybe will contribute one time if project is alive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants