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

[Bug] Non-ASCII symbols not converted #31

Open
Kristinita opened this issue Feb 14, 2017 · 1 comment
Open

[Bug] Non-ASCII symbols not converted #31

Kristinita opened this issue Feb 14, 2017 · 1 comment

Comments

@Kristinita
Copy link

Kristinita commented Feb 14, 2017

1. Summary

Non-ASCII symbols not converted for me.

2. Expected behavior

Case Conversion

  1. Native Sublime Text Convert Case — Upper Case, Lower Case and so on — successfully work for me in Non-ASCII symbols.
  2. Case Conversion worked for me for Latin letters.

3. Actual behavior

Case Conversion features don't worked for me for Cyrillic letters. I get stack trace.

command: convert_to_camel
Traceback (most recent call last):
  File "D:\Sublime Text 3 x64\sublime_plugin.py", line 818, in run_
    return self.run(edit)
  File "case_conversion in D:\Sublime Text 3 x64\Data\Installed Packages\Case Conversion.sublime-package", line 104, in run
  File "case_conversion in D:\Sublime Text 3 x64\Data\Installed Packages\Case Conversion.sublime-package", line 87, in run_on_selections
  File "case_conversion in D:\Sublime Text 3 x64\Data\Installed Packages\Case Conversion.sublime-package", line 31, in to_camel_case
IndexError: list index out of range

4. Steps to reproduce

The problem is reproduced for me in a version of Sublime Text without plugins and user settings.

I have any Cyrillic text, for example,

Кристина Беспрецедентна

I select text → Ctrl+Shift+PConvertCase: camelCase → I get actual behavior.

5. Environment

Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Sublime Text:
Build 3126

Thanks.

@dlnsk
Copy link

dlnsk commented Oct 18, 2019

OS: Linux

Convert Cyrillic to snake_case change selection to nothing.
https://stackoverflow.com/questions/36187349/python-regex-for-unicode-capitalized-words

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