GithubHelp home page GithubHelp logo

wlcp's Introduction

wlcp

Automatically exported from code.google.com/p/wlcp

The WLCP (We Love ChinesePod) software aims to make learning Chinese from the [http://www.chinesepod.com/ ChinesePod] website much more effective and efficient by allowing [http://chinesepod.com/help/subscription premium content subscribers] to easily download lessons for off-line/mobile usage in a user-customizable format.

WLCP is implemented as a [http://www.python.org/ Python] script that downloads ChinesePod lesson data and stores it in [http://www.w3.org/TR/REC-xml/ XML] and [http://www.iis.fraunhofer.de/EN/bf/amm/projects/mp3/ MP3] format; [http://www.w3.org/TR/xslt XSLT] and [http://www.w3.org/TR/CSS21/ CSS] stylesheets then allow for transparent, user-customizable rendering of the lessons.

== News ==

-September 12, 2009 Version 2009.09.12 has been released ([Changes view changes])

== Features ==

To help users learn on their terms, WLCP automatically downloads, for a specified lesson, the following user-customizable content (or any user-specified portion of it):

An XML file, viewable in [http://www.mozilla.com/firefox/ Firefox], which displays the lesson in a user-customizable format involving any combination of the following via user-configurable (through CSS and XSLT) fonts, colours and sizes. For instance, the provided default XSLT and CSS stylesheets feature extremely easy to use toggle buttons used to:

  • switch between traditional and simplified Chinese characters
  • show or hide the original Chinese text
  • show or hide the English semantic translations
  • show or hide the pinyin sentence translations
  • switch between highly readable tooltips and character annotations to provide extra character information
  • make the study page suitable for printing

The tooltips contain hyperlinks to the following freely available online resources: * [http://www.moe.gov.tw/ Taiwanese Ministry of Education]'s [http://stroke-order.learningweb.moe.edu.tw/ Learning Program for Stroke Order of Frequently Used Chinese Characters] * [http://humanum.arts.cuhk.edu.hk/ Chinese University of Hong Kong]'s [http://humanum.arts.cuhk.edu.hk/Lexis/lexi-can/ Chinese Character Database: With Word-formations Phonologically Disambiguated According to the Cantonese Dialect] * [http://www.cantonese.sheik.co.uk/ Adam Sheik]'s [http://www.cantodict.org/ CantoDict Project: A Collaborative English/Cantonese/Mandarin Dictionary] The character annotations provide literal ("word-for-word") translations in English, as well as pronunciation symbols in pinyin or bopomofo format.

MP3 files incorporated into the XML-generated webpage; WLCP downloads any combination of:

* lesson, dialogue and audio review MP3s
* expansion and dialogue sentences, and key and supplementary vocabulary; these files are assembled into larger files to facilitate their transfer to other devices, such as portable MP3 players

traditional and/or simplified HTML and PDF lesson transcripts; a [http://www.latex-project.org/ LaTeX] stylesheet is provided to generate user-customizable PDFs

bonus: WLCP also generates pretty lists of downloaded lessons. By default, these are:

* lessons/wlcpod-index.xml: lessons downloaded during the last WLCP session
* lessons/wlcpod-master-index.xml: all lessons downloaded to date

After bookmarking these two pages in Firefox, one can then use them as starting pages when searching for WLCP'ed lessons instead of manually locating files -- the lesson pictures and description should aid recognition of previously studied lessons.

Additional functions supported by WLCP:

[http://www.pleco.com/ PlecoDict] Export

character annotation (via the Firefox [https://addons.mozilla.org/en-US/firefox/addon/1935 Ruby] plugin), whereby each character is directly annotated with the corresponding pinyin (instead of each on separate lines); this features

* selective hiding of pinyin/bopomofo for user-specified characters
* literal translations of the sentences (你好 = "you good", 你在哪兒 = "you located where")

== Basic Usage ==

=== Installation ===

Install Python if necessary.

* Windows users: Download and install [http://www.python.org/ftp/python/2.6.1/python-2.6.1.msi Python for Windows].
* Mac users: Python is already installed.
* Ubuntu users: Python is already installed.

[http://code.google.com/p/wlcp/downloads Download WLCP] and unzip the downloaded file.

For best results, install the AR PL ZenKai Uni and AR PL ShanHeiSun Uni fonts, either by enabling Chinese support in your operating system or as below.

* Windows users: search for this font online and download it; one possible location is [http://www.cantonese.sheik.co.uk/fonts.htm here].
* Mac users: the substitute font *BiauKai* may already be installed
* RedHat users: `yum search fonts-chinese`
* Ubuntu users: `aptitude search language-support-fonts-zh`
* Debian users: [http://tavi.debian.org.tw/index.php?page=Unifonts]

=== Downloading a lesson with WLCP ===

Run the script.

* Windows users: Double-click on `wlcpod.py`.
* Mac users: Click on `wlcpod.py`, then click on "Run" at the top of the program, then click on "Run Module".
* Ubuntu users: Double-click on `wlcpod.py`, and click on "Run in terminal".

Follow the instructions in the black box that pops up. It will ask for your e-mail address, password, and the name of the lesson (exactly as it appears in the URL) that you want to download. This information is sent only to the Praxis log-in site -- you may verify this for yourself by looking at the source code. Once supplied with the lesson name, WLCP will then download the necessary content from ChinesePod.

==== Example ====

To download the lesson called "going-to-the-gym", the lesson name must be entered exactly as that. * Right: going-to-the-gym * Wrong: Going to the gym * Wrong: Goingtothegym

For this lesson, WLCP would download or create the following files:

  • lessons/wlcpod-master-index.xml (Master index XML file --- view this file in Firefox to see a conveniently accessible list of all WLCP-downloaded lessons to date)
  • lessons/wlcpod-index.xml (Last WLCP session index XML file)
  • lessons/going-to-the-gym.xml (Lesson XML file -- view this file in Firefox to study the WLCP-enhanced lesson)
  • lessons/going-to-the-gym/going-to-the-gym_dialogue.mp3 (Lesson dialogue MP3)
  • lessons/going-to-the-gym/going-to-the-gym_lesson.mp3 (Lesson full podcast MP3)
  • lessons/going-to-the-gym/going-to-the-gym_review.mp3 (Lesson audio review MP3)
  • lessons/going-to-the-gym/going-to-the-gym_dialogue_sentences.mp3 (All dialogue tab readings in one MP3)
  • lessons/going-to-the-gym/going-to-the-gym_expansion_sentences.mp3 (All expansion tab readings in one MP3)
  • lessons/going-to-the-gym/going-to-the-gym_vocabulary_sentences.mp3 (All vocabulary tab readings in one MP3)
  • lessons/going-to-the-gym/going-to-the-gym.jpeg (Lesson picture)
  • lessons/going-to-the-gym/going-to-the-gym-simp.pdf (Simplified character PDF transcript)
  • lessons/going-to-the-gym/going-to-the-gym-trad.pdf (Traditional character PDF transcript)
  • lessons/going-to-the-gym/going-to-the-gym-simp.html (Simplified character HTML transcript)
  • lessons/going-to-the-gym/going-to-the-gym-trad.html (Traditional character HTML transcript)

== Advanced usage ==

=== Configuring WLCP ===

In the same folder as wlcpod.py is a configuration file called wlcpod.ini. You can edit it to configure WLCP with your desired settings, such as:

  • your login information (e-mail and password) -- this spares you from having to enter your log-in information with each WLCP invocation
  • which files WLCP actually downloads
  • other more advanced options To edit the wlcpod.ini file, any text editor on Linux or Mac OS should work; on Windows, Notepad does not work due to incorrect handling of linefeeds, so use an editor such as WordPad instead.

=== Downloading multiple lessons ===

If you'd like to download multiple lessons at once (or download a lesson with Chinese characters in its name), create a file called lessons.txt ([http://cds.gmu.edu/~acorriga/chinese/lessons.txt example]) which contains the names of the desired lessons, exactly as they appear in the URLs, listed one per line.

== Acknowledgement ==

For playing the recorded Chinese audio, WLCP uses the excellent [http://flash-mp3-player.net/players/maxi/ neolao Flash MP3 Player].

== Contact information ==

WLCP was developed by [http://cds.gmu.edu/~acorriga/ Andrew Corrigan] and [http://math.stanford.edu/~jlee/ Jonathan Lee].

== Disclaimer ==

This software does NOT provide access to or distribute premium content to people who do not already have access to it. This software merely automates, for an INDIVIDUAL PREMIUM SUBSCRIBER, the process of downloading and displaying material provided by ChinesePod.

For example, many users already manually [http://chinesepod.com/community/conversations/post/2058 copy-and-paste the expansion sentences into a document and print this out], or [http://chinesepod.com/community/conversations/post/2137 manually create a practice MP3 file of the expansion sentences for their own personal use]. This is exactly what this program does, it only automates the process. It is intended for those of us who want to practice the expansion sentences "on our terms" away from the computer. This makes ChinesePod a more [http://chinesepod.com/community/conversations/post/2331 mobile form of learning].

wlcp's People

Contributors

dchad avatar

Watchers

James Cloos avatar

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.