Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://gitlab.inria.fr/abrenon/soprano
25 November 2025, 14:44:58 UTC
  • Code
  • Branches (5)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/improveSegmenter
    • refs/heads/linesClustering
    • refs/heads/main
    • refs/tags/0.2.0.0
    • refs/tags/0.2.0.1
    No releases to show
  • 5709fd9
  • /
  • README.md
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:05a8ec16b158213d1b7f25db86f7edce0393a142
origin badgedirectory badge
swh:1:dir:5709fd9134a64c18361f50e41c2ca0632d54953d
origin badgerevision badge
swh:1:rev:3fc6efcf5444dee0c690d4d57aab06a50593ad8a
origin badgesnapshot badge
swh:1:snp:235f189b7a0afe1c603f91409dcaa1dea9b3b0eb

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 3fc6efcf5444dee0c690d4d57aab06a50593ad8a authored by Alice Brenon on 25 November 2025, 13:33:00 UTC
Switch license to GPLv3 (https://www.gnu.org/licenses/gpl.html)
Tip revision: 3fc6efc
README.md
# soprano

Soprano is a tool to process ALTO files delivered by the BnF for project [DISCO-LGE](https://www.collexpersee.eu/projet/disco-lge/). You usually won't need to call it directly when processing the whole of *La Grande Encyclopédie* but it will be used by the script [LGEencode.sh](https://gitlab.huma-num.fr/disco-lge/processinglge) instead.

Still, you can use it to [extract specific information like pages headers or process a given set of pages](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/home).

## Installation

Soprano is written in [haskell](https://www.haskell.org/) and can be installed using [cabal](https://www.haskell.org/cabal). From the root directory of this repository just issue

```sh
cabal new-build
```

to build the package, then

```sh
cabal new-install exe:soprano
```

to install it for your user (make sure `$HOME/.cabal/bin/` is in your `$PATH`). This package includes a test suite which can be run with

```sh
cabal new-test
```

## Command line arguments

Here is a complete list of recognized command-line arguments:

- `--charWidth PIXELS`, short `-c`: the expected [width of a character](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Encoding#detecting-article-beginings) in pixels
- `--keep BLOCKTYPES`, short `-k`: block types to [keep](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Cleaning#keep)
- `--lineHeight PIXELS`, short `-l`: the expected [height of a text line](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Cleaning#lineheight) in pixels
- `--logLevel LOG_LEVEL`, short `-L`: set the log level among : Error,Warning,Info,Debug
- `--noise FILE`, short `-n`: path to a file containing characters to [treat as noise](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Cleaning#noise) and filter out
- `--output DIRECTORY`, short `-o`: directory where to generate files
- `--scoriae CSV_FILE`, short `-s`: path to a file containing the [scoriae to delete](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Cleaning#scoriae)
- `--scoriaThreshold THRESHOLD`, short `-T`: minimum required value for [word confidence](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Cleaning#scoriathreshold) in ALTO input
- `--text`, short `-t`: [output](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Home#output-format) text instead of XML
- `--titlePrefix`, short `-P`: prefix to add to each XML-TEI file's title during the [encoding](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Encoding) - defaults to the empty string
- `--raw` the default [processing step](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Home#processing-steps), leaving the input content as unchanged as possible.
- `--fixed` the second [processing step](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Home#processing-steps) that applies fixes but keep the content as a whole
- `--articles` the final [processing step](https://gitlab.huma-num.fr/disco-lge/soprano/-/wikis/Home#processing-steps) that applies fixes and segments the content into articles

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API