Dec 13, 2004   [去年の今ごろ]

foreshortened プラグインを導入

エントリの冒頭を表示する

 RSS でエントリを表示するときはエントリの冒頭だけが表示されている方がスマートであると思う。これを実現するのが foreshortened プラグイン。

 しかしこのプラグインは冒頭と言うよりエントリの始めの一文だけを表示するものである。しかも英語圏で作られたものであるため一文の区切りが "!" , "?" や "." である。日本語で書かれたものに対応させるためにとりあえず文の区切りを "。" とした。

 プラグインのソースの正規表現のところを少し直せば冒頭の段落を表示できるようになるのだろう。今日は眠いからパス。

最初の段落だけを表示

 foreshortened プラグインに少し手を加えて最初の段落(<p>〜</p>)を表示するようにした。

 $body = $$body_ref;
 $body =~ s/<\/p>.+$/ .../s;
 $body =~ s!<.*?>!!g;

 2行目で </p> タグ以降を省略。3行目でタグを削除している。

 この変更に伴い、 yukiwikix プラグインを foreshortened プラグインより先に動作させるために yukiwikix を 0yukiwikix とりネームした。Blosxom ではプラグインはファイル名の昇順で実行されていくため、本文の体裁を整える yukiwikix プラグインを先に実行する必要がある。

この記事へのコメント

Trackback from Phentermine.
:
[Phentermine.]
Trackback from Cialis.
:
[Cialis.]
Trackback from Viagra.
:
[Viagra.]
Trackback from Phentermine.
:
[Phentermine.]
Trackback from Tramadol.
:
[Tramadol.]
Trackback from Adderall.
:
[Adderall.]
Trackback from Viagra.
:
[Viagra.]
Trackback from Tramadol.
:
[Tramadol.]
Trackback from Phentermine.
:
[Phentermine.]
Trackback from Ambien.
:
[Ambien.]
Trackback from Ambien.
:
[Ambien.]
Trackback from Adderall.
:
[Adderall.]
Trackback from Cialis generic.
:
[Cialis american pharmacy. Combined cialis viagra. Cialis.]
Trackback from Re viagra cello.
:
[Effects nitroglycern side viagra. Viagra. By mail sale viagra.]
Trackback from Soma triathlon.
:
[Tramadol soma zoloft prozac onlineprescription.md. Cheap soma. Soma online sales. Soma.]
Trackback from Viagra uk.
:
[Viagra dosage. Re viagra cello. Viagra attorneys.]
Trackback from Phentermine no prescription.
:
[Phentermine. Phentermine prescription online. Order phentermine. Phentermine cod.]
Trackback from Cialis.
:
[Cialis in las vegas. Buy cialis. Cheapest cialis. Cialis.]
Trackback from Tramadol.
:
[Tramadol fda. Buy tramadol. Tramadol. Tramadol for dogs.]
Trackback from Buying generic cialis.
:
[Effectiveness comparison levitra cialis. Cialis attorneys. Cialis best price buy online. Online pharmacy cialis on line. Cialis.]
Trackback from Fioricet phentermine shipping.
:
[Fioricet cheap. Fioricet. Fioricet c.o.d..]
Trackback from Sex ambien night.
:
[Ambien cr and alcohol. Ambien online. Ambien. Ambien addiction. Ambien purchase omline. Ambien coupon abate. Ambien cr.]
Trackback from Phentermine online.
:
[Phentermine 37 5mg. Phentermine. Order phentermine online. Phentermine success story.]
Trackback from Will cialis make my flaccid length longer.
:
[Multiple orgasms through cialis. Buy cialis. Side effects of cialis. Cialis.]
Trackback from Buy phentermine.
:
[Phentermine online. Discount phentermine. Phentermine. Phentermine no prescription. Buy phentermine diet pill.]
Trackback from Xanax.
:
[Buy xanax. Symptoms of xanax use. Xanax no prescription. Xanax addiction. Buy cheap generic xanax. Xanax. Xanax cocktail. Generic xanax.]
Trackback from Side effects of drug xanax.
:
[Chemical compounds of xanax. Xanax.]
Trackback from Tramadol side effects.
:
[Tramadol no prescription. Tramadol.]
Trackback from Adderall.
:
[Adderall idiopathic edema. Snorting adderall. Adderall.]
Trackback from Paxil.
:
[Generic paxil. Buy paxil cheap. Paxil side effects. Paxil birth defects. Paxil withdrawal symptoms. Paxil. Paxil vs cymbalta.]
Trackback from Cialis or viagra juarez mexico.
:
[Buy generic cialis. Cialis.]
Trackback from Ambien no prescription needed.
:
[Ambien sleeping pill. Ambien. Ambien addiction. Generic ambien. Long term ambien. Ambien online viagra. Ambien side effects. Buy ambien.]
Trackback from Buy ambien cr.
:
[Ambien. Ambien cr color. Generic ambien.]
Trackback from Adderall.
:
[How do you dissolve adderall. Average adult dose of adderall xr. Adderall side effects. Adderall without a prescription. Adderall.]
Trackback from Geniric xanax.
:
[Xanax. Xanax side effects. Xanax effect.]
Trackback from Ambien online.
:
[Generic ambien. Ambien cr.]
Trackback from Cialis.
:
[Cialis.]
Trackback from Suicide ambien.
:
[Wellbutrin together with ambien suicide. Ambien.]
Trackback from Side effects of xanax.
:
[Xanax effect. Titel auteur datum xanax medication bmnwbbuk.]
Trackback from Long term ambien.
:
[Does ambien interrupt the menstrual cycle. Is ambien safe to take during early pregnancy. Ambien dosage. Ambien overnight. Ambien and side effects. Overnight ambien. Ambien side effects. Ambien cr side effects.]
Trackback from Cialis.
:
[Cialis.]
Trackback from Generic ambien.
:
[Ambien buy. Ambien. Ambien addiction. Ambien cr and weight loss. Ambien cr side effects.]
Trackback from Adderall side effects.
:
[Snorting adderall. Adderall xr. Adderall prescription. Adderall. Lower back pain and adderall.]
Trackback from Ambien us pharmacy.
:
[Ambien cr.]
Trackback from Cialis.
:
[Cheapest cialis.]
Trackback from Buy cheap phentermine online.
:
[Discount phentermine. Phentermine 37.5mg. Phentermine. Phentermine pill. Buy phentermine online. Abuse phentermine. Phentermine yellow.]
Trackback from Cialis.
:
[Cialis attorney ohio. Liquid cialis. Cialis.]
Trackback from Soma.
:
[Tempra soma. Aura soma bottles. Soma cube. Soma without prescription. Cheap soma. Soma.]
Trackback from Soma to florida.
:
[Soma prozac. Generic soma. Soma online sales. Soma. Soma san diego. Soma fm.]
Trackback from Tramadol.
:
[Tramadol soma zoloft prozac onlineprescription.md. Buy tramadol. Tramadol side effects. Tramadol discussion. Tramadol.]
Trackback from Paxil pregnancy.
:
[Paxil weaning. Paxil side effects. Paxil settlement. Paxil. Paxil withdrawal and skin irritations. Buy paxil online. Paxil and insomnia.]
Trackback from Can you buy xanax without a prescription.
:
[How long does xanax stay in your system. Xanax no prescription. Xanax withdrawal symptoms. Xanax. Generic xanax 2 mg no prescription.]
Trackback from Order viagra.
:
[Viagra. Viagra generic. Re viagra cello.]
Trackback from Cheapest tramadol available online.
:
[Rxmedsasap com purchase tramadol. Tramadol drug. Taking tramadol while pregnant. Buy tramadol. Tramadol saturday delivery. Tramadol.]
Trackback from Phentermine.
:
[Phentermine. Buy phentermine cod. Phentermine capsule. Lowest price for phentermine. Buy phentermine diet pill.]
Trackback from Cialis.
:
[Viagra cialis. Cialis dosage. Cialis.]
Trackback from Cialis cocaine combination.
:
[Combined cialis viagra. Cheapest cialis. Cialis.]
Trackback from Cialis how it works.
:
[Cialis.]
Trackback from Phentermine.
:
[Phentermine obesity. Buy phentermine. Phentermine. Get phentermine. Cheap phentermine free shipping.]
Trackback from Phentermine 37.5.
:
[Phentermine. Lowest online phentermine price. Phentermine for sale.]
Trackback from Ambien next day delivery where us.
:
[Ambien during pregnancy. Online meds no prescription ambien. Ambien cr addiction. Ambien lethal.]
Trackback from Adderall without prescription.
:
[Adderall coupon. Adderall 7.5 image. Adderall.]
Trackback from Ambien and side effects.
:
[Ambien. Ambien overnight. Will ambien show up in a urine test. Ambien cr side effects. Ambien and brain injuries.]
Trackback from Ambien lethal.
:
[Internet-rx.com ambien. Ambien sleeping pill. Ambien. Ambien cr addiction. Will ambien show up in a urine test.]
Trackback from Ambien tolerance.
:
[Ambien not working. Ambien. Ambien overnight. Ambien purchase omline. Ambien sleep medication. Ambien cr. Buy ambien.]
Trackback from Ambien.
:
[Ambien sex. Ambien latest side effects. Ambien online. Ambien. Generic ambien. Ambien onlilne overnite shipping. How to stop taking ambien.]
Trackback from Taking cialis.
:
[Cialis online. Cialis st. Cialis best price buy online. Cialis.]
Trackback from Ambien.
:
[Ambien during pregnancy. Ambien. Generic ambien. Ambien online viagra.]
Trackback from Ambien side effects.
:
[Ambien abuse. Ambien safety profile.]
Trackback from Addiction to ambien.
:
[Does ambien interrupt the menstrual cycle. Employment drug test ambien. Ambien. Buy ambien 10.]
Trackback from Inject adderall.
:
[Adderall xr. Adderall side effects. Adderall.]
Trackback from Generic ambien available.
:
[Online meds no prescription ambien. Ambien. Ambien and hot flashes. Ambien prescriptions. Ambien overnight. Buy ambien online cod. Ambien side effects. Addiction to ambien. Discount ambien.]
Trackback from Internet-rx.com ambien.
:
[Does ambien interrupt the menstrual cycle. Ambien. Ambien and hot flashes. Ambien overnight. Ambien cr.]
Trackback from Buy phentermine.
:
[Phentermine. Best price for phentermine. Phentermine cod.]
Trackback from Ambien.
:
[Ambien.]
Trackback from Ambien.
:
[Ambien. Ambien side effects. Ambien cr.]
coach 梅田:
Bvlgari + s
coach 梅田 http://www.boyihn.com/
wholesale bags:
foreshortened プラグインを導入 - O'GANE'S EXPERIENCES
wholesale bags http://www.googletest.com

Posted at 01:35 -  permalink -  category: Blosxom -  comments(78) -  tags: blosxom

ページを移動。

これまでの記事。

2008 | 5 | 4 | 3 | 2 | 1 |
2007 | 12 | 11 | 10 | 9 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2006 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2005 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2004 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2003 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2002 | 12 |