Giter Club home page Giter Club logo

transvoyage's Introduction

transvoyage

Transform Wikivoyage article from a language to another.

How to use the script

  • Use Ubuntu or another Linux. Might work on Mac too.
  • Download latest English Wikivoyage listings CSV from http://datahub.io/dataset/wikivoyage-listings-as-csv
  • Put the CSV in the same directory as this script
  • If you want to generate Toronto, execute in a terminal: ./en2fr.sh Toronto
  • The last output line tells you the output file. Open that file and paste to Wikivoyage.

How to adapt the script for other languages

You can easily adapt the script to transform English→Italian or English→Hebrew for instance (the source has to be English, transforming from another language than English would be much more difficult).

  • Register on Github
  • Click "Fork" at https://github.com/nicolas-raoul/transvoyage
  • Find an Ubuntu or Linux or Mac computer
  • Install Git
  • Run a git clone [email protected]:yourname/transvoyage.git command as explained on your fork's page
  • Test the script en2fr.sh, as described in the section above.
  • Copy en2fr.sh to en2ja.sh for instance
  • Open en2ja.sh with a text editor
  • Find the line that contains {{Bannière page}}. This section is the skeleton of the destination article. Replace everything as you see fit but do not touch to anything that starts with a $ sign.
  • Test the script en2ja.sh, as described in the section above.
  • Find the line that contains {{Voir. This section is the skeleton for each "See" listing. Replace everything as you see fit but do not touch to anything that starts with a $ sign (feel free to reorder them though).
  • Test again.
  • Repeat for all other listing types.
  • Perform a final test.
  • Important: Contribute your changes so that others can use your script: Run git add en2ja.sh; git commit -m "Added script"; git push, then send me a pull request or contact me via Wikivoyage.

transvoyage's People

Contributors

nicolas-raoul avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

transvoyage's Issues

Italian to French Version

Hello.
It knows it's not as useful as English to French version, but i see sometime some great Italian article for some locations.
Italian wikivoyage seems to be one of the most active wikivoyage version
and it has of course a listings system.
So,It could be a good idea to have one day an Italian to french version of transvoyage .
Thanks.

Add usuals subsections or comments for not usual subsection.

Hello.
Is it possible that some usual subsection (Budget,Mid-range,Splurge,By Bus,By car,etc…) and some others (Camping) not so usual can directly be translate ?
(in french :Bon marché,Prix moyen,Luxe,Camping)
It is possible also that not usual at all subsection can be added as comments (to be use with a translation) ?
Thanks.

Comment on Content and add some information.

First, sorry for my English.
Is it possible to add some information of the initial English version as comments ?
It will be useful to have the option of having information like «content»,«directions», «prices»,«hours» from the initial version as comment, it will be easier to translate quickly.

Mediawiki comments are like this :

<!-- commentaire -->

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.