EZ Text Concatenate:
The EZ_Text_Concat node is designed to streamline the process of merging multiple text inputs into a single cohesive output. This node is particularly beneficial for AI artists and creators who need to manage and manipulate large volumes of text data efficiently. By allowing you to concatenate any number of string inputs, it simplifies the task of text aggregation, making it easier to prepare text for further processing or presentation. The node offers flexibility in how the text is combined, with options to insert delimiters between inputs and to clean up the text by removing unnecessary spaces, commas, and line breaks. This ensures that the final output is not only a simple concatenation but also a polished and readable text block, enhancing the overall quality and usability of the text data.
EZ Text Concatenate Input Parameters:
number_of_inputs
This parameter allows you to specify the number of text inputs you wish to concatenate. It dynamically adjusts the number of input slots available, ranging from a minimum of 2 to a maximum of 50, with a default value of 2. This flexibility enables you to tailor the node to your specific needs, whether you're working with a small or large set of text data.
delimiter
The delimiter parameter defines the string that will be inserted between each text input during concatenation. By default, it is set to ",\\n", which means a comma followed by a line break. You can customize this to any string, including special characters like \\n for line breaks, to control how the text inputs are separated in the final output.
beautify
This parameter determines whether and when the text should be cleaned up to remove excessive commas, spaces, and line breaks. It offers three options: "never," "before," and "after." "Never" means no text processing will occur, "before" processes each text input separately before concatenation, and "after" processes the concatenated text. The default setting is "never," allowing you to choose the level of text refinement needed for your project.
line_breaks
The line_breaks parameter controls whether line breaks in the text should be kept or deleted after processing. It has two options: "keep" and "delete," with "keep" as the default. This setting is applied after any text beautification, allowing you to maintain or remove line breaks based on the desired format of your final text output.
EZ Text Concatenate Output Parameters:
STRING
The output parameter is a single string that represents the processed and concatenated text. This output is the result of merging all the specified text inputs according to the chosen delimiter and beautification settings. It provides a clean and organized text block that can be used for further processing, display, or analysis, ensuring that the text is both functional and aesthetically pleasing.
EZ Text Concatenate Usage Tips:
- Use the
beautifyoption set to "before" if you want to clean up each text input individually before they are combined. This is useful for ensuring that each piece of text is formatted correctly before concatenation. - Set the
delimiterto a specific character or string that suits your needs, such as a space or a custom separator, to control how the text inputs are visually separated in the final output. - If you need to maintain the original formatting of your text inputs, ensure that the
line_breaksparameter is set to "keep" to preserve all line breaks in the final output.
EZ Text Concatenate Common Errors and Solutions:
No input provided
- Explanation: This error occurs when no text inputs are given to the node for concatenation.
- Solution: Ensure that you provide at least two text inputs, as the node requires a minimum of two inputs to function correctly.
Invalid delimiter format
- Explanation: This error might occur if the delimiter string is not formatted correctly, especially when using special characters like line breaks.
- Solution: Double-check the delimiter string for correct formatting, ensuring that special characters are properly escaped, such as using
\\nfor line breaks.
