Merge pull request #2890 from tylerm-nv/usdviewq-utf8-search
authorpixar-oss <pixar-oss@users.noreply.github.com>
Fri, 12 Jan 2024 18:40:15 +0000 (10:40 -0800)
committerpixar-oss <pixar-oss@users.noreply.github.com>
Fri, 12 Jan 2024 18:50:48 +0000 (10:50 -0800)
UTF8 search support in usdviewq

(Internal change: 2311157)

1  2 
pxr/usdImaging/usdviewq/appController.py

index 6c01056ad7dbd5c96895d96b430ff2237d2ed24b,67e9a2ba00cce1ed5cd8a1f3768f4e12ee86492b..e607e7f8ed1799ebedcbf4df104358bd6a222cb7
@@@ -2204,6 -2203,13 +2204,13 @@@ class AppController(QtCore.QObject)
  
      # Prim/Attribute search functionality =====================================
  
 -    # Defaults to NFKC for ease of use for users. NFKC has a compatbility decomposition that NFC does not.
 -    # This makes it much easier to search with just ASCII characters.
 -    # Some information is lost with the additional decomposition,
 -    # but it's intentional to enable simpler searching.
++    # Defaults to NFKC for ease of use for users. NFKC has a compatbility 
++    # decomposition that NFC does not. This makes it much easier to search with 
++    # just ASCII characters. Some information is lost with the additional 
++    # decomposition, but it's intentional to enable simpler searching.
+     def _normalize_unicode(self, str: str, form = 'NFKC'):
+         return unicodedata.normalize(form, str) 
      def _isMatch(self, pattern, isRegex, prim, useDisplayName):
          """
          Determines if the given prim has a name that matches the