')
def BeginMainBody():
- print ''
- print ''
+ print('')
+ print('')
def PrintWhatIs():
- print ''
- print ' '
- print 'Vimcdoc is an attempt to translate the wonderful Vim online'
- print 'documentation into Chinese, allowing more people to get to'
- print 'know and make use of this great tool. After installing vimcdoc,'
- print 'You will be able to do :help and read'
- print 'documentation in Chinese.'
- print '
'
- print ' '
+ print('')
+ print('')
+ print('Vimcdoc is an attempt to translate the wonderful Vim online')
+ print('documentation into Chinese, allowing more people to get to')
+ print('know and make use of this great tool. After installing vimcdoc,')
+ print('You will be able to do :help and read')
+ print('documentation in Chinese.')
+ print('
')
+ print(' ')
def PrintDivider():
- print ''
+ print('')
def PrintGetVimcdoc():
- print ''
- print ''
- print 'The latest version is ' + vimcdoc_ver + '! '
- print 'Vimcdoc is hosted by sourceforge. You should be able to'
- print 'get it from any sourceforge mirror. See the links below:'
- print '
'
- print ' '
- print ''
+ print('')
+ print('')
+ print('The latest version is ' + vimcdoc_ver + '! ')
+ print('Vimcdoc is hosted by sourceforge. You should be able to')
+ print('get it from any sourceforge mirror. See the links below:')
+ print('
')
+ print(' ')
+ print('')
base_address = 'https://sourceforge.net/projects/vimcdoc/files/'
exe_ansi_address = base_address + 'win32-install/vimcdoc-' + vimcdoc_ver + \
'-setup.exe/download'
@@ -201,80 +201,80 @@ def PrintGetVimcdoc():
user_manual_address = base_address + 'pdf-manual/user_manual-' + vimcdoc_ver + '.pdf/download'
reference_address = base_address + 'pdf-manual/reference-' + vimcdoc_ver + '.pdf/download'
- print '- Latest win32 installation program'
- print '
'
- print '- Latest win32 (Unicode) installation program'
- print '
'
- print '- Latest platform independent tarball, including an Linux/BSD installation script'
- print '
'
- print '- Latest User Manual in PDF (1.6M)'
- print '
'
- print '- Latest Reference Manual in PDF (8.9M)'
- print '
'
- print '- Older PDF version of the translated Vim user manual from slimzhao. '
- print 'Thanks slimzhao for permission to host this file.'
- print '
'
- print '- For older versions, please use the \'Download\' link on the left.
'
- print ' '
- print ''
+ print('- Latest win32 installation program')
+ print('
')
+ print('- Latest win32 (Unicode) installation program')
+ print('
')
+ print('- Latest platform independent tarball, including an Linux/BSD installation script')
+ print('
')
+ print('- Latest User Manual in PDF (1.6M)')
+ print('
')
+ print('- Latest Reference Manual in PDF (8.9M)')
+ print('
')
+ print('- Older PDF version of the translated Vim user manual from slimzhao. ')
+ print('Thanks slimzhao for permission to host this file.')
+ print('
')
+ print('- For older versions, please use the \'Download\' link on the left.
')
+ print(' ')
+ print('')
def PrintAuthors():
- print ''
- print ''
- print 'Vimcdoc was started by Ken in 2002.6. lang2 started a similiar'
- print 'project from linuxforum soon after. At the end of 2002 they merged and the'
- print 'current vimcdoc took form. We have many '
- print 'members, among'
- print 'whom the following has contributed a lot to this project:'
- print ' '
+ print('')
+ print('')
+ print('Vimcdoc was started by Ken in 2002.6. lang2 started a similiar')
+ print('project from linuxforum soon after. At the end of 2002 they merged and the')
+ print('current vimcdoc took form. We have many ')
+ print('members, among')
+ print('whom the following has contributed a lot to this project:')
+ print(' ')
f = open( author_file )
auth = re.compile( "^(\w+)\s+\(\s*(\w.*)\s*\)" )
line = f.readline()
while ( line ):
mobj = auth.match(line)
- if mobj is not None:
- print '- ' + mobj.group(1) + ' - ' + mobj.group(2)
+ if mobj is not None:
+ print('
- ' + mobj.group(1) + ' - ' + mobj.group(2))
line = f.readline()
f.close()
- print '
'
- print '
'
- print ''
+ print(' ')
+ print('
')
+ print('')
def EndMainBody():
- print ''
- print 'Vimcdoc is © 2011 by the vimcdoc team.'
- print 'All rights reserved.'
- print '
'
- print ''
- print ''
- print ' '
- print ' | '
- print '