User talk:Pathoschild

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search
User language
en-N This user has a native understanding of English.
fr-N Cet utilisateur a pour langue maternelle le français.
Users by language
Lazy sleeping barnstar.svg

Talk to me — if you have questions or comments, feel free to post them below or send me an email. If you saw me edit on your wiki, it was probably related to the synchbot service (which maintains global user pages for others) or interface editor (which lets me maintain my user scripts).

About me — my name is Jesse. Nowadays I quietly write scripts, make the occasional edit, and love Shanel. Many moons ago I was an active editor and administrator on several wikis, a Wikimedia steward (2006–2014), a language committee member (2006–2011), an email response volunteer (2006–2011), and a Board elections committee member (2008 and 2009).

Some questions[edit]

The following discussion is marked as answered. If you have a new comment, add it just below the box.


I have three questions which have been on my mind for awhile. Perhaps you can clarify them?

  • 1: I've been using TemplateScript Search and Replace, but it still doesn't save my search definitions between sessions. Are the saved searches stored in cookies?
  • 2: I use the over/under mode of proofreading and find the upper window height to be too small where the original scan is displayed. Could it be made larger with CSS to display more text lines of the original scan? The reason is that I can only see about five lines of text on the top, while I can edit 11-12 lines in the lower text area. I tried using the magnifier to reduce the image size, but this would require reducing the text with each new page edit. I also tried to come up with a solution, but I can't find the object name of the upper window when I looked at the code inspector.
  • 3: If you care to remember, I am using a slightly modified copy of your proofreading.js placed here. I only use the 'Clean OCR' option, which on completion of the cleanup, leaves the cursor at the end of the text. Would it be a big problem to send the cursor up to beginning of the text (Control-Home) within the textarea box?

Your advice and help is much appreciated.Ineuw (talk) 19:14, 16 September 2017 (UTC)

Hi Ineuw.
  1. TemplateScript stores data in your browser's local storage, so it should be persisted between sessions. Did you configure your browser to clear data between sessions?
  2. I'm not very familiar with the proofreading tools. Can you link me to an example page I can try?
  3. You can move the cursor to the top of the text with this code:
    document.getElementById("wpTextbox1").setSelectionRange(0, 5);
Pathoschild 00:43, 18 September 2017 (UTC)
Thanks for your help and the clarifications. This is my editing environment, and the window which I would love to increase the height of is indicated by the red frame. Ineuw (talk) 06:29, 19 September 2017 (UTC)
You can increase the height of that preview with CSS like this:
.prp-page-image {
   height: 500px !important;
Pathoschild 21:32, 20 September 2017 (UTC)
My gratitude for the CSS code snippet. It is perfect! But this javascript code snippet document.getElementById("wpTextbox1").setSelectionRange(0, 5); moves the cursor to the 1st column, but not the first column and the 1st row of the text box. Ineuw (talk) 07:04, 23 September 2017 (UTC)
What do you mean? Can you post a screenshot? —Pathoschild 15:23, 23 September 2017 (UTC)
@Pathoschild: Hi, I uploaded this image at Wikisource to indicate where the cursor ends up after activating The code is inserted at line 317. It is quite possible that I placed it in the wrong place?Ineuw (talk) 22:39, 25 September 2017 (UTC)Ineuw (talk) 06:14, 27 September 2017 (UTC)
@Ineuw this version should work better:
var input = document.getElementById("wpTextbox1");
input.setSelectionRange(0, 0);
input.scrollTop = 0;
Pathoschild 22:40, 27 September 2017 (UTC)
@Pathoschild: A big thank you, it's perfect.Ineuw (talk) 01:43, 28 September 2017 (UTC)

Catalan translation of TemplateScript[edit]

The following discussion is marked as answered. If you have a new comment, add it just below the box.

Hi, Pathoschild! I've begun to adapt TemplateScript for ca.source. The Catalan translations are the following ones. Could you please upload them to Github?

var pathoschild = pathoschild || {};
pathoschild.i18n = {
    templatescript: {
        defaultHeaderText: "TemplateScript", // the sidebar header text label for the default group
        regexEditor: "Editor regex" // the default 'regex editor' script
    regexeditor: {
        header: "Editor d´expressions regulars",      // the header text shown in the form
        search: "Cercar",                             // the search input label
        replace: "Reemplaçar",                        // the replace input label
        nameSession: "Introdueixi un nom per aquesta sessió", // the prompt shown when saving the session
        loadSession: 'Carregar sessió "{name}"',      // tooltip shown for a saved session, where {name} is replaced with the session name
        deleteSession: 'Esborrar sessió "{name}"',    // tooltip shown for the delete icon on a saved session, where {name} is replaced with the session name
        closeEditor: "Tancar l´editor regex",         // tooltip shown for the close-editor icon
        addPatterns: "Afegeix patrons",               // button text
        addPatternsTooltip: "Afegeix caixes de cerca i reemplaçament", // button tooltip
        apply: "Aplica",                              // button text
        applyTooltip: "Aplica els patrons indicats",  // button tooltip
        undo: "Desfés darrer canvi",                  // button text
        undoTooltip: "Desfà el darrer canvi",         // button tooltip
        save: "Desa canvis",                          // button text
        instructions: 'Introdueixi les expressions regulars a executar. El patró de cerca pot ser de com "{code|text=patró de cerca}" o "{code|text=/patró/modificadors}" i el patró de reemplaçament pot contenir grups de referència com "{code|text=$1}" (vegeu {helplink|text=tutorial|title=JavaScript regex tutorial|url=}).'

Thank you! -Aleator (talk) 16:05, 21 September 2017 (UTC)

Thanks Aleator! Can you provide this missing translation too?
saveTooltip: "Save this session for later use", // button tooltip
Pathoschild 15:29, 23 September 2017 (UTC)
Sure: "Desa aquesta sessió per usar-la més endavant" (I'm not sure if the hyphen "-" is a valid character in the scripting). Thanks! -Aleator (talk) 15:41, 28 September 2017 (UTC)
Added and deployed. I updated TemplateScript#Translation with instructions for Catalan. Thanks! —Pathoschild 18:13, 30 September 2017 (UTC)

Synchbot requests going back to July[edit]

Hi Pathoschild, I wonder if you might have a chance to run Synchbot some time soon? There are a requests going back to July at the moment (including mine) and I think the documentation suggested it would be run roughly once a month. Thank-you for your continued work on Synchbot. Best wishes, Mark Mhl20 (talk) 11:20, 21 November 2017 (UTC)

Hi Mhl20. The main complication is that the permissions Synchbot needs expired, so I'll need to reapply for those. I'm away for vacation, but I'll look into that when I get back. —Pathoschild 18:29, 21 November 2017 (UTC)

Global user rights[edit]

Done. Re-granted for 1 year. Matiia (talk) 01:01, 17 December 2017 (UTC)

Thanks! —Pathoschild 01:18, 17 December 2017 (UTC)