[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2020-10-20 Thread Inada Naoki


Change by Inada Naoki :


--
versions: +Python 3.10 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2020-10-20 Thread Inada Naoki


Inada Naoki  added the comment:

> Agreed. It makes great sense that textwrap started as highly ASCII-centric. 
> But in the Python 3, Unicode-friendly era, ASCII-biased isn't where we should 
> leave things.

It needs Unicode experts. If we support Unicode, we should implemente UAX #14.
http://www.unicode.org/reports/tr14/tr14-45.html

But I am not sure some core developer love textwrap and Unicode enough to 
implement it.
It can be implemented in 3rd party package before adding it in stdlib.

Then, is U+2014 really important to implement even though we can not implement 
UAX#14 in foreseeable future?
It doesn't make sense to me.

--
nosy: +methane

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice

Jonathan Eunice added the comment:

Agreed. It makes great sense that textwrap started as highly ASCII-centric. But 
in the Python 3, Unicode-friendly era, ASCII-biased isn't where we should leave 
things.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread R. David Murray

R. David Murray added the comment:

This seems sensible to me (I haven't looked at the PR, I'm talking about adding 
the support).  When textwrap was written python was pretty ascii oriented, so 
it is not too much of a surprise that unicode em dashes were not supported.

--
nosy: +r.david.murray
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice

Changes by Jonathan Eunice :


--
pull_requests: +2269

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice

New submission from Jonathan Eunice:

The textwrap module goes to great lengths to "do the right thing" when it finds 
the ASCII simulation of an em-dash (two or more consecutive hyphens), but it 
does nothing to recognize and similarly treat true (Unicode) em-dashes (aka 
'\N{EM DASH}', '\u2014', or U+2014). Real em-dashes should get at least as good 
a treatment as simulated em-dashes.

--
components: Library (Lib)
messages: 296124
nosy: jonathaneunice
priority: normal
severity: normal
status: open
title: textwrap should treat Unicode em-dash like ASCII em-dash
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com