"ব্যবহারকারী: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');
}
২,৪০২টি

সম্পাদনা