cjm-transcript-segment-align 0.0.7__tar.gz → 0.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cjm_transcript_segment_align-0.0.7/cjm_transcript_segment_align.egg-info → cjm_transcript_segment_align-0.0.8}/PKG-INFO +13 -13
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/README.md +12 -12
- cjm_transcript_segment_align-0.0.8/cjm_transcript_segment_align/__init__.py +1 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/routes/chrome.py +13 -6
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8/cjm_transcript_segment_align.egg-info}/PKG-INFO +13 -13
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/settings.ini +1 -1
- cjm_transcript_segment_align-0.0.7/cjm_transcript_segment_align/__init__.py +0 -1
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/LICENSE +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/MANIFEST.in +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/_modidx.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/components/__init__.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/components/handlers.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/components/helpers.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/components/keyboard_config.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/components/step_renderer.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/html_ids.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/models.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/routes/__init__.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/routes/forced_alignment.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/routes/init.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/services/__init__.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align/services/forced_alignment.py +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align.egg-info/SOURCES.txt +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align.egg-info/dependency_links.txt +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align.egg-info/entry_points.txt +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align.egg-info/not-zip-safe +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align.egg-info/requires.txt +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/cjm_transcript_segment_align.egg-info/top_level.txt +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/pyproject.toml +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/setup.cfg +0 -0
- {cjm_transcript_segment_align-0.0.7 → cjm_transcript_segment_align-0.0.8}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cjm-transcript-segment-align
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: FastHTML dual-column text segmentation & VAD alignment UI for transcript decomposition workflows with forced alignment-based text splitting for aligning text segments with VAD chunks.
|
|
5
5
|
Home-page: https://github.com/cj-mills/cjm-transcript-segment-align
|
|
6
6
|
Author: Christian J. Mills
|
|
@@ -79,28 +79,28 @@ graph LR
|
|
|
79
79
|
routes_init[routes.init<br/>routes/init]
|
|
80
80
|
services_forced_alignment[services.forced_alignment<br/>forced_alignment]
|
|
81
81
|
|
|
82
|
+
components_handlers --> components_keyboard_config
|
|
82
83
|
components_handlers --> services_forced_alignment
|
|
83
84
|
components_handlers --> components_step_renderer
|
|
84
|
-
components_handlers --> components_keyboard_config
|
|
85
|
-
components_handlers --> routes_forced_alignment
|
|
86
85
|
components_handlers --> html_ids
|
|
86
|
+
components_handlers --> routes_forced_alignment
|
|
87
87
|
components_keyboard_config --> html_ids
|
|
88
88
|
components_step_renderer --> components_keyboard_config
|
|
89
|
-
components_step_renderer --> components_helpers
|
|
90
89
|
components_step_renderer --> html_ids
|
|
91
|
-
|
|
90
|
+
components_step_renderer --> components_helpers
|
|
92
91
|
routes_chrome --> components_handlers
|
|
92
|
+
routes_chrome --> components_step_renderer
|
|
93
93
|
routes_chrome --> html_ids
|
|
94
94
|
routes_forced_alignment --> components_step_renderer
|
|
95
95
|
routes_forced_alignment --> html_ids
|
|
96
|
-
routes_init -->
|
|
97
|
-
routes_init --> routes_chrome
|
|
96
|
+
routes_init --> components_step_renderer
|
|
98
97
|
routes_init --> components_handlers
|
|
98
|
+
routes_init --> routes_chrome
|
|
99
99
|
routes_init --> components_keyboard_config
|
|
100
|
-
routes_init --> services_forced_alignment
|
|
101
|
-
routes_init --> models
|
|
102
100
|
routes_init --> html_ids
|
|
103
|
-
routes_init -->
|
|
101
|
+
routes_init --> routes_forced_alignment
|
|
102
|
+
routes_init --> models
|
|
103
|
+
routes_init --> services_forced_alignment
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
*22 cross-module dependencies detected*
|
|
@@ -131,10 +131,10 @@ from cjm_transcript_segment_align.routes.chrome import (
|
|
|
131
131
|
``` python
|
|
132
132
|
def _restore_align_auto_nav_js() -> str
|
|
133
133
|
"""
|
|
134
|
-
Generate JS to sync the auto-navigate toggle checkbox with the Web Audio state.
|
|
134
|
+
Generate JS to sync the auto-navigate toggle checkbox and color classes with the Web Audio state.
|
|
135
135
|
|
|
136
|
-
After chrome switch re-renders the toolbar, the checkbox starts unchecked.
|
|
137
|
-
This reads the JS state (source of truth) and restores the checkbox.
|
|
136
|
+
After chrome switch re-renders the toolbar, the checkbox starts unchecked with bg-error.
|
|
137
|
+
This reads the JS state (source of truth) and restores the checkbox + color classes.
|
|
138
138
|
Included inside the toolbar OOB so it runs after HTMX inserts the new content.
|
|
139
139
|
"""
|
|
140
140
|
```
|
|
@@ -43,28 +43,28 @@ graph LR
|
|
|
43
43
|
routes_init[routes.init<br/>routes/init]
|
|
44
44
|
services_forced_alignment[services.forced_alignment<br/>forced_alignment]
|
|
45
45
|
|
|
46
|
+
components_handlers --> components_keyboard_config
|
|
46
47
|
components_handlers --> services_forced_alignment
|
|
47
48
|
components_handlers --> components_step_renderer
|
|
48
|
-
components_handlers --> components_keyboard_config
|
|
49
|
-
components_handlers --> routes_forced_alignment
|
|
50
49
|
components_handlers --> html_ids
|
|
50
|
+
components_handlers --> routes_forced_alignment
|
|
51
51
|
components_keyboard_config --> html_ids
|
|
52
52
|
components_step_renderer --> components_keyboard_config
|
|
53
|
-
components_step_renderer --> components_helpers
|
|
54
53
|
components_step_renderer --> html_ids
|
|
55
|
-
|
|
54
|
+
components_step_renderer --> components_helpers
|
|
56
55
|
routes_chrome --> components_handlers
|
|
56
|
+
routes_chrome --> components_step_renderer
|
|
57
57
|
routes_chrome --> html_ids
|
|
58
58
|
routes_forced_alignment --> components_step_renderer
|
|
59
59
|
routes_forced_alignment --> html_ids
|
|
60
|
-
routes_init -->
|
|
61
|
-
routes_init --> routes_chrome
|
|
60
|
+
routes_init --> components_step_renderer
|
|
62
61
|
routes_init --> components_handlers
|
|
62
|
+
routes_init --> routes_chrome
|
|
63
63
|
routes_init --> components_keyboard_config
|
|
64
|
-
routes_init --> services_forced_alignment
|
|
65
|
-
routes_init --> models
|
|
66
64
|
routes_init --> html_ids
|
|
67
|
-
routes_init -->
|
|
65
|
+
routes_init --> routes_forced_alignment
|
|
66
|
+
routes_init --> models
|
|
67
|
+
routes_init --> services_forced_alignment
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
*22 cross-module dependencies detected*
|
|
@@ -95,10 +95,10 @@ from cjm_transcript_segment_align.routes.chrome import (
|
|
|
95
95
|
``` python
|
|
96
96
|
def _restore_align_auto_nav_js() -> str
|
|
97
97
|
"""
|
|
98
|
-
Generate JS to sync the auto-navigate toggle checkbox with the Web Audio state.
|
|
98
|
+
Generate JS to sync the auto-navigate toggle checkbox and color classes with the Web Audio state.
|
|
99
99
|
|
|
100
|
-
After chrome switch re-renders the toolbar, the checkbox starts unchecked.
|
|
101
|
-
This reads the JS state (source of truth) and restores the checkbox.
|
|
100
|
+
After chrome switch re-renders the toolbar, the checkbox starts unchecked with bg-error.
|
|
101
|
+
This reads the JS state (source of truth) and restores the checkbox + color classes.
|
|
102
102
|
Included inside the toolbar OOB so it runs after HTMX inserts the new content.
|
|
103
103
|
"""
|
|
104
104
|
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.8"
|
|
@@ -34,7 +34,9 @@ from cjm_transcript_segmentation.components.card_stack_config import (
|
|
|
34
34
|
from cjm_transcript_vad_align.components.step_renderer import (
|
|
35
35
|
render_align_toolbar, render_align_footer_content,
|
|
36
36
|
)
|
|
37
|
-
from cjm_transcript_vad_align.components.audio_controls import
|
|
37
|
+
from cjm_transcript_vad_align.components.audio_controls import (
|
|
38
|
+
AlignAudioControlIds, _TOGGLE_BG_OFF, _TOGGLE_BG_ON,
|
|
39
|
+
)
|
|
38
40
|
from cjm_transcript_vad_align.components.card_stack_config import (
|
|
39
41
|
ALIGN_CS_CONFIG, ALIGN_CS_IDS,
|
|
40
42
|
)
|
|
@@ -55,17 +57,22 @@ DEBUG_SWITCH_CHROME = False
|
|
|
55
57
|
|
|
56
58
|
# %% ../../nbs/routes/chrome.ipynb #e5f6a7b8
|
|
57
59
|
def _restore_align_auto_nav_js() -> str:
|
|
58
|
-
"""Generate JS to sync the auto-navigate toggle checkbox with the Web Audio state.
|
|
60
|
+
"""Generate JS to sync the auto-navigate toggle checkbox and color classes with the Web Audio state.
|
|
59
61
|
|
|
60
|
-
After chrome switch re-renders the toolbar, the checkbox starts unchecked.
|
|
61
|
-
This reads the JS state (source of truth) and restores the checkbox.
|
|
62
|
+
After chrome switch re-renders the toolbar, the checkbox starts unchecked with bg-error.
|
|
63
|
+
This reads the JS state (source of truth) and restores the checkbox + color classes.
|
|
62
64
|
Included inside the toolbar OOB so it runs after HTMX inserts the new content.
|
|
63
65
|
"""
|
|
64
66
|
sk = ALIGN_AUDIO_CONFIG.state_key
|
|
65
67
|
toggle_id = AlignAudioControlIds.AUTO_NAV_TOGGLE
|
|
66
68
|
return f"""
|
|
67
69
|
var _cb = document.getElementById('{toggle_id}');
|
|
68
|
-
if (_cb && window.{sk})
|
|
70
|
+
if (_cb && window.{sk}) {{
|
|
71
|
+
var _on = window.{sk}.autoNavigate || false;
|
|
72
|
+
_cb.checked = _on;
|
|
73
|
+
_cb.classList.remove('{_TOGGLE_BG_OFF}', '{_TOGGLE_BG_ON}');
|
|
74
|
+
_cb.classList.add(_on ? '{_TOGGLE_BG_ON}' : '{_TOGGLE_BG_OFF}');
|
|
75
|
+
}}
|
|
69
76
|
"""
|
|
70
77
|
|
|
71
78
|
|
|
@@ -133,7 +140,7 @@ async def _handle_switch_chrome(
|
|
|
133
140
|
card_width = align_state.get("card_width", 40)
|
|
134
141
|
|
|
135
142
|
# Toolbar now includes auto-play toggle internally;
|
|
136
|
-
# restore script syncs checkbox with JS state after re-render
|
|
143
|
+
# restore script syncs checkbox + color classes with JS state after re-render
|
|
137
144
|
toolbar_content = Div(
|
|
138
145
|
render_align_toolbar(
|
|
139
146
|
visible_count=visible_count,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cjm-transcript-segment-align
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: FastHTML dual-column text segmentation & VAD alignment UI for transcript decomposition workflows with forced alignment-based text splitting for aligning text segments with VAD chunks.
|
|
5
5
|
Home-page: https://github.com/cj-mills/cjm-transcript-segment-align
|
|
6
6
|
Author: Christian J. Mills
|
|
@@ -79,28 +79,28 @@ graph LR
|
|
|
79
79
|
routes_init[routes.init<br/>routes/init]
|
|
80
80
|
services_forced_alignment[services.forced_alignment<br/>forced_alignment]
|
|
81
81
|
|
|
82
|
+
components_handlers --> components_keyboard_config
|
|
82
83
|
components_handlers --> services_forced_alignment
|
|
83
84
|
components_handlers --> components_step_renderer
|
|
84
|
-
components_handlers --> components_keyboard_config
|
|
85
|
-
components_handlers --> routes_forced_alignment
|
|
86
85
|
components_handlers --> html_ids
|
|
86
|
+
components_handlers --> routes_forced_alignment
|
|
87
87
|
components_keyboard_config --> html_ids
|
|
88
88
|
components_step_renderer --> components_keyboard_config
|
|
89
|
-
components_step_renderer --> components_helpers
|
|
90
89
|
components_step_renderer --> html_ids
|
|
91
|
-
|
|
90
|
+
components_step_renderer --> components_helpers
|
|
92
91
|
routes_chrome --> components_handlers
|
|
92
|
+
routes_chrome --> components_step_renderer
|
|
93
93
|
routes_chrome --> html_ids
|
|
94
94
|
routes_forced_alignment --> components_step_renderer
|
|
95
95
|
routes_forced_alignment --> html_ids
|
|
96
|
-
routes_init -->
|
|
97
|
-
routes_init --> routes_chrome
|
|
96
|
+
routes_init --> components_step_renderer
|
|
98
97
|
routes_init --> components_handlers
|
|
98
|
+
routes_init --> routes_chrome
|
|
99
99
|
routes_init --> components_keyboard_config
|
|
100
|
-
routes_init --> services_forced_alignment
|
|
101
|
-
routes_init --> models
|
|
102
100
|
routes_init --> html_ids
|
|
103
|
-
routes_init -->
|
|
101
|
+
routes_init --> routes_forced_alignment
|
|
102
|
+
routes_init --> models
|
|
103
|
+
routes_init --> services_forced_alignment
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
*22 cross-module dependencies detected*
|
|
@@ -131,10 +131,10 @@ from cjm_transcript_segment_align.routes.chrome import (
|
|
|
131
131
|
``` python
|
|
132
132
|
def _restore_align_auto_nav_js() -> str
|
|
133
133
|
"""
|
|
134
|
-
Generate JS to sync the auto-navigate toggle checkbox with the Web Audio state.
|
|
134
|
+
Generate JS to sync the auto-navigate toggle checkbox and color classes with the Web Audio state.
|
|
135
135
|
|
|
136
|
-
After chrome switch re-renders the toolbar, the checkbox starts unchecked.
|
|
137
|
-
This reads the JS state (source of truth) and restores the checkbox.
|
|
136
|
+
After chrome switch re-renders the toolbar, the checkbox starts unchecked with bg-error.
|
|
137
|
+
This reads the JS state (source of truth) and restores the checkbox + color classes.
|
|
138
138
|
Included inside the toolbar OOB so it runs after HTMX inserts the new content.
|
|
139
139
|
"""
|
|
140
140
|
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|