100% found this document useful (4 votes)
232 views

Download ebooks file Hands On GUI Programming with C and Qt5 Build stunning cross platform applications and widgets with the most powerful GUI framework 1st Edition Eng Lee Zhi all chapters

framework

Uploaded by

ebboruoho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (4 votes)
232 views

Download ebooks file Hands On GUI Programming with C and Qt5 Build stunning cross platform applications and widgets with the most powerful GUI framework 1st Edition Eng Lee Zhi all chapters

framework

Uploaded by

ebboruoho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 65

Download Full Version ebook - Visit ebookmeta.

com

Hands On GUI Programming with C and Qt5 Build


stunning cross platform applications and widgets
with the most powerful GUI framework 1st Edition
Eng Lee Zhi
https://ebookmeta.com/product/hands-on-gui-programming-with-
c-and-qt5-build-stunning-cross-platform-applications-and-
widgets-with-the-most-powerful-gui-framework-1st-edition-
eng-lee-zhi/

OR CLICK HERE

DOWLOAD NOW

Discover More Ebook - Explore Now at ebookmeta.com


Instant digital products (PDF, ePub, MOBI) ready for you
Download now and discover formats that fit your needs...

Start reading on any device today!

Create GUI Applications with Python Qt5 The hands on guide


to making apps with Python 4th Edition Martin Fitzpatrick

https://ebookmeta.com/product/create-gui-applications-with-python-
qt5-the-hands-on-guide-to-making-apps-with-python-4th-edition-martin-
fitzpatrick/
ebookmeta.com

Beginning PyQt: A Hands-on Approach to GUI Programming


with PyQt6, 2nd Edition Joshua M Willman

https://ebookmeta.com/product/beginning-pyqt-a-hands-on-approach-to-
gui-programming-with-pyqt6-2nd-edition-joshua-m-willman/

ebookmeta.com

Create GUI Applications with Python Qt6 The hands on guide


to making apps with Python pyside6 Edition Martin
Fitzpatrick
https://ebookmeta.com/product/create-gui-applications-with-python-
qt6-the-hands-on-guide-to-making-apps-with-python-pyside6-edition-
martin-fitzpatrick/
ebookmeta.com

New Uses of Bourdieu in Film and Media Studies 1st Edition


Guy Austin

https://ebookmeta.com/product/new-uses-of-bourdieu-in-film-and-media-
studies-1st-edition-guy-austin/

ebookmeta.com
Experience Psychology 5th Edition Laura A. King

https://ebookmeta.com/product/experience-psychology-5th-edition-laura-
a-king/

ebookmeta.com

English for Dietetics Barbara Gorbacz-Gancarz

https://ebookmeta.com/product/english-for-dietetics-barbara-gorbacz-
gancarz/

ebookmeta.com

No Truth Without Beauty God the Qur an and Women s Rights


Sustainable Development Goals Series El-Ali

https://ebookmeta.com/product/no-truth-without-beauty-god-the-qur-an-
and-women-s-rights-sustainable-development-goals-series-el-ali/

ebookmeta.com

Blazor WebAssembly Succinctly 1st Edition Michael


Washington

https://ebookmeta.com/product/blazor-webassembly-succinctly-1st-
edition-michael-washington/

ebookmeta.com

The Graphic Lives of Fathers Memory Representation and


Fatherhood in North American Autobiographical Comics 1st
Edition Mihaela Precup
https://ebookmeta.com/product/the-graphic-lives-of-fathers-memory-
representation-and-fatherhood-in-north-american-autobiographical-
comics-1st-edition-mihaela-precup/
ebookmeta.com
Medieval Europe Wickham Chris

https://ebookmeta.com/product/medieval-europe-wickham-chris/

ebookmeta.com
Hands-On GUI Programming with C++ and Qt5

Build stunning cross-platform applications and widgets with the most


powerful GUI framework

Lee Zhi Eng

BIRMINGHAM - MUMBAI
Hands-On GUI Programming
with C++ and Qt5
Copyright © 2018 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers
and distributors, will be held liable for any damages caused or alleged to have been caused
directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.

Commissioning Editor: Richa Tripathi


Acquisition Editor: Alok Dhuri
Content Development Editor: Lawrence Veigas
Technical Editor: Mehul Singh
Copy Editor: Safis Editing
Project Coordinator: Prajakta Naik
Proofreader: Safis Editing
Indexer: Pratik Shirodkar
Graphics: Jisha Chirayil
Production Coordinator: Nilesh Mohite

First published: April 2018

Production reference: 1260418

Published by Packt Publishing Ltd.


Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.

ISBN 978-1-78839-782-7

www.packtpub.com
mapt.io

Mapt is an online digital library that gives you full access to over
5,000 books and videos, as well as industry leading tools to help you
plan your personal development and advance your career. For more
information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical
eBooks and Videos from over 4,000 industry professionals

Improve your learning with Skill Plans built especially for you

Get a free eBook or video every month

Mapt is fully searchable

Copy and paste, print, and bookmark content


PacktPub.com
Did you know that Packt offers eBook versions of every book
published, with PDF and ePub files available? You can upgrade to the
eBook version at www.PacktPub.com and as a print book
customer, you are entitled to a discount on the eBook copy. Get in
touch with us at [email protected] for more details.

At www.PacktPub.com, you can also read a collection of free


technical articles, sign up for a range of free newsletters, and receive
exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Lee Zhi Eng is a self-taught programmer who has worked as an
artist and programmer at several game studios before becoming a
part-time lecturer for 2 years at a university, teaching game
development subjects related to Unity and Unreal Engine.

He has not only taken part in various projects related to games,


interactive apps, and virtual reality, but has also participated in
multiple projects that are more oriented toward software and system
development. When he is not writing code, he enjoys traveling,
photography, and exploring new technologies.
About the reviewer
Nibedit Dey is a technopreneur with multidisciplinary technology
background. He holds a bachelor's degree in biomedical engineering
and a master's degree in digital design and embedded systems.
Before starting his entrepreneurial journey, he worked for L&T and
Tektronix for several years in different R&D roles. He has been using
Qt to build complex software products for the past 8 years.
Currently, he is a healthcare innovation fellow at IIT, Hyderabad, and
is involved in the development of a new medical device.
Packt is searching for authors
like you
If you're interested in becoming an author for Packt, please visit
authors.packtpub.com and apply today. We have worked with
thousands of developers and tech professionals, just like you, to help
them share their insight with the global tech community. You can
make a general application, apply for a specific hot topic that we are
recruiting an author for, or submit your own idea.
Table of Contents
Title Page
Copyright and Credits
Hands-On GUI Programming with C++ and
Qt5
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews

1. Introduction to Qt
What is Qt?
Why use Qt?
Discovering tools in Qt
Qt Designer
Qt Quick Designer
Downloading and installing Qt
Setting up the working environment
Running our first Hello World Qt program
Summary

2. Qt Widgets and Style Sheets


Introduction to Qt Designer
Basic Qt widgets
Qt Style Sheets
Summary

3. Database Connection
Introducing the MySQL database system
Setting up the MySQL database
SQL commands
SELECT
INSERT
UPDATE
DELETE
JOIN
Database connection in Qt
Creating our functional login page
Summary

4. Graphs and Charts


Types of charts and graphs in Qt
Line and spline charts
Bar charts
Pie charts
Polar charts
Area and scatter charts
Box-and-whiskers charts
Candlestick charts
Implementing charts and graphs
Creating the dashboard page
Summary

5. Item Views and Dialogs


Working with item view widgets
Creating our Qt Widgets application
Making our List Widget functional
Adding functionality to the Tree Widget
Finally, our Table Widget
Working with dialog boxes
Creating File Selection Dialogs
Image scaling and cropping
Summary

6. Integrating Web Content


Creating your own web browser
Adding the web view widget
Creating a UI for a web browser
Managing browser history
Sessions, cookies, and cache
Managing sessions and cookies
Managing cache
Integrating JavaScript and C++
Calling JavaScript functions from C++
Calling C++ functions from JavaScript
Summary

7. Map Viewer
Map display
Setting up the Qt location module
Creating a map display
Marker and shape display
Displaying position markers on a map
Displaying shapes on a map
Obtaining a user's location
Geo Routing Request
Summary

8. Graphics View
Graphics View framework
Setting up a new project
Movable graphics items
Creating an organization chart
Summary

9. The Camera Module


The Qt multimedia module
Setting up a new project
Connecting to the camera
Capturing a camera image to file
Recording a camera video to file
Summary

10. Instant Messaging


The Qt networking module
Connection protocols
Setting up a new project
Creating an instant messaging server
Creating TCP Server
Listening to clients
Creating an instant messaging client
Designing the user interface
Implementing chat features
Summary

11. Implementing a Graphics Editor


Drawing vector shapes
Vector versus bitmap
Drawing vector shapes using QPainter
Drawing text
Saving vector images to an SVG File
Creating a paint program
Setting up a user interface
Summary

12. Cloud Storage


Setting up the FTP server
Introducing FTP
Downloading FileZilla
Setting up FileZilla
Displaying the file list on the list view
Setting up a project
Setting up user interface
Displaying the file list
Writing the code
Uploading files to the FTP server
Downloading files from the FTP server
Summary

13. Multimedia Viewers


Revisiting the multimedia module
Dissecting the module
The image viewer
Designing a user interface for the image
viewer
Writing C++ code for image viewers
The music player
Designing a user interface for music
players
Writing C++ code for music players
The video player
Designing a user interface for video
players
Writing C++ code for video players
Summary

14. Qt Quick and QML


Introduction to Qt Quick and QML
Introducing Qt Quick
Introducing QML
Qt Quick widgets and controls
Qt Quick Designer
Qt Quick layouts
Basic QML scripting
Setting up the project
Summary

15. Cross-Platform Development


Understanding compilers
What is a compiler?
Build automation with Make
Build settings
Qt Project (.pro) File
Comment
Modules, configurations, and definitions
Platform-specific settings
Deploying to PC platforms
Windows
Linux
macOS
Deploying to mobile platforms
iOS
Android
Summary

16. Testing and Debugging


Debugging techniques
Identifying the problem
Print variables using QDebug
Setting breakpoints
Debuggers supported by Qt
Debugging for PC
Debugging for Android devices
Debugging for macOS and iOS
Unit testing
Unit testing in Qt
Summary
Other Books You May Enjoy
Leave a review - let other readers know what
you think
Preface
Qt 5, the latest version of Qt, enables you to develop applications
with complex user interfaces for multiple targets. It provides you
with faster and smarter ways to create modern UIs and applications
for multiple platforms. This book will teach you how to design and
build graphical user interfaces that are functional, appealing, and
user-friendly.

By the end of this book, you will have successfully learned about
high-end GUI applications and will be capable of building many more
powerful, cross-platform applications.
Who this book is for
This book will appeal to developers and programmers who would like
to build GUI-based applications. Basic knowledge of C++ is
necessary, and the basics of Qt would be helpful.
What this book covers
Chapter 1, Introduction to Qt, will give you a tour of Qt. In this
book, you'll download the SDK, install Qt, and, most importantly,
install Qt Creator, which is used as both the user interface designer
and the IDE for writing and compiling C++ scripts.

Chapter 2, Qt Widgets and Style Sheets, will introduce you to the


different types of widgets generally used in Qt to develop desktop
applications. You will learn the first step to create your own
application, which uses all kinds of widgets and customizations,
using the powerful style sheet mechanism provided by Qt, which is
very similar to CSS for web.

Chapter 3, Database Connection, will introduce you to the


MariaDB database and teach you how to connect to it using Qt. You
will first learn what is MariaDB database and how to call simple SQL
commands to fetch and insert data into a MariaDB database. We will
then create a simple but fully functional login page.

Chapter 4, Graphs and Charts, explores the Chart feature to allow


users to easily render different types of graphs and charts, such as
pie chart, bar chart, and line graph. We will make use of the
knowledge learned from this chapter to create a dashboard page for
an application, which displays all kinds of statistical summary of their
company and business.
Chapter 5, Item Views and Dialogs, will teach you how to display
a list of information by using three different item view widgets—a list
widget, tree widget, and table widget. You will also learn how to
prompt a message box to display error messages, warnings, and
confirmation. You will then create an application that can load, scale,
and crop images.

Chapter 6, Integrating Web Content, will empower you to use the


Qt WebEngine module and make a simple web browser, which
displays a web page. We will then go through what is sessions,
cookies, and cache and subsequently how to manage them with Qt
WebEngine. Finally, you will learn how to make your C++ code
communicate with JavaScript content through the WebChannel
mechanism.

Chapter 7, Map Viewer, will focus on creating a map display. This


map will be used to display the location of places and people. You
will learn how to implement the QtLocation module, understand the
coordinate system, display location markers on the map, and so on.

Chapter 8, Graphics View, will provide a platform to manage and


interact with a large number of custom-made graphical items and a
view widget to visualize the items with support for zooming and
rotation. You will learn how to make an organization's chart page
that displays the structure of an organization and the relationships
and relative ranks of its parts and positions/jobs.

Chapter 9, The Camera Module, will explore how to display


camera images using Qt. Qt provides us with a multimedia module
that enables us to easily take advantage of a platform's multimedia
capabilities, such as connecting to the camera of the computer.

Chapter 10, Instant Messaging, will discuss the networking


module and help us to make our own simple instant messaging
program.

Chapter 11, Implementing a Graphics Editor, is divided into two


sections, based on the two types of graphics in the rendering world–
bitmap graphics and vector graphics. Both are quite different but
essential to learning in order to understand 2D graphics rendering.
You will learn how to draw graphics using Qt in this chapter.

Chapter 12, Cloud Storage, will teach you how to upload different
types of files to the FTP server and display them in a list. The user
will be able to download the file and open them with different types
of viewers depending on its file format.

Chapter 13, Multimedia Viewers, will deal with creating a media


player instead of using the default software on your computer. In
this chapter, you will learn how to create an image viewer, a music
player, and a video player.

Chapter 14, Qt Quick and QML, will introduce you to the basics of
QML scripting, which is one of the most recent trends in the Qt
world.

Chapter 15, Cross-Platform Development, will show you how to


export applications to different platforms without re-writing the code
from scratch. You will learn some of the essential settings and tips to
look out for when porting applications to different platforms. Besides
PC platforms, you will also learn how to export applications to mobile
platforms.

Chapter 16, Testing and Debugging, will teach you the essentials
of how to use various techniques to test and debug your Qt
application.
To get the most out of this
book
In order to successfully execute all the codes and instructions in this
book, you would need the following:

A basic PC/Laptop
A working internet connection
Qt 5.10
MariaDB 10.2 (or MySQL Connector)
Filezilla Server 0.9

We will deal with the installation processes and details as we go


through each chapter.
Download the example code
files
You can download the example code files for this book from your
account at www.packtpub.com. If you purchased this book
elsewhere, you can visit www.packtpub.com/support and
register to have the files emailed directly to you.

You can download the code files by following these steps:

1. Log in or register at www.packtpub.com.


2. Select the SUPPORT tab.
3. Click on Code Downloads & Errata.
4. Enter the name of the book in the Search box and follow the
onscreen instructions.

Once the file is downloaded, please make sure that you unzip or
extract the folder using the latest version of:

WinRAR/7-Zip for Windows


Zipeg/iZip/UnRarX for Mac
7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at


https://github.com/PacktPublishing/Hands-On-GUI-
Programming-with-CPP-and-Qt5 In case there's an update to
the code, it will be updated on the existing GitHub repository.
We also have other code bundles from our rich catalog of books and
videos available at https://github.com/PacktPublishing/.
Check them out!
Discovering Diverse Content Through
Random Scribd Documents
of age.
lbs.
Austria 6·75 1,212,530
Zollverein 9·75 296,560
Steurverein, including
12·50 12,420
Hanover and Oldenburg
France 5·50 3,058,356
Russia 2·50 284,280
Portugal 3·50 304,140
Spain 4·75 1,268,082
Sardinia 2·75 246,192
Tuscany 2·50 84,860
Papal States 2·00 297,252
Two Sicilies ... 168,422
Britain 4·10 5,272,471
Holland 8·25 6,210
Belgium 9·00 28,014
Denmark 8·00 10,488
Sweden 4·37 14,766
Norway 6·40 23,322
United States 7·60 ...

TABLE III.
DUTIES ON IMPORTATION OF TOBACCO.

per cent.
ad valorem.
United States 30·
Belgium 13·9
Great Britain 933·3
Hanover 9·6
Holstein 10·
Holland 3·5
Russia 161·
Switzerland 3·
Zollverein 45·

TABLE IV.
Nett Profits of the French Regie on Tobacco, after paying all expenses
of purchase, transportation, manufacture, and sale. Showing the
increased consumption, in decennial periods, from 1811 to 1851.
Years. Francs.
1811 26,000,000
1821 42,219,604
1831 45,920,930
1841 71,989,095
1851 92,233,729
Total gross
185,000,000
revenue in 1857

TABLE V.

Consumption of Tobacco in Britain, with rate of Duty and Revenue


therefrom.
Consumption. Duty.
Years. Revenue. Population.
lbs. per lb.
1821 15,598,152 4s. £3,122,583 21,282,903
1831 19,533,841 3s. 2,964,592 24,410,459
1841 22,309,360 3s. 3,580,163 27,019,672
1851 28,062,978 3s. 4,485,768 27,452,262
1856 32,579,166 3s. 5,216,770 39

1857 32,677,059 3s. 5,231,455 [39]


1858 34,110,850 3s. 5,272,471 [39]
39 Owing to extensive emigration, especially from Ireland, the population must be
considered as but little above that of 1851.

TABLE VI.

Consumption of Tobacco in the Austrian Empire.


Quantity consumed.
Years.
per lb.
1850 34,457,513
1851 54,217,578
1852 61,805,697
1853 57,926,925
1854 62,020,333
1856 85,161,030

TABLE VII.

Statement exhibiting the quantities of Tobacco exported from the


United States into the countries named, during 1855.
Quantities.
Countries.
lbs.
Bremen 38,058,000
Great Britain 24,203,000
France 40,866,000
Holland 17,124,000
Spain 7,524,000
Belgium 4,010,000
Sardinia 3,314,000
Austria 2,945,000
Sweden and Norway 1,713,000
Portugal 336,000

TABLE VIII.

Disposition of Tobacco the growth of the United States in 1840 and in


1850, with the Home Consumption at each period.
Years. Growth.lbs. Exports.lbs. Consumption.lbs. Rate pr.Head. oz.
1840 219,163,319 184,965,797 34,543,557 32½
1850 199,532,494 122,408,780 81,933,571 56

TABLE IX.

Statement showing the Exports of Tobacco from America (United


States) in decennial periods, from 1820 to 1850, and in 1855.
Quantity exported.
Years.
hogsheads
1820 66,000
1830 83,810
1840 119,484
1850 145,729
1855 150,213

TABLE X.
ANALYSIS OF TOBACCO BY POSSELT & REINMANN.

Nicotina 0·06
Concrete vegetable oil 0·01
Bitter extractive 2·87
Gum, with malate of lime 1·74
Chlorophylle 0·267
Albumen and gluten 1·308
Malic acid 0·51
Lignin and a trace of starch 4·969
Salts (sulphate, nitrate, and malate of potash, chloride of
potassium, phosphate and malate of lime, and malate of 0·734
ammonia)
Silica 0·088
Water 88·280
Fresh leaves of tobacco 100·836

TABLE XI.

Return showing the quantity of Chests of Opium exported by the East


India Company between 1846 and 1858.
Years. No. of Chests.40
1846-47 22,468
1847-48 22,879
1848-49 33,073
1849-50 35,919
1850-51 32,033
1851-52 31,259
1852-53 35,521
1853-54 42,403
1854-55 49,979
1855-56 49,399
1856-57 66,305
1857-58 68,004

TABLE XII.

Amount of Income derived by the East India Company from the


Opium Monopoly.
Years. Amount.
1840-41 £874,277
1841-42 1,018,765
1842-43 1,577,581
1843-44 2,024,826
1844-45 2,181,288
1845-46 2,803,350
1846-47 2,886,201
1847-48 1,698,252
1848-49 2,845,762
1849-50 3,309,637
1850-51 3,043,135
1851-52 3,139,247
1852-53 3,717,932
1853-54 3,359,019
1854-55 3,333,601
1855-56 3,961,975
1856-57 3,860,390
1857-58 5,918,375

TABLE XIII.
OPIUM STATISTICS OF GREAT BRITAIN.
Imports. Consumption.
Years.
lbs. lbs.
1826 79,829 28,329
1827 113,140 17,322
1830 209,076 22,668
1833 106,846 35,407
1836 130,794 38,943
1839 196,247 41,632
1842 72,373 47,432
1845 259,644 38,229
1848 200,019 61,055
1849 105,724 44,177
1850 126,318 42,324
1851 118,024 50,682
1852 205,780 62,521
1853 159,312 67,038
1854 97,427 61,432
1855 50,143 34,473
1856 51,479 38,609
1857 136,423 56,174
1858 82,085 77,639

TABLE XIV.
ANALYSIS OF OPIUM, BY MULDER.

Morphia 10·842 4·106


Narcotina 6·808 8·150
Codeia 0·678 0·834
Narceine 6·662 7·506
Meconine 0·804 0·846
Meconic acid 5·124 3·968
Fat 2·166 1·350
Caoutchouc 6·012 5·026
Resin 3·582 2·028
Gummy extractive 25·200 31·470
Gum 1·042 2·896
Mucus 19·086 17·098
Water 9·846 12·226
Loss 2·148 2·496
Total 100·000 100·000

TABLE XV.
PRISONERS SENTENCED BY THE POLICE TO THE HOUSE OF
CORRECTION AT SINGAPORE.

Quantity Value of
Class. Number of
of Opium Monthly Opium
all years Trade. Appearances.
consumed Wages. smoked
Chinamen habituated.
daily. monthly.
Grains. s. d. £ s. d.
Heavy, listless,
1 60 10 Cooly 16 0 140
but not sleepy.
Looks well and
2 Does not smoke. ... ...
fat.
Looks well, but
3 Does not smoke. ... ...
not stout.
4 Does not smoke. ... ... Looks well.
Looks well;
given up
5 180 10 Planter ... 3 12 0 smoking;
drinks Tinco in
arrack.
Sickly, with
6 90 12 ... ... 1 10 0
cough.
Sickly, thin,
7 60 20 Cooly 16 0 1 4 0 and miserable
looking.
Sick and
8 180 7 Planter 12 0 3 12 0
herpetic.
Sickly looking,
9 90 6 ... 20 0 1 10 0
and complains.
Thin, sickly;
complains of
10 60 20 Cooly 16 0 140
pain in the
stomach.
Yellow, sickly;
11 48 4 Cooly 16 0 0 16 4 pain in the
abdomen.
Thin, sickly;
12 300 to 350 16 Planter ... £6 to £7 complains of
cough.
Complains of
13 30 10 Cooly 16 0 0 12 0 pain in
abdomen.
Thin, but not
14 90 6 ... 16 0 1 10 0
sickly.
Thin, cough,
15 60 16 Cooly 16 0 140
and sickly.
16 Does not smoke. ... ...
Complains of
pain in
17 24 9 Cooly 16 0 0 10 0 abdomen;
does not look
sickly.
Sickly looking;
24s. to £3
18 60 to 180 30 ... 20 0 does not
12 0
complain.
24s. to Diarrhœa, and
19 36 5 ... 0 12 0
30s. complains.
Complains, but
20 30 5 ... 16 0 0 8 0 does not look
sickly.
Complains, but
21 60 12 ... 16 0 1 4 0 does not look
sickly.
Looks sickly,
22 48 5 Cooly 12 0 100
and complains.
23 Does not smoke. ... ... Looks sickly.
24 Does not smoke. ... ... Looks well.
25 Does not smoke. ... ... Looks well.
Complains
much, being
26 60 15 ... 16 0 140
without
chandu.
27 Does not smoke. ... ... Looks well.
Pale, sickly
looking;
28 36 6 ... 12 0 0 15 0
complains
much.
Thin and
29 48 5 Shopkeeper ... 100
sickly.

Besides which, there were 15 men in the hospital, of whom all


smoked but one.

TABLE XVI.
OPIUM CONSUMED BY FIFTEEN PERSONS FROM THE PAUPER
HOSPITAL, SINGAPORE.

Excess of
Quantity of Opium Years Monthly
expenditure over
consumed daily. habituated. Wages.
income.
Grains. s. d. s. d.
1 36 7 11 6 5 8 excess
2 36 3 80 6 6”
3 24 5 80 18 ”
4 36 8 12 0 26 ”
5 42 20 16 0 0 10 ”
6 30 10 10 0 21 ”
7 24 7 80 18 ”
Income and
8 30 10 12 0
expenditure equal
9 24 5 80 1 8 excess
10 30 10 80 40 ”
Income and
11 30 8 12 0
expenditure equal
12 36 10 12 0 2 6 excess
Income and
13 30 15 12 0
expenditure equal
Income and
14 30 25 12 0
expenditure equal
15 42 22 12 0 4 10 excess

TABLE XVII.
REPORTS OF OPIUM-SMOKING IN CHINA.
In the Chung-wan (centre bazaar) there are about 5,800
inhabitants.
The number that smoke opium merely because they like it are
upwards of 2,600.
The number that smoke opium are upwards of 300.
In the Hah-wan (Canton bazaar) there are upwards of 1,200
inhabitants.
The number that smoke opium merely because they like it are
upwards of 600.
The number that smoke opium are upwards of 100.
The number that died for cause of smoking opium very few.
(Signed) Chung-wan & Hah-wan Teapoa’s Report.
Dated Yuet-man year, 11th month, 20th day
(December 29th, 1855).

The number of male residents at Sheong-wan are estimated as


following:——
This year have ascertained the number of male residents are
13,000.
There are 3,000 opium-smokers; 300 smoke 8 mace a-day; 700
smoke 5 mace each day; 1,000 smoke 3 mace each day; the rest
smoke 1 mace, more or less.
The number that smoke opium merely because they like it are
upwards of 4,000.
The number that got sick for cause of opium-smoking went home,
and did not die here.
(Signed) Teapoa of Sheong-wan Tong Chew’s Report.
Dated December 29th, 1855.
By order, have ascertained the number of inhabitants of Tai-ping-
Shan.
There are upwards of 5,300 men.
The number that smoke opium because they like it are upwards of
1,200.
The number that smoke opium are upwards of 600.
The number that died for cause of opium-smoking very few.
(Signed) Tai-ping-Shan Teapoa’s Report.
Dated Yuet-man year, 11th month, 20th day
(December 29th, 1855).

By order, have ascertained that in Wan-tsai there are upwards of


1,600 inhabitants.
Those that smoke opium merely because they like it are upwards of
500 men.
Those that smoke opium are upwards of 200 men.
Those that died for cause of smoking opium, none.
(Signed) Wan-tsai Teapoa’s Report.
Dated Yuet-man year, 11th month, 20th day
(December 29th, 1855).

By order, have ascertained that in Wang-nai-choon there are


upwards of 200 men.
The number that smoke opium are upwards of 10 men.
The number that smoke opium merely because they like it are few
only.
The number that died for cause of smoking opium, very few.
(Signed) Wang-nai-choon Teapoa’s Report.
Dated Yuet-man year, 11th month, 20th day
(December 29th, 1855).

By order, have ascertained the number of inhabitants of Ting-loong-


chow (east point).
There are upwards of 2,500 inhabitants.
The number that smoke opium merely because they like it are
upwards of 300.
The number that smoke opium are upwards of 100.
(Signed) Ting-loong-chow Teapoa’s Report.
Dated Yuet-man year, 11th month, 20th day
(December 29th, 1855).

TABLE XVIII.

Professor Johnston’s estimate of the number of persons indulging in


the Seven principal Narcotics of the world.

Tobacco 800,000,000
Opium 400,000,000
Hemp 200,000,000 to 300,000,000
Betel 100,000,000
Coca 10,000,000
Thorn-Apple (no estimate) Less than Coca.
Amanita (no estimate) Less than Coca.
TABLE XIX.
SYNOPSIS OF NARCOTICS, WITH THEIR SUBSTITUTES.

I.——Tobacco.
Where used
Vulgar Name. Botanical Name. or How used.
cultivated.
Virginian tobacco Nicotiana tabacum U. States Smoked & chewed
Orinoko ” ” macrophylla ... ”
European ” ” rustica Europe ”
Javanese ” ” ” var Java Smoked.
Billah ” ” ” var Asiatica Malwa ”
Guzerat ” ” ” var Guzerat ”
Chinese ” ” ” var Chinensis China ”
Thibetian ” ” ” var Thibet ”
Persian ” ” Persica Persia ”
Latakia ” ” ” var Syria ”
Djiddar ” ” crispa ” ”
Indian ” ” quadrivalvis N. America ”
Indian ” ” multivalvis ” ”
Indian ” ” nana Rocky Mts. ”
Cuban ” ” repanda Cuba ”
Columbian ” ” loxensis America ”
Brazilian ” ” glauca Brazil ”
Peruvian ” ” andicola Andes ”
Coltsfoot leaves Tussilago farfar Europe Smok’d for tobacco
Yarrow ” Achillœa millefolium ” ”
Rhubarb ” Rheum emodi, &c. Himalayas ”
Bogbean ” Menyanthes trifoliata Britain ”
Sage ” Salvia officinalis Europe ”
Mountain tobacco Arnica montana Switzerland ”
Black holly Ilex vomitoria N. America ”
Stag’s horn sumach Rhus typhina Mississippi ”
Copal sumach Rhus copallina ” ”
Water lily leaves Nelumbium speciosum China Mix’d with tobacco
Pucha-pat Marrubium odoratissimum India Mix’d with tobacco
Tombeki Lobelia sp. E. Asia Smoked as tobacco
Indian tobacco Lobelia inflata N. America ”
Maize husks Zea Mays U. States Patented for cigars
Birch bark Betula excelsa N. Brunswck Mix’d with tobacco
Willow leaves Salix sp. N. America Smoked as tobacco
Bearberry leaves Arctostasphylus uva-ursi Chenook Ind. Mix’d with tobacco
Pimento berries Eugenia pimento W. Indies Smoked
Cascarilla bark Croton eleuteria ” Mix’d with tobacco
Polygonum leaves Polygonum hispida S. America Smoked
Tarchonanthus
Camphor leaves Cape ”
camphoratus
Wild dagga Leonotis leonurus ” ”
... Leonotis ovata ” ”
Culen Psoralea glandulosa Mauritius ”
Purphiok Tupistra sp. Sikkim Mix’d with tobacco
Camomile flowers Anthemis nobilis Britain ”
{Recommended as
Beet leaves Beta vulgaris France
substitute
Akel ... Algeria Mix’d with tobacco
Trouna ... ” ”
Mesembryanthemum
Kauw goed Cape Chewed
tortuosum
Angelica root Archangelica officinalis Lapland ”
Monkey bread
Adansonia digitata W. Africa Snuffed.
leaves
Rhododendron Rhododendron
India Snuffed.
leaves campanulatum
Brown dust of} Kalmia sp. }N. America ”
petioles of} Rhododendron sp. }
Asarabacca Asarum Europœum Europe ”
Grimstone’s eye
Various plants Britain ”
snuff
Various indigenous
Erzegebirge ”
plants
Woodruff Asperula odorata Britain Mixed with snuff.
Amadou ashes Polyporus igniarius Kamtschatka Snuffed.
II.——Opium.
Smyrna opium Papaver somniferum. Levant Smoked, &c.
Constantinople do. ” Turkey ”
Egyptian do. ” Egypt ”
Trebizond do. ” Persia ”
Bengal do. ” India ”
Garden Patna do. ” ” ”
Malwa do. ” ” ”
Cutch do. ” ” ”
Kandeish do. ” ” ”
English do. ” England ”
French do. ” France ”
German do. ” Germany ”
Lactucarium Lactuca sativa Britain Subs. for opium.
” ” virosa ” ”
” ” scariola ” ”
” ” altissima ” ”
” ” sylvestris ” ”
” ” elongata ” ”
” ” taraxacifolia Guiana ”
Dutchman’s
Murucuja ocellata Jamaica ”
laudanum
Ditto ” orbiculata Barbadoes ”
To produce
Syrian rue seeds Peganum harmala Turkey
intoxication.
Seeds of Sterculia alata Silhet Subs. for opium.
To produce
Seeds of Scopolia mutica Arabia
intoxication.
Juice of Chondrilla juncea Lemnos Subs. for opium.
III.——Hemp.
Gunjah and Bang Cannabis indica India, Africa Smoked, &c.
Churrus (resin) ” Nepaul, &c. ”
Powdered dacca and
” S. W. Africa. Snuffed.
aloes
IV.——Betel.
Betel nuts Areca catechu Malay Penin. Chewed.
” Areca laxa Andaman Is. ”
” Areca Nagonsis E. Bengal ”
” Areca Dicksoni Malabar ”
Kassu (extract) Areca catechu India ”
Cowry (extract) Areca catechu Mysore ”
Kutt or catechu Acacia catechu India ”
Singapore
Gambir Uncaria gambir Chewed.
&c.
” Uncaria sp. ” ”
Chewed with betel
Betel pepper leaves Chavica betle Malay Penin.
leaves
” Chavica siraboa ” ”
Blk. pepper leaves Piper nigrum Singapore ”
Ava pepper Macropiper methysticum S. Seas ”
Roots of Derris pinnata ” Subs. for betel
Roots of Cocos nucifera Ceylon ”
Guayabo bark Psidium guayaba Phillippines ”
Antipolo bark ” ” ”
V.——Coca.
Coca leaves Erythroxylon coca Peru Masticatory
VI.——Thorn-Apple.
Florispondio seeds Datura sanguinea N. Granada. Drank in infusion.
” ” stramonium Europe Smoked.
” seeds ” arborea Peru ”
” ” fatuosa Egypt ”
” ” ferox China ”
{By the Delphic
” ” tatula Asia
oracle.
” ” metel W. Asia As an opiate.
Belladonna leaves Atropa belladonna Europe Smoked.
Henbane leaves Hyoscyamus niger India Mixed with haschish.
Rhododendron
Leaves of Siberia Chewed.
chrysanthum
Flowers of Rhododendron arboreum India ”
Foxglove leaves Digitalis purpurea ” Mixed with haschisch.
VII.——Amanita.
Fly agaric Amanita muscaria Siberia Swallowed.

M’CORQUODALE & CO., PRINTERS, LONDON—WORKS, NEWTON.


FOOTNOTES:
1 The learned in the lore of ancient Rome may charge us, if
they will, with a grievous wrong in considering Sleep as one of
the softer sex, inasmuch as Somnus was one of the elder of the
“lords of the creation.” We confess to an inclination towards the
“ladies of the creation;” and in this matter especially
“We have a vision of our own,
And why should we undo it?”
2 A correspondent of the Medical Times having asked for
authentic instances of the hair becoming grey within the space of
one night, Mr. D. F. Parry, Staff-Surgeon at Aldershott, transmitted
the following account, of which he made memorandum shortly
after its occurrence. “On February 19, 1858, the column under
General Franks, in the south of Oude, was engaged with a rebel
force at the village of Chamda, and several prisoners were taken.
One of them, a sepoy of the Bengal army, was brought before the
authorities for examination, and I, being present, had an
opportunity of watching from the commencement the fact I am
about to record. Divested of his uniform, and stripped completely
naked, he was surrounded by the soldiers, and then first
apparently became alive to the danger of his position; he
trembled violently, intense horror and despair were depicted in his
countenance, and although he answered all the questions
addressed to him, he seemed almost stupified with fear; while
actually under observation, within the space of half-an-hour, his
hair became grey on every portion of his head, it having been,
when first seen by me, the glossy jet black of the Bengalee, aged
about twenty-four. The attention of the bystanders was first
attracted by the serjeant, whose prisoner he was, exclaiming, ‘He
is turning grey;’ and I, with several other persons, watched its
progress. Gradually, but decidedly, the change went on, and a
uniform greyish colour was completed within the period above
named.”
3 Herod., lib. iv. cap. 74-75.
4 Ib., lib. i. cap. 202.
5 The Ansayrii and the Assassins, by the Hon. F. Walpole.
6 “Ex illo sane tempore [tabacum] usu cepit esse creberrimo in
Angliâ, et magno pretio dum quam plurimi graveolentem illius
fumum per tubulum testaceum hauriunt et mox e naribus effiant;
adeo ut Anglorum corporum in barbarorum naturam degenerasse
videantur quum iidem ac barbari delectentur.”——Camden, Annal.
Elizab., p. 143. (1585.)
7 Squier’s “Nicaragua.”
8 Edwards’ “Voyage up the Amazon.”
9 Bentley’s Magazine.
10 For the art of making tobacco pipes of clay, the Dutch are
indebted to this country, in proof of which, Mr. Hollis, who passed
through the Netherlands in 1748, states that the master of the
Gouda Pipe Works informed him, that, to that day, the principal
working tools bore English names.
11 Catlin’s North American Indians, vol. ii., p. 160.
12 Tooke says “Snuff is the past participle of to sniff, that which
is sniffed.”
13 Lord Stanhope makes the following curious estimate:
——“Every professed, inveterate, and incurable snuff-taker, at a
moderate computation, takes one pinch in ten minutes. Every
pinch, with the agreeable ceremony of blowing and wiping the
nose, and other incidental circumstances, consumes a minute and
a half. One minute and a half out of every ten, allowing sixteen
hours to a snuff-taking day, amounts to two hours and twenty
minutes out of every natural day, or one day out of every ten.
One day out of every ten amounts to thirty-six days and a half in
the year; hence, if we suppose the practice to be persisted in for
forty years, two entire years of the snuff-taker’s life will be
dedicated to tickling his nose, and two more to blowing it.” The
expense of snuff, snuff-boxes, and handkerchiefs, is also alluded
to; and it is calculated that “by a proper application of the time
and money thus lost to the public, a fund might be constituted for
the discharge of the national debt.”
14 Curiosities of Food, by P. L. Simmonds. Bentley, 1859.
15 Tobacco entered for home consumption—
1856 1857 1858
32,579,166 lbs. 32,851,365 lbs. 34,110,850 lbs.
Total 99,541,381 lbs.—or 44,438 tons.
16 Tea entered for home consumption in—
1856 1857 1858
63,295,643 lbs. 69,159,640 lbs. 73,217,483 lbs.
17 Mesembryanthemum tortuosum, Linn.
18 Rhus typhina.
19 “The tree Tooba that stands in Paradise, in the palace of
Mahomet.”——Sale. “Tooba signifies beatitude or eternal
happiness.”——D’Herbelot.
20 See Table XV. in the Appendix.
21 Dr. Hobson states, in an official communication to the
Government, “I do not know of any mortal disease from opium
corresponding to delirium tremens from alcohol. I have never
been called to attend to any accidents resulting from opium
similar to those occurring so frequently from habits of intoxication
from liquor. The opium-smoker, when under the full influence of
his delicious drug, brawls and swaggers not in the public streets,
like a drunkard, to the annoyance of bystanders, but reposes
quietly on his couch, without molesting those around him.”
Also Dr. Traill, of Singapore, from his own experience, has not
found opium-smoking in any way so powerful a promoter of
disease as the habitual use of intoxicating liquors.
22 Dr. Doran says that a salad was so scarce an article during
the early part of the last century, that George I. was obliged also
to send to Holland to procure a lettuce for his queen. These
vegetables must, therefore, have become unpopular before that
time, or the cultivation had been for some cause discontinued,
otherwise we cannot reconcile this with the fact that lettuces
were common enough a century before a George sate upon the
English throne.
23 Von Hammer’s History of the Assassins.
24 “Dublin Quarterly Journal of Medical Science.”
25 Dr. Daniell in “Pharmaceutical Journal.”
[26]
1850—1,734 candies.
1851—1,983 candies.
1852—2,953 candies.
1853—2,073 candies.
1854—1,954 candies.
The candy is 433½ lbs.
27 There is a stick of this kind in the Museum of Economic
Botany at Kew Gardens.
28 The stem and roots of long pepper, cut in pieces and dried
under the name of Pipula moola, are exposed for sale in all the
bazaars of India, but these are not used with the areca nut, nor
are the leaves applied to that purpose.
29 From cate a tree, and chu juice.
30 Neale’s Residence in Siam.
31 Why are ladies who indulge in this habit universally
described as elderly ladies?
32 This name, derived from the Greek, indicates strong,
powerful.
33 “Edinburgh Medical Journal,” 1857.
34 The potato, the tomato, and egg plant possess, when
uncooked, in a mild degree, the properties of the nightshade, the
stramonium, and the henbane, confirming the remark of De
Candolle “that all our aliments contain a small proportion of an
exciting principle, which, should it occur in a much greater
quantity, might become injurious, but which is necessary as a
natural condiment.” In fact, when food does not contain some
stimulating principle, we add it in the form of spices.
35 Another fanciful origin for the name, which signifies
“beautiful woman,” is, that it was bestowed in consequence of the
use once made of its berries by the Italian ladies as a cosmetic.
36 “Similia similibus curantur.”
37 “Journ. de Chim. Méd.,” 1839, p. 322.
38 “Archives Gén. de Méd.,” t. xi., p. 94.
40 Each Chest of Opium contains about 140 lbs.
*** END OF THE PROJECT GUTENBERG EBOOK THE SEVEN
SISTERS OF SLEEP ***

Updated editions will replace the previous one—the old editions


will be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States
copyright in these works, so the Foundation (and you!) can copy
and distribute it in the United States without permission and
without paying copyright royalties. Special rules, set forth in the
General Terms of Use part of this license, apply to copying and
distributing Project Gutenberg™ electronic works to protect the
PROJECT GUTENBERG™ concept and trademark. Project
Gutenberg is a registered trademark, and may not be used if
you charge for an eBook, except by following the terms of the
trademark license, including paying royalties for use of the
Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such
as creation of derivative works, reports, performances and
research. Project Gutenberg eBooks may be modified and
printed and given away—you may do practically ANYTHING in
the United States with eBooks not protected by U.S. copyright
law. Redistribution is subject to the trademark license, especially
commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the


free distribution of electronic works, by using or distributing this
work (or any other work associated in any way with the phrase
“Project Gutenberg”), you agree to comply with all the terms of
the Full Project Gutenberg™ License available with this file or
online at www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand,
agree to and accept all the terms of this license and intellectual
property (trademark/copyright) agreement. If you do not agree
to abide by all the terms of this agreement, you must cease
using and return or destroy all copies of Project Gutenberg™
electronic works in your possession. If you paid a fee for
obtaining a copy of or access to a Project Gutenberg™
electronic work and you do not agree to be bound by the terms
of this agreement, you may obtain a refund from the person or
entity to whom you paid the fee as set forth in paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only


be used on or associated in any way with an electronic work by
people who agree to be bound by the terms of this agreement.
There are a few things that you can do with most Project
Gutenberg™ electronic works even without complying with the
full terms of this agreement. See paragraph 1.C below. There
are a lot of things you can do with Project Gutenberg™
electronic works if you follow the terms of this agreement and
help preserve free future access to Project Gutenberg™
electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright
law in the United States and you are located in the United
States, we do not claim a right to prevent you from copying,
distributing, performing, displaying or creating derivative works
based on the work as long as all references to Project
Gutenberg are removed. Of course, we hope that you will
support the Project Gutenberg™ mission of promoting free
access to electronic works by freely sharing Project Gutenberg™
works in compliance with the terms of this agreement for
keeping the Project Gutenberg™ name associated with the
work. You can easily comply with the terms of this agreement
by keeping this work in the same format with its attached full
Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.

1.E. Unless you have removed all references to Project


Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project
Gutenberg™ work (any work on which the phrase “Project
Gutenberg” appears, or with which the phrase “Project
Gutenberg” is associated) is accessed, displayed, performed,
viewed, copied or distributed:

This eBook is for the use of anyone anywhere in the United


States and most other parts of the world at no cost and
with almost no restrictions whatsoever. You may copy it,
give it away or re-use it under the terms of the Project
Gutenberg License included with this eBook or online at
www.gutenberg.org. If you are not located in the United
States, you will have to check the laws of the country
where you are located before using this eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is


derived from texts not protected by U.S. copyright law (does not
contain a notice indicating that it is posted with permission of
the copyright holder), the work can be copied and distributed to
anyone in the United States without paying any fees or charges.
If you are redistributing or providing access to a work with the
phrase “Project Gutenberg” associated with or appearing on the
work, you must comply either with the requirements of
paragraphs 1.E.1 through 1.E.7 or obtain permission for the use
of the work and the Project Gutenberg™ trademark as set forth
in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is


posted with the permission of the copyright holder, your use and
distribution must comply with both paragraphs 1.E.1 through
1.E.7 and any additional terms imposed by the copyright holder.
Additional terms will be linked to the Project Gutenberg™
License for all works posted with the permission of the copyright
holder found at the beginning of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files
containing a part of this work or any other work associated with
Project Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute


this electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the
Project Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™
works unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or


providing access to or distributing Project Gutenberg™
electronic works provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project


Gutenberg™ electronic work or group of works on different
terms than are set forth in this agreement, you must obtain
permission in writing from the Project Gutenberg Literary
Archive Foundation, the manager of the Project Gutenberg™
trademark. Contact the Foundation as set forth in Section 3
below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on,
transcribe and proofread works not protected by U.S. copyright
law in creating the Project Gutenberg™ collection. Despite these
efforts, Project Gutenberg™ electronic works, and the medium
on which they may be stored, may contain “Defects,” such as,
but not limited to, incomplete, inaccurate or corrupt data,
transcription errors, a copyright or other intellectual property
infringement, a defective or damaged disk or other medium, a
computer virus, or computer codes that damage or cannot be
read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in
paragraph 1.F.3, the Project Gutenberg Literary Archive
Foundation, the owner of the Project Gutenberg™ trademark,
and any other party distributing a Project Gutenberg™ electronic
work under this agreement, disclaim all liability to you for
damages, costs and expenses, including legal fees. YOU AGREE
THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT
LIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT
EXCEPT THOSE PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE
THAT THE FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of
receiving it, you can receive a refund of the money (if any) you
paid for it by sending a written explanation to the person you
received the work from. If you received the work on a physical
medium, you must return the medium with your written
explanation. The person or entity that provided you with the
defective work may elect to provide a replacement copy in lieu
of a refund. If you received the work electronically, the person
or entity providing it to you may choose to give you a second
opportunity to receive the work electronically in lieu of a refund.

You might also like