[Pkg-mozext-commits] [sage-extension] 25/49: This commit was manufactured by cvs2svn to create branch 'sage_1_3-branch'.
David Prévot
taffit at moszumanska.debian.org
Fri May 1 03:10:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag sage_1_3_10
in repository sage-extension.
commit cceac0d8818ebb9987d38a0efcb318eb97b4c809
Author: Peter Andrews <petea at jhu.edu>
Date: Wed Aug 10 18:18:22 2005 +0000
This commit was manufactured by cvs2svn to create branch
'sage_1_3-branch'.
---
src/sage/content/filterhtmlhandler.js | 165 +++++++++++++++++++++++++++++++++
src/sage/content/simplehtmlparser.js | 167 ++++++++++++++++++++++++++++++++++
src/sage/locale/da-DK/contents.rdf | 14 +++
src/sage/locale/da-DK/opml.dtd | 13 +++
src/sage/locale/da-DK/sage.dtd | 71 +++++++++++++++
src/sage/locale/da-DK/sage.properties | 79 ++++++++++++++++
6 files changed, 509 insertions(+)
diff --git a/src/sage/content/filterhtmlhandler.js b/src/sage/content/filterhtmlhandler.js
new file mode 100644
index 0000000..140581d
--- /dev/null
+++ b/src/sage/content/filterhtmlhandler.js
@@ -0,0 +1,165 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Sage.
+ *
+ * The Initial Developer of the Original Code is
+ * Erik Arvidsson <erik at eae.net>.
+ * Portions created by the Initial Developer are Copyright (C) 2005
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Peter Andrews <petea at jhu.edu>
+ * Erik Arvidsson <erik at eae.net>
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+/**
+ * This class creates a simple handler for SimpleHtmlParser that filters out
+ * potentially unsafe HTML code
+ */
+function FilterHtmlHandler() {
+ this._sb = [];
+}
+
+FilterHtmlHandler.prototype = {
+
+ _inBlocked: null,
+
+ clear: function () {
+ this._sb = [];
+ },
+
+ toString: function () {
+ return this._sb.join("");
+ },
+
+// handler interface
+
+ startElement: function (sTagName, attrs) {
+ if (this._inBlocked) {
+ return;
+ }
+
+ var ls = sTagName.toLowerCase();
+ switch (ls) {
+ case "embed":
+ case "link":
+ case "meta":
+ case "applet":
+ case "object":
+ case "frame":
+ case "frameset":
+ case "iframe":
+ case "font":
+ case "center":
+ return;
+
+ case "script":
+ case "style":
+ this._inBlocked = ls;
+ break;
+
+ default:
+ this._sb.push("<" + sTagName);
+ }
+
+ if (!this._inBlocked) {
+ for (var i = 0; i < attrs.length; i++) {
+ this.attribute(sTagName, attrs[i].name, attrs[i].value);
+ }
+ this._sb.push(">");
+ }
+ },
+
+ endElement: function (s) {
+ var ls = s.toLowerCase();
+ switch (ls) {
+ case "embed":
+ case "applet":
+ case "object":
+ case "frame":
+ case "frameset":
+ case "iframe":
+ case "font":
+ case "center":
+ return;
+ }
+ if (this._inBlocked) {
+ if (this._inBlocked == ls) {
+ this._inBlocked = null;
+ }
+ return;
+ }
+ this._sb.push("</" + s + ">");
+ },
+
+ attribute: function (sTagName, sName, sValue) {
+ if (this._inBlocked) {
+ return;
+ }
+
+ var nl = sName.toLowerCase();
+ var vl = String(sValue).toLowerCase(); // might be null
+
+ switch (nl) {
+ case "align":
+ case "style":
+ return;
+ }
+
+ if (nl == "type" && vl == "text/css" ||
+ nl == "rel" && vl == "stylesheet") {
+ this._sb.push(" " + sName + "=\"BLOCKED\"");
+ } else if (nl.substr(0,2) == "on") {
+ //noop
+ } else if ((nl == "href" || nl == "src" || nl == "data" || nl == "codebase") &&
+ /^javascript\:/i.test(vl)) {
+ //noop
+ } else if (nl == "style") {
+ sValue = sValue.replace(/\-moz\-binding/gi, "BLOCKED")
+ .replace(/binding/gi, "BLOCKED")
+ .replace(/behavior/gi, "BLOCKED")
+ .replace(/\:\s*expression\s*\(/gi, ":BLOCKED(");
+ this._sb.push(" " + sName + "=\"" + sValue + "\"");
+ } else {
+ if (sValue == null) {
+ this._sb.push(" " + sName);
+ } else {
+ this._sb.push(" " + sName + "=\"" + sValue + "\"");
+ }
+ }
+ },
+
+ characters: function (s) {
+ if (!this._inBlocked) {
+ this._sb.push(s);
+ }
+ },
+
+ comment: function (s) {
+ //this._sb.push(s);
+ }
+};
diff --git a/src/sage/content/simplehtmlparser.js b/src/sage/content/simplehtmlparser.js
new file mode 100644
index 0000000..572f3f3
--- /dev/null
+++ b/src/sage/content/simplehtmlparser.js
@@ -0,0 +1,167 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Sage.
+ *
+ * The Initial Developer of the Original Code is
+ * Erik Arvidsson <erik at eae.net>.
+ * Portions created by the Initial Developer are Copyright (C) 2005
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Peter Andrews <petea at jhu.edu>
+ * Erik Arvidsson <erik at eae.net>
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+/*
+var handler = {
+ startElement: function (sTagName, oAttrs) {},
+ endElement: function (sTagName) {},
+ characters: function (s) {},
+ comment: function (s) {}
+};
+*/
+
+function SimpleHtmlParser() {}
+
+SimpleHtmlParser.prototype = {
+
+ handler: null,
+
+ // regexps
+
+ startTagRe: /^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,
+ endTagRe: /^<\/([^>\s]+)[^>]*>/m,
+ attrRe: /([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,
+
+ parse: function (s, oHandler) {
+ if (oHandler) {
+ this.contentHandler = oHandler;
+ }
+
+ var i = 0;
+ var res, lc, lm, rc, index;
+ var treatAsChars = false;
+ var oThis = this;
+ while (s.length > 0) {
+ // Comment
+ if (s.substring(0, 4) == "<!--") {
+ index = s.indexOf("-->");
+ if (index != -1) {
+ this.contentHandler.comment(s.substring(4, index));
+ s = s.substring(index + 3);
+ treatAsChars = false;
+ } else {
+ treatAsChars = true;
+ }
+ // end tag
+ } else if (s.substring(0, 2) == "</") {
+ if (this.endTagRe.test(s)) {
+ lc = RegExp.leftContext;
+ lm = RegExp.lastMatch;
+ rc = RegExp.rightContext;
+
+ lm.replace(this.endTagRe, function () {
+ return oThis.parseEndTag.apply(oThis, arguments);
+ });
+
+ s = rc;
+ treatAsChars = false;
+ } else {
+ treatAsChars = true;
+ }
+ // start tag
+ } else if (s.charAt(0) == "<") {
+ if (this.startTagRe.test(s)) {
+ lc = RegExp.leftContext;
+ lm = RegExp.lastMatch;
+ rc = RegExp.rightContext;
+
+ lm.replace(this.startTagRe, function () {
+ return oThis.parseStartTag.apply(oThis, arguments);
+ });
+
+ s = rc;
+ treatAsChars = false;
+ } else {
+ treatAsChars = true;
+ }
+ }
+
+ if (treatAsChars) {
+ index = s.indexOf("<");
+ if (index == -1) {
+ this.contentHandler.characters(s);
+ s = "";
+ } else {
+ if (index == 0) { // in case we got a < in the character stream
+ index++;
+ }
+ this.contentHandler.characters(s.substring(0, index));
+ s = s.substring(index);
+ }
+ }
+
+ treatAsChars = true;
+ }
+ },
+
+ parseStartTag: function (sTag, sTagName, sRest) {
+ var attrs = this.parseAttributes(sTagName, sRest);
+ this.contentHandler.startElement(sTagName, attrs);
+ },
+
+ parseEndTag: function (sTag, sTagName) {
+ this.contentHandler.endElement(sTagName);
+ },
+
+ parseAttributes: function (sTagName, s) {
+ var oThis = this;
+ var attrs = [];
+ s.replace(this.attrRe, function () {
+ var args = [sTagName];
+ for (var i = 0; i < arguments.length; i++) {
+ args.push(arguments[i]);
+ }
+ attrs.push(oThis.parseAttribute.apply(oThis, args));
+ });
+ return attrs;
+ },
+
+ parseAttribute: function (sTagName, sAttribute, sName) {
+ var value = "";
+ if (arguments[7]) {
+ value = arguments[8];
+ } else if (arguments[5]) {
+ value = arguments[6];
+ } else if (arguments[3]) {
+ value = arguments[4];
+ }
+
+ var empty = !value && !arguments[3];
+ return {name: sName, value: empty ? null : value};
+ }
+};
diff --git a/src/sage/locale/da-DK/contents.rdf b/src/sage/locale/da-DK/contents.rdf
new file mode 100755
index 0000000..648d531
--- /dev/null
+++ b/src/sage/locale/da-DK/contents.rdf
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
+ <RDF:Seq about="urn:mozilla:locale:root">
+ <RDF:li resource="urn:mozilla:locale:da-DK"/>
+ </RDF:Seq>
+ <RDF:Description about="urn:mozilla:locale:da-DK">
+ <chrome:packages>
+ <RDF:Seq about="urn:mozilla:locale:da-DK:packages">
+ <RDF:li resource="urn:mozilla:locale:da-DK:sage"/>
+ </RDF:Seq>
+ </chrome:packages>
+ </RDF:Description>
+</RDF:RDF>
diff --git a/src/sage/locale/da-DK/opml.dtd b/src/sage/locale/da-DK/opml.dtd
new file mode 100755
index 0000000..f8c03e5
--- /dev/null
+++ b/src/sage/locale/da-DK/opml.dtd
@@ -0,0 +1,13 @@
+<!ENTITY pageStart.label "OPML Import-/eksport-guide">
+<!ENTITY pageStart.desc "Vælg en handling">
+<!ENTITY pageImport.label "Importer OPML">
+<!ENTITY pageImport.desc "Vælg Importer OPML-fil">
+<!ENTITY pageExport.label "Eksporter OPML">
+<!ENTITY pageExport.desc "Vælg Eksporter OPML-fil">
+<!ENTITY rdoImport.label "Importer OPML">
+<!ENTITY rdoExport.label "Eksporter OPML">
+<!ENTITY browseButton.label "Gennemse...">
+<!ENTITY pageImportFinished.label "Importer OPML">
+<!ENTITY pageImportFinished.desc "Importering færdig">
+<!ENTITY pageExportFinished.label "Eksporter OPML">
+<!ENTITY pageExportFinished.desc "Eksportering færdig">
diff --git a/src/sage/locale/da-DK/sage.dtd b/src/sage/locale/da-DK/sage.dtd
new file mode 100755
index 0000000..26b613d
--- /dev/null
+++ b/src/sage/locale/da-DK/sage.dtd
@@ -0,0 +1,71 @@
+<!ENTITY sage.label "Sage">
+<!ENTITY sage.version.label "version">
+<!ENTITY sage.toolbarLabel "Sage">
+<!ENTITY sage.sidebarTitle "Sage">
+<!ENTITY sage.tooltip "Vis Sage">
+<!ENTITY menu.view "Vis">
+<!ENTITY menu.showSearchBar "Vis søgefelt">
+<!ENTITY menu.showFeedItemList "Vis feed-oversigt">
+<!ENTITY menu.showFeedItemListToolbar "Vis feed-værktøjslinjen">
+<!ENTITY menu.showDescTooltip "Vis popop-hjælp">
+<!ENTITY menu.openHTML "Vis feeds i hovedvinduet">
+<!ENTITY menu.tools "Indstillinger">
+<!ENTITY menu.checkUpdate "Opdater feeds">
+<!ENTITY menu.manageRSSList "Håndter feeds...">
+<!ENTITY menu.opmlImportExport "OPML Import/Eksport...">
+<!ENTITY menu.setting "Indstillinger...">
+<!ENTITY menu.sageProjectFeed "Sage projekt-nyheder">
+<!ENTITY menu.discoverFeeds "Find feeds">
+<!-- Feed Discovery -->
+<!ENTITY discovery.status.searching "Leder på den aktuelle side">
+<!ENTITY discovery.button.addFeed "Tilføj feed">
+<!ENTITY discovery.button.close "Luk">
+<!ENTITY discovery.header.title "Titel">
+<!ENTITY discovery.header.format "Format">
+<!ENTITY discovery.header.lastPubDate "Senest opdateret">
+<!ENTITY discovery.header.itemCount "Feeds">
+<!ENTITY discovery.header.url "URL">
+<!-- Settings Dialog -->
+<!ENTITY settings.general.caption "Generelt">
+<!ENTITY settings.autoFeedTitle.label "Opdater feeds automatisk">
+<!ENTITY settings.renderFeeds.label "Vis feeds i hovedvinduet">
+<!ENTITY settings.twelveHourClock.label "Brug 12-timers ur">
+<!ENTITY settings.feedItemOrder.label "Rækkefølge">
+<!ENTITY settings.feedItemOrder.chrono "Kronologisk">
+<!ENTITY settings.feedItemOrder.source "Feed">
+<!ENTITY settings.feedDiscoveryMode.label "Feed-søgning">
+<!ENTITY settings.feedDiscoveryMode.exhaustive "Grundig">
+<!ENTITY settings.feedDiscoveryMode.conservative "Almindelig">
+<!ENTITY settingWindow.title "Gem indstillinger">
+<!ENTITY selectFolder.label "Vælg feedmappe">
+<!ENTITY openInContentsArea.caption "Feed-visning">
+<!ENTITY enableUserCss.label "Brug eget stilark">
+<!ENTITY browseCss.label "Gennemse...">
+<!ENTITY allowEContent.label "Tillad HTML-tags">
+
+<!ENTITY openSageSidebar.commandkey "S">
+<!ENTITY openSageSidebar.modifiersKey "alt">
+<!-- These are taken from history.dtd -->
+<!ENTITY openLinkInWindow.label "Åbn">
+<!ENTITY openLinkInWindow.accesskey "Å">
+<!ENTITY openInNewTab.label "Åbn i nyt faneblad">
+<!ENTITY openInNewTab.accesskey "F">
+<!ENTITY openInNewWindow.label "Åbn i nyt vindue">
+<!ENTITY openInNewWindow.accesskey "V">
+<!-- Read State -->
+<!ENTITY markAsRead.command.label "Marker som læst">
+<!ENTITY markAsRead.command.tooltip "Marker som læst">
+<!ENTITY markAsRead.command.accesskey "L">
+<!ENTITY markAsUnread.command.label "Marker som ulæst">
+<!ENTITY markAsUnread.command.tooltip "Marker som ulæst">
+<!ENTITY markAsUnread.command.accesskey "U">
+<!ENTITY markAllAsRead.command.label "Marker alle som læste">
+<!ENTITY markAllAsRead.command.tooltip "Marker alle som læste">
+<!ENTITY markAllAsRead.command.accesskey "A">
+<!ENTITY markAllAsRead.command.key "C">
+<!ENTITY markAllAsRead.command.modifiers "accel shift">
+<!ENTITY markAllAsUnread.command.label "Marker alle som ulæste">
+<!ENTITY markAllAsUnread.command.tooltip "Marker alle som ulæste">
+<!ENTITY markAllAsUnread.command.accesskey "k">
+<!ENTITY toggleReadState.command.key "M">
+
diff --git a/src/sage/locale/da-DK/sage.properties b/src/sage/locale/da-DK/sage.properties
new file mode 100755
index 0000000..0cc596c
--- /dev/null
+++ b/src/sage/locale/da-DK/sage.properties
@@ -0,0 +1,79 @@
+RESULT_OK_STR = OK
+RESULT_PARSE_ERROR_STR = XML-fejl
+RESULT_NOT_RSS_STR = Feed-fejl
+RESULT_NOT_FOUND_STR = Fil ikke fundet
+RESULT_NOT_AVAILABLE_STR = URL ikke fundet
+RESULT_ERROR_FAILURE_STR = Hente-fejl
+RESULT_LOADING = Henter
+RESULT_CHECKING = Opdaterer
+CHECK_UPDATE = Opdaterer feed
+GET_RSS_TITLE= Hent feed-titel
+
+# feed discovery messages
+discovery_external_feeds_category = Ekstern feed
+discovery_status_discovered = Fundet
+discovery_status_site_feed = site-feed
+discovery_status_site_feeds = site-feeds
+discovery_status_and = og
+discovery_status_external_feed = ekstern feed
+discovery_status_external_feeds = eksterne feeds
+discovery_status_none_found = Ingen feeds fundet
+
+# get feed title dialog
+get_feed_title = Ny kilde-titel
+
+# OPML wizzard
+opml_import_done = Importering f\u00E6rdig
+opml_export_done = Eksportering f\u00E6rdig
+opml_path_blank = V\u00E6lg en OPML-fil.
+opml_path_nofile = Den angivne fil findes ikke.
+opml_path_invalid = Ugyldig fil-sti.
+opml_import_fail = Import-fejl
+opml_import_badfile = Dette ser ikke ud til at v\u00E6re en OPML-fil.
+opml_export_nocreate = Fil-oprettelses-fejl
+opml_select_file = V\u00E6lg OPML-fil
+opml_opml_file = OPML-fil
+
+# settings
+css_select_file = V\u00E6lg CSS-fil
+css_css_file = CSS-fil
+
+# Date rendering values
+date_sunday = S\u00F8ndag
+date_sunday_short = S\u00F8n
+date_monday = Mandag
+date_monday_short = Man
+date_tuesday = Tirsdag
+date_tuesday_short = Tirs
+date_wednesday = Onsdag
+date_wednesday_short = Ons
+date_thursday = Torsdag
+date_thursday_short = Tors
+date_friday = Fredag
+date_friday_short = Fre
+date_saturday = L\u00F8rdag
+date_saturday_short = L\u00F8r
+date_january = Januar
+date_january_short = Jan
+date_february = Februar
+date_february_short = Feb
+date_march = Marts
+date_march_short = Mar
+date_april = April
+date_april_short = Apr
+date_may = Maj
+date_may_short = Maj
+date_june = Juni
+date_june_short = Jun
+date_july = Juli
+date_july_short = Jul
+date_august = August
+date_august_short = Aug
+date_september = September
+date_september_short = Sep
+date_october = Oktober
+date_october_short = Okt
+date_november = November
+date_november_short = Nov
+date_december = December
+date_december_short = Dec
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git
More information about the Pkg-mozext-commits
mailing list