Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-25 Thread Steve D'Aprano
On Sun, 25 Sep 2016 09:08 am, Thomas 'PointedEars' Lahn wrote: > Christian Gollwitzer wrote: > >> Am 17.09.16 um 23:19 schrieb Thomas 'PointedEars' Lahn: >>> Peng Yu wrote: Hi, I want to convert strings in which the characters with accents should be converted to the ones without accents

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-25 Thread Christian Gollwitzer
Am 25.09.16 um 01:08 schrieb Thomas 'PointedEars' Lahn: Christian Gollwitzer wrote: Am 17.09.16 um 23:19 schrieb Thomas 'PointedEars' Lahn: Peng Yu wrote: Hi, I want to convert strings in which the characters with accents should be converted to the ones without accents. […] […] ./main.py Fö

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-25 Thread Martin Schöön
Den 2016-09-25 skrev wxjmfa...@gmail.com : > > As an European guy, I recommend to use the characters > set used in the "official" font families used in Germany: > BundesSerif / BundesSans. > > See > https://styleguide.bundesregierung.de/Webs/SG/DE/PrintMedien/Basiselemente/Schriften/schriften_node.

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Steven D'Aprano
On Sunday 18 September 2016 17:51, Terry Reedy wrote: > On 9/18/2016 2:45 AM, Steven D'Aprano wrote: > >> It doesn't matter whether you call them "accent" like most people do, or >> "diacritics" as linguists do. > > I am a native born American and I have never before heard or seen > non-accent d

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread not1xor1
Il 18/09/2016 08:45, Steven D'Aprano ha scritto: integral part of the letter, like the horizonal stroke in English t or the vertical bar in English p and b, and in some languages they are modifiers, well... that is the Latin alphabet English has no T, P or B (or any other character) but is jus

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Marko Rauhamaa
Thorsten Kampe : > * Terry Reedy (Sun, 18 Sep 2016 03:51:40 -0400) >> On 9/18/2016 2:45 AM, Steven D'Aprano wrote: >> > It doesn't matter whether you call them "accent" like most people do, or >> > "diacritics" as linguists do. >> >> I am a native born American and I have never before heard or se

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Martin Schöön
Den 2016-09-17 skrev Marko Rauhamaa : > Martin Schöön : >> Related anecdote from Phoenix AZ. By now you have noticed my family >> name: Schöön. On airline tickets and boarding passes in the U.S. it >> gets spelled Schoeoen. > > Do Swedes do that German thing, too? If you have to write Finnish > wit

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Christian Gollwitzer
Am 17.09.16 um 23:19 schrieb Thomas 'PointedEars' Lahn: Peng Yu wrote: Hi, I want to convert strings in which the characters with accents should be converted to the ones without accents. Why? […] ./main.py Förstemann AFAIK, “ä”, “ö”, and “ü” are not accented characters in any natural lang

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-18 Thread Terry Reedy
On 9/18/2016 2:45 AM, Steven D'Aprano wrote: It doesn't matter whether you call them "accent" like most people do, or "diacritics" as linguists do. I am a native born American and I have never before heard or seen non-accent diacritic marks called 'accents'. Accents indicate stress. Other d

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-17 Thread Steven D'Aprano
On Sunday 18 September 2016 15:59, Thorsten Kampe wrote: > * Martin Schöön (17 Sep 2016 20:20:12 GMT) >> >> Den 2016-09-17 skrev Kouli : >> > Hello, try the Unidecode module - https://pypi.python.org/pypi/Unidecode. >> > >> > Kouli >> > >> > On Sat, Sep 17, 2016 at 6:12 PM, Peng Yu wrote: >> >>

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-17 Thread Steven D'Aprano
On Sunday 18 September 2016 13:30, Peng Yu wrote: > On Sat, Sep 17, 2016 at 3:20 PM, Martin Schöön > wrote: >> Den 2016-09-17 skrev Kouli : >>> Hello, try the Unidecode module - https://pypi.python.org/pypi/Unidecode. > > I don't find a way to make it print oe for ö. Could anybody please > advis

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-17 Thread Steve D'Aprano
On Sun, 18 Sep 2016 07:19 am, Thomas 'PointedEars' Lahn wrote: > AFAIK, “ä”, “ö”, and “ü” are not accented characters in any natural > language, but characters of their own (umlauts). Are you saying that English is not a natural language? -- Steve “Cheer up,” they said, “things could be wo

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-17 Thread Peng Yu
On Sat, Sep 17, 2016 at 3:20 PM, Martin Schöön wrote: > Den 2016-09-17 skrev Kouli : >> Hello, try the Unidecode module - https://pypi.python.org/pypi/Unidecode. I don't find a way to make it print oe for ö. Could anybody please advise what is the correct way to do it? ==> main.py <== #!/usr/bin

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-17 Thread Marko Rauhamaa
Martin Schöön : > Related anecdote from Phoenix AZ. By now you have noticed my family > name: Schöön. On airline tickets and boarding passes in the U.S. it > gets spelled Schoeoen. Do Swedes do that German thing, too? If you have to write Finnish without ä and ö, you simply leave out the dots. (On

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-17 Thread Martin Schöön
Den 2016-09-17 skrev Kouli : > Hello, try the Unidecode module - https://pypi.python.org/pypi/Unidecode. > > Kouli > > On Sat, Sep 17, 2016 at 6:12 PM, Peng Yu wrote: >> Hi, I want to convert strings in which the characters with accents >> should be converted to the ones without accents. Here is m

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-17 Thread Kouli
Hello, try the Unidecode module - https://pypi.python.org/pypi/Unidecode. Kouli On Sat, Sep 17, 2016 at 6:12 PM, Peng Yu wrote: > Hi, I want to convert strings in which the characters with accents > should be converted to the ones without accents. Here is my current > code. > > =

How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-17 Thread Peng Yu
Hi, I want to convert strings in which the characters with accents should be converted to the ones without accents. Here is my current code. $ cat main.sh #!/usr/bin/env bash # vim: set noexpandtab tabstop=2: set -v ./main.py Förstemann ./main.py Frédér8ic@ $ cat main.p