Author: Echo
•下午9:31
1. Link to another page
* [[Avatar|Avatar]]


2. Link to the website
* [http://www.google.com.sg: Google]


3. Link to the accurate file
* [http://155.xx.xxx.xx/PPT/Dog.ppt Dog.ppt]


4. Setup Bibligraphy
(1) Jabref
(2) Export: Simple HTML(*.html)
(3)Open the *.html file using 'Edit with Notepad++'
(4)Seclect the data parts save as data.txt
(5)Run the python script wrote by Xiaogang
# hello

import re

link = "http://yoursite/files/test.pdf"

f = open('data.txt', 'r')
a = f.read()
result = a.split('\n\n')
for entry in result:
items = entry.split('\n')
formal_title = items[0][4:-5]
modified_entry = items[0][:-5]
for line in items[1:]:
if '
' in line:
title = line[7:-9]
modified_entry = modified_entry.replace(formal_title, title)
else:
modified_entry += line[:-5]
print modified_entry + ' [[' + link + ' PDF]]' + '\n'
(6)Paste the result in mediawiki, get the export format like this:
Amount of information presented in a complex list: effects on user performance
Dutton, D., Chu, S., Hubbell, J., Walker, M. & Narayanan, S.
HLT '01: Proceedings of the first international conference on Human language technology research
Association for Computational Linguistics, 2001, pp. 1-6



This entry was posted on 下午9:31 and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

0 评论: