Skip to content

Commit

Permalink
fix: updated the exported readme to include default upload path and i…
Browse files Browse the repository at this point in the history
…mage-asset-folder attribute
  • Loading branch information
deltork committed Apr 26, 2024
1 parent 2eceb2a commit 8dcbab5
Show file tree
Hide file tree
Showing 4 changed files with 1,007 additions and 999 deletions.
2 changes: 1 addition & 1 deletion readalongs/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.20240404"
__version__ = "1.0.20240426"
5 changes: 3 additions & 2 deletions readalongs/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ def align_audio(
final_end = aligned_words[-1]["end"]
if len(aligned_words) != len(word_sequence.words):
LOGGER.warning(
f"Word sequence {i+1} had {len(word_sequence.words)} tokens "
f"Word sequence {i + 1} had {len(word_sequence.words)} tokens "
f"but produced {len(aligned_words)} segments. "
"Check that the anchors are well positioned or "
"that the audio corresponds to the text."
Expand Down Expand Up @@ -979,7 +979,7 @@ def save_readalong(
if "images" in config:
save_images(config=config, output_dir=output_dir)
save_readme_txt(
os.path.join(output_dir, "README.txt"),
os.path.join(output_dir, "readme.txt"),
os.path.basename(ras_path),
os.path.basename(audio_path),
config.get("header", "Header goes here"),
Expand Down Expand Up @@ -1157,6 +1157,7 @@ def convert_to_xhtml(tokenized_xml, title="Book"):
RAS_TEMPLATE = """<?xml version='1.0' encoding='utf-8'?>
<read-along version="1.0">
<text xml:lang="{{main_lang}}" fallback-langs="{{fallback_langs}}">
<!-- DO NOT USE THIS DATA WITHOUT EXPLICIT PERMISSION -->
<body>
{{#pages}}
<div type="page">
Expand Down
Loading

0 comments on commit 8dcbab5

Please sign in to comment.