Jump to content

User:Alex brollo/PersonalTools

From Wikisource

Temptative doc (April 2023)

[edit]

It's a large personal script that activate here many itwikisource-like tools.

  • memoRegex, permanently saves index specifric regex espressions into Index talk page;
  • eis, activates Edit in sequence for fast editing/fast preview of nsPage;
  • personal buttons bar, where active buttons can be added to get various editing actions; it loads tooUser:Alex brollo/PersonalButtons.js, that adds more easily customizable buttons;
  • .... many other, derived from it.wikisource experience.

Screenshots

[edit]

After activation of set of tools, this is a screenshot of a nsPage page, in create or edit mode. An "eis" option is visible at the right of Create/Edit label (top menu).

At the bottom of the page, you can see some buttons for usual tasks.


Clicking eis button, this is the resulting screen. A new menu appears, fixed to the left top of the screen; it replaces default navigation arrows that have been deleted. Using this menu, you can navigate to previous and next page, save edits, define quality level, jump to any page of the book, get a preview and add a comment, while staying in edit mode. saving, navigating and getting a preview are really very fast.


Visible & invisible tools

[edit]

Apart from eis commands (nav bar, fixed on left top of the screen), some personal tools are collected into a button list fixed on right bottom of the page. Most of them only work if eis is running.

  • salva regex, carica regex, esegui regex: commands to run memoRegex
  • FR: activates e personal Find & replace tool
  • A ↔ a: to alternate lower-upper character into selection
  • n↑↓ : moves refs to text bottom, or to their normal position into the text
  • fp: shifts display of sidebar
  • sect: single click adding of sections (s1, s2, s3)
  • poem: encapsulates selection into poem tag
  • «»: encapsulates selection into «»
  • “”: encapsulates selection into “”
  • pages: writes a customizable raw pages tag <pages index='Vasari - Lives of the Most Excellent Painters, Sculptors, and Architects, volume 1.djvu' from='' to='' fromsection='' tosection='' header='1' />

Other tools are shot by shortkeys (work in progress...):

  • Alt+1: saves current page assigning level 1 to it, then goes on to next page.
  • Alt+3: saves current page assigning level 3 to it, then goes on to next page.
  • Alt+5: deletes first row of body text (usually OCR shows inappropriate header content into one or two top rows).
  • Alt+6: splits possible paragraphs adding an empty row.
  • Alt+7: runs memoRegex; fills header text (using previuos pages as a model); joins hyphenated words
  • Alt+8: joins lines into paragraphs
  • Ctrl+i: encapsulates selection into italic code (double apostrophe)
  • Ctrl+b : encapsulates selection into bold code (triple apostrophe)
  • Ctrl+Shift+s: encapsulates selection into a small.caps template. Used too for other simple templates, replacing Sc with needed template name.
  • Ctrl+Shift+c: encapsulates selection into a center template.
  • Ctrl+Alt+n: works together with n↑↓ tool. With no selection, puts a placeholder <sup>nota</sup> at the cursor place. With a selection, encapsulates selectio with <ref>...</ref> tags. Then n↑↓ tool shifts annotation position.