Files
scofano 69cf579696 feat: add text file loading and string truncation nodes
Add documentation for new Text Load From File and Text String Truncate nodes.

- Document UTF-8 file loading with comment-line filtering and dictionary output
- Document string truncation by characters or words from either end
- Update feature list, file tree, usage notes, and examples

These utilities expand text preprocessing options directly in ComfyUI.feat: add text file loading and string truncation nodes

Add documentation for new Text Load From File and Text String Truncate nodes.

- Document UTF-8 file loading with comment-line filtering and dictionary output
- Document string truncation by characters or words from either end
- Update feature list, file tree, usage notes, and examples

These utilities expand text preprocessing options directly in ComfyUI.
2026-05-20 14:14:44 -03:00

47 lines
1.5 KiB
Python

"""ComfyUI node registration for comfy-text-stats."""
from .character_search_replace import CharacterSearchReplace
from .line_batch_chunk import LineBatchChunk
from .line_context_counter import LineContextCounter
from .remove_empty_lines import RemoveEmptyLines
from .text_stats import TextStats
from .text_load_from_file import TextLoadFromFile
from .text_string_truncate import TextStringTruncate
from .utf8_processor import UTF8Processor
NODE_CLASS_MAPPINGS = {
"CharacterSearchReplace": CharacterSearchReplace,
"LineBatchChunk": LineBatchChunk,
"LineContextCounter": LineContextCounter,
"RemoveEmptyLines": RemoveEmptyLines,
"TextStats": TextStats,
"TextLoadFromFile": TextLoadFromFile,
"TextStringTruncate": TextStringTruncate,
"UTF8Processor": UTF8Processor,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"CharacterSearchReplace": "Text -> Character Search Replace",
"LineBatchChunk": "Text -> Line Batch Chunk",
"LineContextCounter": "Text -> Line Context Counter",
"RemoveEmptyLines": "Text -> Remove Empty Lines",
"TextStats": "Text -> Char, Word & Line Count",
"TextLoadFromFile": "Text -> Load Text File",
"TextStringTruncate": "Text -> String Truncate",
"UTF8Processor": "Text -> UTF-8 Cleaner",
}
__all__ = [
"NODE_CLASS_MAPPINGS",
"NODE_DISPLAY_NAME_MAPPINGS",
"CharacterSearchReplace",
"LineBatchChunk",
"LineContextCounter",
"RemoveEmptyLines",
"TextStats",
"TextLoadFromFile",
"TextStringTruncate",
"UTF8Processor",
]
__version__ = "1.7.0"