Coder Social home page Coder Social logo

Unicode Handling about pathpicker HOT 4 CLOSED

facebook avatar facebook commented on April 25, 2024 1
Unicode Handling

from pathpicker.

Comments (4)

pcottle avatar pcottle commented on April 25, 2024

yeahhhhh woof there are probably a few things we'll need to do here:

  • the first is the most basic -- parse the incoming stdin as utf8 aware and be able to display it correctly
  • the second however is the more complex -- regex match against utf8 as well, meaning our regexes need to be updated.

The latter has me worried the most 🙈 maybe @cosbynator can help us since he's mr utf8 regex:
http://instagram-engineering.tumblr.com/post/118304328152/emojineering-part-2-implementing-hashtag-emoji

from pathpicker.

zkanda avatar zkanda commented on April 25, 2024

Woot! The latter seems scary to implement. 💩

from pathpicker.

nicolas-yangli avatar nicolas-yangli commented on April 25, 2024

Cosbynator's regex is used to match emoji, but more characters should be matched to handle unicode filenames. For East Asians, CJK Unified Ideographs is important. It consists of serveral unicode ranges:

  • CJK Unified Ideographs: 4E00 to 9FFF
  • CJK Unified Ideographs Extension A: 3400 to 4DBF
  • CJK Unified Ideographs Extension B: 20000 to 2A6DF
  • CJK Unified Ideographs Extension C: 2A700 to 2B73F
  • CJK Unified Ideographs Extension D: 2B740 to 2B81F

As a Simplified Chinese users, I think (at least) 4E00 to 9FFF and 3400 to 4DBF should be matched.

from pathpicker.

pcottle avatar pcottle commented on April 25, 2024

Closing this out since I don't think we'll be able to support in anytime soon (and I keep getting nagged by the reap bot), but once almost everyone is on python3 I can add it!

from pathpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.