diff --git a/devel/release/main.aap b/devel/release/main.aap index ad4da27d..1b5829aa 100644 --- a/devel/release/main.aap +++ b/devel/release/main.aap @@ -14,7 +14,7 @@ NSISOUTPUT = /V0 :attr {publish = $SF_SCP_RELEASE_URL/vimcdoc/%file%} $TARGZ -:attr {publish = $SF_SCP_RELEASE_URL/win32-install/%file%} $WIN32EXE +# :attr {publish = $SF_SCP_RELEASE_URL/win32-install/%file%} $WIN32EXE :attr {publish = $SF_SCP_RELEASE_URL/win32-install-unicode/%file%} $WIN32EXE_UNICODE :attr {publish = $SF_SCP_RELEASE_URL/pdf-manual/%file%} *.pdf diff --git a/devel/www/htdocs/vimcdoc-sf.py b/devel/www/htdocs/vimcdoc-sf.py index 5782c53a..275b5b22 100755 --- a/devel/www/htdocs/vimcdoc-sf.py +++ b/devel/www/htdocs/vimcdoc-sf.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # vimcdoc-sf.py # An index.html generator for the vimcdoc project. # Usage: @@ -22,176 +22,176 @@ def GetVimcdocVersion(): f.close() def PrintNewsHeader(): - print '' - print '' - print '' - print '' - print '' - print '' - print '
' - print '' - print '' - print '' - print '' - print '' - print '' - print '
News
' - print '
' - print '

' - print '

' + print('') + print('') + print('') + print('') + print('') + print('') + print('
') + print('') + print('') + print('') + print('') + print('') + print('') + print('
News
') + print('
') + print('

') + print('

') def PrintNewsFooter(): - print '
' - print '

' + print('
') + print('

') def PrintNews(): PrintNewsHeader() f = open( news_file ) line = f.readline() while ( line ): - print '
' - print line - print '
' - print '
' + print('
') + print(line) + print('
') + print('
') line = f.readline() while ( line != "\n" ): - print line + print(line) line = f.readline() line = f.readline() - print '

' + print('

') f.close() PrintNewsFooter() def PrintHeader(): - print '' - print '' - print '' - print '' - print 'Vim Chinese Documentation' - print '' - print '' - print '' + print('') + print('') + print('') + print('') + print('Vim Chinese Documentation') + print('') + print('') + print('') def PrintSidebar(): - print '' - print '' - print '' - print '' - print '') + print('') + print('') + print('
' - print '' - print '' - print '' - print '' - print '' - print '' - print '
' - print '' - print '' - print '' - print '' - print '' - print '' - print '' - print '' - print '' - print '
 
' - print '

Vimcdoc

' - print '
' - print '' - print '

Project Page

' - print '

Screenshot

' - print '

Download

' - print '

HOWTO

' - print '

Read Online

' - print '

Changelog

' - print '

Subversion

' - print '

News RSS

' - #print '

File RSS

' - print '
' - print '

Vim Home

' - print '

English VimDoc

' - print '
' - print '

Contact

' - print ' ' - print '
' - print '
' - print '
' - print '' - print '' - print '' - print '') + print('') + print('') + print('
' + print('') + print('') + print('') + print('') + print('' - print '' - print '' - print '
') + print('') + print('') + print('') + print('') + print('') + print('') + print('
') + print('') + print('') + print('') + print('') + print('') + print('') + print('') + print('') + print('') + print('
 
') + print('

Vimcdoc

') + print('
') + print('') + print('

Project Page

') + print('

Screenshot

') + print('

Download

') + print('

HOWTO

') + print('

Read Online

') + print('

Changelog

') + print('

Subversion

') + print('

News RSS

') + #print('

File RSS

') + print('
') + print('

Vim Home

') + print('

English VimDoc

') + print('
') + print('

Contact

') + print(' ') + print('
') + print('
') + print('
') + print('') + print('') + print('') + print('' - print '' - print '' - print '
') def BeginMainBody(): - print '' - print '' + print('') + print('') def PrintWhatIs(): - print '' - print '' - print '' - print '' - print '' - print '' - print '
' - print '' - print '' - print '' - print '' - print '' - print '' - print '
What is
' - 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('') + print('') + print('') + print('') + print('
') + print('') + print('') + print('') + print('') + print('') + print('') + print('
What is
') + 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 '' - print '' - print '' - print '' - print '
' - print '' - print '' - print '' - print '' - print '' - print '' - print '
Get Vimcdoc
' - 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('') + print('') + print('') + print('') + print('
    ') + print('') + print('') + print('') + print('') + print('') + print('') + print('
    Get Vimcdoc
    ') + 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 '' - print '' - print '' - print '' - print '
' - print '' - print '' - print '' - print '' - print '' - print '' - print '
Authors
' - 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('') + print('') + print('') + print('') + print('
    ') + print('') + print('') + print('') + print('') + print('') + print('') + print('
    Authors
    ') + 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 'SourceForge.net Logo' - print '

' - print '
' - print '
' + print('

') + print('Vimcdoc is © 2011 by the vimcdoc team.') + print('All rights reserved.') + print('

') + print('') + print('SourceForge.net Logo') + print('

') + print('
') + print('
') def PrintFooter(): - print '' + print('') ##### # Main program