Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9007973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:49:52+00:00 2026-06-16T01:49:52+00:00

look at the following snippet: >>> import unicodedata >>> from unicodedata import normalize, name

  • 0

look at the following snippet:

>>> import unicodedata
>>> from unicodedata import normalize, name

>>> normalize('NFKD', u'\xb4')
u' \u0301'

>>> normalize('NFKD', u'a\xb4a')
u'a \u0301a'

>>> normalize('NFKC', u'a\xb4a')
u'a \u0301a'

>>> name(u'\xb4'), name(u'\u0301')
('ACUTE ACCENT', 'COMBINING ACUTE ACCENT')

I am trying to understand if the behavior to translate u'\xb4' to u' \u0301' is correct. Why does it pad the combining acute accent with a space? Why does it translate the u\xb4 at all?

At fileformat we see that the ACUTE ACCENT used to be called SPACING ACUTE. I thought, it just meant that the cursor should move instead of waiting for the following character to be typed in.

UPD: in case someone is interested, here is a list if unicode characters that after NFKC normalization have a space in the beginning: http://pastebin.com/Z99r5AK9

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:49:53+00:00Added an answer on June 16, 2026 at 1:49 am

    An accent character is the combination of a space and a combining accent character, as specified in the Unicode standard:

    >>> import unicodedata
    >>> unicodedata.decomposition(u'\xb4')
    '<compat> 0020 0301'
    

    The \u00B4 character has a somewhat ambiguous history, but the Unicode standard has decided to treat it as whitespace + accent, even though it has often been used as just a diacritic mark, see this discussion.

    You could perhaps use \u02CA as an alternative; it is not treated as whitespace, and has no decomposition specified. It is instead qualified as a letter, so your mileage may vary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's look at the following code snippet in Java. package division; import java.math.BigDecimal; final
Let's look at the following code snippet in Java. package demo; import java.util.Calendar; final
Please take a look at the following snippet from ipython: In [122]: len(netean) Out[122]:
I'm not used to working with synchronized. Does the following snippet look right? public
Take a look that the following code snippet: A a = null try {
Please look the following query: SELECT ID, START, END FROM TABLEA the result is:
Pls look at following code <select name=VideoType id=VideoType style=width:60px> <option value=All>All</option> <option value=Movie>Movie</option> <option
I have HttpClient 4.1. Please have a look at following program: import org.apache.http.client.methods.*; import
Let's look at the following code snippet in Java. package trickyjava; class A {
Let's look at the simple Java code in the following snippet: public class Main

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.