Database management
We have an own program to manage the Fontlinge database:
fontlinge_database_assistant.
You already know it from installation.
On this page, we'll explain only options you need while running
Fontlinge. These options are used to save and import sortlists
(files which contain a list of fonts and how they look).
Options that are needed only while installation are explained in the
INSTALL file or can be listed with fontlinge_database_assistant
--help
Backing up a sortlist
To export a list of fonts you sorted (which means: all fonts
marked with your sortername), call fontlinge_database_assistant
--export-my-text. The sortlist will be written to STDOUT,
maybe you want to redirect it to a file
with > my_sortlist.txt
To export the complete sortlist (all sorternames), use the option
--export-text
If you use our categories when sorting your fonts, please send us your
sortlist. We will provide it to all Fontlinge users.
| |
Importing a sortlist
Sortlist importing is done with
fontlinge_database_assistant --import-text [database.txt]
[--trusted-sorters=name1,name2,...]
[--overwrite-duplicates] [--reject-log=FILE]
Looks complicated, but it isn't ;-)
Basically, you need the option --import-text.
If you want, you can give a filename to read from after this option,
otherwise STDIN will be read.
Existing database entries will only be overwritten if both the existing and
the new entry (from the sortlist) are from a "trusted sorter". You can
specify the list of trusted sorters in ~/.fontlinge or
with the --trusted-sorters=name1,name2,... parameter.
As usual, the command line parameter will override the setting
from ~/.fontlinge.
If you didn't specify anything else at fontlinge_config,
"core" and "ratti" are used as trusted sorters - these are the
sorternames we use in the official sortlists.
The option --overwrite-duplicates causes overwriting of
entries that already exist in the database, even if the entries are not
from a trusted sorter.
--reject-log=FILE can be used to write a list of all
rejected entries to a file. Of course, this is only useful if you
don't use --overwrite-duplicates at the same time.
|