You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by wa...@apache.org on 2011/12/20 01:38:47 UTC
svn commit: r1221049 [8/8] - in /incubator/ooo/ooo-site/trunk/content/fi:
content/ css/ esimerkit/ esimerkkeja/ kaappaukset/ kuvat/ kuvat/icons/
mallit/ mallit/om/ scripts/
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_muistio_logolla.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_muistio_logolla.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_muistio_logolla.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_muistio_logolla.pdf
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_muistio_logolla.pdf?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_muistio_logolla.pdf
------------------------------------------------------------------------------
svn:mime-type = application/pdf
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_perusmalli.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_perusmalli.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_perusmalli.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_perusmalli_dokumentti.pdf
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_perusmalli_dokumentti.pdf?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_perusmalli_dokumentti.pdf
------------------------------------------------------------------------------
svn:mime-type = application/pdf
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_perusmalli_ruotsi.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_perusmalli_ruotsi.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/om/om_perusmalli_ruotsi.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/poytakirjamalli.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/poytakirjamalli.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/poytakirjamalli.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/poytakirjamalli.pdf
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/poytakirjamalli.pdf?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/poytakirjamalli.pdf
------------------------------------------------------------------------------
svn:mime-type = application/pdf
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487.pdf
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487.pdf?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487.pdf
------------------------------------------------------------------------------
svn:mime-type = application/pdf
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_kokouskutsu.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_kokouskutsu.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_kokouskutsu.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_kokouskutsu.pdf
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_kokouskutsu.pdf?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_kokouskutsu.pdf
------------------------------------------------------------------------------
svn:mime-type = application/pdf
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_muistio.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_muistio.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_muistio.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_muistio.pdf
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_muistio.pdf?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_muistio.pdf
------------------------------------------------------------------------------
svn:mime-type = application/pdf
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_perusmalli.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_perusmalli.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_perusmalli.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_perusmalli.pdf
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_perusmalli.pdf?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_perusmalli.pdf
------------------------------------------------------------------------------
svn:mime-type = application/pdf
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_perusmalli_lomake.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_perusmalli_lomake.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_perusmalli_lomake.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_poytakirja.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_poytakirja.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_poytakirja.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_poytakirja.pdf
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_poytakirja.pdf?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/sfs_2487_poytakirja.pdf
------------------------------------------------------------------------------
svn:mime-type = application/pdf
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/tyosopimus.ott
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/tyosopimus.ott?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/tyosopimus.ott
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/ooo/ooo-site/trunk/content/fi/mallit/tyosopimus.pdf
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/mallit/tyosopimus.pdf?rev=1221049&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/ooo/ooo-site/trunk/content/fi/mallit/tyosopimus.pdf
------------------------------------------------------------------------------
svn:mime-type = application/pdf
Added: incubator/ooo/ooo-site/trunk/content/fi/scripts/make_pages.py
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/scripts/make_pages.py?rev=1221049&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/fi/scripts/make_pages.py (added)
+++ incubator/ooo/ooo-site/trunk/content/fi/scripts/make_pages.py Tue Dec 20 00:38:41 2011
@@ -0,0 +1,97 @@
+#!/usr/bin/python
+# -*- coding: iso-8859-15 -*-
+
+import sys,os,string,re
+
+################################################################################
+# Adds page framework to content pages in content/ directory and
+# copies the pages to the main directory.
+#
+# 2004 Marko Grönroos
+################################################################################
+
+page_frame_filename = "scripts/page_frame.html"
+content_marker = "<!-- BODY-CONTENT -->"
+
+################################################################################
+# Reads file contents
+################################################################################
+def readFile (filename):
+ fin = open (filename)
+ if not fin:
+ sys.stderr.write ("Could not open content file '%s'\n" % (filename))
+ sys.exit (1)
+
+ content = fin.read ()
+ fin.close ()
+ return content
+
+################################################################################
+# Extract metadata such as styles
+################################################################################
+def extractMetadata (content):
+ metadata = None
+
+ style_begin = content.find ("<style")
+ style_end = content.find ("</style>")
+
+ if style_begin != -1 and style_end != -1:
+ metadata = content[style_begin:style_end+8]
+ content = content[:style_begin] + content[style_end+8:]
+
+ return (metadata, content)
+
+################################################################################
+# dirHtml
+################################################################################
+def dirHtml ():
+ find = os.popen ("cd content; ls *.html")
+ if find:
+ files = find.readlines ()
+ find.close ()
+ else:
+ sys.stderr.write ("Could not execute find.\n")
+ sys.exit (1)
+
+ files = map (lambda x: x[0:-1], files)
+ return files
+
+################################################################################
+# Main prorgram
+################################################################################
+
+page_frame = readFile (page_frame_filename)
+
+marker_pos = string.find (page_frame, content_marker)
+if marker_pos == -1:
+ sys.stderr.write ("Could not find marker '%s'.\n" % (content_marker))
+ sys.exit (1)
+
+marker_end = marker_pos + len (content_marker)
+page_header = page_frame[:marker_pos]
+page_footer = page_frame[marker_end:-1]
+
+files = dirHtml ()
+
+for file in files:
+ file_header = page_header
+ filecontent = readFile ("content/" + file)
+ (metadata, filecontent) = extractMetadata (filecontent)
+ if metadata != None:
+ # Insert metadata to page header
+ finntag = "<!-- End Finnish header -->"
+ header_start = file_header.find (finntag) + len(finntag)
+ file_header = file_header[:header_start] + "\n" + metadata + "\n" + file_header[header_start:]
+
+ fullpage = file_header + filecontent + page_footer
+
+ # Read old page
+ oldpage = readFile (file)
+
+ if fullpage != oldpage:
+ print "Updating '%s'..." % (file)
+
+ fout = open (file, "w")
+ fout.write (fullpage)
+ fout.close ()
+
Propchange: incubator/ooo/ooo-site/trunk/content/fi/scripts/make_pages.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/ooo/ooo-site/trunk/content/fi/scripts/make_pages.py
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/ooo/ooo-site/trunk/content/fi/scripts/page_frame.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/scripts/page_frame.html?rev=1221049&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/fi/scripts/page_frame.html (added)
+++ incubator/ooo/ooo-site/trunk/content/fi/scripts/page_frame.html Tue Dec 20 00:38:41 2011
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+
+<head>
+<title>Suomenkielinen OpenOffice.org</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+ <meta name="version" content="0.1" />
+
+<!-- Begin Finnish header -->
+<style type="text/css" media="screen, projection">
+/*<![CDATA[*/
+<!--
+ @import url(css/fi.css);
+-->
+/*]]>*/
+</style>
+<!-- End Finnish header -->
+</head>
+
+<body>
+<div id="fiheader">
+ <div id="fipositioner">
+ <a id="fiheader-logo" href="http://fi.openoffice.org/" accesskey="1" title="Suomenkieliselle OpenOffice.org-kotisivulle"></a>
+ <h1 id="fipositioner-text">Vapaa ja avoin toimisto-ohjelmisto</h1>
+
+ </div>
+</div>
+<table id="fibody">
+ <tr>
+ <td>
+ <table width="100%" cellspacing="0" cellpadding="0">
+ <tr>
+ <td></td>
+ <td colspan="2">
+ <table cellpadding="5">
+ <tr valign="top">
+ <td>
+
+<!-- Begin Finnish navbar -->
+ <div class="fiLeftMenu">
+ <div class="toolgroup">
+ <div class="label"><strong>OpenOffice.org suomeksi</strong></div>
+ <ul>
+ <li><a href="index.html">Pääsivu</a></li>
+ <li><a href="lataa.html">Lataa</a></li>
+ <li><a href="tuote.html">Ohjelmiston kuvaus</a></li>
+ <li><a href="sivukartta.html">Sivukartta</a></li>
+ </ul>
+ </div>
+
+ <div class="toolgroup">
+ <div class="label"><strong>Ohjeita</strong></div>
+ <ul>
+ <li><a href="tuki.html">Käyttäjätuki</a></li>
+ <li><a href="vastauksia.html">Vastauksia kysymyksiin</a></li>
+ <li><a href="dokumentaatio.html">Käyttöoppaat</a></li>
+ <li><a href="kielityokalut.html">Tavutus ja oikoluku</a></li>
+ <li><a href="mallit.html">Asiakirjamalleja</a></li>
+ </ul>
+ </div>
+
+ <div class="toolgroup">
+ <div class="label"><strong>Suomennosprojekti</strong></div>
+ <ul>
+ <li><a href="http://fi.openoffice.org/servlets/ProjectNewsList">Tiedotteet</a></li>
+ <li><a href="postituslistat.html">Postituslistat</a>
+ (<a href="http://fi.openoffice.org/servlets/ProjectMailingListList">engl</a>)
+ </li>
+ <li><a href="todo.html">Tehtäviä</a></li>
+ <li><a href="issuezilla.html">Viat ja toiveet</a>
+ (<a href="http://fi.openoffice.org/servlets/ProjectIssues">engl</a>)
+ </li>
+ <li><a href="yhteystiedot.html">Yhteystiedot</a></li>
+ </ul>
+ </div>
+ </div>
+<!-- End Finnish navbar -->
+ </td>
+ <td class="pagecontent">
+<!-- END-FINNISH-HEADER-PART -->
+
+<!-- ====================================================================== -->
+<!-- BODY-CONTENT -->
+<!-- ====================================================================== -->
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+
+</body>
+</html>
+
Propchange: incubator/ooo/ooo-site/trunk/content/fi/scripts/page_frame.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/ooo/ooo-site/trunk/content/fi/scripts/replace_menu.py
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/fi/scripts/replace_menu.py?rev=1221049&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/fi/scripts/replace_menu.py (added)
+++ incubator/ooo/ooo-site/trunk/content/fi/scripts/replace_menu.py Tue Dec 20 00:38:41 2011
@@ -0,0 +1,88 @@
+#!/usr/bin/python
+
+import sys,os,string,re
+
+################################################################################
+# Definitions
+################################################################################
+starttag = "<!-- MENU-START -->"
+endtag = "<!-- MENU-END -->"
+
+################################################################################
+# Read replacement menu
+################################################################################
+fin = open ("menu.html")
+if not fin:
+ sys.stderr.write ("Could not open menu.html\n")
+ sys.exit (1)
+
+newmenu = fin.read ()
+fin.close ()
+
+# Safety check
+if len(newmenu) < 100:
+ sys.stderr.write ("menu.html does not appear healthy\n")
+ sys.exit (1)
+
+################################################################################
+# List html files
+################################################################################
+
+find = os.popen ("find . -name '*.html'")
+if find:
+ files = find.readlines ()
+ find.close ()
+else:
+ sys.stderr.write ("Could not execute find.\n")
+ sys.exit (1)
+
+# Remove trailing newline
+files = map (lambda s: s[2:-1], files)
+
+# Process each file
+for file in files:
+ sys.stdout.write ("Processing file '%s'..." % (file))
+
+ # Open file
+ fin = open (file)
+ if not fin:
+ sys.stderr.write ("Unable to open file '%s' for reading.\n", file)
+
+ else:
+ sys.stdout.write (" reading...")
+
+ # Read file
+ filecontent = fin.read ()
+ fin.close ()
+
+ # Replace
+ startpos = string.find (filecontent, starttag)
+ endpos = string.find (filecontent, endtag)
+ if startpos != -1 and endpos != -1:
+ newcontent = filecontent[0:startpos+len(starttag)+1] \
+ + newmenu \
+ + filecontent[endpos:]
+
+
+ # Safety condition
+ if newcontent != filecontent and len (newcontent) > 100:
+ # Write content
+ fout = open (file, "w")
+ if not fout:
+ sys.stderr.write ("Unable to open file '%s' for writing.\n", file)
+ else:
+ fout.write (newcontent)
+ fout.close ()
+
+ sys.stdout.write (" Changed")
+
+ else:
+ # No changes
+ sys.stdout.write (" No changes")
+
+ else:
+ sys.stdout.write (" NO TAGS!")
+ newcontent = None
+
+ sys.stdout.write ("\n")
+
Propchange: incubator/ooo/ooo-site/trunk/content/fi/scripts/replace_menu.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/ooo/ooo-site/trunk/content/fi/scripts/replace_menu.py
------------------------------------------------------------------------------
svn:executable = *