Skip to content

Commit

Permalink
refactor: Improve text formatting in sample texts for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Aug 14, 2024
1 parent 15a6b27 commit ef51913
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions iscc_sct/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def generate_similarity_bar(similarity):


# Sample texts
sample_text_en = """
sample_text_en = "\n\n".join(
[
" ".join(paragraph.split())
for paragraph in """
This document specifies the syntax and structure of the International Standard Content Code (ISCC),
as an identification system for digital assets (including encodings of text, images, audio, video or other content
across all media sectors). It also describes ISCC metadata and the use of ISCC in conjunction with other schemes, such
Expand All @@ -77,9 +80,14 @@ def generate_similarity_bar(similarity):
An ISCC applies to a specific digital asset and is a data-descriptor deterministically constructed from multiple hash
digests using the algorithms and rules in this document. This document does not provide information on registration of
ISCCs.
""".rstrip()
""".strip().split("\n\n")
]
)

sample_text_de = """
sample_text_de = "\n\n".join(
[
" ".join(paragraph.split())
for paragraph in """
Dieses Dokument spezifiziert die Syntax und Struktur des International Standard Content Code (ISCC) als
Identifizierungssystem für digitale Inhalte (einschließlich Kodierungen von Text, Bildern, Audio, Video oder anderen
Inhalten in allen Medienbereichen). Sie beschreibt auch ISCC-Metadaten und die Verwendung von ISCC in Verbindung mit
Expand All @@ -88,7 +96,9 @@ def generate_similarity_bar(similarity):
Ein ISCC bezieht sich auf ein bestimmtes digitales Gut und ist ein Daten-Deskriptor, der deterministisch aus mehreren
Hash-Digests unter Verwendung der Algorithmen und Regeln in diesem Dokument erstellt wird. Dieses Dokument enthält
keine Informationen über die Registrierung von ISCCs.
""".rstrip()
""".strip().split("\n\n")
]
)

custom_css = """
#chunked-text span.label {
Expand Down

0 comments on commit ef51913

Please sign in to comment.