Disputatio Usoris:PiRSquared17
Partem novam addereSalve PiRSquared17!
Vicifontium amici
|
Doug.(Disputatio • Conlationes) 18:11, 3 Novembris 2012 (UTC)
- Gratias tibi ago! PiRSquared17 (disputatio) 18:17, 3 Novembris 2012 (UTC)
Scripts
[recensere]As mentioned on IRC, I have a javascript to remove linebreaks and hyphens, etc. All of my js is here: Usor:Doug/common.js. It was imported from my account on en.ws and much of that was copied from other users (sDrewth/Billinghurst, Inductiveload, Due, etc) so some of it doesn't make sense here. I haven't gotten around to cleaning it up yet but I did change some of the functions to match la.ws. Feel free to copy all or part of it. The most important part is the regex tool "cleanup" which calls the function "cleanup" which does a number of things, mostly removing spaces and line breaks. The part you are particularly looking for is:
editbox.value = editbox.value.replace(/([^\|])-\n/g, '$1');
but I recommend you copy the whole cleanup function at least as you'll need it. If you're not good with js, just copy the whole thing and ignore the functions that don't make sense. If you are good with js copy the whole thing, edit it to remove the junk and then tell me and I'll copy it back. :-D
Once you implement it, you will have a collapsible "Scripts" entry in your menu on the left. If you expand it, you will see a list of scripts. The first thing I do on every page, except a poem, is click "cleanup". If you prefer to keep the lines the same for proofreading, you may want to do the normal proofreading first and then run the cleanup script; if you don't know what I mean, you will after you do it once or twice. ;-) If the page contains a poem, add the <poem></poem> before you run the cleanup script or it will remove all the linebreaks that you want to keep.
You will notice that I also have a qz script that replaces qz with {{qz}} for this when I see the little shorthand z like charachter beside the q, I transcribe it as qz and then run this script when I finish the page. ligatures like with ct are not important, they are mainly typographic. long-s is arguable because it's a distinct character but not a distinct letter (i.e. it has exactly the same sound as s), it exists in unicode so it can be transcribed literally. r-rotund would require a template as it doesn't exist in unicode and is similar to long-s in that it is distinct in form but not in sound.--Doug.(Disputatio • Conlationes) 05:38, 4 Novembris 2012 (UTC)