Manual:Pywikibot/Windows/es

Python en el PATH
Para facilitar la ejecución de Python, el ejecutable tiene que estar en tu PATH.

Para comprobar que Python está instalado correctamente, abre CMD.EXE y ejecuta:

C:\> python --version

Si no encuentra python, vuelve a instalar Python y habilita la opción de añadir python.exe a tu PATH.

Crear un atajo
Cómo crear un atajo rápido en Windows para ejecutar comandos

Si estás instalando Pywikibot en una carpeta como "Mis Documentos", usar repetidamente el comando "chdir" para acceder a la carpeta para ejecutar los bots puede dar problemas.

En Windows puedes crear un atajo que abra la ventana de comandos para poder ejecutar bots fácilmente. Solo sigue estos pasos para crear uno:


 * 1) Haz clic derecho en la carpeta en la que está instalado pywikibot.
 * 2) Haz clic en "Crear atajo". Se creará un nuevo icono de atajo con una flecha.
 * 3) Haz clic derecho en el nuevo atajo, y selecciona "Propiedades".
 * 4) En la ventana de propiedades, en el campo "Destino", escribe cmd.exe.
 * 5) En el campo "iniciar en", introduce la ruta entera de pywikibot.
 * 6) Pulsa el botón "Aceptar".
 * 7) Haz clic en el atajo. Se abrirá cmd.exe con la ruta entera seleccionada.
 * 8) Si pulsas F5 para volver a cargar la ventana (o volver a abrir las propiedades del atajo), verás que el icono del atajo ha cambiado.

Configurar Unicode
The Windows shell (cmd.exe) is less than perfect when it comes to Unicode support. Because Pywikibot is used widely on non-English MediaWiki sites, we support full Unicode output. If you need Unicode support for the language you work on, the best solution is to use ConEmu Windows console instead of the native console (i.e. cmd.exe).

However, if you decide to stick with native console you need to change the font setting in cmd.exe before this works - or else you get a lot of question marks!

Alternatively, Pywikibot also supports transliteration - for instance, Вики is transliterated to Viki on Western European systems. This also works without changing the font.

Because it is impossible to determine the font used, we ask that you explicitly define which option you want to use. If you do not define this, you will get the following warning:

 WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikibot/Windows

Full unicode output (suggested)
To get full unicode output, you need to change the font used by cmd.exe and add a line to user-config.py.

Changing the font

 * 1) Start cmd.exe or any pywikipedia script
 * 2) Click on the icon in the top left corner ("C:\") or right-click on the title bar
 * 3) Go to 'Properties'
 * 4) Go to the 'Fonts' tab
 * 5) Select any font that has the TT-logo in front - on Windows XP, this is Lucida Console; on newer versions you can also choose Consolas.
 * 6) Click 'OK'
 * 7) Choose 'Save settings for all screens with the same title'

Your cmd.exe now is able to output full unicode!

Changing user-config.py
To user-config.py, add the following line:

 transliteration_target = None

Blocks in output
Because the font is unable to display all glyphs, you will occasionally see characters like this: ☐. However, you can still copy the text to visit the page on a wiki by copy-pasting the characters.

If you'd rather have transliterated characters, please read on to the following section.

Transliteration support
If you would like to have transliterated characters instead, you can add the following line to user-config.py:

 transliteration_target = console_encoding or, if you would like to transliterate back to only ascii characters,

 transliteration_target = 'ascii' You can use any standard python encoding for this.

However, the output now is 'Viki' instead of 'Вики'. This means you cannot copy-paste the page title anymore: ru:Viki is *not* ru:Вики!