これは Wordpress プラグイン WP Glossary Hover(https://ja.wordpress.org/plugins/wp-glossary-hover/) のフォークです。 日本語のホバー辞書に対応しています。 - 辞書はカスタマイズできます。 - 記事を書くと自動でツールチップを反映 - 余分な空白文字は不要 ホバー対象のタグの検索には phpflashtext ( https://github.com/shdev/phpflashtext )をつかっています。 私はphpを書いたのも初めてですし、wordpressとかphpのお作法がわからないので、github においておきます。 original Readme follows === WP Glossary Hover === Contributors: chorton2227 Tags: glossary, hover, definition Requires at least: 3.5.1 Tested up to: 4.9.6 Stable tag: 1.3.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html When hovering over a word or phrase show the user created definition. == Description == WP Glossary Hover adds helpful tooltips to user defined glossary terms. Terms are highlighted and when hovered over shows the term definition. = Features = * Only highlight first occurrence of term. * Specify if glossary terms are case sensitive. * Enable by post type, i.e. specify if posts, pages, etc. are parsed for terms. * Protect certain html tags, e.g. headers, links, quotes, etc., from being parsed for terms. * Uses [jQuery UI Tooltips](http://jqueryui.com/tooltip/), with ability to custom various settings and themes. * Style highlighted terms, i.e. change color and underline style. == Installation == = Using The WordPress Dashboard = 1. Navigate to the 'Add New' in the plugins dashboard 2. Search for 'WP Glossary Hover' 3. Click 'Install Now' 4. Activate the plugin on the Plugin dashboard = Uploading in WordPress Dashboard = 1. Navigate to the 'Add New' in the plugins dashboard 2. Navigate to the 'Upload' area 3. Select `wp-glossary-hover.zip` from your computer 4. Click 'Install Now' 5. Activate the plugin in the Plugin dashboard = Using FTP = 1. Download `wp-glossary-hover.zip` 2. Extract the `wp-glossary-hover` directory to your computer 3. Upload the `wp-glossary-hover` directory to the `/wp-content/plugins/` directory 4. Activate the plugin in the Plugin dashboard == Screenshots == 1. A screenshot of the general options tab for the plugin. 2. A screenshot of the tooltip options tab for the plugin. 3. A screenshot of the styles options tab for the plugin. 4. A screenshot of the tooltip in action. == Changelog == = 1.3.0 = * Add 'u' modifier to term regex pattern, support 'non-Latin' characters. * Update to jquery-ui 1.11.4. * Only show the bottom border for tooltips. = 1.2.3 = * Fix errors in versions of php earlier than php 5.4. * Remove the '...' when not limiting the characters in the definition. = 1.2.2 = * Fix encoding between html and xml entities. = 1.2.1 = * Decode html entities before adding them as xml. * Add new link underline style `none`. * Remove extra markup `<!DOCTYPE><html><body></body></html>` generated by DomDocument. * When limiting the number of characters in the definition tooltip, end at the end of a word, and trim all non alpha-numeric characters. = 1.2.0 = * Enabled comment support for glossary terms. * Added to enable links to glossary term pages. * Added setting to limit the tooltip length. * Escape html sepcial characters in definition. * Strip tags in tooltip definition, instead of escaping tags. * Fix description for `Enabled Post Types` setting. = 1.1.0 = * Fix fatal error on install. * Remove test code in uninstall.php. = 1.0.1 = * Update README.txt. = 1.0.0 = * First release of plugin.