ব্যবহারকারী:Sajidmahamud835/script/formatgeneral.js: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
সম্পাদনা সারাংশ নেই
সম্পাদনা সারাংশ নেই
১ নং লাইন:
/**
* Copy of [[en:User:Ohconfucius/script/formatgeneral.js]]
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* @see https://meta.wikimedia.org/wiki/TemplateScript
২৮০ ⟶ ২৭৯ নং লাইন:
//rem redundant spaces underlining and punctuation
// regex(/([\s>()])[“„«](\[?\w+)/gi, '$1\"$2');
// regex(/(\w+\]?\.?)[“„”«»](\W.)/gi, '$1\"$2');
regex(/(।)[“„”«»](।)/gi, '$1\"$2');
// regex(/([\s>()])[‘`´’′](\[?\w+)/gi, '$1\'$2');
// regex(/(\w)[‘`´’′](s|t)\b/gi, '$1\'$2'); // in-word replacement of various single quotes and prime symbol with straight apostrophe
// regex(/(.)[‘`´’](.)/gi, '$1\'$2'); // straight apostrophe (won't touch prime symbol here)
regex(/([\w;,\]\)>] ) +([\[(]|[a-z\d])/gi, '$1$2'); //rem multiple spaces except when preceded by full stop; tweaked to not remove dbl spaces where preceded by new sentence (caps)
regex(/(^\.U\.)[ ]+((?:S|K)\.)/gi, '$1$2'); //U. S. and U. K. to U.S. and U.K.
৩০২ ⟶ ৩০০ নং লাইন:
 
//rem 'external' wiktionary links
regex(/\[https?:\/\/bnen\.wiktionary\.org\/wiki\/[\w]*[ ](\w[^\]]*)\]/gi, '$1');
 
//rem linked copyright symbol
৭৯৯ ⟶ ৭৯৭ নং লাইন:
//Add a tag to the summary box
setoptions(minor='true');
setreason('General [[en:WP:MOS|রচনাশৈলীformatting]]/বিন্যাসন ত্রুটিby ঠিককরণ[[User:Ohconfucius/script|script]]', 'append');
doaction('diff');
}