ComfyUI > Nodes > ComfyUI-PersianText > Persian Text Generator

ComfyUI Node: Persian Text Generator

Class Name

PersianText

Category
🎨KG
Author
shahkoorosh (Account age: 851days)
Extension
ComfyUI-PersianText
Latest Updated
2025-05-23
Github Stars
0.03K

How to Install ComfyUI-PersianText

Install this extension via the ComfyUI Manager by searching for ComfyUI-PersianText
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-PersianText in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Persian Text Generator Description

ComfyUI's PersianText node enables advanced styling for Persian and Arabic script rendering.

Persian Text Generator:

The PersianText node is a specialized component within the ComfyUI framework designed to facilitate the rendering of text with advanced styling options, particularly focusing on full support for Persian/Farsi and Arabic scripts. This node is essential for users who need to incorporate these scripts into their projects, ensuring that the text is displayed correctly and aesthetically pleasing. The node intelligently processes text to determine the appropriate script direction and styling, making it a powerful tool for creating visually appealing text elements in languages that use right-to-left scripts. By leveraging this node, you can seamlessly integrate Persian and Arabic text into your designs, enhancing the cultural and linguistic authenticity of your work.

Persian Text Generator Input Parameters:

text

The text parameter is the primary input for the PersianText node, where you provide the string of text that you wish to render. This parameter accepts any string value, and its content will be processed to determine the appropriate script and direction for rendering. The text can include multiple lines, and the node will handle each line individually to ensure correct formatting. There are no specific minimum or maximum values for this parameter, but it is essential to ensure that the text is correctly encoded in UTF-8 to avoid any rendering issues.

direction

The direction parameter allows you to specify the text direction explicitly. It accepts values such as "auto", "rtl" (right-to-left), and "ltr" (left-to-right). By default, the direction is set to "auto", which enables the node to automatically detect the appropriate direction based on the text content. This parameter is crucial for ensuring that the text is rendered correctly, especially when dealing with mixed scripts or when the automatic detection might not yield the desired results.

Persian Text Generator Output Parameters:

processed_text

The processed_text output parameter provides the final rendered text after processing by the PersianText node. This output includes the text with the correct script direction and styling applied, ready for integration into your design projects. The processed text ensures that Persian and Arabic scripts are displayed accurately, maintaining the intended visual and linguistic characteristics. This output is essential for verifying that the text has been correctly formatted and is suitable for use in your creative work.

Persian Text Generator Usage Tips:

  • Ensure that your input text is correctly encoded in UTF-8 to prevent any rendering issues with Persian or Arabic scripts.
  • Use the direction parameter to manually set the text direction if the automatic detection does not produce the desired results, especially in cases of mixed scripts.

Persian Text Generator Common Errors and Solutions:

Text encoding error

  • Explanation: This error occurs when the input text is not properly encoded in UTF-8, leading to incorrect rendering of Persian or Arabic characters.
  • Solution: Ensure that your text input is encoded in UTF-8 format before passing it to the PersianText node.

Incorrect text direction

  • Explanation: The text may not render correctly if the direction is not set appropriately, especially in mixed-script scenarios.
  • Solution: Use the direction parameter to explicitly set the text direction to "rtl" or "ltr" as needed, rather than relying solely on the "auto" setting.

Persian Text Generator Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-PersianText
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.