Topic on Manual talk:Pywikibot

Leyo (talkcontribs)

How can a ndash be inserted, e.g. using replace.py?

Dvorapa (talkcontribs)

Where do you want to insert it?

Matěj Suchánek (talkcontribs)

A right-click and "Paste" on terminal usually works. Or use user-fixes.py and either paste it using a text editor or type "\u2013" where you want it. In Python 3.8, you should be able to use \N{EN DASH} as well but I couldn't test this.

Leyo (talkcontribs)

Thanks for the replies. I would like to use the terminal to run replace.py and to define the replacements. I had tried to paste the ndash before, but it turned out to be converted into a hyphen minus. I had also tried \u2013, but it would have been inserted as text, not as ndash.

Reply to "ndash"