src/js/find.js
function( selector ) {
    return (
    this
    .filter( selector || null )
    .avoid( 'h-jinze' )
    .replace(
      TYPESET.jinze.touwei,
      function( portion, match ) {
        var elem = $.create( 'h-jinze', 'touwei' )
        elem.innerHTML = match[0]
        return (( portion.index === 0 && portion.isEnd ) || portion.index === 1 ) ? elem : ''
      }
    )
    .replace(
      TYPESET.jinze.wei,
      function( portion, match ) {
        var elem = $.create( 'h-jinze', 'wei' )
        elem.innerHTML = match[0]
        return portion.index === 0 ? elem : ''
      }
    )
    .replace(
      TYPESET.jinze.tou,
      function( portion, match ) {
        var elem = $.create( 'h-jinze', 'tou' )
        elem.innerHTML = match[0]
        return (( portion.index === 0 && portion.isEnd ) || portion.index === 1 )
          ? elem : ''
      }
    )
    .replace(
      TYPESET.jinze.middle,
      function( portion, match ) {
        var elem = $.create( 'h-jinze', 'middle' )
        elem.innerHTML = match[0]
        return (( portion.index === 0 && portion.isEnd ) || portion.index === 1 )
          ? elem : ''
      }
    )
    .endAvoid()
    .endFilter()
    )
  }
function( selector ) {
    return (
    this
    .filter( selector || null )
    .avoid( 'h-jinze' )
    .replace(
      TYPESET.jinze.touwei,
      function( portion, match ) {
        var elem = $.create( 'h-jinze', 'touwei' )
        elem.innerHTML = match[0]
        return (( portion.index === 0 && portion.isEnd ) || portion.index === 1 ) ? elem : ''
      }
    )
    .replace(
      TYPESET.jinze.wei,
      function( portion, match ) {
        var elem = $.create( 'h-jinze', 'wei' )
        elem.innerHTML = match[0]
        return portion.index === 0 ? elem : ''
      }
    )
    .replace(
      TYPESET.jinze.tou,
      function( portion, match ) {
        var elem = $.create( 'h-jinze', 'tou' )
        elem.innerHTML = match[0]
        return (( portion.index === 0 && portion.isEnd ) || portion.index === 1 )
          ? elem : ''
      }
    )
    .replace(
      TYPESET.jinze.middle,
      function( portion, match ) {
        var elem = $.create( 'h-jinze', 'middle' )
        elem.innerHTML = match[0]
        return (( portion.index === 0 && portion.isEnd ) || portion.index === 1 )
          ? elem : ''
      }
    )
    .endAvoid()
    .endFilter()
    )
  }
function ( selector ) { return ( this . filter ( selector || null ) . avoid ( 'h-jinze' ) . replace ( TYPESET . jinze . touwei , function ( portion , match ) { var elem = $ . create ( 'h-jinze' , 'touwei' ) elem . innerHTML = match [ 0 ] return ( ( portion . index === 0 && portion . isEnd ) || portion . index === 1 ) ? elem : '' } ) . replace ( TYPESET . jinze . wei , function ( portion , match ) { var elem = $ . create ( 'h-jinze' , 'wei' ) elem . innerHTML = match [ 0 ] return portion . index === 0 ? elem : '' } ) . replace ( TYPESET . jinze . tou , function ( portion , match ) { var elem = $ . create ( 'h-jinze' , 'tou' ) elem . innerHTML = match [ 0 ] return ( ( portion . index === 0 && portion . isEnd ) || portion . index === 1 ) ? elem : '' } ) . replace ( TYPESET . jinze . middle , function ( portion , match ) { var elem = $ . create ( 'h-jinze' , 'middle' ) elem . innerHTML = match [ 0 ] return ( ( portion . index === 0 && portion . isEnd ) || portion . index === 1 ) ? elem : '' } ) . endAvoid ( ) . endFilter ( ) ) }
Force punctuation & biaodian typesetting rules to be applied.
Force punctuation & biaodian typesetting rules to be applied .