=== Force Wave  Dash ===
Contributors: IKEDA Yuriko (lilyfan)
Tags: wave-dash, wavedash, tild, fullwidth-tild, unicode, utf8, japanese
Requires at least: 2.0
Tested up to: 2.9
Stable tag: 1.0.0

"Force WaveDash" is a filter plugin to force using "WAVE DASH" characters 
other than "FULLWIDTH TILD".

== Description ==

When using Unicode in Japanese, there is "WAVE DASH Problem".

In Japanese, the punctuation called wave dash "〜" is used for various purposes:
* growing the end of the word (e.g. "え〜")
* showing range between two words (e.g. "東京〜大阪")
* decoration for a title (e.g. "〜〜波ダッシュとは〜〜")

But, the Unicode charcter sets has two different code for wave-shape characters.
One is U+301C "〜" as "WAVE DASH", the other one is U+FF5E "～" as "FULLWIDTH TILD".
Moreover, Microsoft Windows mainly uses U+FF5E, and other enviornments (such as 
Mac OS X, Linux, Perl, PHP, Java) mainly uses U+301C.

"WAVE DASH problem" is a phenomenon that different "wave-shape characters" are 
mixed in Unicode texts. 
For example, below cases will occur:

(1) A Mac OS X or Linux user have chance to borrow a Microsoft Windows computer 
    to update the weblog, some FULLWIDTH TILD mixed!!
    (Because Windows uses FULLWIDTH TILD.)

(2) A Windows user who uses mainly FULLWIDTH TILD in his/her weblog, tried to 
    post using mobile phone. Some WAVE DASH will be included.
    (Because converting the encoding ISO-2022-JP (for Japanese mail messages) 
     into UTF-8 with PHP function "mb_convert_encoding" results WAVE DASH.)

This plugin tries to solve the problem by replacing all "FULLWIDTH TILD" characters 
into "WAVE DASH" ones in posts, pages, comments, categories, tags, blogroll (bookmarks), 
and etc when you create, edit, and show them.

The root cause is that Microsoft Windows uses "FULLWIDTH TILD" insted of "WAVE DASH".
Better character code should be "WAVE DASH" because other enviornments uses it.
This plugin force to use "WAVE DASH" by converting FULLWIDTH TILDs into them.

Also see below:
http://en.wikipedia.org/wiki/Wave_dash#Japanese

Below are Japanese articles:
* http://slashdot.jp/%7Eyasuoka/journal/357074
* http://www.asahi-net.or.jp/%7Ewq6k-yn/code/wavedash.html

== Requirements ==

* WordPress 2.0 or later
* PHP 4.3 or later
* UTF-8 encoding for weblog (This plugin is no use for EUC-JP, Shift_JIS weblogs)

== Installation ==

Extract a package and send the force-wave-dash folder into the plugin directory 
(wp-content/plugins/) of your weblog.
And enable this plugin at plugins admin panel.

== Licence ==

The licence of this plugin is GPL v2.

== FAQ ==

* Previously existing FULLWIDTH TILD characters in your blog DB will be only touched 
  when you edit them. This plugin does NOT support bulk replace of FULLWIDTH TILD.
  If you want to replace all FULLWIDTH characters into WAVE DASH, try export 
  the weblog and replace them with text editors, and import.
* This plugin does NOT replace FULLWIDTH TILDs in blog title, blog tagline when 
  editing them. (There is no filter hook in WordPress to replace them.)
* If you search words including WAVE DASH or FULLWIDTH TILD, the result will not 
  cover all wish result. Because, the search will ignore previously remained 
  FULLWIDTH TILD in weblog DB. 
* Before and eaqual to Microsoft Windows XP, the font rendering of "WAVE DASH" 
  is ugly. Therefore all "wave-shape character" will seen as dirty. Use Vista 
  or Windows 7 insted.
* With some mobile phone or PDA (especilly Windows CE, Windows Mobile), 
  WAVE DASHes are garbling into "?", "・", or "□". In these terminals, there is 
  no font assinged for WAVE DASH.

== Changelog ==

= 1.0.0 (2009-01-01) =
* Change distributing site to Official WordPress Plugins repository.
* Replace FULLWIDTH TILD in categories, tags, blogrolls (bookmarks) when to create or edit them.
* Replace blog title, blog tagline when showing them.
* Use preg_replace() with "u" modifier insted of mb_ereg_replace().
* Better replacing not to be garbled when creating or editing posts for MySQL 4.1 or later.

= 0.81 (2008-03-23) =
* Replace FULLWIDTH TILD in categories, tags when showing them.
  (NOT replace when create, edit them)

= 0.80 (2007-11-20) =
* Replace FULLWIDTH TILD in excerpts, comment authers, comment contents when show, create, or edit them.
* Replace FULLWIDTH TILD in search strings.
* Stop using binary of FULLWIDTH TILD and WAVE DASH to avoid damaging when opening the plugin PHP file by text editors.

= 0.73 (2007-03-29) =
* Stop checking that the PHP internal encoding is UTF-8. Use mb_internal_encoding() at converting.

= 0.72 (2007-03-13) =
* Replace FULLWIDTH TILD in post titles, windows titles when showing them.
* Fixed problem that not replacing FULLWIDTH TILD with other plugins (such as Ktai Location).

= 0.71 (2007-03-07) =
* Change distributing site to WordPress Plugins/JSeries (An alternatibe repository in Japan)
* Check the PHP internal encoding is UTF-8

= 0.70 (2007-03-01) =
* Initial release.
