This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Fix ambiguous and non-strict dates in dbtext dump data. | |
#> | |
param( | |
[string]$in = ".", | |
[string]$out = $in | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert .jp2 to .jpg | |
# requires imagemagick | |
Param( | |
[int]$size = 1000, | |
[string]$indir = ".", | |
[string]$outdir = ".\jpg" | |
) | |
if (!(test-path $outdir)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert IA metadata XML to Solr-ready manifest XML | |
<# | |
metadata.imagecount - 2 => pagecount | |
metadata.identifier => WebSafe($1) => id | |
metadata.title => title, freetext | |
metadata.date => toDecade($1) => date, date_free, freetext | |
metadata.creator => name, name_free, freetext | |
metadata.publisher => name, name_free, freetext | |
metadata.year => date_free, freetext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# processes Internet Archive packages, producing per page: 1 txt, 1 ocrxml, 1 jpg | |
# requires djvulibre, imagemagick | |
param( | |
[string]$indir = ".", | |
[string]$outbase = $indir | |
) | |
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Trigger Solr update and poll for status. | |
- Writes events to Application Event Log; log source must already have been added | |
Peter Tyrrell | |
#> | |
param( | |
[Parameter(Mandatory=$false,Position=0)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Add log source to Application Event Log if not already there - REQUIRES ADMIN privileges | |
Peter Tyrrell | |
#> | |
param( | |
[Parameter(Mandatory=$false,ValueFromPipeline=$true,Position=0)] | |
[string]$logsrc = "Andi Solr Update" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Remove log source from Application Event Log - requires ADMIN PRIVILEGES | |
Peter Tyrrell | |
#> | |
param( | |
[Parameter(Mandatory=$true,ValueFromPipeline=$true,Position=0)] | |
[string]$logsrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Extracts data from the named textbase as files like {tn}-{0}.xml in output folder. | |
Logs to Application event log - source must already have been added. | |
#> | |
param( | |
[Parameter(Mandatory=$false,Position=0)] | |
[string]$logsrc = "Andi Solr Update" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Manages component scripts to perform textbase-to-solr update. | |
Script halts if any component reports failure. (Components must return exit code 1 on failure, 0 on success.) | |
Peter Tyrrell | |
#> | |
$logsrc = "Andi Solr Update" | |
& '.\mytextbase.ps1' $logsrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["ctrl+\\","a","`"], "command": "insert", "args": {"characters": "à"} }, | |
{ "keys": ["ctrl+\\","a","^"], "command": "insert", "args": {"characters": "â"} }, | |
{ "keys": ["ctrl+\\","e","'"], "command": "insert", "args": {"characters": "é"} }, | |
{ "keys": ["ctrl+\\","e","`"], "command": "insert", "args": {"characters": "è"} }, | |
{ "keys": ["ctrl+\\","e","^"], "command": "insert", "args": {"characters": "ê"} }, | |
{ "keys": ["ctrl+\\","e",":"], "command": "insert", "args": {"characters": "ë"} }, | |
{ "keys": ["ctrl+\\","i",":"], "command": "insert", "args": {"characters": "ï"} }, | |
{ "keys": ["ctrl+\\","i","^"], "command": "insert", "args": {"characters": "î"} }, | |
{ "keys": ["ctrl+\\","o","^"], "command": "insert", "args": {"characters": "ô"} }, |
OlderNewer