没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
oss.trustie.net/open_source_projects | 主页 > 开源项目社区 > wlcp |
wlcp
|
0 | 0 | 0 |
贡献者 | 讨论 | 代码提交 |
The WLCP (We Love ChinesePod) software aims to make learning Chinese from the ChinesePod website much more effective and efficient by allowing premium content subscribers to easily download lessons for off-line/mobile usage in a user-customizable format.
WLCP is implemented as a Python script that downloads ChinesePod lesson data and stores it in XML and MP3 format; XSLT and CSS stylesheets then allow for transparent, user-customizable rendering of the lessons.
NewsSeptember 12, 2009 Version 2009.09.12 has been released (view changes) June 28, 2009 Version 2009.06.26 has been released (view changes) March 26, 2009 Derek Chadwick has created SeePod Lesson Manager; it includes a GUI for WLCP, making it easier to use! March 22, 2009 Version 2009.03.22 released (view changes) (view forum post) February 16, 2009 WLCP broke with the ChinesePod site upgrade; a new parser will eventually come February 9, 2009 Version 2009.02.09 released (view changes) (view screenshot) (view forum post) FeaturesTo 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 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:
Taiwanese Ministry of Education's Learning Program for Stroke Order of Frequently Used Chinese Characters Chinese University of Hong Kong's Chinese Character Database: With Word-formations Phonologically Disambiguated According to the Cantonese Dialect Adam Sheik's 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 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:
PlecoDict Export character annotation (via the Firefox 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 UsageInstallationInstall Python if necessary. Windows users: Download and install Python for Windows. Mac users: Python is already installed. Ubuntu users: Python is already installed. 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 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. ExampleTo 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 usageConfiguring WLCPIn 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 lessonsIf 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 (example) which contains the names of the desired lessons, exactly as they appear in the URLs, listed one per line.
AcknowledgementFor playing the recorded Chinese audio, WLCP uses the excellent neolao Flash MP3 Player.
Contact informationWLCP was developed by Andrew Corrigan and Jonathan Lee.
DisclaimerThis 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 copy-and-paste the expansion sentences into a document and print this out, or 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 mobile form of learning.