1<?php 2/** 3 * DokuWiki Plugin Typography; Syntax typography fontweight 4 * 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Satoshi Sahara <sahara.satoshi@gmail.com> 7 * 8 */ 9 10require_once(dirname(__FILE__).'/base.php'); 11 12class syntax_plugin_typography_fontweight extends syntax_plugin_typography_base 13{ 14 /** 15 * Connect pattern to lexer 16 */ 17 public function preConnect() 18 { 19 // drop 'syntax_' from class name 20 $this->mode = substr(get_class($this), 7); 21 22 // syntax pattern 23 $this->pattern[1] = '<fw\b.*?>(?=.*?</fw>)'; 24 $this->pattern[4] = '</fw>'; 25 } 26 27} 28