-
Notifications
You must be signed in to change notification settings - Fork 15
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
ascii restriction mode #24
Comments
Worst cases scenario I can introduce this feature by myself, but I wanted to ask first since maybe I may not be seeing everything and also want to ask for green light to start working on it :) |
Hi @esavier , thanks for opening this issue. If I understood you correctly you want to force the conversion to ASCII chars on the output to non-supported UTF-8 filesystems. Wouldn't be enough just to force the conversion using the current implementation? Could you give me some examples so we can discuss the problem with more details? This way we can see if we need to implement something more or just use the current features. This may be someway related to #6 |
Hi ismaelgv! |
@esavier I've been playing around with It keeps some common options with the root command but does not consider You can pass a list of files: rnr to-ascii ńôn-äscìí.txt # should translate to non-ascii.txt Or use the recursive mode: rnr to-ascii -r ./ |
damn, that was fast!
problem is there when i need to copy stuff to old FS'es, like ext3, fat32/exfat, or something exotic that does not support utf8, drivers usually say "operation failed with code XXX" its hard to misuses anyascii as a lib so i assume you added an option i meant. much kudos <3 ! |
yeah, tested, it works marvelously, FAT32 driver can now easily change the ASCII-like characters in UTF-8 to actual ASCII without throwing an error. also just a note,
|
We can close this if there is nothing else to discus (^.^) |
Thanks for testing the new feature. 😉
I thought about combining them but the complexity would rise and the user experience would be degraded. I separated this in a different command in the end, and refactored a part of the application to ease the addition of new commands. I am planning to release a new version this week, I want to fix some minor stuff before. Fixed in e708713 |
Issue Description
i am using this tool mainly to fix filesystem issues that i am having after working with different files from different sources, an example being files using UTF-8 character set outside the standard ascii range like Asian, Slavic, extended Latin or German special characters (i.e. 'ąłśćż' ). Those files while working on modern file systems like btrfs without a problem but in some cases, for example when being copied or transferred to file systems not supporting UTF-8 out of the box, it's erroneous or just prevents me from doing so, since the drivers do not know what to do with those.
Here comes the RnR which i use to strip those as far as i am able to, but it takes some wizardry to do properly and i am still not sure if i am not overlooked something. Also, it's extremely lossy at this moment.
Resolution Proposition
there is an library that translates the special characters to ASCII bound ones - https://github.com/anyascii/anyascii
can we get a flag that for example in addition to running regexp, forces the special characters to be conversed to the ascii ones? for example,
--restrict
this issue is related mainly to unix/linux platform.
The text was updated successfully, but these errors were encountered: