Fix more Windows encoding: remove all emoji/Unicode
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""CAD-Documenter: Video walkthrough → Engineering documentation."""
|
||||
"""CAD-Documenter: Video walkthrough -> Engineering documentation."""
|
||||
|
||||
__version__ = "0.2.0"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ def print_banner():
|
||||
"""Print the CAD-Documenter banner."""
|
||||
console.print(Panel.fit(
|
||||
"[bold blue]CAD-Documenter[/bold blue] v0.2.0\n"
|
||||
"[dim]Video walkthrough → Engineering documentation[/dim]",
|
||||
"[dim]Video walkthrough -> Engineering documentation[/dim]",
|
||||
border_style="blue"
|
||||
))
|
||||
|
||||
@@ -28,15 +28,15 @@ def print_banner():
|
||||
def progress_handler(progress: PipelineProgress):
|
||||
"""Handle progress updates from pipeline."""
|
||||
stage_icons = {
|
||||
PipelineStage.INIT: "🔧",
|
||||
PipelineStage.FRAMES: "🎬",
|
||||
PipelineStage.TRANSCRIPTION: "🎤",
|
||||
PipelineStage.INIT: "[gear]",
|
||||
PipelineStage.FRAMES: "[video]",
|
||||
PipelineStage.TRANSCRIPTION: "[mic]",
|
||||
PipelineStage.ANALYSIS: "🔍",
|
||||
PipelineStage.DOCUMENTATION: "📝",
|
||||
PipelineStage.PDF: "📄",
|
||||
PipelineStage.DOCUMENTATION: "[doc]",
|
||||
PipelineStage.PDF: "[pdf]",
|
||||
PipelineStage.COMPLETE: "✅",
|
||||
}
|
||||
icon = stage_icons.get(progress.stage, "⏳")
|
||||
icon = stage_icons.get(progress.stage, "[wait]")
|
||||
|
||||
if progress.error:
|
||||
console.print(f" [red]X[/red] {progress.message}")
|
||||
@@ -117,7 +117,7 @@ def process(
|
||||
if output is None:
|
||||
output = video.parent / f"{video.stem}_docs"
|
||||
|
||||
console.print(f"📁 Output: [cyan]{output}[/cyan]\n")
|
||||
console.print(f"[folder] Output: [cyan]{output}[/cyan]\n")
|
||||
|
||||
# Create pipeline
|
||||
pipeline = DocumentationPipeline(
|
||||
@@ -171,8 +171,8 @@ def process(
|
||||
console.print(Panel.fit(
|
||||
f"[bold green]OK Documentation generated successfully![/bold green]\n\n"
|
||||
f"📊 Frames extracted: {result.frames_extracted}\n"
|
||||
f"🔧 Components found: {result.components_found}\n"
|
||||
f"🎤 Audio duration: {result.transcript_duration:.1f}s",
|
||||
f"[gear] Components found: {result.components_found}\n"
|
||||
f"[mic] Audio duration: {result.transcript_duration:.1f}s",
|
||||
title="Results",
|
||||
border_style="green"
|
||||
))
|
||||
@@ -278,7 +278,7 @@ def transcribe(video: Path, model: str, output: Path | None):
|
||||
from .config import TranscriptionConfig
|
||||
|
||||
print_banner()
|
||||
console.print(f"\n🎤 Transcribing: [cyan]{video}[/cyan]")
|
||||
console.print(f"\n[mic] Transcribing: [cyan]{video}[/cyan]")
|
||||
|
||||
config = TranscriptionConfig(model=model)
|
||||
analyzer = AudioAnalyzer(video, config)
|
||||
|
||||
Reference in New Issue
Block a user