pixelcoda / typo3-text-flow
Optimizes text flow with dynamic hyphenation
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- typo3/cms-core: ^12.0
- typo3/cms-fluid: ^12.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- typo3/coding-standards: ^0.7
- typo3/testing-framework: ^8.0
This package is auto-updated.
Last update: 2025-05-14 17:23:43 UTC
README
Optimizes text flow with dynamic hyphenation for multiple languages.
Features
- Multi-language support (DE, EN, FR, ES, IT, NL, PT, ZH, AR, HI)
- Smart hyphenation based on language patterns
- HTML and special character preservation
- Case-sensitive text processing
- Performance-optimized caching
- Backend pattern management
- Debug mode with visual hyphenation markers
- Selective activation per content element
Installation
Via Composer
composer require pixelcoda/text-flow
After installation, make sure to:
- Activate the extension in the Extension Manager
- Clear all caches
- Run the import command for additional languages:
vendor/bin/typo3 textflow:import-patterns
Usage
In Backend
- Edit any content element
- Go to the "Appearance" tab
- Find "Text Flow Language" dropdown
- Select your preferred language:
- Disabled [none] (default)
- All languages [all]
- German [de]
- English [en]
- French [fr]
- Spanish [es]
- Italian [it]
- Dutch [nl]
- Portuguese [pt]
- Chinese [zh]
- Arabic [ar]
- Hindi [hi]
In Templates
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:tf="http://typo3.org/ns/PixelCoda/TextFlow/ViewHelpers" data-namespace-typo3-fluid="true"> <!-- Basic usage (using the textflow ViewHelper) --> <tf:textflow>{text}</tf:textflow> <!-- With text parameter --> <tf:textflow text="{text}" /> <!-- With language parameter --> <tf:textflow text="{text}" language="de" /> <!-- With content element data --> <tf:textflow data="{data}">{text}</tf:textflow> <!-- Legacy ViewHelpers (still supported) --> <tf:process>{text}</tf:process> <tf:optimize>{text}</tf:optimize> </html>
Debug Mode
Add one of these URL parameters:
?debug_textflow=1
- Basic text markers ("-||-")?debug_textflow=3
- Prominent markers ("▼TRENN▼")
Important: The debug mode now only shows hyphenation markers for elements where TextFlow is actually enabled.
Supported Languages
- German (de)
- English (en)
- French (fr)
- Spanish (es)
- Italian (it)
- Dutch (nl)
- Portuguese (pt)
- Chinese (zh)
- Arabic (ar)
- Hindi (hi)
License
GPL-2.0-or-later. See LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
Support
- Documentation: docs.typo3.org
- Issue Tracker: GitHub Issues
- Slack: #ext-text-flow on typo3.slack.com