tajmone / hugo-library

The Hugo Interactive Fiction Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BSD 2-Clause License  build status

The Hugo Library

Hugo Library v3.1.03.2, by Kent Tessman © 1995-2006, BSD 2-Clause License.

With the addition of The Hugo Book, 1st Ed. revised January 2020, CC BY-NC-SA 4.0 license.

Repository created by Tristano Ajmone, 2019/10/18.


Table of Contents


About

This repository contains the Hugo Library v3.1.03.2. taken from the official Hugo SVN repository, plus the sample.hug and shell.hug files from the Hugo website.

I've converted all tabs to spaces to improve readability across various editors and preserve the original intended alignment (1 tab = 8 spaces).

In order to enforce code style consistency via EditorConfig, I had to add or remove a single space in a few lines, in order to make all indentations multiples of eight. Now the whole repository passes the EditorConfig validation via the ECLint tool.

Comparison with the IF Archive Version

This is a slightly updated library compared to the version currently available on the IF Archive (v3.1.03.1).

The main difference consists in a bug fix for the DoGet response in verblib.h (LLs. 2137–2138) regarding platforms; where "in" and "on" were swapped:

  • verblib.h v3.1.03.1:

    elseif object is platform:  print "in";
    else:  print "on";
    
  • verblib.h v3.1.03.2:

    elseif object is platform:  print "on";
    else:  print "in";
    

The other two minor changes affect hugolib.h, where the letter casing of the TheorThat routine (LL. 1195) was fixed to TheOrThat, and an explanatory comment was added at LL. 2467.

License

The Hugo Library is part of the Hugo project, which is released under the terms of the BSD 2-Clause License (see original license file on Hugo website).

BSD 2-Clause License

Copyright (c) 2011 by Kent Tessman
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Hugo Book License

The Hugo Book is Copyright © 2004 by Kent Tessman, released under CC BY-NC-SA 4.0 license.

The HTML edition of the book was taken from the new AsciiDoc port by Tristano Ajmone:

Links

About

The Hugo Interactive Fiction Library

License:BSD 2-Clause "Simplified" License


Languages

Language:HTML 99.8%Language:Shell 0.2%