User:Jpez/Useful Templates and Formatting

From Wikisource
Jump to navigation Jump to search

hathi

[edit]
  • right click page
  • copy link to image
  • adjust width to better quality
  • download with downthemall
  • scantailor
  • gscan2pdf

hathi download helper

[edit]

To crop edges use pdf tools and crop off .4 off top and bottom and .6 left and right.

Asterisks

[edit]

Template:separator

Template:***

{{Separator|7|char=⁕}}{{gap|1em}}

Table style

[edit]

Template:Table style



Letter Spacing

[edit]
  • {{letter-spacing|1.5em|192|2.}}
1922.



No line breaks between words

[edit]

{{nowrap}}

  • This template prevents word wraps (line breaks) in text and links that contain spaces.

smaller block and center block across page break block center/s|style=line-height:1.4; font-size:83%;

[edit]

Italicized words within single quotes

[edit]
  • There were sacred puppets, '<span style="font-style: italic;">Daidala</span>,' at Platæa.
Example: There were sacred puppets, 'Daidala,' at Platæa.



Type a horizontal line {{bar}}

[edit]

Manually create watchlist for subpages in Linux or online

[edit]

for i in {1..5}; do echo "Page:xxx/$i"; done > out.txt
https://textmechanic.com/text-tools/numeration-tools/generate-list-numbers/


Upload from archive.org to commons tool

[edit]

http://tools.wmflabs.org/ia-upload/commons/init

Linux

[edit]
    • Convert pdf to tiff with 300 dpi - pdftoppm n.pdf n -png -r 300
    • Merge all pdf files in a directory - pdftk *.pdf cat output newfile.pdf
    • Remove first page from pdf - pdftk original.pdf cat 2-end output result.pdf
    • Remove page 13 from in1.pdf to create out1.pdf - pdftk in.pdf cat 1-12 14-end output out1.pdf
    • Insert page 7 from document MyFile.pdf between pages 12 and 13 of YourFile.pdf with the command: pdftk A=MyFile.pdf B=YourFile.pdf cat B1-12 A7-7 B13-end output NewFile.pdf
  • Remove first page from djvu file - djvm -d filename.djvu 1
  • Upload images to archive in compressed file in folder filename_images with the filename having the same name
  • djvu tool for inserting, deleting, bundling pages [[1]]
  • Crop bottom edge of all images in a folder mogrify -crop +0-100 +repage *.*