;;; sb-sankei.el --- shimbun backend for the Sankei Shimbun -*- coding: iso-2022-7bit; -*- ;; Copyright (C) 2003, 2004 Katsumi Yamaoka ;; Author: Katsumi Yamaoka ;; Keywords: news ;; This file is a part of shimbun. ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, you can either send email to this ;; program's maintainer or write to: The Free Software Foundation, ;; Inc.; 59 Temple Place, Suite 330; Boston, MA 02111-1307, USA. ;;; Commentary: ;;; Code: (require 'shimbun) (luna-define-class shimbun-sankei (shimbun-japanese-newspaper shimbun) ()) (defvar shimbun-sankei-top-level-domain "sankei.co.jp" "Name of the top level domain for the Sankei shimbun.") (defvar shimbun-sankei-url (concat "http://www." shimbun-sankei-top-level-domain "/") "Name of the parent url.") (defvar shimbun-sankei-server-name "産経新聞") (defvar shimbun-sankei-from-address (concat "webmaster@" shimbun-sankei-top-level-domain)) (defvar shimbun-sankei-content-start "[\t\n ]*") (defvar shimbun-sankei-content-end "[\t\n ]*") (defvar shimbun-sankei-group-table '(("shakai" "社会" "news/shakai.htm") ("sports" "スポーツ" "news/sports.htm") ("keizai" "経済" "news/keizai.htm") ("seiji" "政治" "news/seiji.htm") ("kokusai" "国際" "news/kokusai.htm") ("bungei" "文化・芸能" "news/bungei.htm") ("book" "読書" "news/book.htm") ("person" "ひと" "news/person.htm") ("dead" "おくやみ" "news/dead.htm"))) (defvar shimbun-sankei-x-face-alist '(("default" . "X-Face: J@?(qGKd~^Tfa]pqTbgVxl61=+G\"Y?}\"]ly',1[6oe\n *b+4?PL^)c5+h&[O=$SZ}D\"I%>\ DP\\h.OTct|k28-/c`^B-=cDXV;.>3w`/X_.'n$~,<$:3nNe#Jy8Q\n 5l[|\"#w"))) (defvar shimbun-sankei-expiration-days 7) (luna-define-method shimbun-groups ((shimbun shimbun-sankei)) (mapcar 'car shimbun-sankei-group-table)) (luna-define-method shimbun-current-group-name ((shimbun shimbun-sankei)) (nth 1 (assoc (shimbun-current-group-internal shimbun) shimbun-sankei-group-table))) (luna-define-method shimbun-index-url ((shimbun shimbun-sankei)) (concat (shimbun-url-internal shimbun) (nth 2 (assoc (shimbun-current-group-internal shimbun) shimbun-sankei-group-table)))) (luna-define-method shimbun-get-headers ((shimbun shimbun-sankei) &optional range) (when (re-search-forward "[\t\n ]*" nil t) (delete-region (point-min) (point))) (when (re-search-forward "[\t\n ]*" "") ;; Remove an advertisement between photo and hombun. (shimbun-remove-tags "" "") (goto-char (point-min))) (provide 'sb-sankei) ;;; sb-sankei.el ends here