@@ -26,7 +26,7 @@ module.exports = class Notation {
2626 return this . config . conjunction ;
2727 }
2828 get ( query ) {
29- let q = Math . floor ( Number ( query . replace ( / , \s ? / g, "" ) ) ) . toString ( ) , t = 0 ;
29+ let q = Math . floor ( Number ( query . toString ( ) . replace ( / , \s ? / g, "" ) ) ) . toString ( ) , t = 0 ;
3030 if ( isNaN ( q ) ) {
3131 q = this . getUni ( query ) , t = 1 ;
3232 if ( q < 1 || isNaN ( q ) ) return false ;
@@ -53,8 +53,8 @@ module.exports = class Notation {
5353 if ( this . config . task . length ) {
5454 this . config . task = [ ] ;
5555 return {
56- // " sense" :this.requestCreakyTone(q)
57- " sense" :this . requestWrittenTone ( q )
56+ // sense:this.requestCreakyTone(q)
57+ sense :this . requestWrittenTone ( q )
5858 }
5959 }
6060 return false ;
@@ -83,9 +83,7 @@ module.exports = class Notation {
8383 rawSense . push ( this . requestPrime ( rulePrime , s ) + this . requestCreakyTone ( q , 0 , ruleExtract ) ) ;
8484 rawSense . push ( this . requestCreakyTone ( q , rulePrime , s + 1 ) ) ;
8585 rawSense . push ( this . requestWrittenTone ( q , s + 1 , q . length ) ) ;
86- examNotation = {
87- 1 :21
88- } ;
86+ // examNotation={1:21};
8987 } else {
9088 if ( rawCount > rawEndCount ) {
9189 ruleExtract = rawCount ;
@@ -95,8 +93,7 @@ module.exports = class Notation {
9593 rulePrime = 1 ;
9694 rawSense . push ( this . requestPrime ( rulePrime , s , true ) + this . requestCreakyTone ( q , 0 , ruleExtract ) ) ;
9795 rawSense . push ( this . requestCreakyTone ( q , ruleExtract , q . length ) ) ;
98-
99- examNotation = { 1 :22 } ;
96+ // examNotation={1:22};
10097 }
10198 } else {
10299 if ( s == rawEndCount ) {
@@ -105,40 +102,48 @@ module.exports = class Notation {
105102 if ( Number ( q . substring ( ruleExtract , q . length ) ) ) {
106103 rawOver = this . config . conjunction . over ;
107104 }
108-
109105 rawSense . push ( this . requestPrime ( rulePrime , s ) + this . requestCreakyTone ( q , 0 , ruleExtract ) + rawOver ) ;
110-
111- examNotation = { 1 :31 } ;
106+ // examNotation={1:31};
112107 } else {
113- let abc = false ;
114108 ruleExtract = rawCount - 1 + rawEndCount ;
115109 rulePrime = rawCount - 1 ;
116110 // ruleExtract=rawCount;
117111 if ( ruleExtract > ruleMax ) {
118112 ruleExtract = rawEndCount - 3 ;
119113 rulePrime = rawCount ;
120- abc = true ;
121114 }
122115 let rawOver = '' ;
123- if ( Number ( q . substring ( ruleExtract , q . length ) ) ) {
116+ // if (Number(q.substring(ruleExtract, q.length))){
117+ // rawOver=this.config.conjunction.over;
118+ // }
119+ let leftOver = q . substring ( ruleExtract , q . length ) ;
120+ if ( Number ( leftOver ) ) {
124121 rawOver = this . config . conjunction . over ;
122+ // leftOver = q.substring(ruleExtract, q.length-s);
123+ leftOver = q . substring ( ruleExtract , q . length - s ) ;
125124 }
126125
127126 rawSense . push ( this . requestPrime ( rulePrime , s ) + this . requestCreakyTone ( q , 0 , ruleExtract ) + rawOver ) ;
128- examNotation = {
129- abc :abc ,
130- 1 :32
131- } ;
127+ // examNotation={
128+ // working:true,
129+ // a1:q,
130+ // a2:q.substring(0,ruleExtract),
131+ // a3:leftOver,
132+ // a4:leftOver.length,
133+ // a5:this.strSeparate(q.substring(ruleExtract, q.length),ruleExtract),
134+ // raw:raw
135+ // };
132136 }
133137 }
134138
135139 return {
136140 sense :this . createString ( rawSense ) ,
137- exam : examNotation
141+ // exam: examNotation
138142 } ;
139143 }
140144 requestObject ( str , callback ) {
141145 let strCount = str . length , e = [ ] ;
146+ // let testing = this.config.tone.reverse()
142147 // let strReverse = str.reverse(); index += to, ++index
143148 for ( let index = 0 ; index < strCount ; ++ index ) {
144149 let position = strCount - index ;
@@ -161,7 +166,7 @@ module.exports = class Notation {
161166 return tone ;
162167 } ) . map ( ( k , index ) => {
163168 return k . name + k . tone ;
164- } ) . join ( '' )
169+ } ) . join ( ' ' )
165170 }
166171 requestWrittenTone ( num , from , to ) {
167172 let str = this . strIntersect ( num , from , to ) ;
0 commit comments