Skip to content

Instantly share code, notes, and snippets.

Sylvester Keil inukshuk

Block or report user

Report or block inukshuk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
inukshuk /
Created Nov 15, 2019
Find Missing Tropy Photos
set -e
if [ $# -lt 2 ]; then
echo "Usage: $0 PROJECT SEARCH_PATH"
echo "Find missing photos in your Tropy project"
echo "Please specify the Tropy PROJECT file and a folder as the SEARCH_PATH"
View style-gen.rb
require 'anystyle'
require 'citeproc/ruby'
require 'csl/styles'
# Load all dependent CSL styles and create a Renderer
# Those should be cached!
styles = { |id| CSL::Style.load id }.reject { |s| s.bibliography.nil? }
cp =
# Parse a reference to CSL/JSON
inukshuk / duplicates
Last active Aug 29, 2015
Duplicate CSL Macros
View duplicates
the-open-university-numeric-superscript#publisher bulletin-de-la-societe-prehistorique-francaise#publisher who-europe-harvard#publisher the-open-university-numeric#publisher archeologie-medievale#publisher universita-pontificia-salesiana-es#publisher universita-pontificia-salesiana-it#publisher harvard-university-of-wolverhampton#publisher revista-de-filologia-espanola#publisher harvard-university-of-greenwich#publisher indoor-air#publisher organization-science#publisher harvard-leeds-metropolitan-university#publisher the-journal-of-eukaryotic-microbiology#publisher universita-pontificia-salesiana-pt-br#publisher universita-pontificia-salesiana-fr#publisher traces#publisher universita-di-bologna-lettere#publisher gallia#publisher who-europe-numeric#publisher universita-pontificia-salesiana#publisher the-open-university-harvard#publisher the-open-university-a251#publisher water-science-and-technology#publisher socio-economic-review#publisher oxford-the-university-of-new-south-wales#publisher universita-pontifi
View entities.rb.diff
< "rightleftharpoons" => "<mo>&#x21CC;</mo>",
< "eqslantgtr" => "<mo>&#x22DD;</mo>",
> #"eqslantgtr" => "<mo>&#x22DD;</mo>",
< "ntrianglelefteq" => "<mo>&#x22EC;</mo>",
< "nsupseteq" => "<mo>&#x2289;</mo>",
inukshuk / _config.yml
Created Jan 21, 2015
Jekyll-Scholar: Highlight Author
View _config.yml
- 'jekyll/scholar'
bibliography_template: "{{ reference | replace_first: 'Zelle, R. M.', '<b>Zelle, R. M.</b>' }}"
inukshuk / predict.rb
Last active Apr 10, 2017
Citation Style Predicor
View predict.rb
#!/usr/bin/env ruby
require 'csl/styles'
require 'citeproc/ruby'
require 'httparty'
require 'thread'
API_KEY = '' # Add your key here!
exit if API_KEY.empty?
inukshuk / expand.rb
Created May 6, 2014
Page Range Expander
View expand.rb
#!/usr/bin/env ruby
require 'csl/styles'
require 'citeproc/ruby'
r =
while input = gets
puts r.format_page_range input, 'expanded'
inukshuk / Gemfile
Created Jan 27, 2014
Experiment with the CiteProc-Ruby pre-release!
View Gemfile
source ''
gem 'citeproc', :git => ''
gem 'citeproc-ruby', :git => ''
gem 'csl', :git => ''
gem 'nokogiri' # not required: speeds up XML parsing
gem 'edtf' # not required: more advanced name parsers
gem 'bibtex-ruby'
inukshuk /
Last active Sep 24, 2019
Jekyll-Scholar Bibliography Template Example

This is a sample Jekyll-Scholar bibliography template. The file bibliography.html should be placed in the _layouts directory. Furthermore, this assumes you have a ./pdf directory: this directory contains all you PDFs or Postscripts (possibly in sub-directories of ./pdf), e.g.: ./pdf/Bartlett-2010-ICML.pdf and ./pdf/talks/Wood-2004-EMBS.pdf both work. You can specify the repository root folder using the repository configuration option.

The bibliography template assumes you have Bootstrap configured on your site.

inukshuk / analyze.rb
Created May 3, 2013
Analyze CSL Styles Strip-Periods
View analyze.rb
require 'csl'
# Set the styles root directory
CSL::Style.root = '/Users/sylvester/Work/citeproc/styles'
# Set the locales root directory
CSL::Locale.root = '/Users/sylvester/Work/citeproc/locales'
# Either load all styles or those passed from command line.
# Calling the script with no arguments will go though all
You can’t perform that action at this time.